/*
 * Algonquin College Explore Page Redesign Styles
 * Strictly scoped under .ac-explore-redesign
 */

/* ----------------------------------------------------
   1. Base & Design System Tokens
   ---------------------------------------------------- */
.ac-explore-redesign {
    --explore-green: #006341;
    --explore-green-dark: #004f34;
    --explore-black: #1a1a1a;
    --explore-body: #505050;
    --explore-card-bg: #f6f7f7;
    --explore-story-bg: #f6f9f9;
    --explore-soft-green: rgba(237, 244, 242, 0.6);
    --explore-max-wide: 1400px;
    --explore-max-content: 1200px;

    font-family: 'Metropolis', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--explore-black);
    font-size: 16px;
    line-height: 1.6;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ac-explore-redesign *,
.ac-explore-redesign *::before,
.ac-explore-redesign *::after {
    box-sizing: border-box;
}

/* Fluid responsive container */
.ac-explore-redesign .custom-container {
    width: min(100% - 32px, var(--explore-max-wide));
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
}

@media screen and (min-width: 768px) {
    .ac-explore-redesign .custom-container {
        width: min(100% - 64px, var(--explore-max-wide));
    }
}

/* Section Spacing */
.ac-explore-redesign section {
    padding-top: 48px;
    padding-bottom: 48px;
}

@media screen and (min-width: 768px) {
    .ac-explore-redesign section {
        padding-top: 72px;
        padding-bottom: 72px;
    }
}

/* Utility Visually Hidden */
.ac-explore-redesign .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Base Headings */
.ac-explore-redesign h2 {
    font-family: 'Metropolis', sans-serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.15;
    color: var(--explore-black);
}

.ac-explore-redesign h3 {
    font-family: 'Metropolis', sans-serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.25;
    color: var(--explore-black);
}

.ac-explore-redesign p {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--explore-body);
}

.ac-explore-redesign p:last-child {
    margin-bottom: 0;
}

/* Eyebrow Tag */
.ac-explore-redesign__eyebrow {
    display: inline-block;
    background-color: #E8F3EE;
    color: var(--explore-green);
    font-weight: 600;
    font-size: 1rem;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

/* Buttons */
.ac-explore-redesign__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--explore-green);
    color: #FFFFFF !important;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    line-height: 1;
    min-height: 48px;
}

.ac-explore-redesign__btn:hover,
.ac-explore-redesign__btn:focus {
    background-color: var(--explore-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 99, 65, 0.25);
}

.ac-explore-redesign__btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    color: var(--explore-green) !important;
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.0625rem;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    line-height: 1;
    min-height: 64px;
    min-width: 160px;
    white-space: nowrap;
}

