/* CSS Variables */
:root {
    --primary-color: #1968B1;
    --secondary-color: #F1BF39;
    --accent-color: #6FA84E;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --success-color: #6FA84E;
    --warning-color: #F1BF39;
    --danger-color: #dc2626;
    --light-bg: #f8fafc;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-left: 0;
    cursor: url('../images/Mouse_pointer.svg'), auto;
}

/* SIDEBAR NAVIGATION STYLES */
.sidenav {
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #1968B1 0%, #6FA84E 100%);
    overflow-x: hidden;
    padding-top: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidenav a {
    padding: 12px 20px;
    text-decoration: none;
    font-size: 16px;
    color: white;
    display: block;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidenav a:hover {
    background-color: rgba(255,255,255,0.1);
    border-left: 4px solid #F1BF39;
    padding-left: 25px;
}

.sidenav a.active {
    background-color: rgba(255,255,255,0.2);
    border-left: 4px solid #F1BF39;
    font-weight: 600;
}

.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-right: 2px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(1) contrast(1.1) saturate(1.2);
    transition: all 0.3s ease;
}

.sidebar-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.2) saturate(1.3);
}

.brand-text {
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
}

.brand-text small {
    color: var(--accent-color);
    font-weight: 400;
}

.mobile-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: brightness(1) contrast(1.1) saturate(1.2);
}

/* Logo Color Optimization */
.brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.brand-container:hover {
    background: rgba(25, 104, 177, 0.05);
}

.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu .nav-link:hover {
    background: linear-gradient(90deg, rgba(25, 104, 177, 0.1), transparent);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-menu .nav-link.active {
    background: linear-gradient(90deg, rgba(25, 104, 177, 0.15), transparent);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

.sidebar-menu .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-menu .complaint-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: white;
}

/* MAIN CONTENT AREA */
.main-content {
    margin-left: 250px;
    padding: 0;
    transition: margin-left 0.3s ease;
}

/* OLD MOBILE HEADER STYLES - COMMENTED OUT (Now using sidebar.css)
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: white !important;
}

.mobile-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}
*/

/* RESPONSIVE DESIGN - Mobile header now controlled by sidebar.css */
@media (max-width: 991.98px) {
    .sidenav {
        display: none; /* Hide sidebar on mobile */
    }
    
    /* Mobile content adjustments handled by sidebar.css */
}

/* SECTION ADJUSTMENTS FOR SIDEBAR */
.section {
    padding: 4rem 0;
}

@media (min-width: 992px) {
    .section {
        padding: 3rem 0;
    }
    
    .min-vh-100 {
        min-height: 90vh;
    }
}

/* Additional Color Variations */
.stage-icon.bg-primary-solid {
    background: var(--primary-color) !important;
    color: white;
}

.stage-icon.bg-secondary-solid {
    background: var(--secondary-color) !important;
    color: var(--text-dark);
}

.stage-icon.bg-accent-solid {
    background: var(--accent-color) !important;
    color: white;
}

/* Hero Section Specific Styles */
.min-vh-100 {
    min-height: 100vh;
}

/* Gradient Badge */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), #2563eb) !important;
    color: white !important;
}

/* Journey Infographic Styles */
.journey-container {
    position: relative;
    padding: 1.5rem 0;
}

.journey-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 3px;
    z-index: 1;
    display: none;
}

@media (min-width: 992px) {
    .journey-line {
        display: block;
    }
}

.journey-step {
    position: relative;
    z-index: 3;
}

.journey-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.journey-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

/* Compact Journey Cards */
.journey-card-compact {
    background: white;
    border-radius: 0.8rem;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    min-height: 140px;
}

.journey-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.journey-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.journey-features {
    margin-top: 1rem;
}

.journey-features .badge {
    margin: 0.2rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

/* NRI Highlight Card */
.nri-highlight-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 2px solid var(--accent-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(111, 168, 78, 0.1);
    transition: all 0.3s ease;
}

.nri-highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(111, 168, 78, 0.15);
}

.nri-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nri-features .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

@media (max-width: 768px) {
    .nri-features {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 1rem;
    }
    
    .nri-highlight-card .row {
        text-align: center;
    }
}

