/* ============================================================
   ASAR RESOURCES PAGE STYLES
   ============================================================ */

.asar-resources__section-title {
    font-family: 'Roca One', var(--font-heading);
    font-size: clamp(2rem, 3.25vw, 3rem); /* up to 48px */
    font-weight: 400;
    color: #031b2b;
    margin: 0 0 32px 0;
    line-height: 1.25;
}

/* ============================================================
   1. RESOURCES HERO SECTION
   ============================================================ */
.asar-resources-hero {
    background-color: #ffffff;
    padding: 100px 0 60px;
    text-align: center;
}

.asar-resources-hero__inner {
    max-width: 1796px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.asar-resources-hero__text-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    margin-bottom: 64px;
}

.asar-resources-hero__title {
    font-family: 'Roca One', var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 5.25rem); /* matches 84px on 1920px screen */
    line-height: 1.15;
    color: #031b2b;
    margin: 0;
    font-weight: 700; /* Roca One Bold */
    max-width: 1158px;
    letter-spacing: -0.01em;
}

.asar-resources-hero__desc {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 1.8vw, 1.75rem); /* matches 28px on 1920px screen */
    line-height: 1.45;
    color: #000000;
    max-width: 1796px;
    margin: 0;
}

/* Filters & Search - exact Figma layout */
.asar-resources-hero__filters {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.asar-resources-hero__dropdown {
    width: 334px;
    flex-shrink: 0;
}

.asar-resources-hero__dropdown-btn {
    width: 100%;
    height: 52px;
    background: #FFF8F0;
    border: none;
    border-radius: 32px;
    padding: 10px 32px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
}

.asar-resources-hero__dropdown-btn:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.asar-resources-hero__dropdown-btn svg.filter-icon {
    width: 24px;
    height: 24px;
    color: #000000;
}

.filter-label {
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 18px;
    color: #000000;
}

.filter-value {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    color: #000000;
}

.asar-resources-hero__search {
    position: relative;
    width: 1148px;
    flex-shrink: 0;
}

.asar-resources-hero__search svg.search-icon {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
    pointer-events: none;
    width: 24px;
    height: 24px;
}

.asar-resources-hero__search-input {
    background: #FFF8F0;
    border: none;
    border-radius: 32px;
    padding: 10px 32px 10px 72px;
    width: 100%;
    height: 52px;
    font-family: var(--font-body);
    font-size: 18px;
    color: #000000;
    transition: all 0.3s ease;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
}

.asar-resources-hero__search-input::placeholder {
    color: #000000;
    opacity: 0.5;
}

.asar-resources-hero__search-input:focus {
    border-color: #004750;
    outline: none;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsiveness */
@media (min-width: 1200px) {
    .asar-resources-hero__filters {
        gap: 68px; /* Exact spacing from Figma */
    }
}

@media (max-width: 1199px) {
    .asar-resources-hero__filters {
        gap: 24px;
        max-width: 1000px;
    }
    .asar-resources-hero__dropdown {
        width: 280px;
    }
    .asar-resources-hero__search {
        width: auto;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .asar-resources-hero {
        padding: 60px 0 40px;
    }
    .asar-resources-hero__text-block {
        margin-bottom: 40px;
    }
    .asar-resources-hero__filters {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }
    .asar-resources-hero__dropdown,
    .asar-resources-hero__search {
        width: 100%;
    }
    .asar-resources-hero__dropdown-btn {
        justify-content: flex-start;
        font-size: 16px;
    }
    .asar-resources-hero__search-input {
        font-size: 16px;
        padding-left: 56px;
    }
    .asar-resources-hero__search svg.search-icon {
        left: 24px;
    }
}


/* ============================================================
   2. FEATURED RESOURCES SECTION
   ============================================================ */
.asar-featured-resources {
    background-color: #ffffff;
    padding: 40px 0 60px;
}

.asar-featured-resources__grid {
    display: grid;
    grid-template-columns: 2fr 1.02fr;
    gap: 32px;
    align-items: stretch; /* both columns same height */
}

/* Left Large Card */
.asar-featured-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    height: 540px; /* matches right column: 260 + 20 gap + 260 = 540 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.asar-featured-card__overlay {
    position: absolute;
    inset: 0;
    /* Lighter overlay matching Figma — image is clearly visible at top */
    background: linear-gradient(180deg, rgba(3, 27, 43, 0.05) 0%, rgba(3, 27, 43, 0.55) 70%, rgba(3, 27, 43, 0.72) 100%);
    z-index: 1;
}

.asar-featured-card__top,
.asar-featured-card__content,
.asar-featured-card__footer {
    position: relative;
    z-index: 2;
}

.asar-featured-card__tag {
    /* Figma: semi-transparent white pill with white border, NOT solid orange */
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    padding: 10px 20px;
    border-radius: 32px;
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 1.1rem; /* ~23px */
    display: inline-block;
    backdrop-filter: blur(4px);
}

.asar-featured-card__title {
    /* Figma: Satoshi Bold 52px, NOT Roca One */
    font-family: var(--font-subheading);
    font-size: clamp(1.8rem, 3.2vw, 3.25rem); /* ~52px */
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.asar-featured-card__desc {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
    margin: 0;
}

.asar-featured-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

/* Slider Controls inside card */
.asar-featured-card__slider-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.asar-featured-card__indicator {
    /* Figma: text-black — slider shows on frosted area at bottom */
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.asar-featured-card__progress {
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
}

.asar-featured-card__progress-bar {
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
}

.asar-featured-card__arrows {
    display: flex;
    gap: 12px;
}

.asar-featured-card__arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.asar-featured-card__arrow:hover {
    background: #ffffff;
    color: #031b2b;
    border-color: #ffffff;
}

.asar-featured-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* Figma: bg-[#fff8f0] cream, text-[#004750] teal, rounded-[16px] h-[52px] */
    background: #fff8f0;
    color: #004750;
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 1.05rem; /* ~18px */
    padding: 14px 24px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
    height: 52px;
}

.asar-featured-card__btn:hover {
    background: #F4A623;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 166, 35, 0.3);
}

/* Right Sidebar Cards */
.asar-featured-resources__right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%; /* stretch to match left card */
}

/* Card 1: Full-width image card (top) — stretches to fill remaining space */
.asar-featured-sidebar-card--image {
    flex: 1; /* fills available space above the bottom 2-col grid */
}

/* Cards 2 & 3: Side-by-side 2-column grid (bottom) — fixed height */
.asar-featured-sidebar-cards-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex-shrink: 0;
}

.asar-featured-sidebar-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: 260px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1.5px solid #E0E8ED;
}

.asar-featured-sidebar-card--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    border: none;
}