.ac-explore-redesign__btn-white:hover,
.ac-explore-redesign__btn-white:focus {
    background-color: #F7F9F8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Accessibility Focus States */
.ac-explore-redesign a:focus-visible,
.ac-explore-redesign button:focus-visible {
    outline: 3px solid var(--explore-green);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ----------------------------------------------------
   2. Welcome Section (Figma Exact)
   ---------------------------------------------------- */
.ac-explore-redesign .welcome-section {
    background-color: #FFFFFF;
    padding-top: 64px;
    padding-bottom: 64px;
}

@media screen and (min-width: 992px) {
    .ac-explore-redesign .welcome-section {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

.ac-explore-redesign .welcome-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: var(--explore-max-content);
    margin-inline: auto;
}

.ac-explore-redesign__welcome-heading {
    font-size: clamp(2.5rem, 5vw, 4rem); /* 64px desktop */
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em; /* -1.6px */
    margin-bottom: 0;
}

.ac-explore-redesign__heading-primary {
    color: var(--explore-black);
    display: block;
}

.ac-explore-redesign__heading-accent {
    color: var(--explore-green);
    display: block;
}

.ac-explore-redesign .welcome-desc-callout {
    border-left: 4px solid var(--explore-green);
    padding-left: 24px;
    padding-top: 8px;
}

@media screen and (min-width: 992px) {
    .ac-explore-redesign .welcome-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 96px;
    }

    .ac-explore-redesign__welcome-heading {
        flex: 1 1 50%;
    }

    .ac-explore-redesign .welcome-desc-callout {
        flex: 1 1 50%;
        padding-left: 48px;
        padding-top: 16px;
    }
}

.ac-explore-redesign .welcome-desc p.welcome-lead,
.ac-explore-redesign .welcome-desc p:first-child {
    font-size: clamp(1.25rem, 2vw, 1.75rem); /* 28px */
    font-weight: 600;
    line-height: 1.35; /* ~38px */
    color: var(--explore-black);
    margin-bottom: 20px;
}

.ac-explore-redesign .welcome-desc p:nth-child(2),
.ac-explore-redesign .welcome-desc p:last-child {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem); /* 20px */
    line-height: 1.6; /* 32px */
    color: var(--explore-body);
}

.ac-explore-redesign .welcome-highlight {
    color: var(--explore-green);
    font-weight: 700;
}

/* ----------------------------------------------------
   3. About Algonquin Section (Figma Exact)
   ---------------------------------------------------- */
.ac-explore-redesign .about-section {
    background-color: #FFFFFF;
    padding-top: 64px;
    padding-bottom: 64px;
}

@media screen and (min-width: 992px) {
    .ac-explore-redesign .about-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

.ac-explore-redesign .about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: var(--explore-max-content);
    margin-inline: auto;
}

.ac-explore-redesign__about-heading {
    font-size: clamp(2rem, 3.5vw, 2.5rem); /* 40px */
    line-height: 1.2; /* 48px */
    color: var(--explore-black);
    margin-bottom: 20px;
}

.ac-explore-redesign .about-body p {
    font-size: 1rem; /* 16px */
    line-height: 1.625; /* 26px */
    color: var(--explore-body);
    margin-bottom: 16px;
}

.ac-explore-redesign .about-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 6px 0;
    margin-top: 4px;
    margin-bottom: 16px;
    font-size: 1rem; /* 16px */
    font-weight: 700;
    color: var(--explore-green);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.ac-explore-redesign .about-read-more-btn:hover,
.ac-explore-redesign .about-read-more-btn:focus {
    color: var(--explore-green-dark);
}

.ac-explore-redesign .about-read-more-btn:focus-visible {
    outline: 2px solid var(--explore-green);
    outline-offset: 2px;
}

.ac-explore-redesign .about-read-more-icon {
    transition: transform 0.25s ease;
}

.ac-explore-redesign .about-read-more-btn[aria-expanded="true"] .about-read-more-icon {
    transform: rotate(180deg);
}

.ac-explore-redesign .about-body-expanded {
    display: block;
}

.ac-explore-redesign .about-body-expanded[hidden] {
    display: none;
}

.ac-explore-redesign .about-image {
    width: 100%;
}

.ac-explore-redesign .about-image img {
    width: 100%;
    max-width: 568px;
    aspect-ratio: 1 / 1; /* 568px x 568px square */
    display: block;
    border-radius: 24px;
    object-fit: cover;
}

.ac-explore-redesign .about-image-placeholder {
    width: 100%;
    max-width: 568px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--explore-green) 0%, var(--explore-green-dark) 100%);
    border-radius: 24px;
}

@media screen and (min-width: 992px) {
    .ac-explore-redesign .about-content {
        flex-direction: row;
        align-items: center;
        gap: 64px;
    }

    .ac-explore-redesign .about-text {
        flex: 1 1 50%;
        max-width: 568px;
    }

    .ac-explore-redesign .about-image {
        flex: 1 1 50%;
        display: flex;
        justify-content: flex-end;
    }
}

/* ----------------------------------------------------
   4. Programs by Area of Interest (Strict 1360px 4-Col Breakpoint)
   ---------------------------------------------------- */
.ac-explore-redesign .program-grid {
    background-color: #FFFFFF;
}

.ac-explore-redesign .program-grid-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    max-width: var(--explore-max-content);
    margin-inline: auto;
}

