/* ============================================================
   MILLENNIUM WORLD SCHOOL — Inner Pages Stylesheet
   css/pages.css  (loaded by all inner pages)
   ============================================================ */

/* ── Import shared tokens from style.css ── */
/* All pages also load style.css for navbar/footer/tokens */

/* ══════════════════════════════════════════
   INNER PAGE LAYOUT
══════════════════════════════════════════ */
body { background: #f5f7fa; }

/* ── Page Hero Banner (replaces full hero on inner pages) ── */
.page-hero {
  margin-top: var(--nav-main-h);
  height: 300px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 8% 40px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.55);
  transform: scale(1.04);
  animation: pgHeroZoom 12s ease-in-out infinite alternate;
}
@keyframes pgHeroZoom { from{transform:scale(1.04)} to{transform:scale(1.10)} }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,20,60,0.82) 0%, rgba(10,20,60,0.3) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-lt); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 10px;
}
.page-hero-eyebrow::before { content:''; width:24px; height:1px; background:var(--gold); }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 300;
  color: var(--white); line-height: 1.1;
}
.page-hero h1 em { font-style: italic; color: var(--gold-lt); }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 12px 0;
}
.breadcrumb-inner {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--text-mid);
}
.breadcrumb-inner a { color: var(--blue); transition: color 0.2s; }
.breadcrumb-inner a:hover { color: var(--green); text-decoration: underline; }
.breadcrumb-sep { color: rgba(0,0,0,0.3); }
.breadcrumb-current { color: var(--text-dark); font-weight: 600; }

/* ── Main page body ── */
.page-body { background: #f5f7fa; }
.page-content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 48px 0 72px;
  align-items: start;
}
.page-main {} /* left main content */
.page-sidebar {} /* right sidebar */

/* ── Content card (white box) ── */
.content-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 44px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}
.content-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300;
  color: var(--text-dark); margin-bottom: 10px; line-height: 1.15;
}
.content-card h2 em { font-style: italic; color: var(--blue); }
.content-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 400; color: var(--blue);
  margin: 28px 0 10px;
}
.content-card p {
  font-size: 0.94rem; line-height: 1.85; color: var(--text-mid);
  margin-bottom: 14px;
}
.content-card ul, .content-card ol {
  margin: 10px 0 16px 20px;
}
.content-card li {
  font-size: 0.92rem; line-height: 1.8; color: var(--text-mid);
  margin-bottom: 6px;
}
.content-card .divider-line { margin: 16px 0 22px; }

/* ── Accent bar left ── */
.accent-bar {
  border-left: 4px solid var(--blue); padding-left: 18px; margin: 20px 0;
}
.accent-bar-green { border-left-color: var(--green); }
.accent-bar p { font-size: 1rem; font-style: italic; color: var(--text-dark); margin-bottom: 0; }

/* ── Info grid (2-col feature list) ── */
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0;
}
.info-item {
  background: #f8faff; border: 1px solid rgba(26,58,143,0.1);
  border-radius: 6px; padding: 20px 18px;
  border-left: 3px solid var(--blue);
}
.info-item-icon { font-size: 1.6rem; margin-bottom: 8px; }
.info-item h4 { font-size: 0.9rem; font-weight: 700; color: var(--blue); margin-bottom: 5px; }
.info-item p  { font-size: 0.82rem; color: var(--text-mid); margin: 0; line-height: 1.6; }

