/* --- Base Styles & Variables --- */
:root {
    --primary-color: #0040a1; /* Replace with your actual brand color */
    --secondary-color: #1a2a44; /* Added for footer/headers */
    --accent-color: #27ae60; /* Growth Green */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}
body {
    position: relative;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

/* --- Buttons --- */
/* 2. Target the anchor tag specifically to prevent other link styles from overriding it */
a.btn-primary,
button.btn-primary,
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white); /* This will now correctly pull the #ffffff value */
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover {
    background-color: #0a365c;
    color: var(--white); /* Ensures the text stays white when hovered */
}

.btn-primary.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary.block {
    width: 100%;
    font-size: 1.1rem;
    text-align: center; /* Centers the text inside full-width block buttons */
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Logo Image Styling */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block; /* Removes tiny space below inline images */
    text-decoration: none; 
}

.logo-image {
    max-height: 90px; /* Adjust this value based on your navbar's height */
    width: auto;      /* Keeps the image aspect ratio intact */
    object-fit: contain; /* Ensures the image doesn't stretch or squish */
}

/* --- Navbar --- */


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    background-color: var(--white);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0;
}

.sebi-badge {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color); /* Changed this line so it shows up in blue! */
}

/* --- Active Link Highlighting --- */

/* Targets the specific active class */
.nav-links a.active {
    color: var(--primary-color);
    position: relative;
}

/* Adds a nice underline effect for the active page */
.nav-links a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Ensure the hover state doesn't conflict */
.nav-links a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
/*
.hero {
    background: linear-gradient(rgba(15, 36, 97, 0.9), rgba(8, 182, 95, 0.9)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center; 
    color: var(--white);
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-content p {
    color: #e0e0e0;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}
*/


/* --- Hero Section --- */
.hero {
    /* A very mild, 5% transparent version of your primary blue color */
    background-color: rgba(0, 64, 161, 0.05); 
    padding: 5rem 0; /* Using padding instead of fixed height for better flexibility */
    display: flex;
    align-items: center;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center; /* Vertically centers the text with the image */
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color); /* Switched from white to primary blue */
    line-height: 1.2;
}

.hero-text p {
    color: var(--text-color); /* Switched from light gray to dark text */
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 24px; /* Gives the image large, modern rounded corners */
    box-shadow: 0 15px 30px rgba(0, 64, 161, 0.15); /* Adds a soft blue shadow */
    display: block;
}

.ashok-img {
    height: 400px;
    max-width: 100%;   /* ✅ prevents overflow */
    width: auto;       /* ✅ keeps aspect ratio natural */
    display: block;
    border-radius: 24px;
}

.sebi-img {
    width: auto;
    text-align: center;
    height: 50px;
    display: block;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.fbsb-img {
    width: auto;
    text-align: center;
    height: 40px;
    display: block;
    margin-top: 2rem;
    margin-bottom: 2rem;
}




/* --- Grids & Cards --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* --- Pledge Card Grid --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns on desktop */
    gap: 20px;
}

.pledge-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Ensures all cards in a row are equal height */
}

.pledge-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.pledge-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.pledge-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}