@media screen and (min-width: 768px) {
    .ac-explore-redesign .program-grid-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.ac-explore-redesign__section-heading {
    font-size: clamp(2.25rem, 4vw, 3.5rem); /* 56px */
    line-height: 1.1; /* ~62px */
    margin-bottom: 0;
}

.ac-explore-redesign .explore-view-all-link {
    font-size: 0.875rem; /* 14px */
    font-weight: 700;
    letter-spacing: 0.1em; /* 1.4px */
    color: var(--explore-black) !important;
    text-decoration: none !important;
    border-bottom: 2px solid var(--explore-black);
    padding-bottom: 4px;
    white-space: nowrap;
}

.ac-explore-redesign .prgm-categories-wrapper-redesign {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: var(--explore-max-content);
    margin-inline: auto;
}

/* ----------------------------------------------------
   Explore 2 Redesign Single Hero Section
   ---------------------------------------------------- */
.explore-redesign-hero-header {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #000000;
}

.explore-redesign-hero-banner {
    width: 100%;
    position: relative;
    display: block;
}

.explore-hero-image-wrapper {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
}

@media screen and (min-width: 768px) {
    .explore-hero-image-wrapper {
        height: 420px;
    }
}

@media screen and (min-width: 1200px) {
    .explore-hero-image-wrapper {
        height: 480px;
    }
}

.explore-hero-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.explore-hero-single-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .ac-explore-redesign .prgm-categories-wrapper-redesign {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media screen and (min-width: 992px) {
    .ac-explore-redesign .prgm-categories-wrapper-redesign {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

.ac-explore-redesign .prgm-cat-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    column-gap: 12px;
    padding: 14px 18px;
    min-height: 78px;
    background-color: var(--explore-card-bg); /* #f6f7f7 */
    border: 1px solid #EAEAEA;
    border-radius: 24px;
    color: var(--explore-black);
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ac-explore-redesign .prgm-cat-card span:first-child {
    min-width: 0;
    max-width: none;
    font-size: clamp(1rem, 1.1vw, 1.125rem); /* 16px to 18px */
    line-height: 1.3;
    font-weight: 700;
    color: var(--explore-black);
}

.ac-explore-redesign .prgm-cat-card:hover {
    background-color: #FFFFFF;
    border-color: var(--explore-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 99, 65, 0.1);
}

.ac-explore-redesign .prgm-cat-card:hover span:first-child {
    color: var(--explore-green);
}

.ac-explore-redesign .prgm-cat-card__arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

/* ----------------------------------------------------
   5. Statistics Section (Exact 56px Numbers & Animated Counters)
   ---------------------------------------------------- */
.ac-explore-redesign .stats-section {
    background-color: #FFFFFF;
    border-top: 1px solid #EAEAEA;
    border-bottom: 1px solid #EAEAEA;
    padding-top: 64px;
    padding-bottom: 64px;
}

.ac-explore-redesign .ac-stats-redesign {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: var(--explore-max-content);
    margin-inline: auto;
}

@media screen and (min-width: 768px) {
    .ac-explore-redesign .ac-stats-redesign {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }
}

.ac-explore-redesign .stat-number-wrapper {
    margin-bottom: 12px;
}

.ac-explore-redesign .stat-visible-wrap {
    display: inline-flex;
    align-items: baseline;
}

.ac-explore-redesign .stat,
.ac-explore-redesign .stat-suffix {
    font-size: 3.5rem !important; /* Exact 56px */
    line-height: 1 !important; /* 56px */
    font-weight: 700 !important;
    color: var(--explore-green) !important;
    display: inline-block;
    letter-spacing: -0.02em;
}

.ac-explore-redesign .stat-col .info {
    font-size: 1.125rem; /* 18px */
    line-height: 1.4; /* ~25px */
    font-weight: 500;
    color: var(--explore-body);
    max-width: 368px;
    margin: 0;
}

@media screen and (max-width: 767px) {
    .ac-explore-redesign .stat-col {
        text-align: center;
    }
    .ac-explore-redesign .stat-col .info {
        margin-inline: auto;
        text-align: center;
    }
}

/* ----------------------------------------------------
   6. Six Resource Cards (Discover More Section)
   ---------------------------------------------------- */
.ac-explore-redesign .resource-cards-section {
    background-color: #E5EFEC; /* Figma background */
    padding-top: 64px;
    padding-bottom: 64px;
}

@media screen and (min-width: 992px) {
    .ac-explore-redesign .resource-cards-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }
}

.ac-explore-redesign .resource-cards-section .custom-container,
.ac-explore-redesign .resource-cards-inner,
.ac-explore-redesign .resource-cards-header {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.ac-explore-redesign .resource-cards-inner {
    width: 100%;
    max-width: var(--explore-max-content);
    margin-inline: auto;
}

.ac-explore-redesign .resource-cards-header {
    width: 100%;
    margin-bottom: 36px;
}

.ac-explore-redesign .resource-cards-eyebrow {
    display: block;
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    text-transform: uppercase;
    color: var(--explore-green);
    letter-spacing: 0.12em;
    line-height: 1.25;
    margin-bottom: 8px;
}

.ac-explore-redesign .resource-cards-title {
    font-size: clamp(1.875rem, 3.5vw, 2.375rem); /* ~30px to 38px */
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--explore-black);
    max-width: 680px;
    margin-top: 0;
    margin-bottom: 0;
}

.ac-explore-redesign .resource-cards-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 0 auto;
}

@media screen and (min-width: 600px) and (max-width: 991px) {
    .ac-explore-redesign .resource-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 992px) {
    .ac-explore-redesign .resource-cards-grid,
    .ac-explore-redesign .resource-cards-grid.cards-count-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: var(--explore-max-wide);
    }

    .ac-explore-redesign .resource-cards-grid.cards-count-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 920px;
    }

    .ac-explore-redesign .resource-cards-grid.cards-count-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: var(--explore-max-wide);
    }

    .ac-explore-redesign .resource-cards-grid.cards-count-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 960px;
    }
}