.asar-featured-sidebar-card--image .asar-featured-sidebar-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 27, 43, 0.15) 0%, rgba(3, 27, 43, 0.7) 100%);
    z-index: 1;
}

.asar-featured-sidebar-card--dark {
    background-color: #031B2B;
    color: #ffffff;
    border: none;
}

.asar-featured-sidebar-card__content {
    position: relative;
    z-index: 2;
}

.asar-featured-sidebar-card__tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.asar-featured-sidebar-card__tags span {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-subheading);
}

.asar-featured-sidebar-card__title {
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 1.35rem; /* approx 22px */
    line-height: 1.35;
    color: #ffffff;
    margin: 0;
}

.asar-featured-sidebar-card__desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.75);
    margin: 8px 0 0 0;
}

/* ─── Scoop Corner Overrides for Resources Page ─────────────────────────────
   Each card type has a different background color, so the scoop's ::before
   and ::after inverted curves must match that card's background color to
   carve a clean curved notch. The scoop block itself is always the page
   background color (#fdf8f1 default, or card-specific).
   ─────────────────────────────────────────────────────────────────────────── */

/* Image cards (card-1 in sidebar, all article/podcast cards) — scoop is transparent-ish,
   we use a dark overlay background so the scoop should appear as its own block only.
   Scoop block inherits default #fdf8f1 from style.css — override not needed for image cards. */

/* Dark sidebar cards (card-2 and card-3 in featured, patient guide dark variants)
   Background: #031B2B — scoop ::before and ::after must also be #031B2B */
