/* style.css - Enhanced Version with Founder Contact (Side-by-Side Layout & Styled Name/Title) */

/* --- Root Variables (Purple/Pink Header Gradient Theme) --- */
:root {
    /* Deep Blue Theme Base */
    --primary-color: #002a5c; --secondary-color: #0056b3; --accent-color-cyan: #00aaff;
    /* Purple-to-Pink Gradient Colors */
    --purple-color: #a770ef; --pink-color: #ef476f;
    /* Solid Button Colors */
    --hero-apply-solid: #7e5bef;
    --contact-inquiry-solid: var(--purple-color);
    --hero-apply-solid-hover: #6a4acf;
    --contact-inquiry-solid-hover: #935ce6;
    /* Gradients */
    --gradient-hero: linear-gradient(100deg, #001f44 0%, var(--primary-color) 100%); /* Kept for reference, but hero section now uses images */
    --gradient-header-btn-logo: linear-gradient(to right, var(--purple-color) 0%, var(--pink-color) 100%); /* Purple to Pink */
    --gradient-header-btn-logo-hover: linear-gradient(to right, #935ce6 0%, #e03a60 100%);
    /* Other colors */
    --light-blue-bg: #e6f0ff; --light-gray-bg: #f8f9fa; --white-color: #ffffff;
    --dark-text-color: #212529; --medium-text-color: #6c757d; --border-color: #dee2e6;
    --success-color: #198754; --error-color: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.075); --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --header-height: 70px; --top-bar-height: 35px;
    --font-family: 'Poppins', sans-serif; --border-radius: 5px;
    --gradient-credit-report: linear-gradient(135deg, #f3e8fd 0%, #e6f0ff 100%);
    --focus-ring-color: rgba(167, 112, 239, 0.5); /* Purple focus outline */
}

/* --- Base Styles --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: var(--font-family); line-height: 1.7; color: var(--dark-text-color);
    background-color: var(--white-color); display: flex; flex-direction: column;
    min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    padding-top: calc(var(--top-bar-height) + var(--header-height));
}
main { flex-grow: 1; }
.container { width: 90%; max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; }
a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-color); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 2px; border-radius: var(--border-radius); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 0.7rem 1.5rem; border: none; border-radius: var(--border-radius); font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; transition: background-color 0.3s ease, background-image 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; line-height: 1.5; color: var(--white-color); }
.btn:focus-visible { outline: 3px solid var(--focus-ring-color); outline-offset: 2px; }
.apply-header-btn, .hero-apply-btn, .calculator-calculate-btn, .contact-apply-btn, .cibil-btn { background-color: var(--purple-color); background-image: var(--gradient-header-btn-logo); color: var(--white-color); border: none; }
.apply-header-btn:hover, .hero-apply-btn:hover, .calculator-calculate-btn:hover, .contact-apply-btn:hover, .cibil-btn:hover { background-image: var(--gradient-header-btn-logo-hover); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--white-color); text-decoration: none; }
.apply-header-btn { padding: 6px 14px; font-size: 0.9rem; box-shadow: var(--shadow-sm); }
.apply-header-btn:hover { box-shadow: var(--shadow-md); }
.experian-btn { background-color: var(--accent-color-cyan); }
.experian-btn:hover { background-color: #0088cc; }
.resources-download-btn { background-color: var(--secondary-color); }
.resources-download-btn:hover { background-color: #00418a; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.link-btn { background: transparent; color: var(--primary-color); padding: 0.5rem 1rem; border: 1px solid var(--primary-color); margin-top: auto; align-self: center; }
.link-btn:hover { background: var(--primary-color); color: var(--white-color); text-decoration: none; transform: translateY(-1px); }

/* --- Top Bar --- */
#top-bar { background-color: var(--primary-color); color: var(--white-color); padding: 5px 0; height: var(--top-bar-height); position: fixed; width: 100%; top: 0; z-index: 1001; display: flex; align-items: center; }
.top-bar-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar-translate a, .top-bar-whatsapp a, .top-bar-admin a { color: var(--white-color); text-decoration: none; display: flex; align-items: center; gap: 8px; font-size: 0.85rem; transition: color 0.3s ease; }
.top-bar-translate a:hover, .top-bar-whatsapp a:hover, .top-bar-admin a:hover { color: var(--accent-color-cyan); text-decoration: none; }
.top-bar-translate i, .top-bar-whatsapp i, .top-bar-admin i { font-size: 1.1rem; }
.top-bar-whatsapp .whatsapp-icon { color: #25D366; }

/* --- Header / Navigation --- */
.header { background: var(--white-color); box-shadow: var(--shadow-sm); position: fixed; width: 100%; top: var(--top-bar-height); z-index: 1000; height: var(--header-height); display: flex; align-items: center; transition: height 0.3s ease-in-out; }
.header-container { display: flex; align-items: center; width: 100%; gap: 15px; }
.logo { order: 1; flex-shrink: 0; margin-right: auto; text-decoration: none; }
.logo-text { background: var(--gradient-header-btn-logo); background-clip: text; -webkit-background-clip: text; color: transparent; font-weight: 700; font-size: 1.6rem; padding: 5px 0; display: inline-block; white-space: nowrap; }
.navbar { order: 2; flex-grow: 1; flex-shrink: 1; min-width: 0; text-align: center; overflow: hidden; }
.navbar ul { list-style: none; display: inline-flex; justify-content: center; gap: 1px; padding: 0; margin: 0; flex-wrap: nowrap; }
.nav-link { text-decoration: none; color: var(--dark-text-color); font-weight: 600; padding: 8px 10px; border-bottom: 3px solid transparent; transition: color 0.3s ease, border-bottom-color 0.3s ease; white-space: nowrap; display: block; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); border-bottom-color: var(--secondary-color); text-decoration: none; }
.nav-link:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: -1px; border-radius: 3px; }
.apply-header-btn { order: 3; flex-shrink: 0; padding: 6px 14px; font-size: 0.9rem; }
.mobile-menu-toggle { order: 4; display: none; background: none; border: none; font-size: 1.8rem; color: var(--primary-color); cursor: pointer; padding: 5px; line-height: 1; margin-left: 10px; }
.mobile-menu-toggle:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 2px; border-radius: var(--border-radius); }

/* --- Section Styling & Specific Sections --- */
.section-padding { padding-top: 60px; padding-bottom: 60px; }
section:nth-child(even) { background-color: var(--light-gray-bg); }
.section-title { text-align: center; margin-bottom: 25px; font-size: 2.1rem; color: var(--primary-color); font-weight: 700; }
.section-subtitle { text-align: center; margin-bottom: 40px; font-size: 1.1rem; color: var(--medium-text-color); max-width: 700px; margin-left: auto; margin-right: auto; }
.card { background: var(--white-color); padding: 25px; border-radius: var(--border-radius); box-shadow: var(--shadow-sm); margin-bottom: 20px; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.fade-in-element { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-element.is-visible { opacity: 1; transform: translateY(0); }

/* --- HERO SECTION - UPDATED FOR SLIDESHOW --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: var(--primary-color); */ /* Fallback color if images fail */
    /* background-image: var(--gradient-hero); */ /* Removed static gradient */
    min-height: 85vh;
    padding-top: 60px; /* This padding is for the .hero-content inside */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
    position: relative; /* Crucial for positioning slideshow elements */
}

.hero-slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind overlay and content */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, may crop image */
    object-position: center; /* Center the image content */
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Smooth fade transition */
    background-color: #001f44; /* Dark fallback color while image loads or if missing */
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 26, 58, 0.55); /* Dark blue overlay with 55% opacity. Adjust as needed for your images. */
    /* Example of a gradient overlay (comment out background-color above if using this):
    background-image: linear-gradient(to bottom, rgba(0, 31, 68, 0.65) 0%, rgba(0, 42, 92, 0.35) 100%); */
    z-index: 2; /* Sits above the slideshow images but below the text content */
}