.special-category-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.special-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

/* Stage Icon Sizing */
.stage-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Solution Cards Optimization */
.solution-cards {
    max-height: 70vh;
    overflow: visible;
}

.solution-card {
    background: white;
    border-radius: 1rem;
    padding: 1.2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    margin-bottom: 0.8rem;
}

.solution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.solution-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.solution-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.solution-features .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
}

@media (max-width: 991px) {
    .solution-cards {
        max-height: none;
    }
}

/* Responsive Typography for Solutions */
@media (max-width: 1200px) {
    .solution-card h5 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .solution-card .small {
        font-size: 0.8rem;
    }
}
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    color: white !important;
}

/* Floating Cards Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.position-absolute .bg-white {
    animation: float 3s ease-in-out infinite;
}

/* Live Better Stats Card Hover Effects */
#live-better .card {
    transition: all 0.3s ease !important;
}

#live-better .card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

#live-better .rounded-circle {
    transition: all 0.3s ease;
}

#live-better .card:hover .rounded-circle {
    transform: rotate(10deg) scale(1.1);
}

/* Pulse animation for highlighted card */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(25, 104, 177, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(25, 104, 177, 0.6);
    }
}

#live-better .card[style*="linear-gradient"] {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Modal Improvements */
.modal-xl {
    max-width: 95%;
}

@media (max-width: 768px) {
    .modal-xl {
        max-width: 98%;
        margin: 0.5rem;
    }
}

/* Responsive Typography for Hero */
@media (max-width: 768px) {
    .display-2 {
        font-size: 2.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
}

/* Header Styles */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    height: 40px;
    width: auto;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(1) contrast(1.1) saturate(1.2);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.2) saturate(1.3);
}

/* Section Styles */
.section {
    min-height: 100vh;
    padding: 60px 0 40px;
    display: flex;
    align-items: center;
}

.section:first-of-type {
    padding-top: 100px;
}

