/* ============================================
   PAGES.CSS — Inner-page-specific styles
   Only loaded on pages OTHER than index.html
   ============================================ */

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section { padding: 70px 0; background: var(--bg-light); }
.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-container video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-wrapper video,
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   PAGE BANNER (inner pages)
   ============================================ */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 52px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1400&auto=format&fit=crop') center/cover no-repeat;
  opacity: .12;
}
.page-banner-content { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: 10px; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .88rem; opacity: .8; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: .7rem; }

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.products-page { padding: 70px 0; }
.products-page .products-grid { grid-template-columns: repeat(3, 1fr); }
.product-detail-img { height: 220px; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page { padding: 70px 0; }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.cert-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 14px; }
.cert-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.cert-card p { font-size: .84rem; color: var(--text-light); }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-year { font-size: .82rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.timeline-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.timeline-desc { font-size: .88rem; color: var(--text-light); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page { padding: 70px 0; }
.map-wrap { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); margin-top: 40px; }
.map-wrap iframe { display: block; }

/* ============================================
   PRODUCT DETAIL PAGE — IMAGE CAROUSEL
   ============================================ */
.pdg-wrap {
  display: flex;
  gap: 12px;
  width: 100%;
  align-items: flex-start;
}
.pdg-thumbs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  max-height: 360px;
  scrollbar-width: none;
  flex-shrink: 0;
}
.pdg-thumbs::-webkit-scrollbar { display: none; }
.pdg-thumb {
  width: 62px;
  height: 56px;
  flex-shrink: 0;
  border: 2px solid #e0e4ec;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: border-color .18s, transform .15s, box-shadow .18s;
}
.pdg-thumb:hover { border-color: var(--primary); transform: scale(1.06); }
.pdg-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(13,59,110,.18);
}
.pdg-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 3px; box-sizing: border-box;
  mix-blend-mode: multiply;
}
.pdg-main {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  overflow: hidden;
}
.pdg-main > img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  mix-blend-mode: multiply;
  cursor: zoom-in;
  transition: transform .4s ease;
  display: block;
}
.pdg-main:hover > img { transform: scale(1.04); }
.pdg-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  border: 1px solid #dde2ec;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transition: background .2s, color .2s, opacity .2s;
  z-index: 5;
  opacity: 0;
}
.pdg-main:hover .pdg-arrow { opacity: 1; }
.pdg-arrow-prev { left: 4px; }
.pdg-arrow-next { right: 4px; }
.pdg-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pdg-counter {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,.48); color: #fff;
  font-size: .62rem; font-weight: 700;
  padding: 3px 8px; border-radius: 10px;
  pointer-events: none; letter-spacing: .3px;
}
@keyframes pdgNext {
  from { opacity: 0; transform: translateX(30px) scale(.97); }
  to   { opacity: 1; transform: translateX(0)    scale(1);   }
}
@keyframes pdgPrev {
  from { opacity: 0; transform: translateX(-30px) scale(.97); }
  to   { opacity: 1; transform: translateX(0)     scale(1);   }
}
.pdg-main img.pdg-anim-next { animation: pdgNext .3s cubic-bezier(.25,.46,.45,.94) both; }
.pdg-main img.pdg-anim-prev { animation: pdgPrev .3s cubic-bezier(.25,.46,.45,.94) both; }

/* ============================================
   RESPONSIVE — page-specific overrides only
   ============================================ */
@media (max-width: 900px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-banner { padding: 36px 0; }
  .page-banner h1 { font-size: 1.7rem; }
  .contact-page { padding: 40px 0; }
  .map-wrap iframe { height: 260px !important; }
  .about-page { padding: 40px 0; }
  .timeline { padding-left: 24px; }
  .products-page { padding: 40px 0; }
  .products-page .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .pdg-wrap { flex-direction: column-reverse; gap: 8px; }
  .pdg-thumbs { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .pdg-thumb { width: 50px; height: 44px; }
  .pdg-arrow { opacity: .8; }
}

@media (max-width: 520px) {
  .product-card-img, .prod-card-img { height: 180px; }
  .products-page .products-grid { grid-template-columns: 1fr; }
}
