/**
 * home.css — Homepage Section Styles
 * TradeUp BC — Homepage Redesign v2
 *
 * Contents:
 *  1.  Hero Banner (Slider)
 *  2.  Info Strip (yellow bar)
 *  3.  Training Section ("Training for the Skilled Trades")
 *  4.  Explore Opportunities (Category Grid)
 *  5.  Feature Callout ("Train the Trainer")
 *  6.  Areas of Demand (dark green + icon grid)
 *  7.  Upcoming Events
 *  8.  Success Stories
 *  9.  FAQ / Why Short Courses
 *  10. Partner Logos
 */


/* =============================================================================
   1. HERO BANNER (SLIDER)
   ============================================================================= */

.v2-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--c-dark);
}

/* Each individual slide */
.v2-hero__slide {
    position: relative;
    width: 100%;
    min-height: 620px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex !important;
    align-items: center;
}

/* Dark gradient overlay — stronger on left, fades right */
.v2-hero__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.78) 0%,
        rgba(0,0,0,0.55) 45%,
        rgba(0,0,0,0.10) 100%
    );
    z-index: 1;
}

.v2-hero__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding-block: var(--space-20);
}

.v2-hero__pretitle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-gold);
    margin-bottom: var(--space-5);
}

.v2-hero__pretitle::before {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background-color: var(--c-gold);
    border-radius: 2px;
}

.v2-hero__heading {
    font-family: var(--font-heading);
    font-size: var(--text-6xl);
    font-weight: 800;
    color: var(--c-white);
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: var(--space-4);
    letter-spacing: -0.01em;
}

.v2-hero__sub {
    font-family: var(--font-body);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--c-gold);
    margin-bottom: var(--space-5);
    font-style: italic;
    line-height: 1.3;
}

.v2-hero__text {
    font-size: var(--text-md);
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
    margin-bottom: var(--space-8);
    max-width: 520px;
}

/* Slider nav arrows */
.v2-hero .slick-arrow {
    position: absolute;
    bottom: var(--space-8);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--c-white);
    font-size: 18px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--ease);
    top: auto;
    transform: none;
}

.v2-hero .slick-arrow::before { display: none; }

.v2-hero .slick-prev { left: var(--container-pad); }
.v2-hero .slick-next { left: calc(var(--container-pad) + 52px); }

.v2-hero .slick-arrow:hover {
    background-color: var(--c-gold);
    border-color: var(--c-gold);
    color: var(--c-dark);
}

/* Dots */
.v2-hero .slick-dots {
    bottom: var(--space-10);
    left: calc(var(--container-pad) + 110px);
    transform: none;
    display: flex !important;
    align-items: center;
    gap: var(--space-2);
    width: auto;
}

.v2-hero .slick-dots li { margin: 0; width: auto; height: auto; }

.v2-hero .slick-dots li button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    transition: var(--ease);
}

.v2-hero .slick-dots li button::before { display: none; }

.v2-hero .slick-dots li.slick-active button {
    background-color: var(--c-gold);
    border-color: var(--c-gold);
    width: 24px;
    border-radius: 4px;
}


/* =============================================================================
   2. INFO STRIP (YELLOW BAR)
   ============================================================================= */

.v2-infostrip {
    background-color: var(--c-gold);
    padding-block: var(--space-5);
    position: relative;
    overflow: hidden;
}

.v2-infostrip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.v2-infostrip__content {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    flex: 1;
    flex-wrap: wrap;
}

.v2-infostrip__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.v2-infostrip__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-gold-xdk);
    font-size: 20px;
    flex-shrink: 0;
}

.v2-infostrip__label {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--c-dark);
    line-height: 1.2;
}

.v2-infostrip__label span {
    display: block;
    font-weight: 400;
    font-size: var(--text-sm);
    color: var(--c-gold-xdk);
}

.v2-infostrip__logo {
    flex-shrink: 0;
}

.v2-infostrip__logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
}


/* =============================================================================
   3. TRAINING SECTION ("TRAINING FOR THE SKILLED TRADES")
   ============================================================================= */

.v2-training {
    padding-block: var(--section-py);
    background-color: var(--c-white);
}

.v2-training__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.v2-training__content {}

.v2-training__heading {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--c-red);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.v2-training__sub {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--c-dark);
    margin-bottom: var(--space-5);
    line-height: 1.4;
}

.v2-training__text {
    font-size: var(--text-base);
    color: var(--c-gray);
    line-height: 1.75;
    margin-bottom: var(--space-8);
}

.v2-training__media {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
}

.v2-training__img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.v2-training__logo {
    max-width: 200px;
    margin-top: var(--space-4);
}


