/* --- Base Theme & Variables --- */
:root {
    --primary-teal: #004d40;
    --accent-gold: #ffab00;
    --dark-navy: #0D2235;
    --light-bg: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-color: #343a40;
    --text-light: #6c757d;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    /* Dark mode variables */
    --dark-bg: #121212;
    --dark-card-bg: #1e1e1e;
    --dark-text-color: #e0e0e0;
    --dark-text-light: #b0b0b0;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-color);
    margin: 0;
    line-height: 1.7;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text-color);
}

/* --- Common Header --- */
.header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.top-bar {
    background-color: var(--dark-navy);
    color: white;
    padding: 8px 5%;
    font-size: 0.9rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.top-bar nav ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 20px; }
.top-bar nav a { color: white; text-decoration: none; transition: color 0.3s; }
.top-bar nav a:hover { color: var(--accent-gold); }
.main-nav-wrapper {
    background-color: var(--card-bg);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container { text-decoration: none; }
.logo-image { max-height: 50px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; }
ul.nav-links { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; }
ul.nav-links li { margin-left: 30px; }
.nav-links a { text-decoration: none; color: var(--dark-navy); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-teal); }
.action-buttons { margin-left: 30px; display: flex; gap: 15px; }
.btn { padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 500; transition: all 0.3s; }
.btn-primary { background-color: var(--primary-teal); color: white; }
.btn-secondary { background-color: transparent; border: 2px solid var(--primary-teal); color: var(--primary-teal); padding: 8px 18px; }
.theme-toggle-btn { background: none; border: none; cursor: pointer; font-size: 1.5rem; color: white; margin-left: 15px; }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* --- Common Footer --- */
.footer { background-color: var(--dark-navy); color: #a9b4c2; padding: 60px 5% 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-column h4 { font-family: var(--font-heading); color: white; margin: 0 0 20px; font-size: 1.1rem; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 12px; }
.footer-column a { color: #a9b4c2; text-decoration: none; }
.footer-bottom { border-top: 1px solid #2c3e50; padding-top: 30px; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid #2c3e50; }
.footer-legal p { margin: 0; font-size: 0.9rem; }
.footer-legal-links a { margin-left: 20px; font-size: 0.9rem; color: #a9b4c2; text-decoration: none; }

/* --- General Section & Card Styles --- */
.section { padding: 80px 5%; }
.section-title { font-family: var(--font-heading); font-size: 2.8rem; margin-bottom: 15px; color: var(--dark-navy); text-align: center; }
.section-subtitle { color: var(--text-light); max-width: 700px; margin: 0 auto 50px auto; text-align: center; }
.page-hero { padding: 80px 5%; text-align: center; color: white; }
.page-hero h1 { font-family: var(--font-heading); font-size: 3.5rem; margin: 0; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* --- Homepage Specific Styles --- */
.hero-slider { position: relative; width: 100%; height: 550px; overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: flex-start; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; }
.slide-content { text-align: left; padding-left: 10%; max-width: 50%; }
.slide-content h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.slide-content p { font-size: 1.1rem; margin-bottom: 30px; max-width: 500px; }
.btn-accent { background-color: var(--accent-gold); color: var(--dark-navy); font-weight: 700; padding: 12px 28px; border-radius: 8px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background-color: rgba(255,255,255,0.5); cursor: pointer; }
.dot.active { background-color: white; }
.partners-section { padding: 60px 0; overflow: hidden; }
.logo-scroller { display: flex; width: fit-content; animation: scroll 40s linear infinite; }
.partner-logo { height: 50px; margin: 0 40px; }
.partner-logo img { max-height: 100%; width: auto; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.cta-section-wrapper { background-color: var(--dark-navy); color: white; padding: 80px 5%; text-align: center; }
.cta-section h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 20px; }
.btn-cta-accent { background-color: var(--accent-gold); color: var(--dark-navy); font-weight: 700; }
.disclaimer-section { background-color: #e9ecef; padding: 40px 5%; text-align: center; }
.disclaimer-section p { font-size: 0.9rem; color: var(--text-light); max-width: 800px; margin: 0 auto; }

/* --- About Us Page Styles --- */
.about-page-hero { background: linear-gradient(rgba(13, 34, 53, 0.7), rgba(13, 34, 53, 0.7)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?q=80&w=3132&auto=format&fit=crop') center/cover no-repeat; }
.mission-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; }
.mission-vision h3 { font-family: var(--font-heading); color: var(--primary-teal); font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.journey-section { background-color: var(--card-bg); max-width: 900px; margin: 0 auto; padding: 50px; border-radius: 12px; }
.journey-section p strong { color: var(--primary-teal); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.team-card { background-color: var(--card-bg); border-radius: 12px; text-align: center; padding: 30px; box-shadow: 0 5px 25px rgba(0,0,0,0.07); }
.team-card img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 5px solid white; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 20px; }
.team-card h3 { font-family: var(--font-heading); margin: 10px 0 5px 0; }
.team-card .title { color: var(--primary-teal); font-weight: 600; margin-bottom: 15px; }
.team-card p { font-size: 0.9rem; color: var(--text-light); }

/* --- Services Page Styles --- */
.services-page-hero { background: linear-gradient(rgba(13, 34, 53, 0.7), rgba(13, 34, 53, 0.7)), url('https://images.unsplash.com/photo-1542840552-32f22a57375e?q=80&w=2832&auto=format&fit=crop') center/cover no-repeat; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.service-card { background-color: var(--card-bg); border-radius: 12px; padding: 40px 25px; text-align: center; text-decoration: none; color: var(--text-color); transition: all 0.3s; border: 1px solid #e9ecef; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 90, 158, 0.1); }
.service-card .material-symbols-outlined { font-size: 3.5rem; color: var(--primary-teal); margin-bottom: 20px; }
.service-card h3 { font-family: var(--font-heading); font-size: 1.5rem; margin: 0 0 10px 0; color: var(--dark-navy); }
.service-card p { font-size: 1rem; color: var(--text-light); margin: 0; }

/* --- Financial Health Checkup Page Styles --- */
.health-checkup-container { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.financial-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background-color: var(--card-bg); padding: 40px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.form-column h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-top: 0; margin-bottom: 20px; color: var(--primary-teal); }
.financial-input-group { display: flex; flex-direction: column; margin-bottom: 15px; }
.financial-input-group label { font-weight: 600; margin-bottom: 5px; }
.financial-input-group input { padding: 10px 15px; border-radius: 6px; border: 1px solid #ddd; font-size: 1rem; }
.financial-results { background-color: var(--card-bg); border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center; }
.doughnut-chart-container { width: 150px; height: 150px; margin: 0 auto 20px; }
.result-summary strong { display: block; font-size: 1.2rem; color: var(--primary-teal); }
.calc-btn { background-color: var(--primary-teal); color: white; padding: 12px 28px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 20px; }

/* --- Testimonial Slider Styles --- */
.testimonial-section { background-color: var(--light-bg); }
.testimonial-slider-container { max-width: 700px; margin: 0 auto; position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); background: var(--card-bg); }
.testimonial-slides { display: flex; transition: transform 0.5s ease-in-out; }
.testimonial-slide { flex: 0 0 100%; box-sizing: border-box; padding: 40px 50px; text-align: center; }
.testimonial-slide img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; }
.testimonial-rating { color: var(--accent-gold); font-size: 1.2rem; margin-bottom: 15px; }
.testimonial-text { font-style: italic; color: var(--text-light); margin-bottom: 20px; }
.testimonial-author { font-weight: 700; color: var(--dark-navy); }
.testimonial-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0,0,0,0.3); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; z-index: 10; font-size: 24px; line-height: 40px; text-align: center; }
.testimonial-nav-btn.prev { left: 15px; }
.testimonial-nav-btn.next { right: 15px; }
.testimonial-dots { text-align: center; padding-top: 20px; }
.testimonial-dot { display: inline-block; width: 10px; height: 10px; background-color: #ccc; border-radius: 50%; margin: 0 5px; cursor: pointer; }
.testimonial-dot.active { background-color: var(--primary-teal); }

/* --- Dark Mode Styles --- */
body.dark-mode .main-nav-wrapper { background-color: var(--dark-card-bg); }
body.dark-mode .nav-links a { color: var(--dark-text-light); }
body.dark-mode .mobile-menu-toggle { color: var(--dark-text-color); }
body.dark-mode .section-title, body.dark-mode .team-card h3, body.dark-mode .journey-section p strong { color: var(--dark-text-color); }
body.dark-mode .section-subtitle, body.dark-mode .team-card p { color: var(--dark-text-light); }
body.dark-mode .mission-vision h3, body.dark-mode .team-card .title { color: var(--accent-gold); }
body.dark-mode .journey-section, body.dark-mode .team-card, body.dark-mode .service-card, body.dark-mode .financial-form-grid, body.dark-mode .financial-results { background-color: var(--dark-card-bg); }
body.dark-mode .team-card img { border-color: var(--dark-card-bg); }
body.dark-mode .footer { background-color: #000; }
body.dark-mode .disclaimer-section { background-color: var(--dark-card-bg); }
body.dark-mode .cta-section-wrapper { background-color: #000; }
body.dark-mode .testimonial-section { background-color: var(--dark-bg); }
body.dark-mode .testimonial-slider-container { background: var(--dark-card-bg); }
body.dark-mode .testimonial-text { color: var(--dark-text-light); }
body.dark-mode .testimonial-author { color: var(--dark-text-color); }
body.dark-mode .service-card .material-symbols-outlined { color: var(--accent-gold); }
body.dark-mode .result-summary strong { color: var(--accent-gold); }

/* --- Responsive --- */
@media (max-width: 992px) {
    .main-nav { display: none; position: absolute; top: 100%; right: 5%; background-color: var(--card-bg); width: 250px; flex-direction: column; align-items: stretch; padding: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-radius: 8px; }
    .main-nav.active { display: flex; }
    ul.nav-links, .action-buttons { flex-direction: column; width: 100%; margin: 0; }
    ul.nav-links li { margin: 10px 0; }
    .mobile-menu-toggle { display: block; }
    .mission-vision, .footer-grid { grid-template-columns: 1fr 1fr; }
    .health-checkup-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) { 
    .mission-vision { grid-template-columns: 1fr; } 
    .financial-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) { 
    .footer-grid { grid-template-columns: 1fr; } 
    .page-hero h1 { font-size: 2.5rem; }
}/* --- Additional Responsive Styles for Mobile --- */
@media (max-width: 992px) {
    /* --- General Adjustments --- */
    .section {
        padding: 60px 5%;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .page-hero {
        padding: 60px 5%;
    }
    .page-hero h1 {
        font-size: 2.8rem;
    }

    /* --- Header --- */
    .main-nav-wrapper {
        padding: 10px 5%;
    }
    /* Ensure mobile menu takes full width */
    .main-nav {
        right: 0;
        width: 100%;
        border-radius: 0;
    }
    .action-buttons {
        gap: 10px;
        padding-top: 15px;
        margin-left: 0;
    }

    /* --- Homepage Hero Slider --- */
    .slide-content {
        padding-left: 5%;
        max-width: 80%;
    }
    .slide-content h1 {
        font-size: 2.5rem;
    }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .footer-legal {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* --- General Adjustments --- */
    body {
        line-height: 1.6;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    .section-subtitle {
        margin-bottom: 40px;
    }
    .btn {
        padding: 8px 16px;
    }

    /* --- Header --- */
    .top-bar {
        justify-content: center;
    }
    .logo-image {
        max-height: 40px;
    }

    /* --- Homepage --- */
    .hero-slider {
        height: 450px;
    }
    .slide-content {
        max-width: 90%;
        padding-left: 5%;
        text-align: center;
    }
    .slide-content h1 {
        font-size: 2rem;
    }
    .slide-content p {
        font-size: 1rem;
    }
    .cta-section h2 {
        font-size: 2rem;
    }

    /* --- About Us Page --- */
    .mission-vision {
        grid-template-columns: 1fr;
    }
    .journey-section {
        padding: 30px;
    }

    /* --- Testimonials --- */
    .testimonial-slide {
        padding: 30px 20px;
    }
    .testimonial-nav-btn {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 20px;
    }
    .testimonial-nav-btn.prev {
        left: 10px;
    }
    .testimonial-nav-btn.next {
        right: 10px;
    }

    /* --- Financial Health Checkup Page --- */
    .financial-form-grid {
        grid-template-columns: 1fr;
        padding: 25px;
    }
    .health-checkup-container {
        gap: 25px;
    }
}

@media (max-width: 576px) {
    /* --- General Adjustments --- */
    .section {
        padding: 50px 5%;
    }
    .page-hero h1 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.6rem;
    }

    /* --- Header --- */
    .top-bar nav ul {
        gap: 15px;
    }
    .top-bar {
        padding: 8px 3%;
        font-size: 0.8rem;
    }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column h4 {
        margin-top: 20px;
    }
    .footer-column:first-child h4 {
        margin-top: 0;
    }
}