/* Independent styles for new homepage sections */

.home-ext-section { padding: 64px 0; }
.home-ext-section .ext-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.home-ext-section .ext-header { text-align: center; margin-bottom: 28px; }
.home-ext-section .ext-title { font-size: 28px; font-weight: 700; letter-spacing: 0.5px; color: #0a2a43; }
.home-ext-section .ext-subtitle { font-size: 16px; color: #54748c; margin-top: 8px; }

/* Advantages */
.advantages-section { background: #f6f9fc; }
.advantages-section .ext-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv-card { background: #fff; border: 1px solid #e6edf3; border-radius: 10px; padding: 20px; box-shadow: 0 6px 14px rgba(10,42,67,0.06); transition: transform .2s ease, box-shadow .2s ease; }
.adv-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(10,42,67,0.12); }
.adv-card h3 { font-size: 18px; color: #103a5a; margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: #5b6b7b; line-height: 1.7; }

/* Equipment */
.equipment-section { background: #ffffff; }
.equipment-section .ext-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.equip-card { border: 1px solid #e9eef3; border-radius: 10px; overflow: hidden; background: #fff; }
.equip-card .equip-img { height: 160px; background: #f0f5fa; display: flex; align-items: center; justify-content: center; }
.equip-card .equip-img img { max-width: 100%; max-height: 100%; object-fit: cover; }
.equip-card .equip-body { padding: 16px; }
.equip-card .equip-title { font-size: 16px; color: #103a5a; font-weight: 600; margin-bottom: 6px; }
.equip-card .equip-desc { font-size: 14px; color: #5b6b7b; }

/* Showcase */
.showcase-section { background: #f9fbfd; }
.showcase-section .ext-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.show-card { border: 1px solid #dbe4ee; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 8px 18px rgba(10,42,67,0.08); transition: transform .2s ease, box-shadow .2s ease; }
.show-card:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(10,42,67,0.12); }
.show-card .show-img { height: 275px; background: #eef4fa; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.show-card .show-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; padding: 6px; }
.show-card:hover .show-img img { transform: scale(1.06); }
.show-card .show-body { padding: 16px; border-top: 1px solid #e9eef3; }
.show-card .show-title { font-size: 16px; color: #103a5a; font-weight: 700; margin-bottom: 8px; }
.show-card .show-desc { font-size: 13px; color: #637789; line-height: 1.6; }
.show-card .show-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.show-card .chip { font-size: 12px; color: #0a2a43; background: #e8f1fb; border: 1px solid #cfe1f7; padding: 4px 8px; border-radius: 16px; }

/* Responsive */
@media (max-width: 992px) {
  .advantages-section .ext-grid { grid-template-columns: repeat(2, 1fr); }
  .equipment-section .ext-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-section .ext-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .advantages-section .ext-grid,
  .equipment-section .ext-grid,
  .showcase-section .ext-grid { grid-template-columns: 1fr; }
  .home-ext-section { padding: 42px 0; }
  .home-ext-section .ext-title { font-size: 22px; }
}

/* Video Modal Styles */
.video-modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.8);
}

.video-modal-content {
  position: relative;
  background-color: #002b49; /* Match site's dark blue */
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #007bff; /* Match site's blue accent */
  width: 80%;
  max-width: 900px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border-radius: 8px;
}

.video-modal-close {
  color: #fff;
  position: absolute;
  top: -10px;
  right: 5px;
  font-size: 35px;
  font-weight: bold;
  transition: 0.3s;
}

.video-modal-close:hover,
.video-modal-close:focus {
  color: #007bff;
  text-decoration: none;
  cursor: pointer;
}

/* Modal content animation for nicer appearance */
.video-modal-content { animation: modalIn .22s ease; }
@keyframes modalIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Constrain video height around 500px */
#modal-video {
  width: 100%;
  height: auto;
  max-height: 500px;
  background: #000; /* keep black bars consistent */
}

/* Responsive tweaks for smaller screens */
@media (max-width: 992px) {
  .video-modal-content { width: 88%; margin: 12% auto; }
}
@media (max-width: 600px) {
  .video-modal-content { width: 94%; margin: 18% auto; padding: 14px; }
  #modal-video { max-height: 340px; }
}