/* =============================================================================
   4. EXPLORE OPPORTUNITIES (CATEGORY GRID)
   ============================================================================= */

.v2-explore {
    padding-block: var(--section-py);
    background-color: var(--c-white);
    position: relative;
    overflow: hidden;
}

/* Subtle watermark bg image */
.v2-explore__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.v2-explore__bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.04;
}

.v2-explore__inner { position: relative; z-index: 1; }

/* 4-column grid, wraps to 2 then 1 */
.v2-explore__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-10);
}

/* CTA row below grid */
.v2-explore__cta { text-align: center; }


/* =============================================================================
   5. FEATURE CALLOUT ("DISCOVER YOUR POTENTIAL" / "TRAIN THE TRAINER")
   ============================================================================= */

.v2-feature {
    padding-block: var(--section-py);
    background-color: var(--c-gray-bg);
    overflow: hidden;
}

/* Slider container — each slide is a 2-col row */
.v2-feature__slider .slick-slide > div { height: 100%; }

.v2-feature__slide {
    display: flex !important;
    gap: var(--space-16);
    align-items: center;
}

.v2-feature__media {
    flex: 0 0 50%;
    max-width: 50%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.v2-feature__media img {
    width: 100%;
    aspect-ratio: 5/4;
    object-fit: cover;
    display: block;
}

.v2-feature__content {
    flex: 1;
    padding-block: var(--space-6);
}

.v2-feature__pretitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-gray);
    margin-bottom: var(--space-4);
    background-color: var(--c-gray-lt);
    padding: 4px 12px;
    border-radius: 3px;
}

.v2-feature__heading {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--c-red);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: var(--space-5);
}

.v2-feature__text {
    font-size: var(--text-base);
    color: var(--c-gray);
    line-height: 1.75;
    margin-bottom: var(--space-8);
}

.v2-feature__logo {
    max-width: 160px;
    margin-bottom: var(--space-6);
}

/* Slider nav dots (below the slide) */
.v2-feature__slider .slick-dots {
    position: static;
    display: flex !important;
    justify-content: center;
    margin-top: var(--space-8);
    gap: var(--space-2);
    transform: none;
    width: auto;
}

.v2-feature__slider .slick-dots li { width: auto; height: auto; margin: 0; }

.v2-feature__slider .slick-dots li button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--c-gray-lt);
    border: 2px solid var(--c-gray-lt);
    transition: var(--ease);
}

.v2-feature__slider .slick-dots li button::before { display: none; }

.v2-feature__slider .slick-dots li.slick-active button {
    background-color: var(--c-red);
    border-color: var(--c-red);
}


/* =============================================================================
   6. AREAS OF DEMAND (DARK GREEN + ICON GRID)
   ============================================================================= */

.v2-demand {
    padding-block: var(--section-py);
    background-color: var(--c-green-dk);
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.v2-demand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 50%, rgba(50,160,125,0.18) 0%, transparent 60%),
                      radial-gradient(circle at 70% 30%, rgba(88,212,176,0.10) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.v2-demand__inner { position: relative; z-index: 1; }

.v2-demand__header { margin-bottom: var(--space-12); }

.v2-demand__title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--c-white);
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.v2-demand__sub {
    font-size: var(--text-md);
    color: rgba(255,255,255,0.78);
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.65;
}

/* Icon grid — single row of 7 items */
.v2-demand__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.v2-demand__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-3);
    border-radius: var(--radius-md);
    transition: var(--ease);
    cursor: default;
}

.v2-demand__item:hover {
    background-color: rgba(255,255,255,0.08);
    transform: translateY(-4px);
}

.v2-demand__icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.2);
    transition: border-color 250ms ease;
}

.v2-demand__item:hover .v2-demand__icon {
    border-color: var(--c-gold);
}

.v2-demand__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-demand__label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.v2-demand__cta { text-align: center; }


/* =============================================================================
   7. UPCOMING EVENTS
   ============================================================================= */

.v2-events {
    padding-block: var(--section-py);
    background-color: var(--c-white);
}

.v2-events__grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-12);
    align-items: start;
    margin-top: var(--space-12);
}

/* Left: event list */
.v2-events__list {}

/* Right: featured event image card */
.v2-events__featured {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.v2-events__featured-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.v2-events__featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-5) var(--space-6);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--c-white);
}

.v2-events__featured-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--c-white);
    line-height: 1.25;
}

.v2-events__all-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--text-sm);
    letter-spacing: 0.06em;
    color: var(--c-green-dk);
    transition: var(--ease-fast);
}

.v2-events__all-link:hover {
    color: var(--c-red);
    gap: var(--space-3);
}