/* 16:9 Optimization */
@media (min-width: 1200px) {
    .section {
        padding: 40px 0 30px;
    }
    
    .container {
        max-width: 1400px;
    }
    
    /* Global content sizing for 16:9 */
    .display-5 {
        font-size: 1.8rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .display-6 {
        font-size: 1.5rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .display-3 {
        font-size: 2.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .lead {
        font-size: 0.95rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    h1, .h1 {
        font-size: 2rem !important;
    }
    
    h2, .h2 {
        font-size: 1.6rem !important;
    }
    
    h3, .h3 {
        font-size: 1.3rem !important;
    }
    
    h4, .h4 {
        font-size: 1.1rem !important;
    }
    
    h5, .h5 {
        font-size: 1rem !important;
    }
    
    h6, .h6 {
        font-size: 0.9rem !important;
    }
    
    p, .text-muted {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    .complaint-table {
        margin-bottom: 1rem !important;
    }
    
    .table th, .table td {
        padding: 0.5rem 0.4rem !important;
        font-size: 0.8rem !important;
    }
    
    .table th {
        font-size: 0.75rem !important;
    }
    
    /* Reduce card spacing */
    .life-stage-card {
        padding: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .stage-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 0.8rem !important;
    }
    
    /* Reduce button sizes */
    .btn-lg {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
    
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    .btn-sm {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Reduce margins and padding globally */
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.2rem !important;
    }
    
    .mb-3 {
        margin-bottom: 0.8rem !important;
    }
    
    .mb-2 {
        margin-bottom: 0.5rem !important;
    }
    
    .mt-5 {
        margin-top: 1.5rem !important;
    }
    
    .mt-4 {
        margin-top: 1.2rem !important;
    }
    
    .mt-3 {
        margin-top: 0.8rem !important;
    }
    
    .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Row spacing optimization */
    .row.g-4 > * {
        padding-bottom: 1rem !important;
    }
    
    /* Table width optimization */
    .table-responsive {
        font-size: 0.8rem;
        overflow-x: auto;
    }
    
    .table {
        margin-bottom: 0.5rem !important;
        width: 100%;
        max-width: 100%;
        table-layout: auto;
    }
    
    /* Specific section optimizations */
    #complaint {
        padding: 30px 0 20px !important;
    }
    
    #complaint .text-center.mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Fix complaint heading visibility */
    #complaint .display-5 {
        font-size: 2.2rem !important;
        margin-bottom: 1rem !important;
        color: var(--primary-color) !important;
        font-weight: bold !important;
    }
    
    /* Complaint table specific styling */
    #complaint .complaint-table {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 1rem auto;
    }
    
    #complaint .table-responsive {
        width: 100%;
        margin: 0 auto;
    }
    
    /* Table header improvements */
    #complaint .table th {
        white-space: nowrap;
        text-align: center;
        vertical-align: middle;
        font-size: 0.7rem !important;
        padding: 0.4rem 0.2rem !important;
    }
    
    #complaint .table td {
        text-align: center;
        vertical-align: middle;
        font-size: 0.75rem !important;
        padding: 0.4rem 0.2rem !important;
    }
    
    /* Hero section font size reduction */
    .hero-content .display-3 {
        font-size: 2.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content .h3 {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content .lead {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-content {
        padding: 1rem !important;
    }
    
    /* Advisor section optimization */
    .advisor-details .mb-3 {
        margin-bottom: 0.6rem !important;
    }
    
    .advisory-points .mb-3 {
        margin-bottom: 0.6rem !important;
    }
    
    /* Scope section list optimization */
    .list-unstyled li {
        margin-bottom: 0.4rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Footer optimization */
    .footer-section {
        padding: 2rem 0 !important;
    }
    
    .footer-section .small {
        font-size: 0.75rem !important;
    }
    
    .regulatory-disclaimer {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Section-specific optimizations */
    #get-clarity img {
        max-height: 300px !important;
        object-fit: cover !important;
    }
    
    #life-stages .row.g-4 {
        row-gap: 1rem !important;
    }
    
    #solutions .row.g-4 {
        row-gap: 1rem !important;
    }
    
    #scope .row.g-4 {
        row-gap: 1rem !important;
    }
    
    /* Alert optimization */
    .alert {
        padding: 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Icon size optimization */
    .fas, .fab {
        font-size: inherit !important;
    }
    
    /* Navigation optimization */
    .navbar {
        padding: 0.5rem 0 !important;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
}

/* Table Styles */
.complaint-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

.table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    border-color: var(--border-color);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* Life Stages Cards */
.life-stage-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.life-stage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.stage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

/* CTA Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    .hero-slide {
        height: 100vh;
    }
    
    .life-stage-card {
        margin-bottom: 1.5rem;
    }
}

/* Additional Color Variations */
.stage-icon.bg-primary-solid {
    background: var(--primary-color);
    color: white;
}

.stage-icon.bg-secondary-solid {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.stage-icon.bg-accent-solid {
    background: var(--accent-color);
    color: white;
}

.stage-icon.bg-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--text-dark);
}

.stage-icon.bg-accent {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.stage-icon.bg-success {
    background: var(--success-color);
}

.stage-icon.bg-warning {
    background: var(--warning-color);
    color: var(--text-dark);
}

.stage-icon.bg-danger {
    background: var(--danger-color);
}

/* Individual Color Button Variations */
.btn-secondary {
    background: var(--secondary-color);
    border: none;
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Section Background Individual Colors */
.section.bg-primary-solid {
    background: var(--primary-color);
    color: white;
}

.section.bg-secondary-solid {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.section.bg-accent-solid {
    background: var(--accent-color);
    color: white;
}

/* Text Color Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

/* Background Utilities */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.bg-secondary-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Individual Color Alerts */
.alert-primary {
    background-color: rgba(25, 104, 177, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.alert-secondary {
    background-color: rgba(241, 191, 57, 0.1);
    border-color: var(--secondary-color);
    color: #b8860b;
}

.alert-accent {
    background-color: rgba(111, 168, 78, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Card Hover Effects with Individual Colors */
.life-stage-card:hover .stage-icon.bg-primary-solid {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(25, 104, 177, 0.4);
}

.life-stage-card:hover .stage-icon.bg-secondary-solid {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(241, 191, 57, 0.4);
}

.life-stage-card:hover .stage-icon.bg-accent-solid {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(111, 168, 78, 0.4);
}

/* Text Color Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

/* Background Utilities */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.bg-secondary-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Card Hover Effects with Color Variations */
.life-stage-card:hover .stage-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(25, 104, 177, 0.3);
}

/* Section Background Alternates */
.section.bg-light {
    background: var(--light-bg);
}

.section.bg-primary {
    background: var(--primary-color);
    color: white;
}

.section.bg-accent {
    background: var(--accent-color);
    color: white;
}

/* Border Accents */
.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

.border-accent {
    border-color: var(--accent-color) !important;
}
/* ========================================
   SIDEBAR NAVIGATION STYLES
   ======================================== */

/* Sidebar Container */
.sidenav {
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #1968B1 0%, #6FA84E 100%);
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

/* Sidebar Links */
.sidenav a {
    padding: 12px 20px;
    text-decoration: none;
    font-size: 16px;
    color: white;
    display: block;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidenav a:hover {
    background-color: rgba(255,255,255,0.1);
    border-left: 4px solid #F1BF39;
    padding-left: 25px;
}

.sidenav a.active {
    background-color: rgba(255,255,255,0.2);
    border-left: 4px solid #F1BF39;
    font-weight: 600;
}

/* Sidebar Header */
.sidenav-logo {
    max-width: 180px;
    display: block;
    margin: 0 auto;
}

.sidenav-header {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 10px;
    text-align: center;
}

.sidenav-header h4 {
    color: white;
    font-size: 18px;
    margin: 10px 0 5px 0;
    font-weight: 600;
}

.sidenav-header p {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    margin: 0;
}

/* Main Content Adjustment */
.main-content {
    margin-left: 250px;
    padding: 0;
}

/* Mobile Responsiveness */
@media screen and (max-width: 991px) {
    .sidenav {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 0 !important;
    }
}

@media screen and (min-width: 992px) {
    .mobile-header {
        display: none !important;
    }
}

/* ============================================
   MOBILE OPTIMIZATION - NON-SCROLLABLE PAGES
   ============================================ */

/* ============================================
   LIVE BETTER SECTION - ENHANCED DESIGN
   ============================================ */

/* Card Hover Effects - Desktop */
#live-better .card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

#live-better .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(25, 104, 177, 0.3);
}

#live-better .card i {
    transition: all 0.4s ease;
}

#live-better .card:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* Button Animations */
#live-better .btn-primary {
    background: linear-gradient(135deg, #1968B1 0%, #1554a0 100%);
    border: none;
    transition: all 0.3s ease;
}

#live-better .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(25, 104, 177, 0.3);
}

#live-better .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(25, 104, 177, 0.2);
}

/* Background Animations */
@keyframes float-slow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

@keyframes pulse-gentle {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Desktop Infographic Enhancement */
#live-better .col-6.col-md-3 > div {
    transition: all 0.3s ease;
}

#live-better .col-6.col-md-3 > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9) !important;
}

#live-better .col-6.col-md-3:hover i {
    transform: scale(1.15);
}

#live-better .col-6.col-md-3 i {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Mobile Responsive Design */
@media (max-width: 991px) {
    #live-better {
        min-height: 100vh !important;
        height: auto !important;
        margin-top: 0 !important;
        padding: 90px 0.75rem 1rem 0.75rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }
    
    #live-better .container {
        max-width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    #live-better h1 {
        font-size: 1.3rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.4rem !important;
    }
    
    #live-better .lead {
        font-size: 0.75rem !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.3 !important;
    }
    
    #live-better .badge {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.6rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    /* Stats Infographic - Mobile 2x2 Matrix */
    #live-better .row.g-4 {
        margin-bottom: 1rem !important;
        row-gap: 0.6rem !important;
        column-gap: 0.6rem !important;
        max-width: 100% !important;
        justify-content: center !important;
    }
    
    #live-better .col-6 {
        max-width: 48% !important;
        flex: 0 0 48% !important;
    }
    
    #live-better .col-6.col-md-3 > div {
        padding: 0.75rem 0.4rem !important;
        border-radius: 12px !important;
    }
    
    #live-better .col-6.col-md-3 i {
        font-size: 1.5rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    #live-better .col-6.col-md-3 h2 {
        font-size: 1.3rem !important;
        line-height: 1 !important;
        margin-bottom: 0.2rem !important;
    }
    
    #live-better .col-6.col-md-3 p {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
    }
    
    /* Button - Mobile Compact */
    #live-better .btn {
        font-size: 0.85rem !important;
        padding: 0.65rem 1.3rem !important;
        width: 100%;
        max-width: 260px;
        border-radius: 10px !important;
    }
    
    /* Reduce header section spacing */
    #live-better .text-center.mb-5 {
        margin-bottom: 1rem !important;
    }
}

