/* ============================================================
   SAMATVA ACADEMY – site.css
   Light Mode defaults. Dark overrides in dark.css.
   All colours via CSS custom properties — never hardcoded hex.
   ============================================================ */

@font-face {
    font-family: 'open-sans';
    src: url('../fonts/open-sans.ttf') format('truetype');
}

@font-face {
    font-family: 'poppins';
    src: url('../fonts/poppins.ttf') format('truetype');
}

@font-face {
    font-family: 'roboto-mono';
    src: url('../fonts/roboto-mono.ttf') format('truetype');
}

/* ── 1. CSS Custom Properties (Light Mode) ──────────────────── */
:root {
    --color-primary: #1A3E6B;
    --color-accent: #E87722;
    --color-secondary: #2E6DA4;
    --color-success: #27AE60;
    --color-danger: #E74C3C;
    --color-bg: #F4F7FA;
    --color-green-border: #A7F3D0;
    --color-green: #F0FDF4;
    --color-surface: #FFFFFF;
    --lms-success: #27AE60;
    --lms-danger: #E74C3C;
    --lms-card-bg: #FFFFFF;
    --color-text: #1C1C1E;
    --color-sub-text: #1C1C1E;
    --color-muted: #6B7280;
    --lms-muted: #6B7280;
    --color-btn-text: #1C1C2E;
    --color-btn-secondary: #E6E6E6;
    --lms-primary: #1A3E6B;
    --lms-border: #E6E6E6;
    --lms-bg: #F4F7FA;
    --color-orange-light: rgba(232, 119, 34, 0.10);
    --btn-success-bg: #22c55e;
    --btn-success-text: #ffffff;
    --btn-danger-bg: #ef4444;
    --btn-danger-text: #ffffff;
    --btn-info-bg: #3b82f6;
    --btn-info-text: #ffffff;
    --color-border: #DEE2E6;
    --font-heading: 'poppins', sans-serif;
    --font-body: 'open-sans', sans-serif;
    --font-mono: 'roboto-mono', monospace;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
    /*-Grid style-*/
    --grid-header-bg: #2f3b52;
    --grid-header-text: #ffffff;
    --grid-row-bg: #ffffff;
    --grid-row-text: #1e1e1e;
    --grid-alt-row-bg: #f8fafc;
    --grid-hover-bg: #e8f1fb;
    --grid-alt-row-text: #1e1e1e;
    --grid-selected-bg: #dbeafe;
    --grid-selected-text: #1e1e1e;
    --grid-border: #d1d5db;
    --grid-empty-bg: #4d80c7;
    --grid-empty-text: #ffffff;
    --grid-pager-bg: #f3f4f6;
    --grid-pager-text: #1e1e1e;
}

/* ── 2. Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-top: 0;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

    a:hover {
        color: var(--color-secondary);
        text-decoration: none;
        transition: color var(--transition);
    }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── 3. Typography Scale ────────────────────────────────────── */
.hero-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
}

.text-meta {
    font-size: 13px;
    color: var(--color-muted);
}

.nav-link-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
}


