﻿/* Variables */
:root {
    /* Brand Colors */
    --stfm-primary-blue: #1d417b;
    --primary-blue: #095592;
    --light-blue: #0096d4;
    --gold: #eab847;
    --green: #468b40;
    --red: #bd242b;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --black: #212529;
    --off-white: #fdfbf6; /* New off-white for inspired cards */
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    /* Borders */
    --border-radius: 4px;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px; /* New larger radius */
}

.highlight-percent {
    color: var(--stfm-secondary) !important;
}

/********************************/
/****** HERO SECTION START ******/
/********************************/
.hero-section {
    min-height: 450px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eef3 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    padding: 1.5rem 0 1rem 0;
    max-width: 1450px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}


.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    z-index: 2;
}

    .hero-text h1 {
        margin: 0 0 .75rem;
    }

.hero-main-headline {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--stfm-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    max-width: 500px;
}

.hero-subheadline {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 3.5rem;
    font-weight: 400;
    max-width: 500px;
}

.subtext-with-background {
    position: relative;
    padding-bottom: 0;
}

    .subtext-with-background::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -30px;
        width: 240px;
        height: 120px;
        margin-left: -70px;
        background-image: var(--impact-bg);
        background-size: contain;
        background-position: left top;
        background-repeat: no-repeat;
        pointer-events: none;
        z-index: -1;
    }

.hero-cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    background: white;
    padding: 0.75rem 2rem 0.75rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 125%;
    position: relative;
    z-index: 3;
}

.hero-cta-button {
    display: inline-block;
    background-color: var(--stfm-tertiary);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 150, 210, 0.3);
    white-space: nowrap;
}

    .hero-cta-button:hover {
        background-color: #007ab8;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 150, 210, 0.4);
        color: white;
    }

.cta-label {
    font-size: 1.1rem;
    color: var(--stfm-primary);
    font-weight: 600;
    white-space: nowrap;
}

.hero-image-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
}

    .hero-image-container img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
        max-height: 450px;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    }

/* Hide image on tablets in portrait mode */
@media screen and (max-width: 1024px) and (orientation: portrait) {
    .hero-section {
        min-height: 350px;
    }

    .hero-image-container {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        justify-content: center;
        padding-left: 5rem;
        padding-right: 2rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-text {
        max-width: none;
    }

    .hero-main-headline {
        max-width: none;
    }

    .hero-subheadline {
        max-width: none;
    }

    .subtext-with-background::after {
        left: 0;
        margin-left: -50px;
    }

    .hero-cta-container {
        width: 90%;
    }
}

/* iPad Pro specific adjustments in portrait mode */
@media screen and (min-width: 1000px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-text {
        max-width: 800px;
    }
}

/* Landscape tablets - add padding and constrain image width */
@media screen and (min-width: 768px) and (max-width: 1400px) and (orientation: landscape) {
    .hero-section {
        min-height: 400px;
    }

    .hero-container {
        padding-left: 5rem;
        padding-right: 2rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-image-container img {
        max-width: 85%;
    }

    .subtext-with-background::after {
        margin-left: -50px;
    }
}

/* Phone landscape - override tablet landscape rule */
@media screen and (min-width: 768px) and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 320px;
    }

    .hero-image-container {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .hero-text {
        max-width: none;
    }

    .hero-main-headline {
        max-width: none;
    }

    .hero-subheadline {
        max-width: none;
    }

    .hero-cta-container {
        width: 90%;
    }

    /* Hide overflow-causing decorative underline for phone landscape */
    .hero-cta-container {
        width: 85% !important;
    }
}

/* Phone portrait - add padding and stack CTA vertically */
@media screen and (max-width: 500px) and (orientation: portrait) {
    .hero-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-cta-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .subtext-with-background::after {
        bottom: -25px;
        width: 300px;
        height: 150px;
    }
}

/****** HERO SECTION END ********/




/************************************************/
/****** Highlights and Top Stories Start ********/
/************************************************/

.highlights-stories-section {
    background-color: #ffffff;
    padding: 3rem 0 3rem;
}

.highlights-stories-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.program-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.program-card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
}

.program-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--stfm-primary) 0%, var(--stfm-tertiary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
}

    .program-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.program-content {
    padding: 1.25rem 0 1.25rem 0;
}

.program-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: 2.5rem;
}

.top-stories-sidebar {
    position: relative;
}

    .top-stories-sidebar h2 {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--stfm-primary);
        margin-bottom: 1rem;
    }

    .top-stories-sidebar::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 8px; /* Leave space for scrollbar */
        height: 60px;
        background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
        pointer-events: none;
        z-index: 1;
    }

.top-stories-list {
    max-height: 210px;
    overflow-y: auto;
    position: relative;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
    z-index: 0;
}

    .top-stories-list:hover {
        scrollbar-color: #d0d0d0 transparent;
    }

    /* Webkit browsers (Chrome, Safari, Edge) */
    .top-stories-list::-webkit-scrollbar {
        width: 6px;
    }

    .top-stories-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .top-stories-list::-webkit-scrollbar-thumb {
        background-color: transparent;
        border-radius: 3px;
        transition: background-color 0.3s ease;
    }

    .top-stories-list:hover::-webkit-scrollbar-thumb {
        background-color: #d0d0d0;
    }

    .top-stories-list::-webkit-scrollbar-thumb:hover {
        background-color: #b0b0b0;
    }

.top-stories-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    align-items: flex-start;
}

    .top-stories-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .top-stories-item a {
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .top-stories-item:hover h3 {
        color: var(--stfm-tertiary);
    }

.top-stories-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e0e0e0;
    min-width: 45px;
    flex-shrink: 0;
}

