/* ==========================================================================
   ScienceUtsav — Offerings Overview Page Stylesheet
   Path: offerings/offerings.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Global & Utility Adjustments
   -------------------------------------------------------------------------- */
:root {
    --su-navy-dark: #072244;
    --su-navy: #0d3c75;
    --su-navy-light: #165ab0;
    --su-orange: #f7941d;
    --su-orange-hover: #e07f0f;
    --su-sky: #eaf2fb;
    --su-bg-light: #f8fafd;
    --su-text-dark: #1e293b;
    --su-text-muted: #5a6c89;
    --su-border: rgba(13, 60, 117, 0.08);
    --su-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --su-shadow-md: 0 10px 25px rgba(13, 60, 117, 0.08);
    --su-shadow-lg: 0 20px 40px rgba(13, 60, 117, 0.14);
    --su-radius-card: 20px;
    --su-radius-pill: 50px;
    --su-transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body.offerings-page {
    background-color: #ffffff;
    color: var(--su-text-dark);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Accessible SEO headings */
.seo-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* --------------------------------------------------------------------------
   1. Overlapping Sticky Sub-Navigation Bar
   -------------------------------------------------------------------------- */
.offerings-sticky-nav-wrapper {
    position: sticky;
    top: 70px; /* Aligns flush beneath 70px fixed site header when scrolling */
    z-index: 950;
    margin-top: -36px; /* Exactly half of ~71px pill height: sits half on hero banner, half on next section */
    margin-bottom: 0;
    background: transparent; /* Seamless: eliminates harsh full-width dividing strip */
    border: none; /* No separator border */
    box-shadow: none;
    padding: 0 20px;
    pointer-events: none; /* Allows click-through in empty lateral areas */
    transition: all 0.3s ease;
}

.offerings-sticky-nav-wrapper.is-stuck {
    padding-top: 10px;
    padding-bottom: 10px;
}

.offerings-nav-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.offerings-nav-pills {
    pointer-events: auto; /* Pill buttons remain fully interactive */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    /* Height increased by 15px (from 56px to 71px) */
    min-height: 71px;
    /* Width increased by 200px (from 700px to 900px) */
    width: 900px;
    max-width: 96vw;
    padding: 8px 10px;
    border-radius: var(--su-radius-pill);
    box-shadow: 0 14px 35px rgba(13, 60, 117, 0.13), 0 3px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(13, 60, 117, 0.1);
    gap: 8px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-pill-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: #475569;
    padding: 15px 18px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-pill-btn i {
    font-size: 15px;
    opacity: 0.85;
}

.nav-pill-btn:hover {
    color: var(--su-navy);
    background: rgba(13, 60, 117, 0.06);
}

.nav-pill-btn.active {
    background: linear-gradient(135deg, var(--su-navy) 0%, var(--su-navy-light) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(13, 60, 117, 0.35);
    transform: scale(1.02);
}

.nav-pill-btn.active i {
    opacity: 1;
    color: var(--su-orange);
}

/* --------------------------------------------------------------------------
   3. Offering Sections (One After The Other)
   -------------------------------------------------------------------------- */
.offering-section-block {
    padding: 85px 0 85px;
    position: relative;
    border-bottom: 1px solid var(--su-border);
    scroll-margin-top: 155px; /* Exact offset for fixed header + sticky nav */
}

/* Seamless transition from hero banner into Section 1 */
#schools.offering-section-block {
    background-color: #ffffff !important;
    padding-top: 65px; /* Clean breathing room below the overlapping 36px pill half */
    border-top: none !important;
}

#ngo-csr.offering-section-block {
    background-color: var(--su-bg-light);
}

#activity-center.offering-section-block {
    background-color: #ffffff;
}

#reseller.offering-section-block {
    background-color: var(--su-bg-light);
}

.section-inner-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header Bar */
.section-header-box {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 45px;
}

.section-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--su-navy);
    background: #ffffff;
    padding: 6px 18px;
    border-radius: 30px;
    box-shadow: var(--su-shadow-sm);
    border: 1px solid rgba(13, 60, 117, 0.1);
    margin-bottom: 14px;
}

.section-counter-badge span {
    color: var(--su-orange);
}