/* ── Logged-in user nav ──────────────────────────────────────── */
.nav-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-user-initials {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-user-greeting {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    margin-right: 4px;
}

/* Shared base for desktop logged-in buttons */
.btn-header {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 5px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

    /* Dashboard button — filled primary */
    a.btn-header:first-of-type,
    .btn-header:not(.btn-header-logout) {
        background: var(--color-primary);
        color: #fff;
    }

    .btn-header:hover {
        text-decoration: underline;
    }

    .btn-header i {
        color: var(--color-accent);
    }
/* Use explicit classes to avoid selector conflicts */
.btn-nav-dashboard {
    background: var(--color-primary);
    color: #fff !important;
}

    .btn-nav-dashboard:hover {
        background: var(--color-secondary);
        color: #fff !important;
    }

.btn-nav-logout {
    background: transparent;
    color: var(--color-muted) !important;
    border: 1px solid var(--color-border);
}

    .btn-nav-logout:hover {
        background: var(--color-danger);
        color: #fff !important;
        border-color: var(--color-danger);
    }

/* Mobile drawer logged-in buttons */
.btn-header-mob {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

/* ── 4. Buttons ─────────────────────────────────────────────── */
.btn {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    cursor: pointer;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-accent {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
}

    .btn-accent:hover {
        background-color: #CF661A;
        border-color: #CF661A;
        color: #FFFFFF;
    }

.btn-blue {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #FFFFFF;
}

    .btn-blue:hover {
        background-color: var(--color-primary);
        border-color: var(--color-primary);
        color: #FFFFFF;
    }

.btn-outline-light {
    background-color: transparent;
    border-color: rgba(255,255,255,0.80);
    color: #FFFFFF;
}

    .btn-outline-light:hover {
        background-color: rgba(255,255,255,0.15);
        color: #FFFFFF;
    }

.btn-white-accent {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--color-accent);
}

    .btn-white-accent:hover {
        background-color: #F0F0F0;
        color: var(--color-accent);
    }

.btn-link-accent {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .btn-link-accent:hover {
        color: var(--color-accent);
    }

.lms-btn-success {
    background-color: var(--btn-success-bg);
    color: var(--btn-success-text);
}

.lms-btn-danger {
    background-color: var(--btn-danger-bg);
    color: var(--btn-danger-text);
}

    .lms-btn-danger:hover {
        color: var(--btn-danger-text) !important;
    }

.lms-btn-info {
    background-color: var(--btn-info-bg);
    color: var(--btn-info-text);
}

/* ── 5. Header ──────────────────────────────────────────────── */
.site-header {
    position: relative;
    z-index: 1000;
}

/* Row 1 – Utility Bar */
.header-utility {
    background-color: var(--color-primary);
    padding: 0 16px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-utility-left,
.header-utility-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-utility-text {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}

.header-utility-item {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

    .header-utility-item a {
        color: rgba(255,255,255,0.85);
        text-decoration: none;
    }

        .header-utility-item a:hover {
            color: #FFFFFF;
        }

/* Theme Toggle */
.btn-theme-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.40);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.85);
    padding: 3px 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    transition: border-color var(--transition), color var(--transition);
}

    .btn-theme-toggle:hover {
        border-color: rgba(255,255,255,0.80);
        color: #FFFFFF;
    }

/* Row 2 – Brand Bar */
.header-brand {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 2px 16px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-brand-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

    .header-brand-logos a:hover {
        text-decoration: none;
    }

.logo-samatva {
    height: 90px;
    width: auto;
    border-radius: 10px;
    object-fit: cover;
}

.logo-sas {
    height: 60px;
    width: auto;
    border-radius: 10px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.brand-name-sub {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--color-muted);
    display: block;
}

/* Search Bar */
.header-search-wrap {
    flex: 1;
    max-width: 480px;
    position: relative;
    margin: 0 24px;
}

.header-search-inner {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-surface);
}

.header-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    background: transparent;
}

.btn-search {
    background-color: var(--color-primary);
    border: none;
    color: #FFFFFF;
    padding: 8px 25px;
    margin: 0px -20px 0px 0px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color var(--transition);
}

    .btn-search:hover {
        background-color: var(--color-secondary);
    }

.header-search-inner i {
    margin: 10px 15px 0px -15px;
    color: #fff;
}
/* AutoComplete dropdown */
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 2000;
    max-height: 280px;
    overflow-y: auto;
}

    .autocomplete-list ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .autocomplete-list li {
        padding: 8px 14px;
        font-size: 14px;
        cursor: pointer;
        color: var(--color-text);
        border-bottom: 1px solid var(--color-border);
    }

        .autocomplete-list li:last-child {
            border-bottom: none;
        }

        .autocomplete-list li:hover {
            background: var(--color-bg);
        }

.autocomplete-highlighted {
    background: var(--color-bg);
    font-weight: 600;
}

/* Right logos in brand bar */
.header-brand-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Row 3 – Navigation Bar */
.header-nav {
    background-color: var(--color-primary);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
}

.header-nav-links {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .header-nav-links > li {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

        .header-nav-links > li > a,
        .header-nav-links > li > span {
            font-family: var(--font-heading);
            font-size: 14px;
            font-weight: 500;
            color: rgba(255,255,255,0.90);
            padding: 0 16px;
            height: 100%;
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            white-space: nowrap;
            transition: background-color var(--transition), color var(--transition);
            text-decoration: none;
        }

        .header-nav-links > li:hover > a,
        .header-nav-links > li:hover > span,
        .header-nav-links > li.active > a {
            background-color: rgba(255,255,255,0.12);
            color: #FFFFFF;
        }

/* Standard dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 210px;
    z-index: 1500;
    display: none;
    padding: 8px 0;
}

.header-nav-links > li:hover .nav-dropdown {
    display: block;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 14px;
    color: var(--color-text);
    white-space: nowrap;
    transition: background-color var(--transition);
}

    .nav-dropdown a:hover {
        background-color: var(--color-bg);
        color: var(--color-primary);
    }

/* Mega Menu – Programmes */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 640px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    display: none;
}

.header-nav-links > li:hover .mega-menu {
    display: flex;
    flex-direction: column;
}

.mega-menu-body {
    display: flex;
    min-height: 160px;
}

.mega-menu-categories {
    width: 200px;
    background: var(--color-bg);
    border-right: 1px solid var(--color-border);
    padding: 12px 0;
    flex-shrink: 0;
}

.mega-category-item {
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: background-color var(--transition);
    border-left: 3px solid transparent;
}

    .mega-category-item:hover,
    .mega-category-item.active {
        background-color: var(--color-surface);
        border-left-color: var(--color-accent);
        color: var(--color-primary);
    }

.mega-menu-programmes {
    flex: 1;
    padding: 12px 0;
}

.mega-programme-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 14px;
    color: var(--color-text);
    transition: background-color var(--transition);
}

    .mega-programme-item:hover {
        background-color: var(--color-bg);
        color: var(--color-primary);
    }
/* placeholder rows rendered via Repeater */
.mega-menu-placeholder {
    padding: 20px 18px;
    color: var(--color-muted);
    font-size: 13px;
}

.mega-menu-footer {
    border-top: 1px solid var(--color-border);
    padding: 10px 18px;
}

    .mega-menu-footer a {
        font-family: var(--font-heading);
        font-size: 13px;
        font-weight: 500;
        color: var(--color-secondary);
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

        .mega-menu-footer a:hover {
            color: var(--color-accent);
        }

/* Nav Right Actions */
.header-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cart {
    position: relative;
    color: rgba(255,255,255,0.90);
    font-size: 18px;
    padding: 6px 8px;
    transition: color var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .btn-cart:hover {
        color: #FFFFFF;
    }

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    font-family: var(--font-heading);
}

    .cart-badge.visible {
        display: inline-flex;
    }

.btn-header-login {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.90);
    border: 1px solid rgba(255,255,255,0.60);
    border-radius: var(--radius-sm);
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color var(--transition), color var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

    .btn-header-login:hover {
        background-color: rgba(255,255,255,0.15);
        color: #FFFFFF;
    }

.btn-login-mob {
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

    .btn-login-mob:hover {
        background-color: var(--color-accent);
    }

.btn-header-register {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    background-color: var(--color-accent);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

    .btn-header-register:hover {
        background-color: #CF661A;
        color: #FFFFFF;
    }

/* Hamburger */
.btn-hamburger {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 22px;
    cursor: pointer;
    padding: 6px 10px;
}

/* Sticky header */
.header-sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

    .header-sticky-wrapper.is-sticky {
        position: fixed;
        top: 0;
        left: 0;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

        .header-sticky-wrapper.is-sticky .logo-samatva {
            height: 55px;
        }

        .header-sticky-wrapper.is-sticky .logo-sas {
            height: 45px;
        }

        .header-sticky-wrapper.is-sticky .brand-name {
            font-size: 20px;
        }
/* Mobile Drawer */
.nav-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.50);
    z-index: 1900;
}

    .nav-drawer-backdrop.open {
        display: block;
    }

.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--color-surface);
    z-index: 2000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

    .nav-drawer.open {
        transform: translateX(0);
    }

.nav-drawer-header {
    background-color: var(--color-primary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-drawer-title {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}

.btn-drawer-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    cursor: pointer;
}

    .btn-drawer-close:hover {
        color: #FFFFFF;
    }

.nav-drawer-body {
    padding: 0;
    flex: 1;
}

.drawer-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
}

    .drawer-search .header-search-inner {
        border: 1.5px solid var(--color-border);
        border-radius: var(--radius-sm);
    }

.drawer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .drawer-nav-list li {
        border-bottom: 1px solid var(--color-border);
    }

    .drawer-nav-list a,
    .drawer-nav-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 13px 16px;
        font-family: var(--font-heading);
        font-size: 14px;
        font-weight: 500;
        color: var(--color-text);
        background: none;
        border: none;
        width: 100%;
        cursor: pointer;
        justify-content: space-between;
    }

        .drawer-nav-list a:hover,
        .drawer-nav-toggle:hover {
            background-color: var(--color-bg);
            color: var(--color-primary);
        }

.drawer-sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    display: none;
}

    .drawer-sub-list.open {
        display: block;
    }

    .drawer-sub-list li {
        border-top: 1px solid var(--color-border);
    }

    .drawer-sub-list a {
        padding: 10px 16px 10px 32px;
        font-size: 13px;
    }

