/* --- RESIDENTIAL HERO SECTION --- */
.res-hero-section {
    background-color: #ffffff;
}

/* Left Side (Text & Image) */
.res-hero-left {
    background-color: #ffffff;
    /* Pushes the image down to the bottom on desktop to align with the form */
    justify-content: flex-start;
}

.res-headline {
    font-family: 'DM Sans', sans-serif;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

/* .text-vanguard-green {
    color: #20b038;
} */

.res-subline {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
}

/* Fading the top of the image smoothly into the white background */
.res-hero-img-wrapper {
    margin-top: 20px;
}

.res-hero-fade {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.res-hero-img {
    display: block;
    object-fit: cover;
    object-position: top center;
    max-height: 450px;
}

/* Right Side (Form Area) */
.res-hero-right {
    background-color: #f4f7f9;
    /* Soft blue-grey background */
    min-height: calc(100vh - 85px);
}

.form-headline {
    font-family: 'DM Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #0c0e1b;
}

.form-subline {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}

/* Form Inputs */
.res-input {
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    box-shadow: none !important;
}

.res-input:focus {
    border-color: #20b038;
    box-shadow: 0 0 0 0.25rem rgba(32, 176, 56, 0.15) !important;
}

select.res-input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 12px;
    padding-right: 2.5rem;
}

select.res-input:invalid {
    color: #3b4147;
}

/* Custom Radio Buttons for Bill Amount */
.bill-option {
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0c0e1b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bill-option:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

/* When the hidden radio input is checked, style the label next to it! */
input[type="radio"]:checked+.bill-option {
    border-color: #20b038;
    background-color: rgba(32, 176, 56, 0.05);
    color: #15803d;
    /* Darker green for text */
}

/* Custom Checkbox */
.custom-checkbox:checked {
    background-color: #20b038;
    border-color: #20b038;
}

/* Limited Slots Badge */
.limited-slots-badge {
    position: absolute;
    top: -14px;
    right: 15px;
    background-color: #fde047;
    /* Yellow */
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    padding: 4px 12px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .res-hero-right {
        min-height: auto;
    }

    .res-headline {
        font-size: 26px;
    }
    .res-subline {
        font-size: 14px;
    }
    .form-headline {
        font-size: 24px;
    }
    .form-subline {
        font-size: 13px;
    }

    .res-hero-text {
        padding-top: 2rem !important;
    }

    .res-hero-img {
        max-height: 350px;
    }
}


/* --- SIMPLIFIED SOLAR JOURNEY SECTION --- */
.journey-section {
    background-color: #f8fafc;
}

.journey-headline {
    font-family: 'Poppins', sans-serif;
    color: #0c0e1b;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

/* Timeline Layout */
.journey-timeline {
    margin-top: 2rem;
}

.journey-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    position: relative;
}

.journey-step:last-child {
    margin-bottom: 0;
}

/* The vertical dashed line */
.journey-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 45px;
    bottom: -25px;
    width: 1px;
    border-left: 1px dashed #ced4da;
}

/* Custom Hand-Drawn Scribble Icon */
.journey-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M30,5 C45,6 55,18 53,35 C51,50 35,56 20,48 C7,40 4,22 15,10 C25,1 45,5 50,20 C54,32 45,45 30,50 C18,53 10,42 12,30' fill='none' stroke='%2320b038' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    background-color: #f8fafc;
    /* Masks the dashed line behind it */
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    position: relative;
    z-index: 2;
}

.journey-content {
    padding-left: 20px;
    padding-top: 6px;
}

.journey-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #0c0e1b;
    margin-bottom: 8px;
}

.journey-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #4a4a52;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- BADGES MARQUEE --- */
.journey-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    background-color: transparent;
    /* Changed from #ffffff to transparent */
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);

    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.journey-marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScrollBadges 25s linear infinite;
}

/* (Make sure you DELETE the .journey-marquee-track:hover rule so it never pauses!) */

.journey-badge-group {
    display: flex;
    gap: 16px;
    padding-right: 16px;
}

