/* ============================================================
   MGM PUBLIC SCHOOL — ABOUT.CSS
   About page sections: Banner · Vision/Mission · Principal ·
                        Tabs · Disclosure · Management
   Shares all variables, utilities, and components from main.css
   ============================================================ */

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.88) contrast(1.06);
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11,31,58,0.65) 0%,
    rgba(11,31,58,0.88) 100%);
  z-index: 1;
}
.page-banner-overlay::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201,162,39,0.3);
  pointer-events: none;
}
.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.page-banner-h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-banner-sub {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-ui);
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.breadcrumb a {
  color: var(--gold-bright);
  transition: var(--transition);
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: 0.6rem; }

/* ============================================================
   ABOUT GRID  (reused from home.css pattern)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  align-items: center;
  position: relative;
}
.about-grid::before {
  content: '2000';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-display);
  font-size: 15rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  letter-spacing: -6px;
  user-select: none;
}
.about-text { position: relative; z-index: 1; }
.about-text p {
  font-family: var(--ff-body);
  font-size: 1.04rem;
  color: var(--slate);
  line-height: 1.9;
  margin-top: 20px;
}
.about-ctas {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

/* About Image — formal offset frame (same as home) */
.about-img-wrap {
  position: relative;
  z-index: 1;
  padding: 16px 0 16px 16px;
}
.about-img-frame { position: relative; }
.about-img-frame::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px; right: 16px; bottom: 16px;
  border: 1.5px solid var(--gold);
  z-index: 0;
}
.about-img-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--navy);
}

/* Seal (same as home) */
.seal {
  position: absolute;
  bottom: -30px;
  right: -30px;
  z-index: 2;
  width: 128px;
  height: 128px;
  filter: drop-shadow(0 10px 18px rgba(11,31,58,0.28));
}
.seal-circle-bg    { fill: var(--navy); stroke: var(--gold); stroke-width: 1.5; }
.seal-circle-inner { fill: none; stroke: var(--gold); stroke-width: 0.75; opacity: 0.6; }
.seal-text-ring    { fill: var(--gold-pale); font-family: var(--ff-ui); font-size: 7.5px; letter-spacing: 2px; font-weight: 700; }
.seal-center-text  { fill: var(--gold-bright); font-family: var(--ff-display); font-size: 22px; font-weight: 800; }
.seal-estd         { fill: var(--gold-pale); font-family: var(--ff-ui); font-size: 6px; letter-spacing: 1.5px; font-weight: 600; }

/* ============================================================
   VISION / MISSION STRIP
   ============================================================ */
.vision-mission-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-light);
}
.vm-card {
  padding: 52px 40px;
  border-right: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  background: var(--white);
}
.vm-card:last-child { border-right: none; }
.vm-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: var(--navy);
  transition: height 0.4s ease;
  z-index: 0;
}
.vm-card:hover::before { height: 100%; }
.vm-card > * { position: relative; z-index: 1; }

.vm-card--alt {
  background: var(--parchment);
}

.vm-icon {
  width: 54px;
  height: 54px;
  background: var(--parchment);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 24px;
  transition: var(--transition);
}
.vm-card:hover .vm-icon { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.vm-card h3 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  transition: var(--transition);
}
.vm-card:hover h3 { color: var(--white); }

.vm-card p {
  font-family: var(--ff-body);
  font-size: 0.93rem;
  color: var(--slate);
  line-height: 1.85;
  transition: var(--transition);
}
.vm-card:hover p { color: rgba(255,255,255,0.72); }

/* ============================================================
   PRINCIPAL'S MESSAGE
   ============================================================ */
.principal-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 56px 52px;
}
.principal-photo-wrap { text-align: center; }
.principal-photo-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  padding: 5px;
  margin: 0 auto 18px;
  transition: var(--transition);
}
.principal-photo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--navy-mid);
}
.principal-badge {
  display: inline-block;
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(201,162,39,0.35);
  padding: 5px 14px;
}
.principal-quote-icon {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 18px;
  display: block;
}
.principal-body blockquote {
  font-family: var(--ff-body);
  font-size: 1.12rem;
  font-style: italic;
  color: rgba(255,255,255,0.82);
  line-height: 1.85;
  margin: 0 0 28px;
  border: none;
  padding: 0;
}
.principal-sig strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.principal-sig span {
  font-family: var(--ff-ui);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs-wrapper {
  border: 1px solid var(--border-light);
}
.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  background: var(--parchment);
}
.tab-btn {
  flex: 1;
  padding: 18px 24px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-light);
  font-family: var(--ff-ui);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.tab-btn:last-child { border-right: none; }