.nav-drawer-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .nav-drawer-footer .btn-header-login,
    .nav-drawer-footer .btn-header-register {
        width: 100%;
        justify-content: center;
    }

/* ── 6. Home Page Sections ──────────────────────────────────── */

/* Section wrapper helpers */
.section-pad {
    padding: 72px 0;
}

.section-pad-sm {
    padding: 48px 0;
}

.section-intro {
    max-width: 680px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.7;
}

.section-divider {
    width: 52px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 12px auto 28px;
    border-radius: 2px;
}

.section-heading-wrap {
    text-align: center;
}

/* ── Section 1 – Hero ───────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    /* background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%), url(../images/general/infrastucture-01.jpg);*/
    background: url(../images/general/infrastucture-01.jpg);
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.20);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 16px;
}

.hero-overline {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 16px;
    max-width: 720px;
}

.hero-title {
    max-width: 720px;
    margin-bottom: 32px;
    text-shadow: 2px 2px #000;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ── Section 2 – About ──────────────────────────────────────── */
.about-section {
    background-color: var(--color-surface);
}

.about-text-col {
    padding-right: 32px;
}

.about-image-col img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.about-video-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 340px;
}

.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-section .section-heading {
    text-align: left;
}

.about-body {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 24px;
}

.section-heading-wrap.left-align {
    text-align: left;
}

    .section-heading-wrap.left-align .section-divider {
        margin-left: 0;
    }

