/* Default CSS */
/* Generated by the CoffeeCup HTML Editor - www.coffeecup.com */
:root {
        --primary: #041d3d;
        --accent: #007aff;
        --text-dark: #1a202c;
        --bg-light: #f8fafc;
        --white: #ffffff;
    }

    body { font-family: 'Inter', sans-serif; color: var(--text-dark); background: var(--bg-light); line-height: 1.6; margin: 0; }
    
    /* Layout Stability Fixes */
    main { display: block; min-height: 100vh; contain: layout; }

    /* Top Bar */
    .top-bar {
        background: #020c1a; color: white; padding: 10px 10%; display: flex;
        justify-content: space-between; align-items: center; font-size: 12px;
        min-height: 40px;
    }
    .top-bar a { color: white; text-decoration: none; margin-left: 15px; }

    /* Navigation */
    nav {
        padding: 0 10%; display: flex; justify-content: space-between; align-items: center;
        background: var(--white); position: sticky; top: 0; z-index: 1000; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        height: 70px;
    }
    .logo-img { height: 50px; width: auto; display: block; }
    .nav-links { display: flex; gap: 20px; list-style: none; align-items: center; margin: 0; padding: 0; }
    .nav-links a { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 13px; text-transform: uppercase; }

    /* Dropdown Styling */
    .dropdown { position: relative; }
    .dropdown-content {
        display: none; position: absolute; background: white; min-width: 220px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1); z-index: 1002; border-top: 3px solid var(--accent);
    }
    .dropdown-content a {
        color: var(--primary); padding: 12px 16px; text-decoration: none;
        display: block; font-size: 12px; border-bottom: 1px solid #eee;
    }
    .dropdown:hover .dropdown-content { display: block; }

    .menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--primary); padding: 10px; }

    /* HERO SECTION - Background Image Fix */
    .hero {
        background: linear-gradient(rgba(4, 29, 61, 0.8), rgba(4, 29, 61, 0.8)), 
                    url('img/banner/banner-index.webp'); 
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 450px;
        display: flex;
        align-items: center;
        padding: 0 10%;
        color: white;
    }
    .hero-text { max-width: 800px; }
    .hero-text h2 { font-family: 'Outfit'; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 20px; line-height: 1.2; }
    .hero-text p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }

    .quote-btn {
        background: var(--accent);
        color: white;
        text-decoration: none;
        font-weight: 700;
        padding: 16px 35px;
        border-radius: 8px;
        display: inline-block;
        transition: 0.3s;
    }

    /* Content Sections */
    .content-section { padding: 80px 10%; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
    .content-text h2 { font-family: 'Outfit'; font-size: 2.2rem; color: var(--primary); margin-bottom: 20px; }
    .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .stat-box { background: white; padding: 30px; border-radius: 12px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-bottom: 4px solid var(--accent); position: relative; overflow: hidden;}
    .stat-box i { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; }

    /* FOOTER STYLES & LOGO FIX */
    footer { padding: 60px 10% 20px 10%; background: #475569; color: #ffffff; }
    .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
    .footer-col h4 { color: white; margin-bottom: 20px; font-family: 'Outfit'; }
    
    /* Footer Logo Image Fix */
    .footer-logo-img {
        height: 55px;
        width: auto;
        margin-bottom: 20px;
        display: block;
        filter: brightness(0) invert(1); /* Makes logo white for dark bg */
    }

    /* Footer Text Logo Style */
    footer .logo {
        text-decoration: none;
        font-family: 'Outfit';
        font-size: 22px;
        font-weight: 800;
        color: white !important;
        display: block;
        margin-bottom: 15px;
    }
    footer .logo span { color: var(--accent); }

    .footer-col ul { list-style: none; padding: 0; }
    .footer-col ul li { margin-bottom: 10px; }
    .footer-col ul li a { color: #ffffff; text-decoration: none; font-size: 14px; }
    .footer-bottom { border-top: 1px #ffffff; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; }

    .whatsapp-btn {
        position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white;
        width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center;
        justify-content: center; font-size: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1000;
    }

    /* MOBILE FIXES */
    @media (max-width: 900px) {
        .top-bar { display: none; }
        nav { padding: 0 5%; }
        .logo-img { height: 40px; }
        .menu-toggle { display: block !important; }
        .nav-links { 
            display: none; flex-direction: column; width: 100%; position: absolute; 
            top: 70px; left: 0; background: white; padding: 20px; 
            box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 1001;
        }
        .nav-links.active { display: flex !important; }
        .content-section { grid-template-columns: 1fr; padding: 40px 5%; text-align: center; }
        .hero { padding: 60px 5%; text-align: center; justify-content: center; min-height: 400px; }
        .stats-grid { grid-template-columns: 1fr; }
        .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
        .footer-logo-img { margin: 0 auto 20px auto; } /* Centers logo on mobile */
    }   
    
    /* --- UPDATED COOKIE BOX (Professional Dark Theme) --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px; /* WhatsApp button right-la irukkurathaal, idhai left-ku mathiruken */
    
    width: 350px;
    min-height: auto;
    
    /* Unga website-oda Primary Blue match panni dark background */
    background-color: var(--primary); /* #041d3d */
    color: var(--white);
    
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3); 
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border for premium look */
    z-index: 10000;
    
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.cookie-banner p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #cbd5e1; /* Soft light gray text - read panna easy-ah irukkum */
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.cookie-buttons button {
    flex: 1;
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: 0.3s ease;
}

#accept-btn { 
    background-color: var(--accent); /* #007aff - Bright blue for CTA */
    color: white; 
}

#decline-btn { 
    background-color: rgba(255, 255, 255, 0.1); /* Transparent light background */
    color: white; 
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#accept-btn:hover { 
    background-color: #0056b3; 
    transform: translateY(-2px);
}

#decline-btn:hover { 
    background-color: rgba(255, 255, 255, 0.2); 
}