/* The Blue/White Glowing Pill Badges */
.journey-badge {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1e3a8a;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: radial-gradient(circle at left, #eef2ff 0%, #ffffff 70%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    white-space: nowrap;
}

@keyframes marqueeScrollBadges {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .journey-headline {
        font-size: 32px;
    }

    .journey-title {
        font-size: 18px;
    }

    .journey-step:not(:last-child)::after {
        bottom: -15px;
    }

    .journey-marquee-track {
        animation-duration: 20s;
        /* Slightly faster on mobile */
    }

    .journey-badge {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* --- ALIGNMENT FOR FULL-BLEED SPLIT LAYOUT --- */
/* This mathematically aligns the left text with a standard Bootstrap container */
.journey-content-wrapper {
    max-width: 660px;
    /* Exactly half of a Bootstrap xxl container (1320px) */
    margin: 0 auto;
    /* Centers the content on smaller screens */
    padding: 0 20px;
}

@media (min-width: 992px) {
    .journey-content-wrapper {
        padding-right: 50px;
        /* Gives nice breathing room between the text and the image */
    }

    .journey-section .row,
    .journey-section .col-lg-6 {
        min-height: 100%;
    }

    /* ADD THIS: Applies the white background ONLY on desktop screens */
    .journey-right-col {
        background-color: #ffffff;
    }

    .journey-full-img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* --- FULL BLEED BOTTOM IMAGE STYLING --- */
/* Ensure the row can stretch its children to match heights */
.journey-section .row {
    align-items: stretch;
}

.journey-bottom-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}










/* --- OUR PRODUCTS SECTION --- */
.products-section {
    background-color: #ffffff;
}

.products-headline {
    font-family: 'Poppins', sans-serif;
    color: #0c0e1b;
    font-size: 36px;
    font-weight: 700;
}

/* Card Styling */
.product-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

/* Image Box (Creates a nice frame for diagrams) */
.product-img-box {
    width: 100%;
    aspect-ratio: 4 / 3; /* Keeps all images uniformly sized */
    background-color: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Typography & Arrow Hover */
.product-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0c0e1b;
    margin-bottom: 12px;
}

.product-arrow {
    margin-left: 20px !important;
    font-size: 16px;
    color: #0c0e1b; /* Default black */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* On card hover -> Change ONLY the arrow to Green and move it right */
.product-card:hover .product-arrow {
    color: #20b038;
    transform: translateX(6px);
}

.product-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    color: #4a4a52;
    line-height: 1.6;
    /* Limit to exactly 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .products-headline {
        font-size: 32px;
    }
}









/* --- GLOBAL SECTION HEADING RULE --- */
/* Applied per new requirement for all new section headings */
.section-heading-poppins {
    font-family: 'Poppins', sans-serif !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #0c0e1b;
}

/* --- WHY FAMILIES TRUST VANGUARD SECTION --- */
.trust-vanguard-section {
    background-color: #ffffff;
}

/* Centers text on desktop to match reference */
.trust-pillar-card {
    text-align: center; 
}

/* Forces images into perfect squares with smooth rounded corners */
.trust-pillar-img {
    width: 80%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    border-radius: 20px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-pillar-card:hover .trust-pillar-img {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.trust-pillar-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0c0e1b;
    margin-bottom: 12px;
}

.trust-pillar-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #4a4a52;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 767.98px) {
    /* Align texts left on mobile to match the mobile screenshot */
    .trust-pillar-card {
        text-align: left; 
    }
    .trust-pillar-img {
        border-radius: 12px; /* Slightly tighter rounding on mobile */
    }
    .trust-pillar-title {
        font-size: 16px; 
        margin-bottom: 8px;
    }
    .trust-pillar-desc {
        font-size: 13px;
    }
    /* Scale down the 36px heading slightly so it doesn't break out of the screen on small phones */
    .section-heading-poppins {
        font-size: 28px !important; 
    }
}













/* --- TRUST BADGES SECTION --- */
.trust-badges-section {
    background-color: #ffffff; 
}

/* Individual Badge Cards */
.trust-badge-card {
    background-color: #f5f8fa; /* Soft blue-grey matching reference */
    border-radius: 16px;
    padding: 32px 24px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}

.trust-badge-icon {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.trust-badge-stat {
    font-family: 'DM Sans', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #0c0e1b;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.trust-badge-label {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #4a4a52;
}

/* Bottom Presence Banner */
.trust-bottom-banner {
    background-color: #f2fcf7; /* Soft mint/green tint matching the CTA vibe */
    border: 1px solid #e2f5ec;
    border-radius: 16px;
}

.india-map-icon {
    height: 45px;
    width: auto;
}

.banner-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #0c0e1b;
    font-weight: 500;
    line-height: 1.5;
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .trust-badge-card {
        padding: 24px 20px;
    }
    .trust-badge-stat {
        font-size: 28px;
    }
}

@media (max-width: 767.98px) {
    .banner-text {
        font-size: 15px;
    }
    .trust-bottom-banner {
        text-align: center;
    }
    .trust-bottom-banner .btn {
        width: 100%; /* Make button full width on small mobile screens */
    }
}





/* --- THE VANGUARD ADVANTAGE SECTION --- */
.advantage-section {
    background-color: #0c0e1b; /* Dark navy background */
}

/* Make sure the Poppins heading overrides to white for this section */
.advantage-section .section-heading-poppins {
    color: #ffffff !important;
}

.advantage-subline {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Expert Callout Box */
.expert-callout {
    background-color: #f2fcf7; /* Soft light blue */
    border-radius: 16px;
}

.expert-img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #c4febf; /* Slightly darker blue circle */
    flex-shrink: 0;
    display: flex;
    align-items: flex-end; /* Aligns the person to the bottom of the circle */
    justify-content: center;
    overflow: hidden;
}

.expert-img {
    width: auto;
    height: 100px;
    object-fit: cover;
}

.expert-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a; /* Deep blue */
}

.expert-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #334155;
}

.expert-link {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #20b038; /* Bright actionable green */
    transition: color 0.3s ease;
}

.expert-link:hover {
    color: #15803d; /* Darker green on hover */
}

/* Comparison Grid */
.comparison-grid {
    width: 100%;
}

.compare-col {
    flex: 1; /* Makes both columns exactly 50% width */
}

/* Highlighted Vanguard Column */
.vanguard-col {
    /* Beautiful subtle gradient fade matching the reference */
    background: linear-gradient(180deg, #1e293b 0%, #0c0e1b 100%);
    border-radius: 16px;
}

.compare-img-box {
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.compare-img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.compare-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.compare-list {
    margin: 0;
    padding: 0;
}

.compare-list li {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle divider lines */
    line-height: 1.5;
}

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

.text-vanguard-green {
    color: #20b038 !important;
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .advantage-subline {
        font-size: 18px;
    }
}

@media (max-width: 767.98px) {
    /* Shrinks the expert circle slightly on small phones */
    .expert-img-wrapper {
        width: 100px;
        height: 100px;
    }
    .expert-title {
        font-size: 16px;
    }
    .expert-desc {
        font-size: 13px;
    }
    
    /* Comparison list adjustments for side-by-side mobile view */
    .compare-title {
        font-size: 15px;
    }
    .compare-list li {
        font-size: 12.5px; /* Smaller text so it fits nicely in 2 columns on mobile */
        padding: 12px 0;
    }
    .compare-img-box {
        height: 60px;
    }
}











/* --- READ MORE / SEO TABULAR STRUCTURES --- */
.vanguard-seo-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-radius: 8px;
    overflow: hidden; /* Keeps borders rounded */
}

/* Header Styling */
.vanguard-seo-table thead {
    background-color: #f4f7f9; /* Soft slate-blue matching Vanguard theme */
}

.vanguard-seo-table th {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0c0e1b;
    padding: 16px;
    border-bottom: 2px solid #e2e8f0;
    border-color: #e2e8f0;
}

/* Body Styling */
.vanguard-seo-table td {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #4a4a52;
    padding: 16px;
    vertical-align: middle;
    border-color: #e2e8f0;
    line-height: 1.5;
}

/* Make sure the responsive scroll wrapper doesn't clip shadows */
.table-responsive {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Remove internal table border so it relies on the wrapper */
.vanguard-seo-table.table-bordered {
    border: none; 
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 767.98px) {
    .vanguard-seo-table th,
    .vanguard-seo-table td {
        padding: 12px;
        font-size: 13px; /* Slightly smaller for mobile readability */
    }
}