/* ── Section 3 – Why SAMATVA ────────────────────────────────── */
.why-section {
    background-color: var(--color-bg);
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition);
}

    .feature-card:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--color-accent);
    }

.feature-icon {
    width: 85px;
    height: 85px;
    background-color: rgba(232, 119, 34, 0.10);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--color-accent);
    margin-bottom: 18px;
    padding: 5px;
}

.feature-card .card-title {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.feature-card p {
    color: var(--color-text);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* ── Section 4 – Reach and Impact ──────────────────────────── */
.stats-section {
    background-color: var(--color-surface);
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    height: 100%;
    transition: box-shadow var(--transition);
}

.stat-card-orange {
    background: var(--color-orange-light);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 24px;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.4;
}

.stats-closing {
    margin-top: 32px;
    text-align: center;
    color: var(--color-muted);
    font-size: 15px;
    font-style: italic;
}

/* ── Section 5 – ZIIEI Impact ──────────────────────────────── */
.ziiei-section {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(../images/general/infrastucture-02.jpg);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    color: #FFFFFF;
}

    .ziiei-section .section-heading {
        color: #FFFFFF;
    }

    .ziiei-section .section-intro {
        color: rgba(255,255,255,0.80);
    }

.ziiei-stat-card {
    text-align: center;
    padding: 24px 16px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.07);
}

.ziiei-stat-number {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--color-accent);
    display: block;
    margin-bottom: 6px;
}

.ziiei-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.80);
    line-height: 1.4;
}

.ziiei-closing {
    margin-top: 36px;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    line-height: 1.7;
}

.ziiei-closing-bold {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 500;
    margin-top: 12px;
    font-size: 15px;
}

/* ── Section 6 – Our Approach ───────────────────────────────── */
.approach-section {
    background-color: var(--color-bg);
}

.approach-accordion {
}

.approach-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.approach-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background-color var(--transition);
}

    .approach-card-header:hover {
        background-color: var(--color-bg);
    }

    .approach-card-header.active {
        background-color: var(--color-bg);
    }