.hero .hero-content {
    position: relative; /* Ensures it respects z-index */
    z-index: 3; /* Highest z-index to be on top of overlay and slideshow */
    /* The fade-in-element class already handles its animation */
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--white-color);
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* Adjust shadow if needed for new images */
}

.hero .subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 2rem;
    color: var(--white-color);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* Adjust shadow if needed */
}
.hero-buttons .btn { margin: 0.5rem; }
/* --- END HERO SECTION --- */


.about p { max-width: 800px; margin: 0.8rem auto; text-align: center; }
.our-impact { margin-top: 40px; padding: 30px; background-color: var(--light-blue-bg); border-left: 5px solid var(--primary-color); }
.our-impact h3 { text-align: center; color: var(--primary-color); margin-bottom: 25px; font-size: 1.5rem; }
.impact-stats { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px; }
.stat-item { text-align: center; flex: 1; min-width: 150px; }
.stat-icon { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 10px; }
.stat-number { display: block; font-size: 2.2rem; font-weight: 700; color: var(--primary-color); line-height: 1.2; }
.stat-label { font-size: 0.9rem; color: var(--medium-text-color); font-weight: 600; }
.credit-report-section { background-color: var(--primary-color); background-image: var(--gradient-credit-report); }
.credit-report-section .section-title { color: var(--primary-color); }
.highlight-gradient { background: var(--gradient-header-btn-logo); background-clip: text; -webkit-background-clip: text; color: transparent; padding: 0 5px; }
.credit-report-links { display: flex; justify-content: center; align-items: center; gap: 25px; flex-wrap: wrap; margin-bottom: 40px; }
.credit-report-btn { padding: 12px 25px; font-size: 1.1rem; border-radius: 30px; box-shadow: var(--shadow-md); display: inline-flex; align-items: center; gap: 10px; }
.credit-report-btn i { font-size: 1.2rem; }
.credit-report-details { margin-top: 30px; background-color: rgba(255, 255, 255, 0.8); backdrop-filter: blur(5px); }
.credit-report-details h3 { text-align: center; color: var(--primary-color); margin-bottom: 20px; }
.report-details-columns { display: flex; flex-wrap: wrap; gap: 30px; }
.report-column { flex: 1; min-width: 280px; }
.report-column h4 { color: var(--secondary-color); margin-bottom: 10px; }
.report-column ul { list-style: disc; padding-left: 20px; font-size: 0.95rem; color: var(--dark-text-color); }
.report-column li { margin-bottom: 8px; }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-item { display: flex; flex-direction: column; text-align: center; }
.service-item h3 { color: var(--secondary-color); margin-bottom: 15px; }
.service-item p { flex-grow: 1; margin-bottom: 15px; }
.interest { background-color: var(--light-gray-bg); }
.interest-content { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-around; }
.interest-content .rates, .interest-content .banks { flex: 1 1 350px; }
.interest-content h3 { color: var(--secondary-color); margin-top: 0; margin-bottom: 15px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }
.interest-content ul { list-style: none; }
.interest-content li { margin: 0.6rem 0; position: relative; padding-left: 20px; }
.interest-content li::before { content: '✔'; position: absolute; left: 0; color: var(--success-color); font-weight: bold; }
.dsa-codes { margin-top: 30px; border-top: 2px solid var(--primary-color); padding-top: 25px; background-color: var(--light-blue-bg); }
.dsa-codes h3 { color: var(--primary-color); margin-bottom: 15px; text-align: center; font-size: 1.3rem; }
.dsa-codes p { text-align: center; margin-bottom: 15px; color: var(--medium-text-color); }
.dsa-codes ul { list-style: none; padding: 0; max-width: 600px; margin: 0 auto 15px auto; text-align: center; }
.dsa-codes li { margin: 0.5rem 0; font-size: 0.95rem; }
.eligibility { background-color: var(--light-gray-bg); }
.eligibility-content { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-around; }
.eligibility-content > .card { flex: 1 1 350px; }
.eligibility-content h3 { color: var(--secondary-color); margin-top: 0; margin-bottom: 15px; }
.eligibility-content ul { list-style: disc; padding-left: 25px; }
.eligibility-content li { margin: 0.6rem 0; }
.calculator-section { background-color: var(--white-color); }
.calculator-form { display: flex; flex-direction: column; gap: 1rem; max-width: 550px; margin: 30px auto; padding: 30px; }
.calculator-form .form-group { margin-bottom: 0.8rem; }
.calculator-form fieldset { border: none; padding: 0; margin: 0;}
.calculator-form legend { margin-bottom: 0.5rem; font-weight: 600;}
.calculator-form label { font-weight: 600; margin-bottom: 6px; display: block; }
.calculator-form input[type="number"] { padding: 0.8rem; border: 1px solid var(--border-color); border-radius: var(--border-radius); width: 100%; font-size: 1rem; transition: border-color 0.3s ease; }
.calculator-form input[type="number"]:focus, .calculator-form input[type="number"]:focus-visible { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 2px var(--focus-ring-color); }
.interest-type-selector label { margin-right: 15px; font-weight: normal; cursor: pointer; }
.interest-type-selector input[type="radio"] { margin-right: 5px; cursor: pointer; vertical-align: middle; position: relative; top: -1px; accent-color: var(--primary-color); }
.interest-type-selector input[type="radio"]:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 1px; }
.calc-button-container { text-align: center; margin-top: 1rem; }
.calculator-result { text-align: left; font-weight: normal; margin-top: 1.5rem; font-size: 1.1rem; background-color: var(--light-blue-bg); padding: 20px; padding-left: 25px; border-radius: var(--border-radius); border-left: 7px solid; border-image: linear-gradient(to bottom, var(--primary-color), var(--secondary-color)) 1; border-image-slice: 1; }
.calculator-result p { margin: 10px 0; }
.calculator-result strong { color: var(--dark-text-color); }
.error-message { color: var(--error-color); text-align: center; margin-top: 10px; min-height: 1em; font-weight: 600; }
.resources { background-color: var(--light-gray-bg); text-align: center; }
.resources p { margin-bottom: 25px; color: var(--medium-text-color); }
.quick-links { background-color: var(--white-color); }
.quick-links nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.quick-links li a { color: var(--primary-color); background-color: var(--light-blue-bg); padding: 8px 18px; border-radius: 20px; font-weight: 600; transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }
.quick-links li a:hover { background-color: var(--primary-color); color: var(--white-color); text-decoration: none; box-shadow: var(--shadow-sm); }
.faq { background-color: var(--light-gray-bg); }
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item { margin-bottom: 1rem; background: var(--white-color); border-radius: var(--border-radius); border: 1px solid var(--border-color); transition: box-shadow 0.3s ease; }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--primary-color); padding: 1rem 1.5rem; position: relative; outline: none; transition: background-color 0.2s ease; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-item summary:hover { background-color: #f0f0f0; }
.faq-item summary:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 2px; border-radius: var(--border-radius); }
.faq-item summary::before { content: ''; display: inline-block; width: 10px; }
.faq-item summary::after { content: '▼'; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%) rotate(0deg); transition: transform 0.3s ease-in-out; color: var(--primary-color); font-size: 0.8em; }
.faq-item[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.faq-item p { padding: 1rem 1.5rem; margin: 0; border-top: 1px solid var(--border-color); }

/* Contact Section Enhancements */
.contact { background-color: var(--white-color); text-align: center; }
.contact .section-subtitle { margin-bottom: 30px; }

.contact-methods-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info {
    text-align: left;
    border-left: 5px solid var(--secondary-color);
}
.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}
.contact-info p { margin: 0.8rem 0; }
.contact-info strong { color: var(--dark-text-color); }
.contact-info a { font-weight: 600; color: var(--secondary-color); }
.contact-apply-button {
    margin-top: 20px;
    text-align: center;
}