/* --- Services --- */
.service-card {
    text-align: center;
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* --- Updated Services Page Layout --- */

.service-detail-section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.service-detail-container {
    display: flex;
     flex-direction: row; /* FIX */
    gap: 40px;
    align-items: center;
    max-width: 1140px; /* Ensures it aligns with your navbar container */
    margin: 0 auto;
}

.service-content {
    flex: 1;
    width: 100%;
}

.service-detail-image {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.service-detail-image img {
    width: 100%;
    max-width: 500px; /* Prevents image from getting too huge */
    height: 350px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Specific object-position for your grid image */
#holistic .service-detail-image img { object-position: left top; }
#asset-allocation .service-detail-image img { object-position: center top; }
#legacy-protection .service-detail-image img { object-position: right top; }
#tax-strategy .service-detail-image img { object-position: left bottom; }
#freedom-roadmap .service-detail-image img { object-position: center bottom; }
#global-wealth .service-detail-image img { object-position: right bottom; }

.service-detail-section:nth-of-type(even) .service-detail-container {
    flex-direction: row-reverse;
}


/* --- Testimonials --- */

.testimonial-card p {
    font-style: regular;
    font-size: 1rem;
}

.testimonial-card h4 {
    margin-top: 1.5rem;
    color: var(--primary-color);
}


/* 1. Align the photo next to the name */
.client-header {
    display: flex;
    align-items: center; /* Vertically centers photo with text */
    gap: 15px;           /* Space between photo and text */
    margin-bottom: 15px; /* Space below the header */
}

/* 2. CONTROL PHOTO SIZE (The core request) */
.client-photo {
    /* Adjust these two numbers to change the size */
    width: 150px;  
    height: 150px;

    /* Maintains aspect ratio, crops from center if source isn't square */
    object-fit: cover; 

    /* Makes the photo perfectly circular */
    border-radius: 50%; 

    /* Optional: Add a subtle border or shadow */
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 3. Minor cleanup for the text next to photo */
.client-info h4 {
    margin: 0 0 2px 0; /* Remove default margins, add tiny bottom margin */
    font-size: 1.1rem;
}

.client-info .designation {
    font-size: 0.9rem;
    color: #666; /* Slightly fade the designation */
}

.testimonial-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto; /* Allow manual swipe on mobile */
    scroll-behavior: smooth;
    width: 100%;
    padding: 20px 0;
    /* Enable snapping for mobile feel, JS will still handle arrows */
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.testimonial-carousel::-webkit-scrollbar {
    display: none;
}

/* Wrapper to contain arrows and carousel */
/* 1. The Wrapper needs to allow the arrows to sit on top */
.testimonial-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

/* 2. Force the arrows to be visible with high contrast */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 50%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 3. Positioning - Move them slightly inward so they aren't cut off by the screen edge */
.nav-arrow.left { left: -25px; }
.nav-arrow.right { right: -25px; }

/* 4. Ensure the carousel doesn't hide the buttons */
.testimonial-carousel {
    display: flex;
    gap: 20px;
    overflow-x: hidden; /* Hide scrollbar for a cleaner look */
    scroll-behavior: smooth;
    width: 100%;
    padding: 30px 30px; /* Extra horizontal padding so cards don't touch arrows */
}

.nav-arrow:hover {
    background-color: #1a2a44 !important;
    transform: translateY(-50%) scale(1.1);
}

/* Each card width */


.testimonial-card {
    /* Mobile: 90% width makes it look 'full' but shows a hint of the next card */
    flex: 0 0 90%; 
    max-width: 350px; /* Limits size on desktop */
    margin: 0 auto;
    scroll-snap-align: center; /* This forces the card to the middle on mobile */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-carousel::before,
.testimonial-carousel::after {
    content: "";
    flex: 0 0 1.5%; /* (100 - 85) / 2 */
}

.testimonial-carousel {
    scroll-padding: 0 1rem;
}

.scroll-spacer {
    flex: 0 0 5%; /* Matches the remaining 10% (5% left + 5% right) */
    scroll-snap-align: none;
}

/* --- Blog --- */
.blog-card {
    padding: 0;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Crops the image to fit perfectly without stretching */
    display: block;    /* Removes the tiny gap below the image */
    transition: var(--transition); /* Optional: prepares the image for hover effects */
}

/* Optional: Add a slight zoom effect when users hover over the blog card */
.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
    position: relative; /* Keeps content above the image if we add hover effects */
    background: var(--white);
}

.blog-content .date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.blog-content h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.read-more {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

/* --- New Page & Element Styles --- */

.center-btn {
    text-align: center;
    margin-top: 3rem;
}

/* Page Header for inner pages */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.page-header p {
    color: #e0e0e0;
    font-size: 1.1rem;
}

/* SEBI Disclosure Tables */
.disclosure-content h3 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.disclosure-content h4 {
    margin: 1.5rem 0 0.8rem;
    color: var(--text-color);
}

.disclosure-content p {
    margin-bottom: 1rem;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.disclosure-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.disclosure-table th, 
.disclosure-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: center;
    font-size: 0.9rem;
}

.disclosure-table th {
    background-color: var(--bg-light);
    color: var(--secondary-color);
    font-weight: 600;
}


/* Process Section */
.process-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 1rem;
}

.step-num {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: bold;
    font-size: 1.2rem;
}


/* --- Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* Creates perfect spacing between form groups */
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    background-color: var(--bg-light);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15); /* Adds a subtle blue glow on focus */
}

.sub-text{
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Adjust this value for more/less space */
}

.contact-info h2, 
.contact-info p {
    margin: 0;
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
}

footer p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.8rem;
    max-width: 800px;
    margin: 1rem auto 0;
    line-height: 1.4;
    color: #999;
}

/* --- Responsive Media Queries --- */

/* 1. Desktop & Large Tablets (Max 1024px) */
@media screen and (max-width: 1024px) {
    .hero-text h2 {
        font-size: 2.8rem;
    }
    
    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr); /* Better use of space than 1 column */
    }
    
    .process-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .process-step {
        flex: 1 1 45%; /* Steps take half width */
    }
}