.ac-explore-redesign .resource-card {
    background-color: #FFFFFF;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ac-explore-redesign .resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.ac-explore-redesign .resource-card__image-container {
    position: relative;
    width: 100%;
    height: 216px;
    overflow: hidden;
    background-color: #F0F0F0;
}

.ac-explore-redesign .resource-card__icon-tile {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    background-color: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.ac-explore-redesign .resource-card__image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ac-explore-redesign .resource-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ac-explore-redesign .resource-card__label {
    display: block;
    font-size: 0.8125rem; /* 13px */
    font-weight: 600;
    text-transform: uppercase;
    color: var(--explore-green);
    letter-spacing: 0.1em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.ac-explore-redesign .resource-card__title {
    font-size: 1.25rem; /* 20px */
    line-height: 1.4;
    font-weight: 700;
    color: var(--explore-black);
    margin-top: 0;
    margin-bottom: 10px;
}

.ac-explore-redesign .resource-card__desc {
    font-size: 0.9375rem; /* 15px */
    line-height: 1.5;
    color: var(--explore-body);
    margin-top: 0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Green Pill CTA Button */
.ac-explore-redesign .resource-card__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--explore-green);
    color: #FFFFFF !important;
    font-size: 1rem; /* 16px */
    font-weight: 600;
    text-decoration: none !important;
    padding: 10px 20px;
    min-height: 44px;
    border-radius: 9999px; /* Pill */
    width: fit-content;
    margin-top: auto;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ac-explore-redesign .resource-card__cta-btn:hover {
    background-color: var(--explore-green-dark);
    color: #FFFFFF !important;
}

.ac-explore-redesign .resource-card__cta-btn:focus-visible {
    outline: 3px solid var(--explore-green);
    outline-offset: 3px;
}

/* ----------------------------------------------------
   7. Featured Article
   ---------------------------------------------------- */
.ac-explore-redesign .featured-blog-section {
    background-color: #FFFFFF;
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.ac-explore-redesign .featured-blog-card {
    background-color: #FFFFFF;
    border-radius: 24px;
    border: 1px solid #EAEAEA;
    padding: 48px;
    max-width: 1000px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.ac-explore-redesign .featured-blog-media {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.ac-explore-redesign .featured-blog-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem); /* 36px */
    line-height: 1.5; /* 54px */
    font-weight: 700;
    color: var(--explore-black);
    margin-bottom: 16px;
}

.ac-explore-redesign .featured-blog-excerpt p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--explore-body);
    margin-bottom: 28px;
}

.ac-explore-redesign .featured-blog-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

@media screen and (min-width: 992px) {
    .ac-explore-redesign .featured-blog-card {
        flex-direction: row;
        align-items: center;
    }

    .ac-explore-redesign .featured-blog-content {
        flex: 1 1 509px;
    }

    .ac-explore-redesign .featured-blog-media {
        flex: 0 0 361px;
        max-width: 361px;
    }

    .ac-explore-redesign .featured-blog-img {
        max-width: 361px;
        height: 451px;
        aspect-ratio: auto;
    }
}

/* ----------------------------------------------------
   8. Featured Video (Scaled for Viewport Harmony)
   ---------------------------------------------------- */
.ac-explore-redesign .featured-video-section {
    background-color: #FFFFFF;
    padding-top: 72px;
    padding-bottom: 72px;
}

.ac-explore-redesign .featured-video-title {
    font-size: clamp(2.25rem, 3.5vw, 3.25rem); /* ~36px to 52px */
    line-height: 1.1;
    font-weight: 800;
    text-align: center;
    color: var(--explore-black);
    max-width: 820px;
    margin-inline: auto;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.ac-explore-redesign .featured-video-wrapper {
    width: 100%;
    max-width: 940px;
    margin-inline: auto;
}

.ac-explore-redesign .featured-video-poster-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 36px;
    overflow: hidden;
    background-color: #1A1A1A;
}

.ac-explore-redesign .featured-video-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ac-explore-redesign .ac-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease;
}