.approach-pillar-icon {
    width: 42px;
    height: 42px;
    background-color: rgba(26,62,107,0.10);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.approach-pillar-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary);
    flex: 1;
    margin: 0;
}

.approach-toggle-icon {
    color: var(--color-muted);
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.20s ease;
}

.approach-card-header.active .approach-toggle-icon {
    transform: rotate(180deg);
}

.approach-card-body {
    display: none;
    padding: 20px 20px 20px 76px;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.75;
}

    .approach-card-body.open {
        display: block;
    }

/* ── Section 7 – Programmes ─────────────────────────────────── */
.programmes-section {
    background-color: var(--color-surface);
}

.programme-card-wrap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), border-color var(--transition);
}

    .programme-card-wrap:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--color-secondary);
    }

.programme-card-thumb {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.40);
    font-size: 40px;
}

    .programme-card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.programme-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-heading);
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.programme-card-content {
    padding: 18px 18px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .programme-card-content .card-title {
        color: var(--color-primary);
        margin-bottom: 8px;
        font-size: 14px;
    }

.programme-card-desc {
    color: var(--color-muted);
    font-size: 13px;
    flex: 1;
    margin-bottom: 14px;
    line-height: 1.5;
}

.programme-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--color-muted);
}

.programme-card-meta-home span i {
    color: var(--color-accent);
}

.programme-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.programme-price {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
}

.programmes-cta-wrap {
    text-align: center;
    margin-top: 36px;
}

/* Programmes section placeholder state */
.programmes-placeholder-note {
    padding: 16px;
    background: var(--color-bg);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    font-size: 13px;
    text-align: center;
    margin-bottom: 20px;
}

/* ── Section 8 – Knowledge Partners ───────────────────────────────── */
.knowledge-section {
    background-color: var(--color-bg);
}

.kp-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap; /* wraps gracefully on smaller screens */
}

/* ── INDIVIDUAL LOGO CARD ── */
.kp-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 5px;
    width: 200px;
    height: auto;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    cursor: default;
    flex-shrink: 0;
    margin-top: 1.5rem;
}

    .kp-logo-card:hover {
        box-shadow: 0 10px 32px rgba(26, 79, 122, 0.12);
        border-color: rgba(26, 79, 122, 0.2);
        transform: translateY(-4px);
    }

/* Centre card — slightly larger, light blue tint to draw the eye */
.kp-logo-centre {
    width: 210px;
    height: 112px;
    padding: 24px 36px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f3fd 100%);
    border-color: rgba(26, 79, 122, 0.15);
    box-shadow: 0 4px 18px rgba(26, 79, 122, 0.08);
}

    .kp-logo-centre:hover {
        box-shadow: 0 12px 36px rgba(26, 79, 122, 0.16);
    }

/* Logo images — greyscale at rest, full colour on hover */
.kp-logo-card img {
    max-width: 95%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease;
}

.kp-logo-card:hover img,
.kp-logo-centre img {
    filter: grayscale(0%) opacity(1);
}

.kp-footnote {
    margin-top: 32px;
    text-align: center;
    color: var(--color-muted);
    font-size: 15px;
    font-style: italic;
}

/* ── Section 9 – CTA Banner ─────────────────────────────────── */
.cta-banner-section {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url(../images/general/infrastucture-01.jpg);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 0;
    text-align: center;
}

    .cta-banner-section h2 {
        font-family: var(--font-heading);
        font-size: 30px;
        font-weight: 700;
        color: #FFFFFF;
        margin-bottom: 24px;
    }

    .cta-banner-section p {
        font-family: var(--font-body);
        font-size: 16px;
        color: rgba(255,255,255,0.75);
        margin-bottom: 28px;
        font-style: italic;
    }


/* ── 7. Footer ──────────────────────────────────────────────── */
.site-footer {
    background-color: var(--color-primary);
    color: rgba(255,255,255,0.85);
    padding-top: 56px;
}

.footer-col-heading {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.footer-brand-logo-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

    .footer-brand-logo-wrap .logo-samatva {
        height: auto;
        width: 100px;
        border: 3px solid #fff;
    }

    .footer-brand-logo-wrap .logo-sas {
        height: auto;
        width: 175px;
        border: 3px solid #fff;
        border-radius: 5px;
    }

.footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 18px;
}