.tab-btn:hover { background: var(--border-light); color: var(--navy); }
.tab-btn.active {
  background: var(--navy);
  color: var(--gold-bright);
  border-right-color: var(--navy);
}

.tab-content {
  display: none;
  padding: 52px;
  animation: tabFadeIn 0.3s ease;
}
.tab-content.active { display: block; }

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   DETAIL CARDS GRID
   ============================================================ */
.detail-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-light);
}
.detail-card {
  padding: 32px 28px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.detail-card:hover { background: var(--parchment); }
.detail-card:nth-child(4n) { border-right: none; }
.detail-card:nth-last-child(-n+4):not(:nth-child(4n+1) ~ *),
.detail-card:last-child { border-bottom: none; }

/* simpler approach: remove bottom border from last row */
.detail-card:nth-child(n+5) { border-bottom: none; }

.detail-card-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 14px;
  transition: var(--transition);
}
.detail-card:hover .detail-card-icon {
  background: var(--navy);
  color: var(--gold-bright);
  border-color: var(--navy);
}
.detail-card h6 {
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--slate-light);
  margin-bottom: 8px;
}
.detail-card p {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.55;
}
.detail-card p a { color: var(--gold); }
.detail-card p a:hover { color: var(--navy); }

/* ============================================================
   MEMBERS BLOCK
   ============================================================ */
.members-block-header {
  margin-bottom: 28px;
}
.members-block-header h3 {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 8px;
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-light);
}
.member-card {
  padding: 22px 20px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.member-card:hover { background: var(--parchment); }
.member-card:nth-child(4n) { border-right: none; }
/* remove bottom border from last row dynamically via JS; fallback: */
.member-card:nth-last-child(-n+4) { border-bottom: none; }

.member-role {
  display: block;
  font-family: var(--ff-ui);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--gold);
  margin-bottom: 6px;
}
.member-card h5 {
  font-family: var(--ff-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* ============================================================
   STAFF TABLE
   ============================================================ */
.staff-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  margin-top: 24px;
}
.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-body);
  font-size: 0.9rem;
}
.staff-table thead {
  background: var(--navy);
}
.staff-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--gold-bright);
  border: none;
}
.staff-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}
.staff-table tbody tr:hover { background: var(--parchment); }
.staff-table tbody td {
  padding: 13px 18px;
  color: var(--navy);
  vertical-align: top;
}
.staff-section-row td {
  background: var(--parchment);
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--gold);
  padding: 11px 18px;
}

/* ============================================================
   DISCLOSURE
   ============================================================ */
.disclosure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-light);
}
.disclosure-box {
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}
.disclosure-box:last-child { border-right: none; }

.disclosure-box-header {
  padding: 22px 28px;
  border-bottom: 3px solid var(--navy);
  background: var(--parchment);
  display: flex;
  align-items: center;
  gap: 12px;
}
.disclosure-box-header--gold  { border-bottom-color: var(--gold); }
.disclosure-box-header--navy  { border-bottom-color: var(--navy-mid); }

.disclosure-box-header i {
  font-size: 1.1rem;
  color: var(--navy);
}
.disclosure-box-header--gold i { color: var(--gold); }

.disclosure-box-header h5 {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--navy);
}

.disclosure-links {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.disclosure-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  color: var(--navy);
  border: 1px solid transparent;
  transition: var(--transition);
  border-radius: 0;
}
.disclosure-link:hover {
  background: var(--parchment);
  border-color: var(--border-light);
  color: var(--gold);
}
.disclosure-link i {
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.doc-label {
  display: block;
  font-family: var(--ff-ui);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--slate-light);
  margin: 14px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}
.doc-label:first-child { margin-top: 0; }

.year-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.year-btn {
  padding: 5px 12px;
  border: 1px solid var(--border-light);
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--parchment);
  transition: var(--transition);
}
.year-btn:hover {
  background: var(--navy);
  color: var(--gold-bright);
  border-color: var(--navy);
}