.top-stories-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--stfm-primary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.top-stories-content p {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

/* Tablet landscape - add padding and reduce gap to prevent clipping */
@media screen and (min-width: 992px) and (max-width: 1366px) and (orientation: landscape) {
    .highlights-stories-container {
        padding: 0 2rem;
    }

    .program-cards-grid {
        gap: 1rem;
    }
}

@media (max-width: 991px) {
    .highlights-stories-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .program-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet portrait - keep 3-card row layout but stack sections vertically - MUST come after 991px rule to override */
@media screen and (min-width: 700px) and (max-width: 1024px) and (orientation: portrait) {
    .highlights-stories-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 2rem !important;
    }

    .program-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.8rem !important;
    }
}

/* Phone landscape - keep 3-card row layout but stack sections vertically */
@media screen and (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
    .highlights-stories-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }

    .program-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }

    /* Events section - stack initiatives above upcoming events */
    .events-section {
        padding: 40px 20px; /* Add padding for phones */
    }

    .events-container {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 30px !important; /* Space between stacked sections */
    }


    /* Tighten up initiative cards for phone landscape */
    .initiative-card {
        height: 100px !important; /* Reduce from 140px to 100px */
        margin-left: 0 !important; /* Remove staggered margins */
        margin-right: 0 !important; /* Remove staggered margins */
    }

    .initiative-icon-section {
        min-width: 70px !important; /* Reduce from 90px to 70px */
        max-width: 70px !important; /* Reduce from 90px to 70px */
        padding: 15px !important; /* Reduce from 20px to 15px */
    }

    .initiative-icon {
        font-size: 32px !important; /* Reduce from 40px to 32px */
    }

    .initiative-content {
        padding: 12px 18px !important; /* Reduce from 16px 24px to 12px 18px */
    }

    .initiatives-wrapper {
        gap: 15px !important; /* Reduce gap between cards from 20px to 15px */
    }

    /* Additional overflow fixes for phone landscape */
    .hero-cta-container {
        width: 85% !important; /* Override base 125% width */
    }
}

/* Phone portrait - add padding and constrain card aspect ratio */
@media screen and (max-width: 500px) and (orientation: portrait) {
    .highlights-stories-container {
        padding: 0 1.5rem !important;
        gap: 1.5rem !important;
    }

    .program-cards-grid {
        gap: 1rem !important;
    }

    .program-card {
        max-width: 280px !important;
        margin: 0 auto !important;
    }

    .program-image {
        height: 140px !important;
    }

    /* Hide the colored icon section completely for phone portrait */
    .initiative-icon-section {
        display: none !important; /* Remove colored section and icon entirely */
    }

    /* Remove gradient background for phone portrait - use solid white */
    .events-section {
        background: #ffffff !important; /* Simple white background instead of gradient */
    }
}

/****** Highlights and Top Stories END **********/




/************************************************/
/** Hub Careers Section - REMOVED *****/
/************************************************/


/* iPad Air landscape - prevent right-side label clipping */
@media (max-width: 1199px) and (min-width: 993px) and (orientation: landscape) {
    /* Events section adjustments for smaller tablets */
    .events-section {
        padding: 50px 40px; /* Add extra left/right padding */
    }

    .events-container {
        grid-template-columns: 1.22fr 1fr; /* Change from 60/40 to 55/45 ratio */
        gap: 45px; /* Reduce gap from 60px to 45px */
    }
}




/* ========== STFM Connect Styles START ========== */

.connect-section {
    background: linear-gradient(135deg, #1d417b 0%, #2d6ba6 50%, #4a90c9 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.connect-container {
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 400px; /* Reduced from 500px */
    position: relative;
}

.connect-content {
    color: white;
    z-index: 2;
    padding: 60px 10px 60px 120px;
    margin-right: -50px; /* Push further into image */
    z-index: 3; /* Higher than image's z-index of 1 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.connect-heading {
    font-size: 44px; /* Increased from 42px to 44px */
    font-weight: 700;
    margin-bottom: 32px;
    line-height: 1.2;
    text-transform: none;
    color: #ffffff;
    letter-spacing: 1px; /* Added letter spacing */
}

/* Responsive nowrap - only applies on large screens */
.nowrap {
    white-space: normal; /* Allow wrapping by default */
}

/* Apply nowrap only on large screens (1200px and up) */
@media (min-width: 1200px) {
    .nowrap {
        white-space: nowrap;
    }
}

.connect-subheading {
    font-size: 14px; /* Increased from 13px */
    line-height: 1.8;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.subheading-line:first-child {
    font-size: 17px; /* Increased from 16px */
    font-weight: 600;
}

.subheading-line {
    display: block;
}

.product-highlight {
    color: #f7941d; /* STFM orange */
    font-weight: 700;
}

.connect-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduced from 16px to 12px */
    max-width: 350px;
    width: 100%;
}

.btn-connect-primary {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px; /* Added slight border radius */
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    border: none;
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    backdrop-filter: blur(8px);
}

    .btn-connect-primary:hover {
        background-color: rgba(255, 255, 255, 0.35);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.connect-image {
    position: relative;
    z-index: 1;
    overflow: visible;
}

    .connect-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 0; /* Remove any border radius */
        mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 10%, rgba(0,0,0,0.2) 15%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,0.6) 25%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.9) 35%, black 40%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 10%, rgba(0,0,0,0.2) 15%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,0.6) 25%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.9) 35%, black 40%);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .connect-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .connect-content {
        padding: 60px 30px;
    }

    .connect-heading {
        font-size: 32px;
    }

    .connect-subheading {
        font-size: 16px;
    }

    .connect-buttons {
        max-width: 100%;
    }

    .connect-image {
        min-height: 300px;
    }

        .connect-image img {
            mask-image: none;
            -webkit-mask-image: none;
        }
}