/* --- Mobile Responsive --- */
@media (max-width: 480px) {
    .cookie-banner {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}  
/* ==========================================================
   DESKTOP SEARCH ENGINE STYLES (NO JUMP / NO OVERLAP)
   ========================================================== */

/* Hide the mobile search completely on desktops */
.mobile-only-search {
    display: none !important;
}

@media (min-width: 1025px) {
    .nav-links { 
        min-width: 700px; 
        justify-content: flex-end; 
        align-items: center; 
    }
}

/* Outer Wrapper for Search Boxes */
.nav-search-wrap {
    position: relative;
    width: 200px; /* Fixed width on desktop to prevent shifting */
    display: inline-block;
    vertical-align: middle;
}

/* Common Search Box Styling */
.nav-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Focus Styling */
.nav-search-box:focus-within {
    border-color: #041d3d;
    box-shadow: 0 0 8px rgba(4, 29, 61, 0.2);
    background: #ffffff;
}

/* Search Fields Input Style */
.nav-search-box input {
    border: none;
    background: transparent;
    color: #333333;
    font-size: 14px;
    outline: none;
    width: 100%;
}

.nav-search-box input::placeholder { 
    color: #94a3b8; 
}

/* Lens Icon */
.search-icon { 
    color: #64748b; 
    margin-right: 8px; 
    font-size: 14px; 
}

/* Dropdown Suggestions Card */
.suggestions-list {
    position: absolute;
    top: 100%; 
    right: 0;
    width: 280px;
    background-color: #ffffff !important; 
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); 
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    text-align: left;
    z-index: 9999 !important; 
}

.suggestions-list li {
    padding: 12px 16px;
    cursor: pointer;
    color: #333333;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    transition: all 0.2s ease;
}

.suggestions-list li:hover {
    background: #f1f5f9;
    color: #041d3d;
    font-weight: 600;
    padding-left: 20px; 
}

/* ==========================================================
   MOBILE VIEW CONFIGURATION (ONLY MAX-WIDTH: 768PX)
   ========================================================== */
@media (max-width: 768px) {
    /* Hide the old desktop search item on mobile screen */
    .nav-search-item {
        display: none !important;
    }

    /* Force show the new mobile search block */
    .mobile-only-search {
        display: block !important;
        order: 3; /* Pushes search box row underneath Logo and Hamburger */
        width: 100%;
        margin: 12px 0 4px 0;
    }

    /* Restructuring navbar to adapt multi-row items */
    nav {
        height: auto !important;
        padding: 10px 5% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .logo-container { order: 1; }
    .menu-toggle { order: 2; display: block !important;}

    /* Stretch mobile search container full-width */
    .mobile-only-search.nav-search-wrap {
        width: 100% !important;
    }

    /* Fit auto-suggestions wrapper to 100% device width */
    .mobile-only-search .suggestions-list {
        width: 100% !important;
        left: 0;
        top: 105%;
    }

    /* Offset dropdown sliding panel down so it won't overlap the visible mobile search */
    .nav-links {
        top: 135px !important; 
    }
}