.founder-contact-card {
    border-top: 5px solid var(--purple-color);
    padding: 25px;
}
.founder-contact-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.4rem;
}
.founder-contact-layout {
    display: flex;
    flex-direction: column; /* Default: stack for mobile */
    gap: 25px;
    align-items: flex-start;
}
.founder-intro-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}
.founder-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--purple-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
}
.founder-details {
    margin-bottom: 15px;
}
.founder-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text-color);
    margin: 0 0 2px 0;
    line-height: 1.3;
}
.founder-title {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.3;
    font-style: italic;
}
.founder-invitation-message {
    font-size: 0.9rem;
    color: var(--medium-text-color);
    max-width: 300px;
    line-height: 1.6;
}
.google-form-column {
    width: 100%;
    flex-grow: 1;
}
.google-form-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: #fdfdfd;
}
.google-form-container iframe {
    width: 100%;
    min-height: 700px;
    border: none;
    margin: 0;
    padding: 0;
    display: block;
}

/* Footer */
.footer {
    background: var(--primary-color); color: var(--light-gray-bg);
    text-align: center; padding: 1.5rem 1rem; margin-top: auto; font-size: 0.9rem;
}
.footer .container { max-width: 900px; }
.footer p { margin: 8px 0; line-height: 1.6; }
.copyright { margin-bottom: 15px; font-weight: 600; }
.footer-divider { border: none; border-top: 1px solid rgba(255, 255, 255, 0.2); margin: 15px auto; width: 80%; max-width: 500px; }
.ai-disclaimer { font-size: 0.7rem; opacity: 0.9; margin-top: 15px; }
.ai-disclaimer p { margin-bottom: 10px; }
.ai-disclaimer p:last-child { margin-bottom: 0; }
.ai-disclaimer strong { color: var(--white-color); }
.footer a { color: var(--accent-color-cyan); text-decoration: underline; }
.footer a:hover { color: var(--white-color); text-decoration: underline; opacity: 1; }

