/* ===========================================
   Symagro Hero Carousel
   Two independent zones: Hero (crossfade) + Bottom (item swap)
   Figma: 1440 x 1062
   =========================================== */
@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:ital,wght@0,400..800;1,400..800&display=swap');

*,*::before,*::after{box-sizing:border-box}

.symagro-hero-carousel {
    position: relative;
    width: 100%;
    font-family: 'Rethink Sans', sans-serif;
    background: #fff;
}

/* =============================================
   HERO ZONE — stacked backgrounds, crossfade
   ============================================= */
.shc-hero-zone {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 688;
    -webkit-mask-image: url('../images/mascara.png');
    mask-image: url('../images/mascara.png');
    -webkit-mask-size: 100% 122%;
    mask-size: 100% 122%;
    -webkit-mask-position: bottom;
    mask-position: bottom;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.shc-hero {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 0 !important;
    background-size: cover;
    background-position: center;
    background-color: #d9d9d9;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.shc-hero--active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.shc-hero__overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.shc-hero__content {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    padding: 0 104px 90px;
}

.shc-hero__subtitle {
    font-weight: 400;
    font-size: 20px;
    line-height: 25px;
    color: #fff !important;
    margin: 0 0 10px;
    max-width: 613px;
}

.shc-hero__title {
    font-weight: 500;
    font-size: 109px;
    line-height: 102px;
    color: #fff !important;
    margin: 0;
    max-width: 600px;
}

.shc-hero__logo {
    margin-top: 20px;
}

.shc-hero__logo img {
    width: 146px;
    height: 75px;
    object-fit: contain;
}

/* =============================================
   BOTTOM ZONE — items carousel + course info
   Overlaps hero via negative margin.
   White bg of parent shows through hero's rounded corners.
   ============================================= */
.shc-bottom {
    position: relative;
    z-index: 5;
    margin-top: -137px;
    padding: 0 40px 20px 104px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

/* ---- Items container (3 course images, absolutely positioned) ---- */
.shc-items {
    position: relative;
    width: 972px;   /* 232+25+228+25+462 */
    height: 309px;
    flex-shrink: 0;
    overflow: hidden;
}

.shc-item {
    position: absolute;
    overflow: hidden;
    cursor: pointer;
    /* will be positioned by JS, fallback below */
}

.shc-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback positions before JS loads */
.shc-item:nth-child(1) {
    left: 510px; top: 0;
    width: 462px; height: 309px;
    border-radius: 48px;
    cursor: default;
}
.shc-item:nth-child(2) {
    left: 0; top: 155px;
    width: 232px; height: 154px;
    border-radius: 32px;
}
.shc-item:nth-child(3) {
    left: 257px; top: 157px;
    width: 228px; height: 152px;
    border-radius: 32px;
}

/* ---- Course info (stacked, crossfade) ---- */
.shc-infos {
    position: relative;
    flex-shrink: 0;
    width: 310px;
    min-height: 240px;
    align-self: flex-end;
}

.shc-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
}

.shc-info--active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.shc-course__cat {
    font-weight: 400;
    font-size: 20px;
    line-height: 20px;
    color: #000;
    display: block;
    margin-bottom: 12px;
}

.shc-course__title {
    font-weight: 500;
    font-size: 25px;
    line-height: 26px;
    color: #000;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shc-course__desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #000;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shc-course__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 33px;
    padding: 0 16px;
    background: #000;
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    border-radius: 200px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.shc-course__btn:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
    transform: scale(1.06);
}

/* =============================================
   ARROWS
   ============================================= */
.shc-arrow {
    position: absolute;
    top: calc(50% * 838 / 1062);
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    opacity: 0;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

.symagro-hero-carousel:hover .shc-arrow { opacity: 1; }

.shc-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.16);
}

.shc-arrow--prev { left: 28px; }
.shc-arrow--next { right: 28px; }

/* =============================================
   PROGRESS BAR
   ============================================= */
.shc-progress {
    position: relative;
    margin: 16px 104px 0;
    height: 3px;
    background: rgba(0,0,0,0.06);
    border-radius: 2px;
    overflow: hidden;
    z-index: 5;
}

.shc-progress__bar {
    height: 100%;
    width: 0;
    background: #000;
    border-radius: 2px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
    .shc-hero__content { padding: 0 60px 70px; }
    .shc-hero__title { font-size: 72px; line-height: 72px; }
    .shc-hero__subtitle { font-size: 16px; line-height: 22px; max-width: 450px; }
    .shc-hero__logo img { width: 120px; height: auto; }

    .shc-bottom { margin-top: -140px; padding: 0 30px 20px 60px; gap: 20px; }
    .shc-items { width: 750px; height: 240px; }

    .shc-infos { width: 260px; }
    .shc-course__title { font-size: 28px; line-height: 32px; }
    .shc-course__desc { font-size: 14px; line-height: 20px; }
    .shc-course__cat { font-size: 16px; }

    .shc-progress { margin: 14px 60px 0; }
}

/* Tablet and below: only hero slider, no thumbnails */
@media (max-width: 1024px) {
    .shc-hero-zone {
        aspect-ratio: 16 / 9;
        -webkit-mask-image: none;
        mask-image: none;
        border-radius: 0 0 40px 40px;
        overflow: hidden;
    }
    .shc-hero__content { padding: 0 40px 60px; }
    .shc-hero__title { font-size: 56px; line-height: 56px; max-width: 500px; }
    .shc-hero__subtitle { font-size: 15px; line-height: 22px; max-width: 450px; }
    .shc-hero__logo img { width: 110px; height: auto; }

    .shc-bottom { display: none; }

    .shc-arrow { top: 50%; width: 44px; height: 44px; opacity: 1; }
    .shc-arrow--prev { left: 16px; }
    .shc-arrow--next { right: 16px; }

    .shc-progress { margin: 12px 40px 0; }
}

@media (max-width: 768px) {
    .shc-hero-zone {
        aspect-ratio: 16 / 11;
        border-radius: 0 0 32px 32px;
    }
    .shc-hero__content { padding: 0 24px 50px; }
    .shc-hero__title { font-size: 48px; line-height: 48px; max-width: 100%; }
    .shc-hero__subtitle { font-size: 14px; line-height: 20px; max-width: 100%; }
    .shc-hero__logo img { width: 100px; height: auto; }

    .shc-arrow { width: 40px; height: 40px; }
    .shc-arrow--prev { left: 12px; }
    .shc-arrow--next { right: 12px; }

    .shc-progress { margin: 12px 24px 0; }
}

@media (max-width: 480px) {
    .shc-hero-zone {
        aspect-ratio: 9 / 11;
        border-radius: 0 0 24px 24px;
    }
    .shc-hero__title { font-size: 36px; line-height: 38px; }
    .shc-hero__subtitle { font-size: 13px; line-height: 18px; }
    .shc-arrow { width: 36px; height: 36px; }
    .shc-progress { margin: 10px 16px 0; }
}
