/* ============================================================
   SHARED PAGE STYLES — All inner pages
============================================================ */

/* PAGE HERO */
.page-hero {
  position: relative;
  padding: 80px 0 64px;
  background: var(--bg);
  overflow: hidden;
}

.page-hero-glow {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 38, 41, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.page-hero-breadcrumb a { color: var(--text-soft); transition: color 0.2s; }
.page-hero-breadcrumb a:hover { color: var(--maroon); }
.page-hero-breadcrumb .sep { color: var(--text-dim); }
.page-hero-breadcrumb .current { color: var(--maroon); font-weight: 600; }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.page-hero h1 .accent { color: var(--maroon); }

.page-hero p.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 680px;
}

.page-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

/* SPLIT SECTION — text + visual */
.split-section { padding: 80px 0; background: var(--card); }
.split-section.alt { background: var(--bg); }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-grid.reverse > div:first-child { order: 2; }

.split-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.split-text h2 .accent { color: var(--maroon); }

.split-text p { font-size: 16px; margin-bottom: 14px; }

.split-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--bg-alt) url('../images/about/about-1.jpg') center/cover no-repeat;
}

/* FEATURE GRID */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s var(--ease);
}

.feature-card:hover {
  border-color: rgba(123, 38, 41, 0.2);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  background: var(--maroon-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card-icon svg { width: 24px; height: 24px; color: var(--maroon); }

.feature-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p { font-size: 14px; line-height: 1.65; color: var(--text-mid); }

/* CHECK LIST */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.check-item svg {
  width: 22px;
  height: 22px;
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 1px;
}

/* VALUES GRID */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s var(--ease);
}

.value-card:hover {
  border-color: rgba(123, 38, 41, 0.2);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.value-card-icon {
  width: 60px;
  height: 60px;
  background: var(--maroon-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.value-card-icon svg { width: 28px; height: 28px; color: var(--maroon); }

.value-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card p { font-size: 14px; line-height: 1.6; color: var(--text-mid); }

/* LEADERSHIP CARDS */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.leader-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.leader-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--maroon-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--maroon);
  font-weight: 700;
}

.leader-info h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.leader-info-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 8px;
  display: block;
}

.leader-info p { font-size: 14px; line-height: 1.6; color: var(--text-mid); }

/* CERTIFICATE CARDS — request-only certificate cards */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s var(--ease);
}

.cert-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(242, 194, 0, 0.12);
  transform: translateY(-3px);
}

.cert-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.cert-card-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-card-icon svg { width: 28px; height: 28px; color: var(--gold-dark); }

.cert-card-titles h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
}

.cert-card-titles .cert-card-sub {
  font-size: 12px;
  color: var(--text-soft);
}

.cert-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 18px;
}

.cert-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cert-card-meta-item {
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-mid);
}

.cert-card-meta-item strong { color: var(--text); font-weight: 600; }

.cert-card-actions {
  display: flex;
  gap: 10px;
}

/* SERVICE DETAIL LIST */
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.detail-list-item {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}

.detail-list-item:hover {
  border-color: var(--maroon);
  background: var(--maroon-light);
  color: var(--maroon);
}

.detail-list-item-num {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--maroon);
  font-weight: 700;
  flex-shrink: 0;
}

/* CONTACT GRID */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}

.contact-info-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-card .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 10px;
  display: block;
}

.contact-info-card p, .contact-info-card a {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 4px;
  display: block;
}

.contact-info-card a:hover { color: var(--maroon); }

.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 6px;
}

.contact-form-card .sub {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 28px;
}

/* MAP / BRANCHES */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.branch-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.branch-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--maroon);
}

.branch-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* PRICING / COURSE TABLE for academy */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.course-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  align-items: center;
  transition: all 0.2s;
}

.course-row:hover { border-color: var(--maroon); box-shadow: var(--shadow); }

.course-row-grade {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--maroon);
}

.course-row-info h5 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
}

.course-row-info p {
  font-size: 13px;
  color: var(--text-mid);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-grid.reverse > div:first-child { order: 0; }
  .feature-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .leadership-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .branches-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .feature-grid, .values-grid { grid-template-columns: 1fr; }
  .detail-list { grid-template-columns: 1fr; }
  .leader-card { flex-direction: column; text-align: center; }
  .course-row { grid-template-columns: 1fr; text-align: left; }
}

/* ============================================================
   CV UPLOAD DROPZONE (careers)
============================================================ */
.cv-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 30px 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.cv-dropzone:hover,
.cv-dropzone.is-dragover {
  border-color: var(--maroon);
  background: var(--maroon-light);
}
.cv-dropzone.has-file {
  border-style: solid;
  border-color: var(--maroon);
  background: var(--maroon-light);
}
.cv-dropzone-icon {
  width: 30px;
  height: 30px;
  color: var(--maroon);
}
.cv-dropzone-main {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.cv-dropzone-hint {
  font-size: 12px;
  color: var(--text-soft);
}
/* visually hidden but still focusable (so required validation works) */
.cv-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   COMPLIANCE DOCUMENT TICK-LIST
============================================================ */
.doc-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.doc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.doc-check:hover { border-color: var(--maroon); }
.doc-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--maroon);
  cursor: pointer;
  flex-shrink: 0;
}
.doc-check.is-checked {
  border-color: var(--maroon);
  background: var(--maroon-light);
}
.doc-check-full {
  grid-column: 1 / -1;
  font-weight: 700;
}
@media (max-width: 640px) {
  .doc-checklist { grid-template-columns: 1fr; }
}

/* ============================================================
   PHOTO GALLERY (academy graduations / foundation events)
============================================================ */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.photo-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  box-shadow: 0 6px 18px rgba(10,10,10,0.08);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease);
}
.photo-gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(123,38,41,0.18);
}
.photo-gallery.tall img { aspect-ratio: 3 / 4; }
@media (max-width: 640px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ============================================================
   REGISTRATIONS & AFFILIATIONS GRID
============================================================ */
.affil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.affil-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--maroon);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.affil-card .code {
  font-weight: 800;
  color: var(--maroon);
  font-size: 18px;
  letter-spacing: 0.4px;
}
.affil-card .name {
  font-size: 12.5px;
  color: var(--text-mid);
  margin-top: 3px;
  line-height: 1.45;
}
@media (max-width: 760px) { .affil-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .affil-grid { grid-template-columns: 1fr; } }