.section-main-title {
    color: var(--su-navy);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.section-main-title .highlight-text {
    background: linear-gradient(135deg, var(--su-orange) 0%, #ff6b00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title-img-wrap {
    margin: 6px auto 16px;
    text-align: center;
}

.section-title-img {
    display: inline-block;
    max-width: 90%;
    width: 640px;
    height: auto;
    filter: drop-shadow(0 4px 14px rgba(13, 60, 117, 0.08));
}

.section-lead-desc {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--su-text-muted);
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   4. Cards Grid Layout (Matching Homepage UI strictly)
   -------------------------------------------------------------------------- */
.cards-grid-wrapper {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 45px;
}

/* 4-card sections (Schools, NGO/CSR) */
.grid-4-cards .card-item-container {
    flex: 1 1 calc(25% - 24px);
    min-width: 260px;
    max-width: 300px;
}

/* 3-card sections (Activity Center, Reseller) */
.grid-3-cards .card-item-container {
    flex: 1 1 calc(33.333% - 24px);
    min-width: 280px;
    max-width: 380px;
}

/* The Card itself */
.custom-offering-card {
    background: #ffffff;
    border-radius: var(--su-radius-card);
    overflow: hidden;
    box-shadow: var(--su-shadow-md);
    transition: var(--su-transition);
    border: 1px solid rgba(13, 60, 117, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.custom-offering-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--su-shadow-lg);
    border-color: rgba(247, 148, 29, 0.3);
}

.card-img-wrap {
    width: 100%;
    height: 210px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.custom-offering-card:hover .card-img-wrap img {
    transform: scale(1.06);
}

.card-tag-pill {
    position: absolute;
    bottom: 12px;
    left: 14px;
    background: rgba(7, 34, 68, 0.85);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-body-content {
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.card-heading-title {
    color: var(--su-navy);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
    transition: color 0.3s;
}

.custom-offering-card:hover .card-heading-title {
    color: var(--su-navy-light);
}

.card-summary-desc {
    color: var(--su-text-muted);
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 15px;
}

.card-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: var(--su-navy);
}

.card-feature-list li {
    background: var(--su-sky);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. Section Action Button Group
   -------------------------------------------------------------------------- */
.section-cta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--su-navy) 0%, var(--su-navy-light) 100%);
    color: #ffffff !important;
    padding: 13px 34px;
    font-size: 14px;
    border-radius: var(--su-radius-pill);
    font-weight: 700;
    text-decoration: none;
    transition: var(--su-transition);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 60, 117, 0.25);
}

.btn-primary-action:hover {
    background: linear-gradient(135deg, var(--su-navy-light) 0%, var(--su-navy) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 60, 117, 0.35);
}

.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--su-navy) !important;
    padding: 12px 32px;
    font-size: 14px;
    border-radius: var(--su-radius-pill);
    font-weight: 700;
    text-decoration: none;
    transition: var(--su-transition);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: 2px solid var(--su-navy);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.btn-secondary-action:hover {
    background: var(--su-navy);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(13, 60, 117, 0.2);
}

/* --------------------------------------------------------------------------
   6. Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .offerings-nav-pills {
        width: 100%;
        max-width: 95vw;
    }

    .nav-pill-btn {
        padding: 14px 14px;
        font-size: 13px;
        gap: 6px;
    }

    .grid-4-cards .card-item-container {
        flex: 1 1 calc(50% - 24px);
        max-width: 360px;
    }

    .grid-3-cards .card-item-container {
        flex: 1 1 calc(50% - 24px);
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    /* Sticky Nav Mobile: Horizontal Swipeable Pills */
    .offerings-sticky-nav-wrapper {
        margin-top: -26px; /* Half of ~52px mobile pill */
        padding: 0 10px;
    }

    .offerings-nav-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding-bottom: 4px;
        pointer-events: auto;
    }

    .offerings-nav-container::-webkit-scrollbar {
        display: none;
    }

    .offerings-nav-pills {
        width: max-content;
        min-height: 52px;
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 6px;
        padding: 5px 6px;
    }

    .nav-pill-btn {
        flex: 0 0 auto;
        padding: 10px 18px;
        font-size: 12px;
    }

    /* Section Mobile Spacing */
    .offering-section-block {
        padding: 55px 0 60px;
        scroll-margin-top: 130px;
    }

    #schools.offering-section-block {
        padding-top: 45px;
    }

    .section-main-title {
        font-size: 26px;
    }

    .section-lead-desc {
        font-size: 14px;
    }

    .grid-4-cards .card-item-container,
    .grid-3-cards .card-item-container {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .card-img-wrap {
        height: 190px;
    }

    .section-cta-row {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary-action,
    .btn-secondary-action {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 13px;
    }
}