/* Smaller tablets landscape (iPad Pro 11", iPad Air, etc.) */
@media screen and (min-width: 1024px) and (max-width: 1199px) and (orientation: landscape) {
    .connect-container {
        grid-template-columns: 6fr 4fr; /* Give text more space - 60/40 ratio */
    }

    .connect-content {
        padding: 45px 10px 45px 40px; /* Significantly reduce left padding */
        margin-right: -20px; /* Minimal overlap into image space */
    }

    .connect-heading {
        font-size: 36px; /* Smaller for tighter space */
    }

    .connect-subheading {
        font-size: 13px; /* Slightly smaller */
    }

    .subheading-line:first-child {
        font-size: 16px; /* Adjust proportionally */
    }

    .connect-buttons {
        gap: 14px; /* Good touch targets but not excessive */
        max-width: 300px; /* Narrower for smaller screens */
    }

    .connect-image img {
        mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 5%, rgba(0,0,0,0.2) 10%, rgba(0,0,0,0.4) 15%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.8) 25%, rgba(0,0,0,0.9) 30%, black 35%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 5%, rgba(0,0,0,0.2) 10%, rgba(0,0,0,0.4) 15%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.8) 25%, rgba(0,0,0,0.9) 30%, black 35%);
    }

    .top-stories-container {
        padding: 0 40px !important;
    }
}

/* iPad Pro 12.9" and similar tablet landscape styles */
@media screen and (min-width: 1200px) and (max-width: 1366px) and (orientation: landscape) {
    .connect-container {
        grid-template-columns: 4fr 6fr; /* Give image more space - 40/60 ratio */
    }

    .connect-content {
        padding: 50px 10px 50px 80px; /* Reduce left padding */
        margin-right: -30px; /* Reduce overlap into image space */
    }

    .connect-heading {
        font-size: 38px; /* Slightly smaller than desktop */
    }

    .connect-buttons {
        gap: 16px; /* Increase spacing for better touch targets */
        max-width: 320px; /* Slightly narrower */
    }

    .connect-image img {
        mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 8%, rgba(0,0,0,0.2) 12%, rgba(0,0,0,0.4) 16%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.8) 25%, rgba(0,0,0,0.9) 30%, black 35%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 8%, rgba(0,0,0,0.2) 12%, rgba(0,0,0,0.4) 16%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.8) 25%, rgba(0,0,0,0.9) 30%, black 35%);
    }

    .top-stories-container {
        padding: 0 50px !important;
    }
}

/* Phone Portrait Mode - Hide image, text takes full width */
@media screen and (max-width: 767px) and (max-height: 1024px) and (orientation: portrait) {
    .connect-container {
        grid-template-columns: 1fr !important; /* Single column - text takes full width */
    }

    .connect-image {
        display: none !important; /* Hide image completely on phones */
    }

    .connect-content {
        margin-right: 0 !important; /* Remove any overlap */
        text-align: center;
    }
}

/* Phone Landscape Mode - Hide image, text takes full width */
@media screen and (max-width: 926px) and (max-height: 767px) and (orientation: landscape) {
    .connect-container {
        grid-template-columns: 1fr !important; /* Single column - text takes full width */
    }

    .connect-image {
        display: none !important; /* Hide image completely on phones */
    }

    .connect-content {
        margin-right: 0 !important; /* Remove any overlap */
        text-align: center;
        padding: 40px 30px;
    }

    .connect-heading {
        font-size: 28px; /* Smaller for landscape */
    }

    .connect-buttons {
        gap: 12px; /* Tighter spacing for landscape */
    }
}

/* Tablet Portrait Mode - Hide image, text takes full width */
@media screen and (min-width: 768px) and (max-width: 1366px) and (orientation: portrait) {
    .connect-container {
        grid-template-columns: 1fr; /* Single column layout */
        min-height: 300px;
    }

    .connect-content {
        padding: 50px 40px; /* Centered padding */
        margin-right: 0; /* No overlap needed */
        text-align: center;
    }

    .connect-heading {
        font-size: 40px;
    }

    .connect-subheading {
        font-size: 14px;
    }

    .subheading-line:first-child {
        font-size: 17px;
    }

    .connect-buttons {
        max-width: 400px; /* Wider buttons for portrait */
        margin: 0 auto;
    }

    .connect-image {
        display: none; /* Hide image completely in portrait */
    }
}

/* ========== STFM Connect Styles END ========== */

/* ========== Upcoming Events Section START ========== */
.events-section {
    background: linear-gradient(90deg, rgba(29, 65, 123, 0.08) 0%, /* Very light primary blue tint - 8% opacity */
    rgba(0, 150, 210, 0.05) 35%, /* Very light tertiary blue tint - 5% opacity */
    rgba(255, 255, 255, 0.5) 55%, /* Faded white */
    #ffffff 75%, /* Pure white */
    #ffffff 100%);
    padding: 50px 20px;
}

.events-container {
    position: relative;
    z-index: 1;
    max-width: 1450px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start; /* Align to top */
}

.events-left,
.events-right {
    display: flex;
    flex-direction: column;
    height: 100%;
}



.initiatives-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* By the Numbers - Height Matching and Content Centering */
.by-the-numbers {
    height: 100%;
    display: flex;
    align-items: center;
}

.key-initiatives-right {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Anchor Cards Layout */
.anchor-cards-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: stretch; /* Make all cards same height */
}

.anchor-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 200px;
    height: 100%; /* Fill available height */
}

