/* 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;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 70px; /* Space for fixed header */
    cursor: url('../images/Mouse_pointer.svg'), auto;
}

/* TOP HEADER NAVIGATION STYLES */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #ffffff;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.header-logo a:hover img {
    transform: scale(1.05);
}

.header-nav {
    flex: 1;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu .nav-item {
    position: relative;
    display: inline-block !important;
}

.nav-menu .nav-link {
    display: inline-block !important;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-menu .nav-link:hover {
    background-color: rgba(25, 104, 177, 0.08);
    color: var(--primary-color);
}

.nav-menu .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 12px rgba(25, 104, 177, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header img {
    height: 40px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    background-color: rgba(25, 104, 177, 0.08);
    color: var(--primary-color);
}

.mobile-nav a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-menu .nav-link {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .header-nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .header-logo img {
        height: 40px;
    }
    
    /* Adjust body padding for mobile */
    body {
        padding-top: 60px;
    }
    
    .top-header {
        height: 60px;
    }
    
    /* Better spacing for content on mobile */
    .container,
    .container-fluid {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    /* Mobile optimizations for index page hero */
    section[style*="padding: 60px 0"] {
        padding: 40px 0 !important;
    }
    
    /* Stats grid mobile optimization */
    .row.g-3 {
        gap: 0.75rem !important;
    }
}

@media (max-width: 576px) {
    .container,
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .header-logo img {
        height: 35px;
    }
    
    /* Mobile menu optimization */
    .mobile-menu {
        width: 85%;
        max-width: 300px;
    }
}

/* SIDEBAR NAVIGATION STYLES - LEGACY (Can be removed if not needed) */
.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: 0 !important;
    margin-right: 0 !important;
    padding: 0;
    width: 100%;
}

.main-content section {
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

/* 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 - REMOVED (No sidebar anymore) */
.main-content {
    margin-left: 0 !important;
    padding: 0;
}

/* Mobile Responsiveness */
@media screen and (max-width: 991px) {
    .sidenav {
        display: none;
    }
    
    .main-content {
        margin-left: 0 !important;
        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;
    }
}

/* Pulse animation for 7 steps section */
@keyframes pulse-step {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(139,192,102,0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(139,192,102,0.5);
    }
}

/* 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 {
        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 {
        padding: 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;
}

/* Life Aspects - 7 Expandable Images */
.life-aspects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.life-aspects-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.life-aspects-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.life-aspect-item {
    position: relative;
    flex: 0 0 auto;
    width: 120px;
    height: 300px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.life-aspect-item:hover {
    width: 280px;
    z-index: 10;
}

.aspect-label {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    white-space: nowrap;
}

.aspect-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.aspect-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.life-aspect-item:hover .aspect-image-wrapper img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.aspect-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 2rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.5s ease;
}

.aspect-overlay i {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.life-aspect-item:hover .aspect-overlay i {
    font-size: 2.5rem;
    opacity: 1;
}

/* Different gradient colors for each aspect */
.life-aspect-item[data-aspect="family"] .aspect-overlay {
    background: linear-gradient(to top, rgba(239, 68, 68, 0.8) 0%, rgba(239, 68, 68, 0.3) 50%, transparent 100%);
}

.life-aspect-item[data-aspect="health"] .aspect-overlay {
    background: linear-gradient(to top, rgba(34, 197, 94, 0.8) 0%, rgba(34, 197, 94, 0.3) 50%, transparent 100%);
}

.life-aspect-item[data-aspect="career"] .aspect-overlay {
    background: linear-gradient(to top, rgba(59, 130, 246, 0.8) 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
}

.life-aspect-item[data-aspect="education"] .aspect-overlay {
    background: linear-gradient(to top, rgba(168, 85, 247, 0.8) 0%, rgba(168, 85, 247, 0.3) 50%, transparent 100%);
}

.life-aspect-item[data-aspect="lifestyle"] .aspect-overlay {
    background: linear-gradient(to top, rgba(251, 191, 36, 0.8) 0%, rgba(251, 191, 36, 0.3) 50%, transparent 100%);
}

.life-aspect-item[data-aspect="retirement"] .aspect-overlay {
    background: linear-gradient(to top, rgba(20, 184, 166, 0.8) 0%, rgba(20, 184, 166, 0.3) 50%, transparent 100%);
}

.life-aspect-item[data-aspect="legacy"] .aspect-overlay {
    background: linear-gradient(to top, rgba(236, 72, 153, 0.8) 0%, rgba(236, 72, 153, 0.3) 50%, transparent 100%);
}

/* Mobile responsive for life aspects */
@media (max-width: 992px) {
    .life-aspect-item {
        width: 100px;
        height: 250px;
    }
    
    .life-aspect-item:hover {
        width: 220px;
    }
    
    .aspect-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .life-aspects-wrapper {
        justify-content: flex-start;
        gap: 0.75rem;
        padding-right: 2rem;
    }
    
    .life-aspect-item {
        width: 90px;
        height: 220px;
    }
    
    .life-aspect-item:hover {
        width: 180px;
    }
    
    .aspect-label {
        font-size: 0.85rem;
        top: 8px;
    }
    
    .aspect-overlay i {
        font-size: 1.5rem;
    }
    
    .life-aspect-item:hover .aspect-overlay i {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .life-aspect-item {
        width: 80px;
        height: 200px;
    }
    
    .life-aspect-item:hover {
        width: 160px;
    }
    
    .aspect-label {
        font-size: 0.75rem;
    }
    
    .aspect-image-wrapper {
        border-radius: 16px;
    }
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 320px;
    min-height: 280px;
    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 8px 25px rgba(0,0,0,0.12);
    border-radius: 16px;
}

.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: 16px;
    overflow: hidden;
}

.flip-card-front {
    background-color: #f8f9fa;
    color: black;
    position: relative;
}

.flip-card-front img {
    filter: brightness(0.88);
    transition: filter 0.3s ease;
}

.flip-card:hover .flip-card-front img {
    filter: brightness(0.75);
}

.flip-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
    color: white;
    padding: 20px 16px;
    font-weight: 600;
    font-size: 1.15rem;
    text-align: center;
}

.flip-card-back {
    background: linear-gradient(135deg, #1968B1 0%, #2575ba 100%);
    color: white;
    transform: rotateY(180deg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
}

.flip-card-back h5 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    width: 100%;
    text-align: center;
}

.flip-card-back ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
    width: 100%;
}

.flip-card-back ul li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
}

.flip-card-back ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #86efac;
    font-weight: bold;
    font-size: 1rem;
}

.flip-card-back .btn {
    font-size: 0.9rem !important;
    padding: 0.6rem 1.25rem !important;
    margin-top: auto;
    white-space: nowrap;
    font-weight: 600;
}

/* ========================================
   MOBILE RESPONSIVE OPTIMIZATIONS - INDEX PAGE
   ======================================== */

/* Tablet and below - General optimizations */
@media (max-width: 992px) {
    /* Hero section spacing */
    section[style*="padding: 60px 0 50px"] {
        padding: 50px 0 40px !important;
    }
    
    /* Hero heading responsive */
    h1[style*="clamp"] {
        font-size: clamp(2rem, 5vw, 3rem) !important;
    }
    
    /* Stats section optimization */
    .row.g-3.mb-5 {
        max-width: 100% !important;
    }
    
    /* Cards section spacing */
    section[style*="padding: 80px 0 60px"] {
        padding: 60px 0 40px !important;
    }
    
    /* Flip cards adjustment */
    .flip-card {
        height: 280px;
        min-height: 260px;
    }
}

/* Mobile landscape and portrait */
@media (max-width: 768px) {
    /* Hero section mobile optimization */
    section[style*="padding: 60px 0 50px"],
    section[style*="padding: 50px 0 40px"] {
        padding: 40px 0 30px !important;
    }
    
    /* Badge sizing */
    .badge.px-4.py-2 {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Hero heading mobile */
    h1[style*="clamp"] {
        font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Hero subtitle */
    p[style*="font-size: 1.1rem"] {
        font-size: 0.95rem !important;
        padding: 0 1rem;
    }
    
    /* Stats cards mobile - 2 columns */
    .row.g-3.mb-5 > div {
        padding: 0.5rem !important;
    }
    
    .row.g-3.mb-5 .text-center {
        padding: 0.75rem !important;
    }
    
    .row.g-3.mb-5 i {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .row.g-3.mb-5 .fw-bold {
        font-size: 1.4rem !important;
    }
    
    .row.g-3.mb-5 div[style*="font-size: 0.85rem"] {
        font-size: 0.75rem !important;
    }
    
    /* Cards section mobile */
    section[style*="padding: 80px 0 60px"],
    section[style*="padding: 60px 0 40px"] {
        padding: 40px 0 30px !important;
    }
    
    /* Flip cards mobile optimization */
    .flip-card {
        height: 260px;
        min-height: 240px;
    }
    
    .flip-card-title {
        font-size: 1rem !important;
        padding: 15px 12px !important;
    }
    
    .flip-card-back {
        padding: 1.5rem 1.25rem !important;
    }
    
    .flip-card-back h5 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .flip-card-back ul li {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .flip-card-back .btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* CTA button mobile */
    .btn-lg[style*="padding: 1rem 3rem"] {
        padding: 0.75rem 2rem !important;
        font-size: 1rem !important;
    }
    
    /* Row gap adjustments */
    .row.g-4 {
        gap: 1rem !important;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    /* Hero optimization */
    section[style*="padding: 40px 0 30px"] {
        padding: 30px 0 25px !important;
    }
    
    .badge.px-4.py-2 {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    h1[style*="clamp"] {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        margin-bottom: 0.75rem !important;
    }
    
    p[style*="font-size: 1.1rem"],
    p[style*="font-size: 0.95rem"] {
        font-size: 0.85rem !important;
    }
    
    /* Stats - single column on very small screens */
    .row.g-3.mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .row.g-3.mb-5 > div {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Flip cards smallest screens */
    .flip-card {
        height: 240px;
        min-height: 220px;
    }
    
    .flip-card-title {
        font-size: 0.9rem !important;
        padding: 12px 10px !important;
    }
    
    .flip-card-back {
        padding: 1.25rem 1rem !important;
    }
    
    .flip-card-back h5 {
        font-size: 1rem !important;
    }
    
    .flip-card-back ul li {
        font-size: 0.8rem !important;
        padding-left: 18px !important;
    }
    
    .flip-card-back ul li:before {
        font-size: 0.85rem !important;
    }
    
    /* CTA button small mobile */
    .btn-lg[style*="padding: 0.75rem 2rem"],
    .btn-lg[style*="padding: 1rem 3rem"] {
        padding: 0.65rem 1.5rem !important;
        font-size: 0.9rem !important;
        width: 100%;
        max-width: 300px;
    }
    
    .text-center.mt-5 {
        margin-top: 2rem !important;
    }
}

/* Extra small devices - ultra compact */
@media (max-width: 400px) {
    h1[style*="clamp"] {
        font-size: 1.4rem !important;
    }
    
    .row.g-3.mb-5 i {
        font-size: 1.25rem !important;
    }
    
    .row.g-3.mb-5 .fw-bold {
        font-size: 1.2rem !important;
    }
    
    .flip-card {
        height: 220px;
        min-height: 200px;
    }
}

/* ========================================
   FOOTER MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet and below */
@media (max-width: 992px) {
    .site-footer {
        padding: 1.5rem 0 1rem !important;
    }
    
    .site-footer .container-fluid {
        padding: 0 1.5rem !important;
    }
    
    /* Footer cards spacing */
    .site-footer .row.g-2 {
        gap: 0.75rem !important;
    }
    
    /* Logo section mobile adjustment */
    .site-footer .col-lg-3.text-center {
        margin-bottom: 1.5rem !important;
    }
    
    /* Contact section better layout */
    .site-footer .col-lg-6 .row {
        margin-top: 0.75rem;
    }
    
    /* CTA button full width on tablet */
    .site-footer .col-lg-3 .btn {
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .site-footer {
        padding: 1.25rem 0 0.75rem !important;
    }
    
    .site-footer .container-fluid {
        padding: 0 1rem !important;
    }
    
    /* Reduce blur orb sizes */
    .site-footer > div[style*="position: absolute"] {
        width: 300px !important;
        height: 300px !important;
    }
    
    /* Card body padding reduction */
    .site-footer .card-body {
        padding: 1.25rem !important;
    }
    
    /* Logo smaller on mobile */
    .site-footer img[style*="max-width: 140px"] {
        max-width: 100px !important;
    }
    
    /* Text size adjustments */
    .site-footer p[style*="font-size: 0.8rem"] {
        font-size: 0.75rem !important;
    }
    
    .site-footer h6[style*="font-size: 0.9rem"] {
        font-size: 0.85rem !important;
    }
    
    .site-footer p[style*="font-size: 0.75rem"] {
        font-size: 0.7rem !important;
        line-height: 1.4;
    }
    
    /* Contact details stack better */
    .site-footer .col-md-6 {
        margin-bottom: 0.75rem;
    }
    
    /* CTA button mobile */
    .site-footer .col-lg-3 .btn {
        font-size: 0.85rem !important;
        padding: 0.55rem 1rem !important;
    }
    
    /* Footer cards equal height removal for mobile */
    .site-footer .col-lg-4 .card {
        margin-bottom: 0.75rem;
    }
    
    /* Warning section mobile */
    .site-footer .row .col-md-4 {
        margin-bottom: 0.5rem;
    }
    
    /* Center Regulatory Disclosures heading on mobile */
    .site-footer h6[style*="Regulatory Disclosures"],
    .site-footer .card-body h6 {
        text-align: center !important;
    }
    
    /* Bottom copyright */
    .site-footer .border-top {
        padding-top: 1rem !important;
        margin-top: 1rem !important;
    }
    
    .site-footer .border-top p {
        font-size: 0.65rem !important;
        line-height: 1.4;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .site-footer {
        padding: 1rem 0 0.5rem !important;
    }
    
    .site-footer .container-fluid {
        padding: 0 0.75rem !important;
    }
    
    /* Blur orbs even smaller */
    .site-footer > div[style*="position: absolute"] {
        width: 200px !important;
        height: 200px !important;
    }
    
    /* Card body compact */
    .site-footer .card-body {
        padding: 1rem !important;
    }
    
    /* Logo center alignment */
    .site-footer .col-lg-3.text-center {
        margin-bottom: 1rem !important;
    }
    
    .site-footer img[style*="max-width: 140px"],
    .site-footer img[style*="max-width: 100px"] {
        max-width: 80px !important;
    }
    
    /* All text smaller */
    .site-footer h6[style*="font-size: 0.9rem"],
    .site-footer h6[style*="font-size: 0.85rem"] {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .site-footer p[style*="font-size: 0.8rem"],
    .site-footer p[style*="font-size: 0.75rem"] {
        font-size: 0.7rem !important;
        margin-bottom: 0.35rem !important;
    }
    
    .site-footer p[style*="font-size: 0.75rem"],
    .site-footer p[style*="font-size: 0.7rem"] {
        font-size: 0.65rem !important;
    }
    
    /* Icons smaller */
    .site-footer .fas,
    .site-footer .fab {
        font-size: 0.75rem !important;
    }
    
    /* Contact details single column */
    .site-footer .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* CTA button compact */
    .site-footer .col-lg-3 .btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
        width: 100%;
    }
    
    /* Small buttons in cards */
    .site-footer .btn-sm {
        font-size: 0.65rem !important;
        padding: 0.35rem 0.5rem !important;
    }
    
    /* Warning section stacked */
    .site-footer .row .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    /* Row gaps tighter */
    .site-footer .row.g-2 {
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Bottom bar */
    .site-footer .border-top {
        padding-top: 0.75rem !important;
        margin-top: 0.75rem !important;
    }
    
    .site-footer .border-top p {
        font-size: 0.6rem !important;
        line-height: 1.3;
        padding: 0 0.5rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .site-footer .card-body {
        padding: 0.75rem !important;
    }
    
    .site-footer img[style*="max-width"] {
        max-width: 70px !important;
    }
    
    .site-footer h6 {
        font-size: 0.75rem !important;
    }
    
    .site-footer p {
        font-size: 0.6rem !important;
    }
    
    .site-footer .btn {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
    }
}

/* ========================================
   THE ADVISORY PAGE MOBILE RESPONSIVE
   ======================================== */

/* Tablet and below */
@media (max-width: 992px) {
    /* Hero section */
    .main-content section[style*="padding: 60px 0 50px"] {
        padding: 50px 0 40px !important;
    }
    
    /* Content section */
    .main-content section[style*="padding: 100px 0 80px"] {
        padding: 70px 0 50px !important;
    }
    
    /* Section spacing */
    .mb-6[style*="margin-bottom: 6rem"] {
        margin-bottom: 4rem !important;
    }
    
    /* Fee cards - 2 columns on tablet */
    .row.g-4.mb-5 .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    /* Hero section mobile */
    .main-content section[style*="padding: 60px 0 50px"],
    .main-content section[style*="padding: 50px 0 40px"] {
        padding: 40px 0 30px !important;
    }
    
    /* Blur orbs smaller */
    .main-content section div[style*="width: 400px; height: 400px"] {
        width: 300px !important;
        height: 300px !important;
    }
    
    .main-content section div[style*="width: 350px; height: 350px"] {
        width: 250px !important;
        height: 250px !important;
    }
    
    /* Hero badge */
    .main-content .badge.px-4.py-2 {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Hero heading */
    .main-content h1[style*="clamp"] {
        font-size: clamp(2rem, 5vw, 2.5rem) !important;
    }
    
    /* Hero subtitle */
    .main-content section p[style*="font-size: 1.1rem"] {
        font-size: 0.95rem !important;
        padding: 0 1rem;
    }
    
    /* Content section */
    .main-content section[style*="padding: 100px 0 80px"],
    .main-content section[style*="padding: 70px 0 50px"] {
        padding: 50px 0 30px !important;
    }
    
    /* Section headings */
    .main-content h2[style*="font-size: 2.5rem"] {
        font-size: 1.75rem !important;
    }
    
    /* Section descriptions */
    .main-content p[style*="font-size: 1.15rem"] {
        font-size: 1rem !important;
    }
    
    /* Section spacing */
    .mb-6[style*="margin-bottom: 6rem"],
    .mb-6[style*="margin-bottom: 4rem"] {
        margin-bottom: 3rem !important;
    }
    
    /* Fee cards mobile - single column */
    .row.g-4.mb-5 .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .row.g-4.mb-5 {
        margin-bottom: 2.5rem !important;
    }
    
    /* Card padding reduction */
    .card.p-4,
    .card.p-5 {
        padding: 1.5rem !important;
    }
    
    /* Icon sizes */
    .card i[style*="font-size: 3rem"] {
        font-size: 2.5rem !important;
    }
    
    .card i[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
    }
    
    /* Card headings */
    .card h6[style*="font-size: 1.1rem"],
    .card h6[style*="font-size: 1.05rem"] {
        font-size: 1rem !important;
    }
    
    /* Card text */
    .card p[style*="font-size: 0.95rem"],
    .card p[style*="font-size: 0.9rem"] {
        font-size: 0.85rem !important;
    }
    
    /* Focus card special styling */
    .card div[style*="width: 80px; height: 80px"] {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Core principles icons */
    .card div[style*="width: 50px; height: 50px"] {
        width: 45px !important;
        height: 45px !important;
    }
    
    /* Table responsive */
    .table-responsive table {
        font-size: 0.8rem !important;
    }
    
    .table th,
    .table td {
        padding: 0.5rem !important;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    /* Hero ultra compact */
    .main-content section[style*="padding: 40px 0 30px"] {
        padding: 30px 0 25px !important;
    }
    
    /* Blur orbs smallest */
    .main-content section div[style*="width: 300px"],
    .main-content section div[style*="width: 250px"] {
        width: 200px !important;
        height: 200px !important;
    }
    
    /* Badge smallest */
    .main-content .badge.px-4.py-2,
    .main-content .badge[style*="padding: 0.5rem 1rem"] {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    /* Hero heading smallest */
    .main-content h1[style*="clamp"] {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Hero text */
    .main-content section p[style*="font-size: 1.1rem"],
    .main-content section p[style*="font-size: 0.95rem"] {
        font-size: 0.85rem !important;
    }
    
    /* Content section smallest */
    .main-content section[style*="padding: 100px 0 80px"],
    .main-content section[style*="padding: 70px 0 50px"],
    .main-content section[style*="padding: 50px 0 30px"] {
        padding: 40px 0 25px !important;
    }
    
    /* Section headings */
    .main-content h2[style*="font-size: 2.5rem"],
    .main-content h2[style*="font-size: 1.75rem"] {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Section descriptions */
    .main-content p[style*="font-size: 1.15rem"],
    .main-content p[style*="font-size: 1rem"] {
        font-size: 0.9rem !important;
    }
    
    /* Container padding */
    .main-content .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Section spacing */
    .mb-6[style*="margin-bottom"],
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Cards ultra compact */
    .card.p-4,
    .card.p-5,
    .card[style*="padding: 1.5rem"] {
        padding: 1.25rem !important;
    }
    
    /* Icons smallest */
    .card i[style*="font-size: 3rem"],
    .card i[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Focus card icon */
    .card div[style*="width: 80px"],
    .card div[style*="width: 60px"] {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Core principles icons */
    .card div[style*="width: 50px"],
    .card div[style*="width: 45px"] {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Card headings */
    .card h6[style*="font-size: 1.1rem"],
    .card h6[style*="font-size: 1.05rem"],
    .card h6[style*="font-size: 1rem"] {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Card text */
    .card p[style*="font-size: 0.95rem"],
    .card p[style*="font-size: 0.9rem"],
    .card p[style*="font-size: 0.85rem"] {
        font-size: 0.8rem !important;
        line-height: 1.5;
    }
    
    /* List items */
    .card ul li {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    /* Row gaps */
    .row.g-4 {
        gap: 1rem !important;
    }
    
    /* Table mobile */
    .table-responsive {
        font-size: 0.7rem !important;
    }
    
    .table th,
    .table td {
        padding: 0.35rem !important;
        font-size: 0.7rem !important;
    }
    
    /* Badges in sections */
    .badge[style*="font-size: 0.9rem"] {
        font-size: 0.75rem !important;
    }
}

/* Life Stages Page Mobile Responsive */
@media (max-width: 992px) {
    /* Remove left padding on tablet */
    [style*="padding-left: 86px"] {
        padding-left: 0 !important;
    }
}

@media (max-width: 768px) {
    /* Life Stages Hero Section */
    body:has([title*="Suitable For"]) section:first-of-type,
    body:has([title*="Suitable For"]) .main-content section:first-of-type {
        padding: 50px 0 40px !important;
    }
    
    /* Life Stages Content Section */
    body:has([title*="Suitable For"]) section:last-of-type {
        padding: 50px 0 40px !important;
    }
    
    /* Icon containers */
    [style*="width: 70px; height: 70px"] {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
        margin-right: 1rem !important;
        border-radius: 12px !important;
    }
    
    /* Industry & Country Focus Cards */
    .hover-scale {
        padding: 1rem !important;
    }
    
    .hover-scale i {
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hover-scale span {
        font-size: 0.85rem !important;
        line-height: 1.3;
    }
    
    /* Life Stages Timeline Cards */
    body:has([title*="Suitable For"]) .card {
        margin-bottom: 1rem !important;
    }
    
    body:has([title*="Suitable For"]) .card-body {
        padding: 1.25rem !important;
    }
    
    /* Special Situations Cards */
    body:has([title*="Suitable For"]) .p-5 {
        padding: 1.5rem !important;
    }
    
    /* Row gaps */
    .row.g-3.g-lg-4 {
        gap: 0.75rem !important;
    }
}

@media (max-width: 576px) {
    /* Compact hero */
    body:has([title*="Suitable For"]) section:first-of-type {
        padding: 40px 0 30px !important;
    }
    
    body:has([title*="Suitable For"]) section:last-of-type {
        padding: 40px 0 30px !important;
    }
    
    /* Icon containers smaller */
    [style*="width: 50px; height: 50px"] {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.25rem !important;
        margin-right: 0.75rem !important;
    }
    
    /* Industry & Country cards tighter */
    .col-6 {
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
    }
    
    .hover-scale {
        padding: 0.75rem 0.5rem !important;
        border-radius: 12px !important;
    }
    
    .hover-scale i {
        font-size: 1.5rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .hover-scale span {
        font-size: 0.75rem !important;
        line-height: 1.2;
    }
    
    /* Section headings */
    body:has([title*="Suitable For"]) h3 {
        font-size: 1.15rem !important;
    }
    
    /* Text paragraphs */
    body:has([title*="Suitable For"]) p[style*="font-size: 1.1rem"] {
        font-size: 0.9rem !important;
        line-height: 1.6;
    }
    
    /* Card titles */
    body:has([title*="Suitable For"]) .card h5 {
        font-size: 1rem !important;
    }
    
    /* List items */
    body:has([title*="Suitable For"]) .card ul li {
        font-size: 0.85rem !important;
        line-height: 1.5;
    }
}

@media (max-width: 400px) {
    /* Extra small adjustments */
    .hover-scale {
        padding: 0.6rem 0.4rem !important;
    }
    
    .hover-scale i {
        font-size: 1.3rem !important;
    }
    
    .hover-scale span {
        font-size: 0.7rem !important;
    }
    
    [style*="width: 40px; height: 40px"] {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    /* Hero */
    .main-content h1[style*="clamp"] {
        font-size: 1.4rem !important;
    }
    
    /* Headings */
    .main-content h2 {
        font-size: 1.3rem !important;
    }
    
    /* Cards */
    .card {
        padding: 1rem !important;
    }
    
    /* Icons */
    .card i {
        font-size: 1.75rem !important;
    }
    
    /* Text */
    .card h6 {
        font-size: 0.9rem !important;
    }
    
    .card p {
        font-size: 0.75rem !important;
    }
}