/* Tablet View */
@media (max-width: 768px) and (min-width: 576px) {
    #live-better h1 {
        font-size: 2rem !important;
    }
    
    #live-better .col-6.col-md-3 i {
        font-size: 2.4rem !important;
    }
    
    #live-better .col-6.col-md-3 h2 {
        font-size: 2.2rem !important;
    }
}

/* Tablet Responsive */
@media (max-width: 768px) and (min-width: 576px) {
    #live-better h1 {
        font-size: 2.2rem !important;
    }
    
    #live-better .lead {
        font-size: 1.05rem !important;
    }
}

/* LIFE STAGES PAGE */
@media (max-width: 991px) {
    .life-stages-section {
        min-height: 100vh !important;
        padding: 90px 0.75rem 1rem 0.75rem !important;
        overflow-y: auto !important;
    }
    
    .life-stages-section .container-fluid {
        padding: 0.5rem !important;
    }
    
    .life-stages-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .life-stages-section .badge {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.85rem !important;
    }
    
    .life-stages-section p.text-muted {
        font-size: 0.85rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .life-stages-section .card {
        min-height: auto !important;
        margin-bottom: 0.75rem !important;
    }
    
    .life-stages-section .card-body {
        padding: 0.85rem !important;
    }
    
    .life-stages-section h6 {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .life-stages-section .rounded-circle {
        width: 42px !important;
        height: 42px !important;
        padding: 0.5rem !important;
    }
    
    .life-stages-section .rounded-circle i {
        font-size: 1.2rem !important;
    }
    
    .life-stages-section ul {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
    }
    
    .life-stages-section ul li {
        margin-bottom: 0.35rem !important;
    }
    
    .life-stages-section .row.g-2 {
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* MODAL CENTERING */
.modal-dialog {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 1rem) !important;
}

@media (min-width: 576px) {
    .modal-dialog {
        min-height: calc(100% - 3.5rem) !important;
    }
}

.modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* SCOPE PAGE */
@media (max-width: 991px) {
    section.d-flex.bg-light,
    .scope-section {
        height: auto !important;
        min-height: 100vh !important;
        padding: 90px 0.75rem 1rem 0.75rem !important;
        overflow-y: auto !important;
    }
    
    .scope-section .container {
        padding: 0.75rem !important;
    }
    
    .scope-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .scope-section .badge {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.85rem !important;
    }
    
    .scope-section p.text-muted {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }
    
    .scope-section .life-stage-card {
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .scope-section .stage-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.1rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .scope-section h5 {
        font-size: 1.05rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .scope-section ul {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
    }
    
    .scope-section ul li {
        margin-bottom: 0.35rem !important;
    }
    
    .scope-section .row.g-3 {
        gap: 0.65rem !important;
    }
}

/* UNIVERSAL MOBILE FIX - ALL PAGES */
@media (max-width: 991px) {
    /* Override ALL inline padding styles on sections */
    .main-content section[style*="height: 100vh"],
    .main-content section[style*="padding: 0"],
    section.d-flex[style*="height: 100vh"] {
        padding-top: 90px !important;
        padding-bottom: 1rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
    }
    
    /* Additional specificity for nested containers */
    .main-content section[style] > .container-fluid,
    .main-content section[style] > .container {
        padding-top: 1rem !important;
    }
}

/* SOLUTIONS PAGE - DESKTOP ICONS */
@media (min-width: 992px) {
    /* Larger icons for desktop */
    .hover-lift .col-4 i {
        font-size: 5rem !important;
    }
    
    /* Hover effect for cards */
    .hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
    }
    
    .hover-lift:hover .col-4 i {
        transform: scale(1.1);
        transition: transform 0.3s ease;
    }
}

/* ADVISOR PAGE - DESKTOP & MOBILE */
@media (min-width: 992px) {
    /* Desktop - Allow scrolling for content */
    .advisor-section {
        min-height: 100vh !important;
        height: auto !important;
        overflow-y: auto !important;
    }
    
    .advisor-section .container-fluid,
    .advisor-section .container {
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Clean card styling */
    .advisor-section .card {
        transition: all 0.3s ease;
        border-radius: 10px !important;
    }
    
    /* Advisor cards hover (blue) */
    .advisor-section .advisor-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(25, 104, 177, 0.2) !important;
        border-left-width: 6px !important;
    }
    
    .advisor-section .advisor-card:hover .icon-wrapper i {
        transform: scale(1.15);
        color: #0d4f8b !important;
    }
    
    /* Advisory cards hover (green) */
    .advisor-section .advisory-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(111, 168, 78, 0.2) !important;
        border-left-width: 6px !important;
    }
    
    .advisor-section .advisory-card:hover .icon-wrapper i {
        transform: scale(1.15);
        color: #558a3a !important;
    }
    
    /* Icon transition */
    .advisor-section .icon-wrapper i {
        transition: all 0.3s ease;
    }
}

@media (max-width: 991px) {
    /* Mobile - Optimized for smaller screens */
    .advisor-section {
        min-height: 100vh !important;
        padding: 90px 0.75rem 1rem 0.75rem !important;
        overflow-y: auto !important;
    }
    
    .advisor-section .container-fluid {
        padding: 0.75rem !important;
    }
    
    .advisor-section h2 {
        font-size: 1.4rem !important;
    }
    
    .advisor-section .badge {
        font-size: 0.75rem !important;
    }
    
    .advisor-section h5 {
        font-size: 1.05rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Clean card styling for mobile */
    .advisor-section .card {
        margin-bottom: 0 !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
        background: white !important;
    }
    
    .advisor-section .advisor-card {
        border-left: 3px solid #1968B1 !important;
    }
    
    .advisor-section .advisory-card {
        border-left: 3px solid #6FA84E !important;
    }
    
    /* Icon wrapper for mobile */
    .advisor-section .icon-wrapper {
        flex-shrink: 0;
    }
    
    .advisor-section .icon-wrapper i {
        font-size: 1.5rem !important;
    }
    
    .advisor-section .content-wrapper h6 {
        font-size: 0.85rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .advisor-section .content-wrapper p {
        font-size: 0.72rem !important;
        line-height: 1.4 !important;
    }
    
    .advisor-section .row.g-3 {
        gap: 0.65rem !important;
        margin-bottom: 1rem !important;
    }
    
    .advisor-section .btn {
        font-size: 0.9rem !important;
        padding: 0.75rem 1.8rem !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 12px rgba(25, 104, 177, 0.3) !important;
    }
    
    /* Section headers with better styling */
    .advisor-section .d-inline-block {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
}

/* ENGAGEMENT PAGE - VERTICAL CARDS */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 12px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

.flip-card-front {
    background-color: #f8f9fa;
    color: black;
    position: relative;
}

.flip-card-front img {
    filter: brightness(0.85);
    transition: filter 0.3s ease;
}

.flip-card:hover .flip-card-front img {
    filter: brightness(0.7);
}

.flip-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.3));
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.flip-card-back {
    background: linear-gradient(135deg, #1968B1 0%, #2575ba 100%);
    color: white;
    transform: rotateY(180deg);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
}

.flip-card-back h5 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    font-weight: 700;
    width: 100%;
    text-align: center;
}

.flip-card-back ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}

.flip-card-back ul li {
    margin-bottom: 5px;
    font-size: 0.7rem;
    line-height: 1.3;
    padding-left: 15px;
    position: relative;
}

.flip-card-back ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #6FA84E;
    font-weight: bold;
    font-size: 0.8rem;
}