.footer-div-margin {
    padding-left: 60px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

    .social-icons a {
        width: 34px;
        height: 34px;
        border: 1px solid rgba(255,255,255,0.30);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.75);
        font-size: 14px;
        transition: background-color var(--transition), color var(--transition), border-color var(--transition);
    }

        .social-icons a:hover {
            background-color: var(--color-accent);
            border-color: var(--color-accent);
            color: #FFFFFF;
        }

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        font-size: 13px;
        color: rgba(255,255,255,0.75);
        display: flex;
        align-items: center;
        gap: 7px;
        transition: color var(--transition), padding-left var(--transition);
    }

        .footer-links a:hover {
            color: #FFFFFF;
            padding-left: 4px;
        }

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .footer-contact-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
        font-size: 13px;
        color: rgba(255,255,255,0.75);
        line-height: 1.5;
    }

        .footer-contact-list li .fa {
            margin-top: 2px;
            color: var(--color-accent);
            font-size: 14px;
            flex-shrink: 0;
        }

        .footer-contact-list li a {
            color: rgba(255, 255, 255, 0.75);
        }

            .footer-contact-list li a:hover {
                color: #fff;
            }

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-left {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}

    .footer-bottom-left a {
        color: rgba(255,255,255,0.65);
    }

        .footer-bottom-left a:hover {
            color: #fff;
        }

.footer-bottom-right {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

    .footer-bottom-right a {
        font-size: 13px;
        color: rgba(255,255,255,0.65);
        padding: 0 6px;
        border-right: 1px solid rgba(255,255,255,0.25);
    }

        .footer-bottom-right a:last-child {
            border-right: none;
        }

        .footer-bottom-right a:hover {
            color: #FFFFFF;
        }

/* ── 8. Utilities ───────────────────────────────────────────── */
.text-accent {
    color: var(--color-accent);
}

.text-primary {
    color: var(--color-primary);
}

.bg-surface {
    background-color: var(--color-surface);
}

.border-top-accent {
    border-top: 3px solid var(--color-accent);
}

/*Media query*/
/* portrait tablets and small desktops*/
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .header-nav {
        height: 30px;
    }

    .btn-search {
        padding: 8px 14px;
        margin: 0px;
    }

    .header-search-inner i {
        margin: 0px;
    }

    .kp-logos {
        gap: 10px;
    }

    .kp-logo-card {
        width: 120px;
        margin-top: 0;
    }

    .cta-banner-section {
        padding: 40px 0;
    }

    .footer-brand-logo-wrap .logo-samatva {
        height: 80px;
        width: 80px;
    }

    .footer-div-margin {
        padding-left: 0px;
    }
    /* ── Mobile drawer footer – logged-in state ─────────────────── */

    .nav-drawer-footer .nav-user-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-drawer-footer .nav-user-greeting {
        font-family: var(--font-heading);
        font-size: 13px;
        font-weight: 500;
        color: var(--color-primary);
        padding: 3px 0px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-header-mob {
        font-family: var(--font-heading);
        font-size: 14px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 3px 0px;
        border: none;
        border-radius: 0;
        cursor: pointer;
        text-decoration: none;
        background: transparent;
        color: var(--blue);
        transition: background var(--transition), color var(--transition);
    }

        .btn-header-mob i {
            width: 18px;
            text-align: center;
            flex-shrink: 0;
            color: var(--color-accent);
        }

        .btn-header-mob:hover,
        .btn-header-mob:focus {
            background: rgba(255, 255, 255, 0.08);
            color: var(--color-accent);
            text-decoration: none;
        }

        /* Dashboard row */
        .btn-header-mob.btn-nav-dashboard {
            color: rgba(255, 255, 255, 0.85);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

            .btn-header-mob.btn-nav-dashboard:hover {
                background: rgba(255, 255, 255, 0.08);
                color: var(--color-accent);
            }

        /* Logout row */
        .btn-header-mob.btn-nav-logout {
            color: rgba(255, 255, 255, 0.60);
            border: none;
        }

            .btn-header-mob.btn-nav-logout i {
                color: var(--color-danger);
            }

            .btn-header-mob.btn-nav-logout:hover {
                background: rgba(231, 76, 60, 0.15);
                color: #ff6b6b;
            }
}
/*Media query*/