/* ── Team / person cards ── */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 24px 0; }
.team-card {
  background: var(--white); border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px; overflow: hidden; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.team-photo {
  width: 100%; height: 200px; object-fit: cover;
  background: var(--light-bg); display: block;
}
.team-info { padding: 16px 14px; }
.team-name { font-family:'Cormorant Garamond',serif; font-size: 1.15rem; font-weight: 400; color: var(--text-dark); margin-bottom: 4px; }
.team-role { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }

/* ── FAQ accordion ── */
.faq-list { margin: 20px 0; }
.faq-item {
  border: 1px solid rgba(0,0,0,0.1); border-radius: 6px;
  margin-bottom: 10px; overflow: hidden;
  transition: box-shadow 0.25s;
}
.faq-item.open { box-shadow: 0 4px 16px rgba(26,58,143,0.1); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer; background: var(--white);
  font-size: 0.92rem; font-weight: 600; color: var(--text-dark);
  user-select: none; transition: background 0.2s;
  border: none; width: 100%; text-align: left; font-family: 'Jost', sans-serif;
}
.faq-q:hover { background: #f8faff; }
.faq-item.open .faq-q { background: var(--blue); color: var(--white); }
.faq-icon { font-size: 1.1rem; flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  background: #f8faff;
}
.faq-a-inner {
  padding: 16px 20px;
  font-size: 0.9rem; line-height: 1.8; color: var(--text-mid);
}
.faq-item.open .faq-a { max-height: 400px; }

/* ── Process steps ── */
.steps-list { counter-reset: step; margin: 20px 0; }
.step-item {
  display: flex; gap: 18px; margin-bottom: 22px; align-items: flex-start;
}
.step-num {
  counter-increment: step;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-body {}
.step-title { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.step-desc  { font-size: 0.87rem; color: var(--text-mid); line-height: 1.7; }

/* ── Table ── */
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.data-table th {
  background: var(--blue); color: var(--white);
  padding: 12px 16px; text-align: left;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.data-table td {
  padding: 11px 16px; font-size: 0.88rem; color: var(--text-mid);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.data-table tr:nth-child(even) td { background: #f8faff; }
.data-table tr:hover td { background: rgba(26,58,143,0.04); }

/* ── News cards ── */
.news-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin: 24px 0; }
.news-card {
  background: var(--white); border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none; display: block;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.news-img {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--blue) url('') center/cover;
}
.news-body { padding: 18px; }
.news-tag {
  display: inline-block; background: var(--blue); color: var(--white);
  padding: 3px 10px; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 2px; margin-bottom: 8px;
}
.news-title { font-family:'Cormorant Garamond',serif; font-size: 1.15rem; font-weight: 400; color: var(--text-dark); margin-bottom: 8px; line-height: 1.3; }
.news-date  { font-size: 0.72rem; color: var(--text-mid); }

/* ── RIGHT SIDEBAR ── */
.sidebar-widget {
  background: var(--white); border-radius: 8px; padding: 24px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06); margin-bottom: 20px;
}
.sidebar-widget h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 400; color: var(--text-dark);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
}
.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid rgba(0,0,0,0.07); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; color: var(--text-mid); font-size: 0.86rem;
  transition: color 0.2s, padding-left 0.2s;
}
.sidebar-links a:hover { color: var(--blue); padding-left: 4px; }
.sidebar-links a.active { color: var(--blue); font-weight: 600; }
.sidebar-links a .sl-arr { font-size: 0.75rem; color: var(--blue); }

/* Enquire Now widget */
.enq-widget {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dk) 100%);
  border-radius: 8px; padding: 26px 22px; text-align: center; margin-bottom: 20px;
}
.enq-widget h3 { color: var(--white); font-family:'Cormorant Garamond',serif; font-size:1.3rem; font-weight:300; margin-bottom:10px; }
.enq-widget p  { color: rgba(255,255,255,0.75); font-size:0.82rem; line-height:1.6; margin-bottom:18px; }
.enq-widget .btn { width: 100%; justify-content: center; }

/* Contact widget */
.contact-widget-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.07); font-size: 0.85rem;
}
.contact-widget-item:last-child { border-bottom: none; }
.cw-icon { color: var(--blue); font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.cw-val { color: var(--text-mid); line-height: 1.5; }
.cw-val a { color: var(--blue); }

/* ── CTA banner (full-width blue/green strip inside page) ── */
.cta-strip-inner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green-dk) 100%);
  border-radius: 8px; padding: 36px 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin: 24px 0;
}
.cta-strip-inner h3 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.4rem,2.5vw,2rem);
  font-weight: 300; color: var(--white); margin-bottom: 6px;
}
.cta-strip-inner p { color: rgba(255,255,255,0.75); font-size:0.88rem; }
.cta-strip-btns { display:flex; gap:12px; flex-wrap:wrap; flex-shrink:0; }

/* ── Gallery grid on pages ── */
.gallery-pg { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 20px 0; }
.gallery-pg-item {
  aspect-ratio: 4/3; background: var(--light-bg) center/cover;
  border-radius: 4px; overflow: hidden; cursor: pointer;
  transition: transform 0.3s; position: relative;
}
.gallery-pg-item:hover { transform: scale(1.03); }
.gallery-pg-item::after {
  content:'⤢'; position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-size:1.8rem; color:var(--white);
  background:rgba(26,58,143,0.5); opacity:0; transition:opacity 0.3s;
}
.gallery-pg-item:hover::after { opacity:1; }

/* ══════════════════════════════════════════
   RESPONSIVE INNER PAGES
══════════════════════════════════════════ */
@media(max-width:900px) {
  .page-content-wrap { grid-template-columns:1fr; }
  .page-sidebar { order: -1; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .info-grid  { grid-template-columns: 1fr; }
  .news-grid  { grid-template-columns: 1fr; }
  .gallery-pg { grid-template-columns: repeat(2,1fr); }
  .cta-strip-inner { flex-direction:column; text-align:center; }
  .cta-strip-btns  { justify-content:center; }
  .content-card { padding: 24px 20px; }
}
@media(max-width:600px) {
  .page-hero { height: 220px; padding: 0 6% 28px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .gallery-pg { grid-template-columns: 1fr 1fr; }
}