/* --- Chat Widget --- */
.chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 1010; }
@keyframes pulseGlow { 0% { opacity: 0.7; transform: scale(1.05); box-shadow: 0 0 15px 5px rgba(167, 112, 239, 0.5); } 50% { opacity: 0.4; transform: scale(1); box-shadow: 0 0 25px 10px rgba(239, 71, 111, 0.4); } 100% { opacity: 0.7; transform: scale(1.05); box-shadow: 0 0 15px 5px rgba(167, 112, 239, 0.5); } }
.chat-toggle { position: relative; z-index: 2; width: auto; border-radius: 25px; padding: 10px 18px; background-color: var(--purple-color); background-image: var(--gradient-header-btn-logo); border: none; color: white; cursor: pointer; font-size: 0.95rem; font-weight: 600; line-height: 1.2; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); transition: background-image 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; overflow: visible; }
.chat-toggle::before { content: ''; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px; border-radius: 30px; background-image: var(--gradient-header-btn-logo); filter: blur(15px); opacity: 0; z-index: -1; animation: pulseGlow 2.5s ease-in-out infinite; pointer-events: none; }
.chat-toggle:focus-visible { box-shadow: 0 0 0 3px var(--white-color), 0 0 0 5px var(--focus-ring-color); }
.chat-toggle i { font-size: 1.1em; }
.chat-container { position: fixed; bottom: 80px; right: 20px; width: 320px; max-width: 90vw; height: 450px; max-height: calc(100vh - 100px); background: white; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease; opacity: 0; transform: translateY(20px); visibility: hidden; pointer-events: none; }
.chat-container:not(.hidden) { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
#chat-header { padding: 8px 12px; background: var(--secondary-color); color: white; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 8px; }
.lang-selector { display: flex; gap: 6px; }
.lang-button { background-color: rgba(255, 255, 255, 0.2); color: white; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 5px; padding: 4px 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease; opacity: 0.85; }
.lang-button:hover { background-color: rgba(255, 255, 255, 0.35); opacity: 1; }
.lang-button.active { background-color: white; color: var(--secondary-color); border-color: white; opacity: 1; cursor: default; }
.lang-button:focus-visible { outline: 2px solid var(--white-color); outline-offset: 1px; }
#chat-header .header-buttons { display: flex; align-items: center; gap: 8px; }
#chat-header .header-buttons button { background: none; border: none; color: white; cursor: pointer; padding: 0; margin: 0; opacity: 0.9; line-height: 1; transition: opacity 0.2s ease; font-size: 20px; width: 24px; height: 24px; display: inline-flex; justify-content: center; align-items: center; }
#chat-header .header-buttons button:hover { opacity: 1; }
#chat-header .header-buttons button:focus-visible { outline: 2px solid var(--white-color); outline-offset: 1px; border-radius: 3px;}
#chat-messages { flex-grow: 1; overflow-y: auto; padding: 15px; background-color: #f9f9f9; border-bottom: 1px solid #eee; }
.message { margin-bottom: 12px; padding: 9px 14px; border-radius: 18px; max-width: 85%; word-wrap: break-word; line-height: 1.45; font-size: 0.9rem; position: relative; }
.message.thinking { font-style: italic; color: #6c757d; background-color: #e9ecef; margin-right: auto; border-bottom-left-radius: 5px; }
.user-message { background: var(--secondary-color); color: white; margin-left: auto; border-bottom-right-radius: 5px; }
.bot-message { background: #e9ecef; color: #333; margin-right: auto; border-bottom-left-radius: 5px; }
.bot-message p:last-child, .bot-message ul:last-child, .bot-message ol:last-child { margin-bottom: 0; }
.bot-message ul, .bot-message ol { padding-left: 20px; margin: 8px 0; }
.bot-message code { background-color: #dcdcdc; padding: 2px 5px; border-radius: 4px; font-size: 88%; }
.bot-message pre { background-color: #f0f0f0; border: 1px solid #ddd; padding: 10px; border-radius: 4px; overflow-x: auto; font-size: 0.85rem; margin: 8px 0; }
.bot-message pre code { background-color: transparent; padding: 0; border-radius: 0; font-size: inherit; }
.bot-message a { color: var(--primary-color); text-decoration: underline; }
.bot-message a:hover { text-decoration: none; }
.chat-error-display { padding: 8px 15px; background-color: #f8d7da; color: #721c24; font-size: 0.85rem; border-bottom: 1px solid #f5c6cb; flex-shrink: 0; }
.chat-error-display.hidden { display: none; }
#chat-input-area { padding: 12px 15px; border-top: 1px solid #e0e0e0; display: flex; align-items: center; background-color: #f0f2f5; flex-shrink: 0; gap: 10px; }
#chat-input { flex-grow: 1; padding: 10px 15px; border: 1px solid #ccd0d5; border-radius: 18px; font-size: 0.9rem; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; background-color: #ffffff; line-height: 1.4; }
#chat-input:focus, #chat-input:focus-visible { border-color: var(--secondary-color); box-shadow: 0 0 0 2px var(--focus-ring-color); }
#chat-input::placeholder { color: #8a8d91; }
#send-message { padding: 8px 12px; background: var(--secondary-color); color: white; border: none; border-radius: 50%; cursor: pointer; transition: background-color 0.2s ease; flex-shrink: 0; font-size: 1rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
#send-message:hover { background-color: var(--primary-color); }
#send-message:disabled { background-color: #a0cfff; cursor: not-allowed; opacity: 0.7; }
#send-message:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }

/* --- Responsive Design --- */
@media (max-width: 1180px) {
    html { font-size: 15px; }
    .header { height: auto; min-height: var(--header-height); }
    .header-container { flex-wrap: wrap; padding-bottom: 10px; justify-content: space-between; align-items: center; }
    .logo { order: 1; margin-right: auto; }
    .mobile-menu-toggle { order: 2; display: block; margin-left: 10px; }
    .apply-header-btn { order: 3; margin-left: 0; }
    .navbar { order: 4; width: 100%; margin: 10px 0 0 0; display: none; overflow: visible; height: auto; background-color: var(--white-color); box-shadow: var(--shadow-sm); border-top: 1px solid var(--border-color); }
    .navbar.active { display: block; position: absolute; top: 100%; left:0; right:0; z-index: 999; }
    .navbar.active ul { display: flex; flex-direction: column; gap: 0; width: 100%; text-align: left; }
    .navbar.active .nav-link { width: 100%; padding: 12px 15px; border-bottom: 1px solid var(--border-color); font-size: 1rem; text-align: left; white-space: normal; }
    .navbar.active .nav-link:last-child { border-bottom: none; }
    .navbar.active .nav-link.active, .navbar.active .nav-link:hover { border-bottom-color: var(--border-color); background-color: var(--light-blue-bg); }
    .section-title { font-size: 1.9rem; }
}

@media (min-width: 992px) { /* Apply side-by-side for founder contact on larger screens */
    .founder-contact-layout {
        flex-direction: row; /* Side-by-side */
        align-items: flex-start; /* Align to top */
    }
    .founder-intro-column {
        width: auto;
        flex: 0 0 220px; /* Fixed width for intro. Adjust as needed. */
        margin-right: 25px; /* Space between intro and form */
        align-items: flex-start; /* Align content to the left */
        text-align: left;
    }
    .founder-photo {
        margin-bottom: 10px;
    }
    .founder-details {
        margin-bottom: 10px;
    }
    .founder-invitation-message {
         max-width: none; /* Allow text to use the column width */
         font-size: 0.85rem;
    }
    .google-form-column {
        flex: 1 1 auto; /* Form takes remaining space */
    }
    .google-form-container iframe {
        min-height: 650px; /* Can be a bit shorter if form is not too long */
    }
}


@media (max-width: 768px) {
    .top-bar-container { padding-left: 10px; padding-right: 10px; }
    .top-bar-text { display: none; }
    .top-bar-translate i, .top-bar-whatsapp i { margin-right: 0; }
    .hero { padding-top: 40px; min-height: 60vh; } /* Adjusted min-height for smaller hero on mobile */
    .hero h1 { font-size: 2rem; }
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 20px;}
    .section-subtitle { font-size: 1rem; margin-bottom: 25px; }
    .impact-stats { flex-direction: column; gap: 30px;}
    .report-details-columns { flex-direction: column; }
    .interest-content, .eligibility-content { flex-direction: column; align-items: stretch; gap: 20px; }
    .interest-content > div, .eligibility-content > .card { flex-basis: auto; width: 100%; }
    .calculator-form { padding: 20px; }

    .founder-intro-column {
        align-items: center; /* Center content in the column when stacked */
        text-align: center;
    }
    .google-form-container iframe {
        min-height: 750px;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { width: 95%; }
    .header-container { gap: 8px; }
    .logo-text { font-size: 1.2rem; }
    .apply-header-btn { padding: 5px 8px; font-size: 0.75rem; }
    .mobile-menu-toggle { font-size: 1.6rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero .subtitle { font-size: 0.9rem; }
    .btn { padding: 0.6rem 1.1rem; font-size: 0.9rem;}
    .section-title { font-size: 1.6rem; }
    .service-list { grid-template-columns: 1fr; }
    .quick-links li a { padding: 6px 14px; font-size: 0.9rem;}
    .faq-item summary { padding-right: 30px; }
    .faq-item summary::after { right: 1rem; }
    .chat-container { width: calc(100vw - 30px); right: 15px; bottom: 70px; height: 70vh; max-height: calc(100vh - 80px); }
    .chat-toggle { right: 15px; bottom: 15px; padding: 8px 15px; }
    .message { max-width: 90%; }
    .google-form-container iframe {
        min-height: 700px;
    }
}

/* --- Responsive Footer --- */
@media (max-width: 768px) {
    .footer { padding: 1rem; }
    .ai-disclaimer { font-size: 0.8rem; }
}
@media (max-width: 480px) {
    .footer p { font-size: 0.85rem; }
    .ai-disclaimer { font-size: 0.75rem; }
}