.asar-featured-sidebar-card--dark .asar-scoop-corner {
    background: #031B2B;
}
.asar-featured-sidebar-card--dark .asar-scoop-corner::before,
.asar-featured-sidebar-card--dark .asar-scoop-corner::after {
    background: radial-gradient(circle at bottom left, transparent 30px, #031B2B 30.5px);
}

/* Image-background cards — the scoop corner sits on top of the dark gradient overlay.
   The page background is #fdf8f1 so the scoop block and curves should be that color. */
.asar-featured-sidebar-card--image .asar-scoop-corner,
.asar-resources-card .asar-scoop-corner {
    background: #fdf8f1;
}
.asar-featured-sidebar-card--image .asar-scoop-corner::before,
.asar-featured-sidebar-card--image .asar-scoop-corner::after,
.asar-resources-card .asar-scoop-corner::before,
.asar-resources-card .asar-scoop-corner::after {
    background: radial-gradient(circle at bottom left, transparent 30px, #fdf8f1 30.5px);
}

/* Patient guide cards — light colored backgrounds, use white for the scoop */
.asar-guide-card .asar-scoop-corner {
    background: #ffffff;
}
.asar-guide-card--score .asar-scoop-corner::before,
.asar-guide-card--score .asar-scoop-corner::after {
    background: radial-gradient(circle at bottom left, transparent 30px, #F4F9FA 30.5px);
}
.asar-guide-card--assurance .asar-scoop-corner::before,
.asar-guide-card--assurance .asar-scoop-corner::after {
    background: radial-gradient(circle at bottom left, transparent 30px, #FFFDF9 30.5px);
}
.asar-guide-card--passport .asar-scoop-corner::before,
.asar-guide-card--passport .asar-scoop-corner::after {
    background: radial-gradient(circle at bottom left, transparent 30px, #F4FAFA 30.5px);
}

@media (max-width: 1024px) {
    .asar-featured-resources__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .asar-featured-card {
        height: 500px;
    }
    .asar-featured-sidebar-cards-bottom {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .asar-featured-card {
        padding: 36px 24px;
        height: auto;
        min-height: 480px;
    }
    .asar-featured-card__title {
        font-size: 1.6rem;
    }
    .asar-featured-sidebar-cards-bottom {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   3. ARTICLES & PODCASTS SECTIONS
   ============================================================ */
.asar-resources-articles,
.asar-resources-podcasts {
    background-color: #ffffff;
    padding: 32px 0 56px;
}

.asar-resources-articles__grid,
.asar-resources-podcasts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.asar-resources-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: 274px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.asar-resources-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 27, 43, 0.15) 0%, rgba(3, 27, 43, 0.7) 100%);
    z-index: 1;
}

.asar-resources-card__content {
    position: relative;
    z-index: 2;
}

.asar-resources-card__tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.asar-resources-card__tags span {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-subheading);
}

.asar-resources-card__title {
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.35;
    color: #ffffff;
    margin: 0;
}

.asar-resources-card__desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.75);
    margin: 8px 0 0 0;
}

/* Slider arrows below grid */
.asar-resources-articles__nav,
.asar-resources-podcasts__nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.asar-resources-articles__arrow,
.asar-resources-podcasts__arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #031B2B;
    color: #031B2B;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.asar-resources-articles__arrow:hover,
.asar-resources-podcasts__arrow:hover {
    background: #031B2B;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .asar-resources-articles__grid,
    .asar-resources-podcasts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .asar-resources-articles__grid,
    .asar-resources-podcasts__grid {
        grid-template-columns: 1fr;
    }
    .asar-resources-card {
        padding: 30px 24px;
    }
}

/* ============================================================
   4. PATIENT GUIDES SECTION
   ============================================================ */
.asar-resources-guides {
    background-color: #ffffff;
    padding: 32px 0 80px;
}

.asar-resources-guides__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.asar-guide-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: 274px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1.5px solid #E0E8ED;
    transition: all 0.3s ease;
}

.asar-guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

/* Colors variants matching Figma */
.asar-guide-card--score {
    background-color: #F4F9FA;
}

.asar-guide-card--assurance {
    background-color: #FFFDF9;
}

.asar-guide-card--passport {
    background-color: #F4FAFA;
}

.asar-guide-card__content {
    position: relative;
    z-index: 2;
}

.asar-guide-card__tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.asar-guide-card__tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
}

.asar-guide-card__tag--score {
    background: rgba(0, 71, 80, 0.1);
    color: #004750;
}

.asar-guide-card__tag--assurance {
    background: rgba(244, 166, 35, 0.1);
    color: #d5992d;
}

.asar-guide-card__tag--passport {
    background: rgba(3, 27, 43, 0.1);
    color: #031b2b;
}

.asar-guide-card__header-wrap {
    margin-bottom: 12px;
}

.asar-guide-card__title {
    font-family: 'Roca One', var(--font-heading);
    font-size: 1.45rem; /* approx 24px */
    font-weight: 400;
    color: #031b2b;
    margin: 0;
    line-height: 1.2;
}

.asar-guide-card__subtitle {
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #666666;
    margin-top: 4px;
    display: block;
}

.asar-guide-card__desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.45;
    color: #555555;
    margin: 0;
}

/* Slider nav */
.asar-resources-guides__nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

.asar-resources-guides__arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #031B2B;
    color: #031B2B;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.asar-resources-guides__arrow:hover {
    background: #031B2B;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .asar-resources-guides__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .asar-resources-guides__grid {
        grid-template-columns: 1fr;
    }
    .asar-guide-card {
        padding: 30px 24px;
    }
}