.anchor-card-content {
    padding: 50px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the content */
    background: white;
    min-height: 180px; /* Ensure adequate content height */
    position: relative;
    overflow: hidden; /* Hide overflowing watermark parts */
}

.anchor-card-number {
    font-size: 48px;
    font-weight: 700;
    color: #1d417b; /* Dark blue matching Key Initiatives header */
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.anchor-card-label {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.3;
    margin: 0;
}

.anchor-card-footer {
    height: 105px; /* Increased by 10% from 95px */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.anchor-card-icon {
    font-size: 40px; /* Match Key Initiatives icon size */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Watermark effects - now using HTML elements instead of pseudo-elements */
.watermark-icon {
    position: absolute;
    top: 32px;
    right: -18px;
    font-size: 127px;
    opacity: 0.1;
    transform: rotate(-15deg);
    z-index: 0;
}

/* Card-specific watermark colors */
.watermark-icon-1 {
    color: #1d417b; /* Dark Blue */
    opacity: 0.06; /* Lower opacity for darker color */
}

.watermark-icon-2 {
    color: #0096d2; /* Light Blue */
    opacity: 0.1;
}

.watermark-icon-3 {
    color: #f97316; /* Orange */
    opacity: 0.1;
}

/* Ensure text appears above watermarks */
.anchor-card-number,
.anchor-card-label {
    position: relative;
    z-index: 1;
}

/* Color scheme for each card footer */
.anchor-card-1 .anchor-card-footer {
    background-color: #1d417b; /* Dark Blue */
}

.anchor-card-2 .anchor-card-footer {
    background-color: #0096d2; /* Light Blue */
}

.anchor-card-3 .anchor-card-footer {
    background-color: #f97316; /* Orange */
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Stack anchor cards vertically on mobile */
    .anchor-cards-container {
        flex-direction: column;
        gap: 20px;
    }

    .anchor-card {
        max-width: 100%;
        width: 100%;
    }
}
/* ========== Upcoming Events Section END ========== */



/* ========== Key Initiatives Section START ========== */
.initiatives-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #1d417b;
    margin-bottom: 30px;
    text-align: left;
}

.initiatives-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.initiative-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    height: 140px;
    position: relative;
}

    /* Staggered positioning */
    .initiative-card.initiative-1 {
        margin-left: 0;
        margin-right: 80px;
    }

    .initiative-card.initiative-2 {
        margin-left: 80px;
        margin-right: 0;
    }

    .initiative-card.initiative-3 {
        margin-left: 0;
        margin-right: 80px;
    }

    .initiative-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

a.initiative-card {
    text-decoration: none;
}

a.initiative-card:hover {
    text-decoration: none;
}

.initiative-icon-section {
    min-width: 90px;
    max-width: 90px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

/* Color-specific backgrounds for each initiative */
.initiative-1 .initiative-icon-section {
    background-color: #1d417b; /* Primary Blue */
}

.initiative-2 .initiative-icon-section {
    background-color: #0096D2; /* Tertiary Blue */
}

.initiative-3 .initiative-icon-section {
    background-color: #ef8d2b; /* Secondary Orange */
}

.initiative-icon {
    font-size: 40px;
}

.initiative-content {
    flex: 1;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Very subtle tinted backgrounds matching the icon section */
.initiative-1 .initiative-content {
    background-color: rgba(29, 65, 123, 0.03);
}

.initiative-2 .initiative-content {
    background-color: rgba(0, 150, 210, 0.03);
}

.initiative-3 .initiative-content {
    background-color: rgba(239, 141, 43, 0.03);
}

.initiative-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d417b;
    margin-bottom: 8px;
    line-height: 1.2;
}

.initiative-description {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .initiatives-heading {
        font-size: 28px;
    }

    .initiative-card {
        flex-direction: column;
        height: auto;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .initiative-icon-section {
        min-width: 100%;
        max-width: 100%;
        padding: 20px;
    }

    .initiative-icon {
        font-size: 36px;
    }

    .initiative-content {
        padding: 15px 20px;
    }
}
/* ========== Key Initiatives Section END ========== */

/* iPad Pro 12.9" Landscape - Events Section Adjustments */
@media screen and (width: 1366px) and (height: 1024px) and (orientation: landscape) {
    .events-section {
        padding: 50px 40px; /* Add extra left/right padding */
    }

    .events-container {
        grid-template-columns: 1.22fr 1fr; /* Change from 60/40 to 55/45 ratio */
        gap: 45px; /* Reduce gap from 60px to 45px */
    }


    .top-stories-container {
        padding: 0 40px !important;
    }
}

/* iPad Pro 11" Landscape - Events Section Adjustments */
@media screen and (width: 1194px) and (height: 834px) and (orientation: landscape) {
    .events-section {
        padding: 50px 40px; /* Add extra left/right padding */
    }

    .events-container {
        grid-template-columns: 1.22fr 1fr; /* Change from 60/40 to 55/45 ratio */
        gap: 45px; /* Reduce gap from 60px to 45px */
    }


    .top-stories-container {
        padding: 0 40px !important;
    }
}

/* iPad Air Landscape - Events Section Adjustments */
@media screen and (width: 1180px) and (height: 820px) and (orientation: landscape) {
    .events-section {
        padding: 50px 40px; /* Add extra left/right padding */
    }

    .events-container {
        grid-template-columns: 1.22fr 1fr; /* Change from 60/40 to 55/45 ratio */
        gap: 45px; /* Reduce gap from 60px to 45px */
    }


    .top-stories-container {
        padding: 0 40px !important;
    }
}

/* iPad Pro 12.9" Portrait - Stack sections vertically */
@media screen and (width: 1024px) and (height: 1366px) and (orientation: portrait) {
    .events-section {
        padding: 50px 40px; /* Add left/right padding */
    }

    .events-container {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 40px !important; /* Space between stacked sections */
    }


    .top-stories-card {
        flex: 0 0 calc(50% - 15px) !important;
    }
}

/* iPad Pro 11" Portrait - Stack sections vertically */
@media screen and (width: 834px) and (height: 1194px) and (orientation: portrait) {
    .events-section {
        padding: 50px 30px; /* Add left/right padding */
    }

    .events-container {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 40px !important; /* Space between stacked sections */
    }
}

/* iPad Air Portrait - Stack sections vertically */
@media screen and (width: 820px) and (height: 1180px) and (orientation: portrait) {
    .events-section {
        padding: 50px 30px; /* Add left/right padding */
    }

    .events-container {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 40px !important; /* Space between stacked sections */
    }
}


html {
    font-size: 15px;
}

/* ========== HORIZONTAL OVERFLOW FIXES ========== */
/* These are placed at the end to ensure high cascade priority */

/* Phone Portrait - Fix horizontal overflow */
@media screen and (max-width: 500px) and (orientation: portrait) {
    .hero-cta-container {
        width: 85% !important;
    }
}

/* Tablet Portrait - Fix horizontal overflow */
@media screen and (min-width: 501px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-cta-container {
        width: 90% !important;
    }
}

/* Tablet Landscape - Fix horizontal overflow */
@media screen and (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) and (min-height: 501px) {
    .hero-cta-container {
        width: 90% !important;
    }
}

/* ========== AGGRESSIVE OVERFLOW FIXES ========== */
/* More specific and aggressive fixes for remaining issues */

/* Phone Portrait - More aggressive fix */
@media screen and (max-width: 500px) and (orientation: portrait) and (max-height: 1000px) {
    .hero-cta-container {
        width: 75% !important;
    }
}

/* Tablet Landscape - More specific and aggressive */
@media screen and (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) and (min-height: 700px) {
    .hero-cta-container {
        width: 80% !important;
    }
}

/* iPad specific landscape targeting */
@media screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .hero-cta-container {
        width: 75% !important;
    }
}

/* ========== RANGE-BASED DEVICE FIXES ========== */
/* Use narrow ranges instead of exact dimensions for better compatibility */

/* iPhone Portrait Devices - targeting 375-390px width range */
@media screen and (min-width: 370px) and (max-width: 395px) and (orientation: portrait) {
    .hero-cta-container {
        width: 70% !important;
    }

    .subtext-with-background::after {
        width: 180px !important;
        margin-left: -30px !important;
    }
}

/* iPad Landscape Devices - targeting 1180-1366px width range */
@media screen and (min-width: 1170px) and (max-width: 1370px) and (orientation: landscape) and (min-height: 800px) {
    .hero-cta-container {
        width: 70% !important;
    }
}

/* ========== SIMPLE DIRECT APPROACH ========== */
/* Copy the working phone landscape approach exactly */

/* Phone Portrait - Copy working phone landscape approach */
@media screen and (max-width: 500px) and (orientation: portrait) {
    .hero-image-container {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .hero-text {
        max-width: none;
    }

    .hero-main-headline {
        max-width: none;
    }

    .hero-subheadline {
        max-width: none;
    }

    .hero-cta-container {
        width: 70% !important;
    }

    .subtext-with-background::after {
        display: none !important;
    }
}

/* Tablet Landscape - Simple broad targeting */
@media screen and (min-width: 1000px) and (max-width: 1399px) and (orientation: landscape) {
    .hero-cta-container {
        width: 70% !important;
    }
}

/* iPad Pro 12.9" Landscape - Special case for better CTA flow */
@media screen and (width: 1366px) and (height: 1024px) and (orientation: landscape) {
    .hero-cta-container {
        width: 120% !important;
    }
}

/* iPad Pro 11" Landscape - Better CTA flow */
@media screen and (width: 1194px) and (height: 834px) and (orientation: landscape) {
    .hero-cta-container {
        width: 115% !important;
    }
}

/* iPad Air Landscape - Better CTA flow */
@media screen and (width: 1180px) and (height: 820px) and (orientation: landscape) {
    .hero-cta-container {
        width: 115% !important;
    }
}

/* ========== News Carousel Section START ========== */


.top-stories-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 15px;
}

.top-stories-carousel-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.top-stories-carousel-heading {
    font-family: var(--stfm-heading-font); /* Match other section headers */
    font-size: clamp(1.5rem, 3vw, 2rem); /* Match tabbed-interface-title size */
    font-weight: 700;
    color: var(--stfm-primary); /* Match other section headers */
    text-align: left; /* Left align like other sections */
    margin-bottom: 2rem; /* Match other section margins */
}

.carousel-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.top-stories-carousel-container {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin: -20px 0;
}

.top-stories-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    padding: 0;
}

.top-stories-card {
    flex: 0 0 calc(33.333% - 20px);
    border-radius: 6px;
    padding: 25px 24px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 300px;
    cursor: pointer;
    position: relative;
}

    /* Subtle background colors rotating through brand colors */
    .top-stories-card:nth-child(3n+1) {
        background-color: rgba(29, 65, 123, 0.06);
    }

    .top-stories-card:nth-child(3n+2) {
        background-color: rgba(247, 148, 29, 0.06);
    }

    .top-stories-card:nth-child(3n+3) {
        background-color: rgba(0, 150, 210, 0.06);
    }

    .top-stories-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

.top-stories-date-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: white;
}

    .top-stories-date-badge.blue-card {
        background-color: #4a6fa5;
    }

    .top-stories-date-badge.orange-card {
        background-color: #d67a1f;
    }

    .top-stories-date-badge.light-blue-card {
        background-color: #0077a8;
    }