/* Results Panel */
.results-panel {
  border: 1px solid var(--border-light);
}
.results-panel-header {
  padding: 20px 28px;
  background: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
}
.results-panel-header i { color: var(--gold-bright); font-size: 1.1rem; }
.results-panel-header h4 {
  font-family: var(--ff-ui);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--white);
}
.pass-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--gold-bright);
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  letter-spacing: 1px;
}

/* ============================================================
   MANAGEMENT  (same as home.css — copied for page independence)
   ============================================================ */
.mgmt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.mgmt-card {
  padding: 46px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.mgmt-card:last-child { border-right: none; }
.mgmt-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.mgmt-card:hover::after      { transform: scaleX(1); }
.mgmt-card:hover             { background: rgba(255,255,255,0.035); }

.mgmt-photo-ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin: 0 auto 22px;
  border: 1px solid var(--gold);
  padding: 4px;
  transition: var(--transition);
}
.mgmt-card:hover .mgmt-photo-ring { border-color: var(--gold-bright); }
.mgmt-photo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--navy-mid);
}
.mgmt-role-badge {
  display: inline-block;
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(201,162,39,0.35);
  padding: 4px 13px;
  margin-bottom: 11px;
}
.mgmt-name {
  font-family: var(--ff-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}
.mgmt-divider {
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin: 15px auto 0;
}

/* ============================================================
   CTA BAND  (same as home.css)
   ============================================================ */
.cta-band {
  background: var(--navy);
  border-top: 1px solid var(--gold);
  padding: 64px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  max-width: 500px;
}
.cta-band h2 span { color: var(--gold-bright); font-style: italic; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .about-grid::before { display: none; }
  .detail-cards-grid  { grid-template-columns: repeat(2, 1fr); }
  .detail-card:nth-child(2n) { border-right: none; }
  .detail-card:nth-child(n+5) { border-bottom: 1px solid var(--border-light); }
  .detail-card:nth-last-child(-n+2) { border-bottom: none; }
  .members-grid       { grid-template-columns: repeat(3, 1fr); }
  .member-card:nth-child(3n) { border-right: none; }
  .disclosure-grid    { grid-template-columns: 1fr; }
  .disclosure-box     { border-right: none; border-bottom: 1px solid var(--border-light); }
  .disclosure-box:last-child { border-bottom: none; }
  .vision-mission-strip { grid-template-columns: 1fr; }
  .vm-card            { border-right: none; border-bottom: 1px solid var(--border-light); }
  .vm-card:last-child { border-bottom: none; }
  .mgmt-grid          { grid-template-columns: repeat(2, 1fr); }
  .mgmt-card:nth-child(2n) { border-right: none; }
  .mgmt-card:nth-child(1),
  .mgmt-card:nth-child(2)  { border-bottom: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 860px) {
  .about-grid         { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap     { padding: 12px 0 12px 12px; }
  .seal               { width: 104px; height: 104px; bottom: -22px; right: -16px; }
  .page-banner        { height: 320px; }
  .principal-panel    { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .principal-photo-ring { margin: 0 auto 18px; }
  .members-grid       { grid-template-columns: repeat(2, 1fr); }
  .member-card:nth-child(2n) { border-right: none; }
  .member-card:nth-child(3n) { border-right: 1px solid var(--border-light); }
  .tab-content        { padding: 32px 24px; }
  .tabs-nav           { flex-direction: column; }
  .tab-btn            { border-right: none; border-bottom: 1px solid var(--border-light); justify-content: flex-start; }
  .tab-btn:last-child { border-bottom: none; }
  .cta-band-inner     { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .detail-cards-grid  { grid-template-columns: 1fr; }
  .detail-card        { border-right: none; border-bottom: 1px solid var(--border-light); }
  .members-grid       { grid-template-columns: 1fr; }
  .member-card        { border-right: none; }
  .mgmt-grid          { grid-template-columns: 1fr; }
  .mgmt-card          { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .seal               { width: 80px; height: 80px; bottom: -16px; right: -8px; }
  .page-banner        { height: 280px; }
  .tab-content        { padding: 24px 18px; }
}