.ac-explore-redesign .ac-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.ac-explore-redesign .featured-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ----------------------------------------------------
   9. Student Success Stories (Option B Modal Styling)
   ---------------------------------------------------- */
.ac-explore-redesign .success-stories-section {
    background-color: #FFFFFF;
    padding-top: 72px;
    padding-bottom: 72px;
}

.ac-explore-redesign .success-stories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    max-width: var(--explore-max-content); /* 1200px */
    margin-inline: auto;
}

.ac-explore-redesign .success-stories-header h2 {
    font-size: clamp(2.25rem, 3.5vw, 3rem); /* ~48-52px */
    color: var(--explore-green);
    margin-bottom: 0;
}

.ac-explore-redesign .story-author-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
    padding-top: 16px;
}

@media screen and (min-width: 600px) {
    .ac-explore-redesign .story-author-wrapper {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
    }
}

.ac-explore-redesign .success-stories-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.ac-explore-redesign .ac-story-nav-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: 2px solid var(--explore-green);
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    padding: 0;
}

.ac-explore-redesign .ac-story-nav-btn:hover {
    background-color: var(--explore-green);
    transform: scale(1.05);
}

.ac-explore-redesign .ac-story-nav-btn:hover svg path {
    stroke: #FFFFFF;
}

.ac-explore-redesign .ac-story-nav-btn:focus-visible {
    outline: 3px solid var(--explore-green);
    outline-offset: 3px;
}

.ac-explore-redesign .success-stories-slider {
    max-width: var(--explore-max-content); /* 1200px */
    margin-inline: auto;
}

.ac-explore-redesign .success-story-slide {
    background-color: var(--explore-story-bg); /* #f6f9f9 */
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: auto;
}

@media screen and (min-width: 900px) {
    .ac-explore-redesign .success-story-slide {
        flex-direction: row;
        align-items: center;
        gap: 48px;
    }

    .ac-explore-redesign .story-media-col {
        flex: 0 0 440px;
    }

    .ac-explore-redesign .story-content-col {
        flex: 1;
    }
}