/* 2. Tablets & Small Devices (Max 768px) */
@media screen and (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: block; /* Show menu toggle */
    }

    /* Add this to your style.css if not already there */
        .hamburger.active .bar:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active .bar:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .hamburger.active .bar:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }
/*
    .nav-links {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
*/
     .nav-links {
        position: fixed;
        left: -100%;
        top: 70px; /* Adjusted to match common nav heights */
        flex-direction: column;
        width: 100%;
        background: var(--white);
        transition: 0.3s;
    }

     .nav-links.active { left: 0; }
    .hamburger { display: block; }

    /*
    .nav-links.active {
        left: 0;
    }
*/



    /* Hero & Layout Wrappers */
    /*
    .hero-wrapper, .contact-wrapper, .grid-2 {
        grid-template-columns: 1fr; /* Stack all side-by-side elements 
        text-align: center;
        gap: 2rem;
    }
    */
     .hero-wrapper, .contact-wrapper, .grid-2, .service-detail-container {
        grid-template-columns: 1fr;
        flex-direction: column !important; 
        text-align: center;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .hero-image-container {
        order: -1; /* Move images above text on mobile for better flow */
    }

    
    .ashok-img {
        width: 100%;      /* ✅ scale to container */
        height: auto;     /* ✅ maintain proportion */
        max-width: 350px; /* optional: control size */
        margin: 0 auto;   /* center it */
    }


    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-detail-section:nth-of-type(even) .service-detail-container {
        flex-direction: column !important; /* Prevents row-reverse on mobile */
    }

    .service-detail-image { order: -1; } /* Image on top */


.testimonial-card {
    min-width: 85%;
}

.nav-arrow.left { left: 0; }
.nav-arrow.right { right: 0; }

    /* --- Updated Services Page Layout --- */

.service-detail-section {
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}



/* Alternate Layout: Every second section will have the image on the right */
.service-detail-section:nth-of-type(even) .service-detail-container {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1.2; /* Content gets slightly more space */
}

.service-detail-image {
    flex: 0.8; /* Image takes slightly less space */
    display: flex;
    justify-content: center;
}

.service-detail-image img {
    width: 100%;
    max-width: 500px;
    height: 400px; /* Consistent height */
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 64, 161, 0.12);
}

/* Highlight box inside service content */
.highlight-box {
    background-color: rgba(0, 64, 161, 0.05);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    margin-top: 1.5rem;
    border-radius: 0 8px 8px 0;
}
@media screen and (min-width: 769px) {
    .testimonial-carousel {
        scroll-snap-type: none !important; /* Disable snap for smoother JS auto-scroll */
        overflow-x: hidden;
    }
    .testimonial-card {
        flex: 0 0 350px;
    }
}

/* 3. Mobile Phones (Max 480px) */
@media screen and (max-width: 480px) {
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr; /* Everything becomes a single column */
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .btn-primary.large {
        width: 100%; /* Full width buttons for easy thumb tapping */
    }

    .process-step {
        flex: 1 1 100%;
    }

    .logo-image {
        max-height: 60px; /* Smaller logo for mobile headers */
    }

    .contact-wrapper {
        padding: 1.5rem;
    }
    
    /* Hide arrows on very small screens to save space (optional) */

    .nav-arrow {
        width: 35px;
        height: 35px;
    }
    .nav-arrow.left { left: -10px; }
    .nav-arrow.right { right: -10px; }

}

@media screen and (max-width: 992px) {
    .service-detail-container, 
    .service-detail-section:nth-of-type(even) .service-detail-container {
        flex-direction: column; /* Stack vertically on tablets/phones */
        text-align: center;
        gap: 30px;
    }

    .service-detail-image {
        order: -1; /* Ensure image always appears above text on mobile */
    }

    .service-detail-image img {
        height: 300px;
        max-width: 100%;
    }

    .service-content ul {
        text-align: left; /* Keep lists readable */
        display: inline-block;
    }

    .testimonial-card {
    min-width: 85%;
}
}