/* =============================================
   WORLDVOICE ACADEMY PAGE STYLES
============================================= */

/* ── Active nav state ─────────────────────── */
.nav-link-active {
    color: var(--text-primary) !important;
}
.nav-link-active::after {
    width: 100% !important;
}


/* ======================================
   PAGE HEADER
======================================= */
.academy-page-header {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: 72px;
    border-bottom: 1px solid var(--border);
}

.academy-header-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(10,10,15,0.97) 0%, rgba(10,10,15,0.75) 60%, rgba(10,10,15,0.55) 100%),
        url('images/tech-1.jpg') center/cover no-repeat;
    z-index: 0;
}

.academy-header-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 80px 48px;
}

.academy-header-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
    opacity: 0;
    animation: slideUp 0.7s ease forwards 0.2s;
}


.academy-page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 600;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 20px;
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.35s;
}

.academy-header-sub {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.5s;
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(24px); 
    }
    to   { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@media (max-width: 768px) {
    .academy-header-content { 
        padding: 60px 24px; 
    }
}


/* ======================================
   ACADEMY AREAS
======================================= */
.academy-areas {
    background: var(--primary);
    padding: 100px 0;
}

.academy-areas-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 48px;
}

.academy-areas-header {
    max-width: 600px;
    margin-bottom: 64px;
}

.academy-areas-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 12px 0 16px;
    line-height: 1.15;
}

.academy-areas-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

/* Grid: 4 cols → 3 → 2 → 1 */
.academy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
}

/* Each card */
.academy-card {
    position: relative;
    padding: 44px 36px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--primary);
    overflow: hidden;
    transition: background var(--transition);
}

/* Remove right border on every 4th child */
.academy-card:nth-child(4n) { 
    border-right: none; 
}

/* Remove bottom border on last row items */
.academy-card:nth-last-child(-n+4):not(.academy-card--cta),
.academy-card:last-child {
    /* handled via responsive */
}

.academy-card:hover {
    background: var(--surface);
}

/* Gold top-border reveal on hover */
.academy-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}
.academy-card:hover::before {
    transform: scaleX(1);
}

/* Icon */
.academy-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
    transition: all var(--transition);
    flex-shrink: 0;
}
.academy-card:hover .academy-card-icon {
    background: var(--gold-muted);
    border-color: rgba(200,146,10,0.4);
}

/* Watermark number */
.academy-card-number {
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    font-style: italic;
    color: rgba(200,146,10,0.07);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: color var(--transition);
}
.academy-card:hover .academy-card-number {
    color: rgba(200,146,10,0.12);
}

.academy-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.45;
}

.academy-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.78;
    font-weight: 300;
    margin-bottom: 20px;
}

.academy-card-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}
.academy-card-check i {
    font-size: 0.65rem;
}

/* CTA card */
.academy-card--cta {
    background: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    border-right: none;
}
.academy-card--cta::before {
    display: none;
}
.academy-card--cta h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}
.academy-card--cta p {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 8px;
}
.academy-cta-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

@media (max-width: 1200px) {
    .academy-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .academy-card:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 900px) {
    .academy-areas-inner {
        padding: 0 24px;
    }
    .academy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .academy-card:nth-child(even) {
        border-right: none;
    }
}

@media (max-width: 560px) {
    .academy-areas {
        padding: 72px 0;
    }
    .academy-grid {
        grid-template-columns: 1fr;
    }
    .academy-card {
        border-right: none !important;
    }
    .academy-card-number {
        font-size: 3rem;
    }
}


/* academy cards */
.academies {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.academy {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 36px 32px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.academy:hover {
  background: var(--surface-raised);
}

.academy-icon {
  width: 44px;
  height: 44px;
  min-width: 44px; /* prevent shrinking on small screens */
  background: var(--gold-muted);
  border: 1px solid rgba(200,146,10,0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--transition);
}

.academy:hover .academy-icon {
  background: var(--gold);
  color: var(--text-inverse);
  border-color: var(--gold);
}

.academy h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.academy p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Tablet landscape ── */
@media (max-width: 1024px) {
  .academies {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 24px;
  }
}

/* ── Tablet portrait ── */
@media (max-width: 768px) {
  .academies {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px;
    margin-bottom: 56px;
  }

  .academy {
    padding: 28px 20px;
    gap: 12px;
  }

  .academy h4 {
    font-size: 0.85rem;
  }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .academies { 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 8px 8px 25px;
    gap: 6px;
    margin: 0;
    width: 100%;
    border-left: none;
  }
  .academy { 
    padding: 20px 18px;
    gap: 10px;
    flex-direction: column;
    min-height: 160px;
    width: 150px;
    box-sizing: border-box;
  }
  .academy-icon {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  .academy h4 {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
  .academy p {
    font-size: 0.78rem;
    line-height: 1.45;
  }
}

/* ==========================================================
   Placeholder styling for the #enrollForm skill dropdown
   Add this to asset/academy.css (or style.css)
   NOTE: colors/spacing here are generic guesses — once you
   share your real style.css, I'll match this to your actual
   design tokens (fonts, colors, border-radius, etc.)
   ========================================================== */

/* Centers the enrollment form on the page, since it no longer
   sits in a two-column .contact-grid layout like the homepage form */
.enroll-form-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.enroll-form-wrap .contact-form {
    width: 100%;
    max-width: 560px;
}


#enrollForm select {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

#enrollForm select:focus {
    outline: none;
    border-color: #888;
}

#enrollForm select:invalid {
    color: #777; /* dims the placeholder "Select a programme" option */
}

/* ── Very small phones ── */
@media (max-width: 380px) {
  .academies {
    grid-template-columns: 1fr;
    padding: 0 16px;
    margin-bottom: 48px;
  }

  .academy {
    padding: 20px 16px;
    gap: 12px;
  }
}