.ac-explore-redesign .story-media-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 3 / 4;
    max-height: 620px;
    border-radius: 32px;
    overflow: hidden;
    background-color: #EAEAEA;
}

.ac-explore-redesign .story-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ac-explore-redesign .story-quote-mark {
    display: block;
    color: #006341;
    margin-bottom: 20px;
    line-height: 1;
}

.ac-explore-redesign .story-quote-mark svg {
    width: 64px;
    height: 64px;
    display: block;
}

@media screen and (max-width: 767px) {
    .ac-explore-redesign .story-quote-mark {
        margin-bottom: 16px;
    }

    .ac-explore-redesign .story-quote-mark svg {
        width: 48px;
        height: 48px;
    }
}

.ac-explore-redesign .story-quote p {
    font-size: clamp(1.25rem, 2vw, 1.75rem); /* ~27-30px */
    line-height: 1.35;
    font-weight: 500;
    color: var(--explore-black);
    margin-bottom: 28px;
}

.ac-explore-redesign .story-author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--explore-black);
    margin-bottom: 4px;
}

.ac-explore-redesign .story-author-program {
    font-size: 1rem;
    color: var(--explore-green);
    font-weight: 600;
    margin-bottom: 16px;
}

.ac-explore-redesign .story-link {
    display: inline-flex;
    align-items: center;
    color: var(--explore-green) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.ac-explore-redesign .success-story-slide.is-hidden {
    display: none !important;
}

/* Option B: Video Modal / Lightbox Styles */
.ac-video-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ac-video-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ac-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.ac-video-modal-container {
    position: relative;
    z-index: 2;
    width: min(90vw, 1000px);
    aspect-ratio: 16 / 9;
    background-color: #000000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.ac-video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ac-video-modal-frame {
    width: 100%;
    height: 100%;
}

.ac-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ----------------------------------------------------
   10. Tuition Contest Section (Balanced Spacing & Flex Copy Line 1)
   ---------------------------------------------------- */
/* ----------------------------------------------------
   10. Tuition Contest Section (Stacked Winner Photo Layout)
   ---------------------------------------------------- */
/* ----------------------------------------------------
   10. Tuition Contest Section (Stacked Winner Photo Layout)
   ---------------------------------------------------- */
.ac-explore-redesign .tuition-contest-section {
    background-color: #FFFFFF;
    padding-top: 64px;
    padding-bottom: 64px;
}

.ac-explore-redesign .tuition-contest-card {
    position: relative;
    max-width: var(--explore-max-wide);
    margin-inline: auto;
    border-radius: 32px;
    overflow: hidden;
    background-color: var(--explore-green);
    background-size: cover;
    background-position: center;
    padding: 48px 32px;
    color: #FFFFFF;
}

@media screen and (min-width: 992px) {
    .ac-explore-redesign .tuition-contest-card {
        padding: 64px 64px;
    }
}

.ac-explore-redesign .tuition-contest-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 99, 65, 0.96) 0%, rgba(0, 79, 52, 0.92) 100%);
    z-index: 1;
}

.ac-explore-redesign .tuition-contest-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

@media screen and (min-width: 992px) {
    .ac-explore-redesign .tuition-contest-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 48px;
    }

    .ac-explore-redesign .tuition-contest-text {
        flex: 1 1 60%;
        max-width: 740px;
    }

    .ac-explore-redesign .tuition-contest-winner-col {
        flex: 0 0 360px;
        width: 360px;
    }
}

.ac-explore-redesign .tuition-contest-eyebrow {
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    letter-spacing: 0.3em; /* 5.4px */
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    border-left: 4px solid rgba(255, 255, 255, 0.95);
    padding-left: 16px;
    margin-bottom: 16px;
}

.ac-explore-redesign .tuition-contest-title {
    font-size: clamp(3.25rem, 5vw, 5.75rem); /* ~52px to 92px */
    line-height: 0.92;
    font-weight: 800;
    text-transform: uppercase;
    color: #FFFFFF;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    width: min-content;
}