.top-stories-card-title {
    font-family: var(--stfm-heading-font);
    font-size: 21px;
    font-weight: 700;
    color: #1d417b;
    margin-bottom: 12px;
    line-height: 1.3;
    text-align: left;
}

.top-stories-card-description {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    text-align: left;
    flex-grow: 1;
}

.top-stories-card-link {
    padding-top: 0;
    color: #1d417b;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .top-stories-card-link:hover {
        color: #f7941d;
        gap: 12px;
    }

    .top-stories-card-link i {
        font-size: 12px;
    }

/* Navigation Controls */
.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.carousel-nav-link {
    background: none;
    border: none;
    color: #1d417b;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}

    .carousel-nav-link:hover:not(:disabled) {
        color: #f7941d;
    }

    .carousel-nav-link:disabled {
        color: #cccccc;
        cursor: not-allowed;
        opacity: 0.5;
    }

    .carousel-nav-link i {
        font-size: 12px;
    }

.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

    .pagination-dot:hover {
        background-color: #7b9bc7;
    }

    .pagination-dot.active {
        background-color: #1d417b;
    }

/* Responsive Design */
@media (max-width: 992px) {
    .top-stories-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .top-stories-carousel-section {
        padding: 50px 0;
    }

    .top-stories-carousel-heading {
        font-size: 32px;
        margin-bottom: 35px;
    }

    .top-stories-card {
        flex: 0 0 100%;
        min-height: auto;
    }

    .top-stories-card-title {
        font-size: 19px;
    }

    .carousel-wrapper {
        margin-bottom: 25px;
    }

    .top-stories-carousel-track {
        gap: 20px;
    }

    .carousel-navigation {
        gap: 20px;
    }

    .carousel-nav-link {
        font-size: 14px;
    }
}
/* ========== News Carousel Section END ========== */


/* Phone Portrait - Final CTA improvement for full width stacked layout */
@media screen and (max-width: 500px) and (orientation: portrait) {
    .hero-cta-container {
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
}


/* ==================== TABBED INTERFACE SECTION CSS ==================== */

.tabbed-interface-section {
    padding: 4rem 0 5rem 0;
    position: relative;
    overflow: hidden; /* Contain background pseudo-element */
}

/* Full-width background using pseudo-element instead of 100vw technique */
.tabbed-interface-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100vw; /* Extend far left */
    right: -100vw; /* Extend far right */
    bottom: 0;
    background: linear-gradient(to right, #f5f9fc 0%, #f0f6fb 25%, #ebf3fa 50%, #f0f6fb 75%, #f5f9fc 100%);
    z-index: -1; /* Behind content */
}

.tabbed-interface-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 20px; /* Base padding for all sizes */
}

/* Remove iPad Pro fix from here - will be added after all responsive rules */

/* Enhanced responsive padding for different devices */
@media (max-width: 768px) {
    .tabbed-interface-container {
        padding: 0 15px; /* Tighter padding on mobile */
    }
}

@media (max-width: 480px) {
    .tabbed-interface-container {
        padding: 0 10px; /* Even tighter on small phones */
    }
}

.tabbed-interface-header {
    text-align: left;
    margin-bottom: 2rem;
}

.tabbed-interface-title {
    font-family: var(--stfm-heading-font);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--stfm-primary);
    margin-bottom: 0.5rem;
}