/* =============================================================================
   8. SUCCESS STORIES
   ============================================================================= */

.v2-stories {
    padding-block: var(--section-py);
    background-color: var(--c-gray-bg);
}

.v2-stories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
}

/* Left intro column */
.v2-stories__intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-8);
    background-color: var(--c-green-dk);
    border-radius: var(--radius-md);
    min-height: 360px;
}

.v2-stories__intro-heading {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--c-white);
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: var(--space-4);
}

.v2-stories__intro-text {
    font-size: var(--text-base);
    color: rgba(255,255,255,0.8);
    line-height: 1.65;
    flex: 1;
}

.v2-stories__intro-cta {
    margin-top: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.v2-stories__cta-row {
    display: flex;
    justify-content: center;
    margin-top: var(--space-10);
    gap: var(--space-4);
    flex-wrap: wrap;
}


/* =============================================================================
   9. FAQ / WHY SHORT COURSES
   ============================================================================= */

.v2-faq {
    padding-block: var(--section-py);
    background-color: var(--c-white);
}

.v2-faq__inner {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: var(--space-16);
    align-items: start;
}

.v2-faq__aside {}

.v2-faq__aside-heading {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--c-dark);
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: var(--space-5);
}

.v2-faq__aside-text {
    font-size: var(--text-base);
    color: var(--c-gray);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.v2-faq__content {}


/* =============================================================================
   10. PARTNER LOGOS
   ============================================================================= */

.v2-partners {
    padding-block: var(--space-10);
    background-color: #ffffff;
}

.v2-partners__title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-gray);
    text-align: center;
    margin-bottom: var(--space-8);
}

.v2-partners__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.v2-partners__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    filter: grayscale(100%);
    opacity: 0.55;
    transition: var(--ease);
}

.v2-partners__logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.v2-partners__logo img {
    height: 50px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
}


/* =============================================================================
   RESPONSIVE — ALL HOME SECTIONS
   ============================================================================= */

/* Tablet: max-width 1024px */
@media (max-width: 1024px) {
    .v2-explore__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v2-demand__grid {
        grid-template-columns: repeat(4, 1fr);
        row-gap: var(--space-8);
    }

    .v2-stories__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v2-stories__intro { min-height: auto; }

    .v2-faq__inner {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .v2-events__grid {
        grid-template-columns: 1fr;
    }

    .v2-events__featured { max-width: 480px; }
}

/* Tablet: max-width 768px */
@media (max-width: 767px) {

    /* Hero */
    .v2-hero__slide { min-height: 520px; }
    .v2-hero__heading { font-size: var(--text-4xl); }
    .v2-hero__sub { font-size: var(--text-xl); }

    /* Training */
    .v2-training__inner {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .v2-training__media { order: -1; }
    .v2-training__heading { font-size: var(--text-3xl); }

    /* Explore */
    .v2-explore__grid { grid-template-columns: repeat(2, 1fr); }

    /* Feature */
    .v2-feature__slide {
        flex-direction: column;
        gap: var(--space-8);
    }

    .v2-feature__media {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .v2-feature__heading { font-size: var(--text-3xl); }

    /* Demand */
    .v2-demand__grid { grid-template-columns: repeat(3, 1fr); }
    .v2-demand__icon { width: 72px; height: 72px; }
    .v2-demand__title { font-size: var(--text-3xl); }

    /* Infostrip */
    .v2-infostrip__inner { flex-direction: column; align-items: flex-start; }
    .v2-infostrip__content { gap: var(--space-5); }

    /* Stories */
    .v2-stories__grid { grid-template-columns: 1fr; }

    /* FAQ aside */
    .v2-faq__aside-heading { font-size: var(--text-2xl); }
}

/* Mobile: max-width 575px */
@media (max-width: 575px) {

    /* Hero */
    .v2-hero__slide { min-height: 450px; }
    .v2-hero__heading { font-size: var(--text-3xl); }
    .v2-hero__sub { font-size: var(--text-lg); }
    .v2-hero__text { font-size: var(--text-base); }
    .v2-hero__content { padding-block: var(--space-16); }

    /* Explore */
    .v2-explore__grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }

    /* Demand */
    .v2-demand__grid { grid-template-columns: repeat(2, 1fr); }

    /* Events */
    .v2-card-event { flex-direction: column; }
    .v2-card-event__date { width: 100%; height: auto; flex-direction: row; gap: var(--space-2); padding: var(--space-2) var(--space-4); }

    /* Partners */
    .v2-partners__grid { gap: var(--space-4); }
    .v2-partners__logo img { height: 38px; }
}