.ac-explore-redesign .tuition-contest-title span {
    display: block;
    white-space: nowrap;
}

@media screen and (max-width: 600px) {
    .ac-explore-redesign .tuition-contest-title span {
        white-space: normal;
    }
}

/* Two-Line Forced Supporting Copy */
.ac-explore-redesign .tuition-contest-copy {
    font-size: clamp(1.25rem, 2vw, 2rem); /* ~32px */
    color: #FFFFFF;
    font-weight: 500;
    line-height: 1.35;
}

.ac-explore-redesign .tuition-contest-copy-line-1 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.ac-explore-redesign .tuition-contest-copy-line-2 {
    display: block;
}

.ac-explore-redesign .contest-amount {
    font-size: clamp(1.75rem, 3vw, 2.75rem); /* ~44px */
    font-weight: 800;
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-thickness: 4px;
    margin-left: 0;
}

/* Winner Photo Stacked Column & Frame */
.ac-explore-redesign .tuition-contest-winner-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.ac-explore-redesign .tuition-contest-winner-frame {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    background-color: #004F34;
    aspect-ratio: 4 / 3;
}

.ac-explore-redesign .tuition-contest-winner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Winner Badge Overlay - New Growth Green Celebratory Pill */
.ac-explore-redesign .tuition-contest-winner-badge {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #43B02A;
    color: #002D1D;
    font-size: 0.8125rem; /* 13px */
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    border: 2px solid #FFFFFF;
    z-index: 3;
    white-space: nowrap;
}

.ac-explore-redesign .winner-badge-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #002D1D;
}

/* Stacked CTA Button */
.ac-explore-redesign .tuition-contest-btn-stacked {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ----------------------------------------------------
   11. Prefers Reduced Motion
   ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ac-explore-redesign * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* ----------------------------------------------------
   12. Hero Slideshow (Production Parity with Slick)
   ---------------------------------------------------- */
.explore-redesign-hero-header {
    width: 100%;
    position: relative;
    background: #006341;
}

.explore-redesign-hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.explore-slider-desktop {
    display: block;
}

.explore-slider-mobile {
    display: none;
}

@media (max-width: 767px) {
    .explore-slider-desktop {
        display: none !important;
    }
    .explore-slider-mobile {
        display: block !important;
    }
}

.explore-redesign-hero-banner .header-slide-wrapper {
    background: #006341 !important;
    width: 100%;
    height: 480px;
}

@media (max-width: 991px) {
    .explore-redesign-hero-banner .header-slide-wrapper {
        height: 420px;
    }
}

@media (max-width: 767px) {
    .explore-redesign-hero-banner .header-slide-wrapper {
        height: 320px;
    }
}

.explore-redesign-hero-banner .i-am-img {
    display: block !important;
    width: 100%;
    max-width: 2600px;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
}

/* Pre-initialization / No-JS fallback: Show only slide 1, hide slides 2-8 */
.explore-slick-header:not(.slick-initialized) > .slick-slide:not(:first-child),
.explore-slick-header-mobile:not(.slick-initialized) > .slick-slide:not(:first-child) {
    display: none !important;
}

/* Slider Controls & Pause/Play Button (Explore2 Isolated) */
.explore-slider-controls {
    position: absolute;
    bottom: 12px;
    right: 20px;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.explore-slider-controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.explore-slider-toggle {
    display: inline-block;
    width: 44px;
    height: 44px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 0;
    margin: 0;
    /* Default playing state: shows pause icon */
    background-image: url("/wp-content/themes/algonquincollege2018/images/icns/icn-circle-btn-white-pause.png");
}

.explore-slider-toggle:hover,
.explore-slider-toggle:focus-visible {
    opacity: 1;
}

/* Paused state: shows play icon */
.explore-slider-toggle.is-paused {
    background-image: url("/wp-content/themes/algonquincollege2018/images/icns/icn-circle-btn-white-play.png");
}