.tabbed-interface-subtitle {
    font-family: var(--stfm-body-font);
    font-size: 1rem;
    color: #5f6368;
    margin-bottom: 2rem;
}

.tabs-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.tab-item {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 150, 210, 0.15);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from space-between to flex-start for consistent left alignment */
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--stfm-text);
    font-family: var(--stfm-body-font);
    font-size: 1rem; /* Increased from 0.85rem for better readability */
    font-weight: 700;
    min-height: 72px;
    width: 100%;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

    .tab-item:hover {
        background: rgba(255, 255, 255, 1);
        border-color: rgba(0, 150, 210, 0.3);
        transform: translateY(-2px);
        color: var(--stfm-text);
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .tab-item.active {
        background: #ffffff;
        border-color: rgba(0, 150, 210, 0.3);
        box-shadow: 0 8px 24px rgba(0, 150, 210, 0.15);
        color: var(--stfm-primary);
        transform: translateY(-3px);
    }

.tab-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    object-fit: contain;
}


.tab-text {
    font-size: 1rem; /* Match the tab-item font size */
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left; /* Ensure left alignment */
}

.content-area {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    display: flex;
}

.content-panel {
    display: none;
    width: 100%;
    height: 100%;
}

    .content-panel.active {
        display: flex;
    }

.content-main {
    flex: 2;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    position: relative;
    margin-right: 0.5rem;
}

.content-sidebar {
    flex: 1;
    padding: 40px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-left: 0;
}

.content-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    margin-top: -1rem;
    margin-left: 1rem;
    font-family: var(--stfm-heading-font);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--stfm-primary);
    align-self: flex-start;
    width: calc(100% - 2rem);
}

    .content-header-brand i {
        font-size: 0.9rem;
        color: white;
        background: var(--stfm-tertiary);
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        flex-shrink: 0;
    }

.content-image {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 12px;
}

