/* Version: 2 – 2026-06-04
/* =============================================================================
   Academy Page Template – academy-page.css
   Used by page-academy.php (Template: Academy Page)
   ============================================================================= */

/* ── GeneratePress container override ───────────────────────────────────────── */
/* GeneratePress layout reset for academy pages */

/* Remove GP's article padding so our own sections control spacing */
.academy-page .inside-article {
    padding: 0 !important;
}

/* GP site-main: remove top/bottom padding */
.academy-page .site-main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Hide GP entry chrome – we control our own hero/header */
.academy-page .entry-header,
.academy-page .entry-footer,
.academy-page .post-navigation {
    display: none !important;
}

/* GP content-area: let it be full width so our sections control max-width */
.academy-page .content-area,
.academy-page #primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Back link ──────────────────────────────────────────────────────────────── */
.academy-back {
    padding: 14px 0 0;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary, #004f80);
    text-decoration: none;
    transition: opacity .15s;
}
.back-link:hover { opacity: .75; }

/* ── Our own container (not GP's) ───────────────────────────────────────────── */
.academy-page .container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.academy-hero {
    position: relative;
    width: calc(100% - 48px);  /* matches .container padding 24px each side */
    max-width: 1152px;
    min-height: 380px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    margin: 12px auto 0;
    border-radius: 10px;
    overflow: hidden;
    /* Use grid so badge sits top-left and text sits bottom-left */
    display: grid;
    grid-template-rows: auto 1fr auto;
}
.academy-hero--text-only {
    background: var(--color-primary, #004f80);
    min-height: 160px;
    display: flex;
    align-items: center;
    padding: 40px 0;
    border-radius: 0;
    margin: 0;
    grid-template-rows: none;
}
.academy-hero--text-only h1 { color: #fff; margin: 0; }

.academy-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.75) 0%,
        rgba(0,0,0,.25) 50%,
        rgba(0,0,0,.0)  100%
    );
}
/* Badge: top-left, always visible above overlay */
.academy-hero__badge-wrap {
    position: relative;
    z-index: 2;
    padding: 20px 24px 0;
    align-self: start;
}
/* Title + subtitle: bottom-left */
.academy-hero__text {
    position: relative;
    z-index: 2;
    padding: 0 24px 28px;
    align-self: end;
    grid-row: 3;
}
.academy-hero__title {
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    margin: 8px 0 0;
}
.academy-hero__subtitle {
    color: rgba(255,255,255,.88);
    font-size: 16px;
    margin: 10px 0 0;
}

/* ── Badge ───────────────────────────────────────────────────────────────────── */
.academy-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: .2px;
}
.badge--yellow { background: #ffe033; color: #1a1a1a; }
.badge--blue   { background: var(--color-primary, #004f80); color: #fff; }
.badge--green  { background: #2ea44f; color: #fff; }

/* ── Body layout ─────────────────────────────────────────────────────────────── */
.academy-body {
    padding: 48px 0 56px;
}
/* Body container matches hero total width (1200px with 24px side padding) */
.academy-body > .container {
    max-width: 1200px;
}
.academy-body__inner {
    display: grid;
    gap: 48px;
    align-items: start;
    width: 100%;
}
/* With sidebar: 60/40 split */
.academy-body__inner.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
}
/* No sidebar: full width – same max-width as hero */
.academy-body__inner.no-sidebar {
    grid-template-columns: 1fr;
    max-width: 100%;
}

/* Content typography */
.academy-body__content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin: 32px 0 10px;
}
.academy-body__content h2:first-child { margin-top: 0; }
.academy-body__content h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1d2327;
    margin: 24px 0 8px;
}
.academy-body__content p {
    line-height: 1.7;
    color: #3c434a;
    margin: 0 0 16px;
}
.academy-body__content ul {
    padding-left: 20px;
    margin: 0 0 16px;
}
.academy-body__content li {
    line-height: 1.7;
    color: #3c434a;
    margin-bottom: 6px;
}
.academy-body__content a {
    color: var(--color-primary, #004f80);
    font-weight: 600;
    text-decoration: none;
}
.academy-body__content a:hover { text-decoration: underline; }

/* "Check our X →" links */
.academy-body__content .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary, #004f80);
    font-weight: 700;
    font-size: 14px;
    margin: 4px 0 20px;
}

/* ── Sidebar images ──────────────────────────────────────────────────────────── */
.academy-body__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
    /* Align right edge with hero image */
    margin-right: 0;
}
.academy-sidebar-img {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
    width: 100%;   /* fill the 320px grid column */
}
.academy-sidebar-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Sidebar video card */
.academy-sidebar-video {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}
.academy-sidebar-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    transition: transform .2s, background .2s;
}
.academy-sidebar-video:hover .academy-sidebar-video__play {
    transform: translate(-50%,-50%) scale(1.08);
    background: #fff;
}
.academy-sidebar-video__play .fa-play {
    color: var(--color-primary, #004f80);
    font-size: 16px;
    margin-left: 3px;
}

/* ── Testimonials ─────────────────────────────────────────────────────────────── */
.testimonials-section {
    background: #f6f7f7;
    padding: 56px 0;
}
.testimonials-section .section-heading {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    text-align: center;
    margin: 0 0 36px;
    color: #1d2327;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.testimonial-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 8px rgba(0,0,0,.07);
}
.testimonial-card .stars {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
}
.testimonial-card .stars .fa-star { color: #e0e0e0; font-size: 14px; }
.testimonial-card .stars .fa-star.filled { color: #fbbf24; }
.testimonial-text {
    font-size: 14px;
    line-height: 1.65;
    color: #3c434a;
    margin: 0 0 16px;
    font-style: italic;
}
.testimonial-author strong {
    display: block;
    font-size: 14px;
    color: #1d2327;
}
.testimonial-author span {
    font-size: 12px;
    color: #646970;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────────── */
/* FAQ styles are defined globally in faq.css — no overrides needed here. */

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .academy-body__inner.has-sidebar {
        grid-template-columns: 1fr;
    }
    .academy-body__sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .academy-sidebar-img {
        flex: 1 1 280px;
        max-width: 100%;
    }
    .academy-hero {
        min-height: 260px;
        border-radius: 6px;
    }
    .academy-hero__content { padding: 24px 20px; }
}
@media (max-width: 600px) {
    .academy-hero { min-height: 220px; }
    .academy-body { padding: 32px 0 40px; }
    .testimonials-grid { grid-template-columns: 1fr; }
}