.content-title {
    font-family: var(--stfm-heading-font);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--stfm-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.content-subtitle {
    font-family: var(--stfm-body-font);
    font-size: 0.95rem;
    color: var(--stfm-tertiary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.content-description {
    font-family: var(--stfm-body-font);
    font-size: 1rem;
    color: var(--stfm-text);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.content-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-icon {
    color: var(--stfm-secondary);
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.feature-text {
    font-family: var(--stfm-body-font);
    font-size: 0.85rem;
    color: var(--stfm-text);
    line-height: 1.5;
}

.content-cta {
    display: flex;
    justify-content: flex-start;
}

.cta-button-primary {
    background-color: transparent;
    color: var(--stfm-tertiary);
    font-family: var(--stfm-body-font);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border: 2px solid var(--stfm-tertiary);
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    width: auto;
    min-width: 180px;
}

    .cta-button-primary:hover {
        background-color: var(--stfm-tertiary);
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 150, 210, 0.4);
    }

/* Responsive Design */
@media (max-width: 992px) {
    .tabs-container {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 1fr;
        gap: 12px;
    }

    .tab-text {
        font-size: 0.95rem; /* Keep closer to base size */
    }

    .content-panel {
        flex-direction: column;
    }

    .content-main {
        flex: none;
        padding: 1.5rem;
    }

    .content-sidebar {
        flex: none;
        border-left: none;
        border-top: 1px solid #e9ecef;
        padding: 1.5rem;
    }

    .content-image {
        height: 300px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .tabs-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
        gap: 10px;
    }

    .tab-item {
        padding: 0.75rem; /* Increased from 0.5rem */
        min-height: 60px; /* Increased from 50px for better touch targets */
        /* Keep horizontal layout - removed flex-direction: column */
        justify-content: flex-start; /* Maintain left alignment */
        align-items: center; /* Ensure vertical centering is maintained */
        text-align: left; /* Keep left alignment */
        gap: 0.5rem; /* Increased gap */
    }

    .tab-text {
        font-size: 0.95rem; /* Keep much closer to desktop size for consistency */
        white-space: normal; /* Allow wrapping if needed */
        text-align: left; /* Changed from center to left */
        line-height: 1.3; /* Slightly increased for better multi-line spacing */
        display: flex; /* Make text element a flex container */
        align-items: center; /* Center the text content vertically */
        min-height: inherit; /* Inherit height from parent for proper centering */
    }

    .content-main {
        padding: 1rem;
    }

    .content-sidebar {
        padding: 1rem;
    }

    .content-image {
        height: 250px;
    }

    .content-title {
        font-size: 1.3rem;
    }
}

/* Very small screens - only then use column layout if absolutely necessary */
@media (max-width: 480px) {
    .tab-item {
        padding: 0.5rem;
        min-height: 50px;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .tab-text {
        font-size: 0.9rem; /* Even on very small screens, keep readable size */
        text-align: center;
    }
}

/* Specific fix for iPad Pro portrait mode (1024x1366) to prevent cramped 6-column layout */
/* This needs to come AFTER all other responsive rules to have proper cascade priority */
@media screen and (min-width: 1000px) and (max-width: 1100px) {
    .tabbed-interface-section .tabbed-interface-container {
        padding: 0 40px !important;
    }
    
    .tabbed-interface-section .tabs-container {
        grid-template-columns: repeat(3, 1fr) !important;
        grid-auto-rows: 1fr !important;
        gap: 12px !important;
    }
}

/* ==================== END TABBED INTERFACE SECTION CSS ==================== */


/* ======================================================= */
/* === Offerings Section - Inspired Card Design (NEW) === */
/* ======================================================= */

.offerings {
    padding: 4rem 0;
    background: linear-gradient(90deg, rgba(29, 65, 123, 0.8) 0%, var(--stfm-primary-blue) 50%, rgba(29, 65, 123, 0.8) 100%);
    position: relative;
}

.offerings .container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 20px; /* Add padding back for responsive margins */
}

    .offerings .section-title {
        text-align: center;
        margin-bottom: var(--spacing-xxl);
        position: relative;
        color: white; /* White title for contrast */
        font-size: 2rem;
        font-weight: 700;
    }

        .offerings .section-title:after {
            content: '';
            display: block;
            width: 60px;
            height: 3px;
            background-color: var(--gold); /* Gold underline */
            margin: var(--spacing-sm) auto 0;
        }

/* Using original grid class name - Updated for shorter cards */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Slightly wider for better proportions */
    gap: 30px;
    align-items: stretch; /* Make cards in a row equal height */
}

/* Better responsive grid control */
@media (max-width: 1200px) {
    .offerings-grid {
        grid-template-columns: repeat(3, 1fr); /* Force 3 columns on medium screens */
        gap: 25px;
    }
}

/* iPad specific: force 4 columns to avoid orphaned cards */
@media (min-width: 1000px) and (max-width: 1300px) {
    .offerings-grid {
        grid-template-columns: repeat(4, 1fr); /* Force exactly 4 columns on iPad */
        gap: 20px; /* Slightly smaller gap to fit better */
    }
}

@media (max-width: 900px) {
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns on tablets */
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .offerings-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    
    .offerings .container {
        padding: 0 15px; /* Tighter padding on mobile */
    }
}

/* New Inspired Card Style */
.offering-card-inspired {
    background-color: #ffffff; /* Clean white background */
    color: var(--dark-gray); /* Dark text */
    border-radius: 6px; /* Reduced border radius */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Needed for align-items: stretch on grid */
    overflow: hidden; /* Contain content */
    text-decoration: none; /* Remove default link styling */
    cursor: pointer;
    position: relative; /* For pseudo-element inset border */
}

    .offering-card-inspired:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
        text-decoration: none; /* Ensure no underline on hover */
    }


/* Image Container */
.card-image-container {
    width: 100%;
    text-align: center; /* Center the image */
    padding: var(--spacing-lg) var(--spacing-lg) 0; /* Padding around image */
    background-color: transparent; /* Ensure container doesn't block image transparency */
}

    .card-image-container img {
        max-width: 90%; /* Adjust based on illustration size */
        height: auto;
        max-height: 180px; /* Control max image height */
        display: inline-block; /* Allows centering */
        margin-bottom: var(--spacing-sm); /* Space below image */
    }

/* Content Area - Redesigned for left-aligned layout with watermark icons */
.card-content {
    padding: 2.5rem 2rem; /* Generous padding for content */
    flex-grow: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left align content horizontally */
    justify-content: space-between; /* Push button to bottom */
    text-align: left; /* Left align text */
    min-height: 200px; /* Ensure consistent minimum height */
    position: relative; /* For watermark icon positioning */
    overflow: hidden; /* Hide watermark icon overflow */
}

/* Left-aligned title styling with watermark icons */
.card-title-centered {
    font-family: var(--stfm-heading-font); /* Use STFM heading font */
    font-size: 1.6rem; /* Reduced size for better text wrapping */
    font-weight: 300; /* Lighter weight to reduce visual bulk */
    color: var(--stfm-primary-blue); /* Primary blue color */
    margin: 0; /* Remove default margins */
    line-height: 1.2;
    text-align: left; /* Left align text */
    flex-grow: 1; /* Allow title to take available space */
    display: flex;
    align-items: flex-start; /* Align title to top of its space */
    justify-content: flex-start; /* Left align title */
    position: relative; /* For proper stacking with watermark */
    z-index: 2; /* Above watermark icon */
}

    /* Title Color Variations */
    .card-title.title-color-1 {
        color: var(--primary-blue);
    }

    .card-title.title-color-2 {
        color: var(--gold);
    }

    .card-title.title-color-3 {
        color: var(--primary-blue);
    }

    .card-title.title-color-4 {
        color: var(--gold);
    }


.card-content p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1; /* Push link down */
    opacity: 0.9;
}

/* Button Styling - Less prominent, inspired by sh27.png */
.card-cta-button {
    padding: 0.625rem 1.5rem; /* Smaller padding for less prominence */
    font-family: var(--stfm-body-font);
    font-size: 0.8rem; /* Smaller font size */
    font-weight: 600; /* Increased weight for better readability */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px; /* Subtle rounding like sh27.png */
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 140px; /* Reduced width */
    text-align: center;
    align-self: flex-start; /* Left align button */
    position: relative; /* For proper stacking with watermark */
    z-index: 2; /* Above watermark icon */
}

/* Rotating button colors based on brand palette */
.btn-dark-blue {
    background-color: var(--stfm-primary-blue); /* #1d417b */
    color: white;
}

.btn-dark-blue:hover {
    background-color: #2a5a94; /* Lighter shade of dark blue */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 65, 123, 0.3);
}

.btn-light-blue {
    background-color: var(--light-blue); /* #0096d4 */
    color: white;
}

.btn-light-blue:hover {
    background-color: #1ba3e0; /* Slightly lighter */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 150, 212, 0.3);
}

.btn-orange {
    background-color: var(--stfm-secondary); /* #ef8d2b - STFM brand orange */
    color: white;
}

.btn-orange:hover {
    background-color: #f29d42; /* Lighter shade of STFM orange */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 141, 43, 0.3);
}

/* Watermark icons for offering cards - inspired by anchor cards */
.card-watermark-icon {
    position: absolute;
    top: 15px; /* Position from top */
    right: -10px; /* Position from right, slightly outside */
    font-size: 100px; /* Slightly smaller than anchor cards (127px) */
    opacity: 0.08; /* Very low opacity like anchor cards */
    transform: rotate(-15deg); /* Same rotation as anchor cards */
    z-index: 1; /* Below content but above card background */
    pointer-events: none; /* Don't interfere with card interactions */
}

/* Watermark icon colors matching button/border colors */
.offering-card-inspired:nth-child(3n+1) .card-watermark-icon {
    color: var(--stfm-primary-blue); /* Dark blue for cards 1, 4, 7... */
}

.offering-card-inspired:nth-child(3n+2) .card-watermark-icon {
    color: var(--light-blue); /* Light blue for cards 2, 5, 8... */
}

.offering-card-inspired:nth-child(3n+3) .card-watermark-icon {
    color: var(--stfm-secondary); /* STFM orange for cards 3, 6, 9... */
}

.offerings .tabbed-interface-title {
    color: #f3f6f9;
}

.offerings .tabbed-interface-subtitle {
    color: #f3f6f9;
}

/* Responsive Design for Offerings */
@media (max-width: 768px) {
    .offerings-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    
    .card-content {
        padding: 2rem 1.5rem; /* Reduce padding on mobile */
        gap: 1.25rem; /* Tighter spacing */
    }
    
    .card-title-centered {
        font-size: 1.5rem; /* Slightly smaller on mobile */
    }
    
    .card-cta-button {
        min-width: 120px; /* Smaller buttons on mobile */
        padding: 0.5rem 1.25rem;
        font-size: 0.75rem; /* Even smaller on mobile */
    }
    
    .card-title-centered {
        font-size: 1.75rem; /* Slightly smaller on mobile but still prominent */
    }
}

/* --- End of Offerings Redesign --- */
