/* ==========================================================
   AQUAAN - Lexpure Style White & Blue Stylesheet
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0088cc;
    --secondary: #004477;
    --aqua: #00e5ff;
    --bg-color: #ffffff;
    --text-main: #222222;
    --text-muted: #666666;
    --card-bg: #f4f9fc;
    --nav-bg: #ffffff;
    --glass-border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Top Bar (Socials & Contacts) */
.top-bar {
    background: var(--secondary);
    color: #fff;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar-right a {
    color: #fff;
    transition: 0.3s;
    font-size: 1rem;
}

/* --- Custom Social Media Hover Colors --- */
.top-bar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar-right>a {
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
}

.top-bar-right>a:hover {
    transform: translateY(-2px);
}

/* Adds a tiny "lift" effect */

/* Specific Brand Colors */
.top-bar-right a .fa-whatsapp:hover {
    color: #25D366;
}

.top-bar-right a .fa-facebook-f:hover {
    color: #1877F2;
}

.top-bar-right a .fa-instagram:hover {
    color: #E1306C;
}

/* Standard Insta Pink/Red */
.top-bar-right a .fa-youtube:hover {
    color: #FF0000;
}

/* Admin Hover Dropdown */
.admin-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

/* Make the Admin Tie Green on Hover */
.admin-dropdown:hover .admin-btn {
    color: #2ecc71;
}

/* A clean, bright green */

/* --- Admin Hover Dropdown --- */
.admin-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 10px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    display: flex;
    align-items: center;
}

.admin-dropdown:hover .admin-btn {
    color: var(--aqua);
}

.admin-menu {
    position: absolute;
    top: 150%;
    right: -5px;
    background: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: row;
    gap: 5px;
    padding: 8px;
    border: 1px solid #ddd;
}

.admin-dropdown:hover .admin-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-menu a {
    color: var(--primary);
    background: var(--card-bg);
    width: 38px;
    height: 38px;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-menu a:hover {
    background: var(--primary);
    color: #fff;
}

/* Main Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 70px;
    width: auto;
    display: block;
    transition: height 0.3s;
}

/* UPDATED TO 60px */

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

/* Lexcru-Style Hover Animation */
.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a[style*="color: var(--primary)"] {
    color: var(--primary) !important;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-links a:hover::before,
.nav-links a[style*="color: var(--primary)"]::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Search Bar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.search-input {
    padding: 10px 15px 10px 35px;
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    outline: none;
    font-size: 0.85rem;
    width: 220px;
    transition: width 0.3s;
}

.search-input:focus {
    border-color: var(--primary);
    width: 260px;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.search-suggestions {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.search-suggestions a {
    padding: 12px 15px;
    color: var(--text-main);
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    display: block;
}

.search-suggestions a:hover {
    background: var(--card-bg);
    color: var(--primary);
    padding-left: 20px;
}

.search-suggestions a:last-child {
    border-bottom: none;
}

.search-container.active .search-suggestions {
    display: flex;
}

.hamburger {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    display: none;
}

/* Layouts & Sections */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, var(--card-bg) 0%, var(--bg-color) 100%);
    padding: 0 5%;
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary);
    font-weight: 700;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.section {
    padding: 80px 5%;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--secondary);
    font-weight: 600;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

/* Product Card Alignment Fixes */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 136, 204, 0.1);
}

.img-wrapper {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--bg-color);
    border-radius: 10px;
    padding: 10px;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin-bottom: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card .btn {
    margin-top: auto;
}

.card h3 {
    color: var(--text-main);
    font-size: 1.4rem;
}

/* Product Slider CSS */
.slider-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bg-color);
}

.slider-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.slider-images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    padding: 10px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 136, 204, 0.8);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.2);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Process & Features */
.features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    text-align: left;
    padding: 20px;
    border-left: 3px solid var(--primary);
    background: var(--card-bg);
}

.feature-box h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.step-number {
    font-size: 3rem;
    color: var(--glass-border);
    font-weight: 700;
    margin-bottom: -20px;
    text-align: left;
}

.step-content {
    text-align: left;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

/* Footer */
footer {
    background: var(--secondary);
    color: #fff;
    padding: 60px 5% 20px;
}

.footer-logo-img {
    height: 75px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    color: #d0e1f9;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-col a {
    color: #d0e1f9;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--aqua);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #99bbdd;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Mobile Responsiveness */
@media(max-width: 990px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 40px;
        transition: 0.4s ease-in-out;
        border-left: 1px solid var(--glass-border);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .search-container {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero {
        text-align: center;
        justify-content: center;
        padding-top: 50px;
    }

    .hero-content {
        text-align: center;
    }

    .top-bar-left {
        display: none;
    }
}

.fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   DEALER PAGE FLEX CARDS (NEW)
   ========================================================== */
.advantage-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.advantage-card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.advantage-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 136, 204, 0.15);
}

.adv-icon-box {
    width: 70px;
    height: 70px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 1.8rem;
    transition: 0.3s;
}

.advantage-card:hover .adv-icon-box {
    background: var(--primary);
    color: #fff;
    transform: rotateY(360deg);
}

.advantage-card h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.advantage-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ==========================================================
   AQUAAN PRELOADER - REVEAL ANIMATION
   ========================================================== */
#aquaan-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Reveal Animation Container */
.reveal-wrapper {
    position: relative;
    overflow: hidden;
    /* This hides the logo until the mask moves */
}

.preloader-logo {
    height: 250px;
    /* INCREASED TO 250px */
    width: auto;
    display: block;
    animation: logo-fade-in 2s ease forwards;
}

/* The Reveal Mask Effect */
.reveal-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    background-color: #ffffff;
    /* Same as background */
    animation: reveal-sweep 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Animations */
@keyframes reveal-sweep {
    0% {
        left: 0%;
        width: 100%;
    }

    100% {
        left: 100%;
        width: 0%;
    }

    /* Sweeps to the right to reveal the logo */
}

@keyframes logo-fade-in {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* --- Mobile Fixes for Preloader & Dealer Page --- */

@media (max-width: 768px) {

    /* 1. Shrink preloader logo so it doesn't overflow mobile width */
    .preloader-logo {
        height: auto;
        width: 80vw;
        /* Takes 80% of screen width instead of fixed 250px */
        max-width: 200px;
    }

    /* 2. Stack the Dealer Form inputs vertically on mobile */
    .form-row {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* 3. Adjust Dealer Section Grid */
    .dealer-container {
        grid-template-columns: 1fr !important;
        /* Forces single column */
        gap: 20px !important;
    }

    /* 4. Ensure Map Gif doesn't cause horizontal scroll */
    .map-container {
        min-height: 250px !important;
        width: 100%;
    }

    .form-container {
        padding: 20px !important;
        /* Reduce padding for more screen space */
    }

    /* 5. General Hero Heading resize for mobile */
    .hero h1 {
        font-size: 1.8rem !important;
    }
}

/* Ensure the preloader container itself never overflows */
#aquaan-preloader {
    width: 100vw;
    overflow: hidden;
}

/* ==========================================================
   FINAL FIX: RESPONSIVE MOBILE TEXT OVERLAY WITH 50% OPACITY
   ========================================================== */
.slide-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Edge-to-edge desktop rendering */
    z-index: 1;
    pointer-events: none;
    opacity: 55%;
}

/* --- Mobile View Optimization (Phones & Tablets) --- */
@media (max-width: 768px) {

    /* 1. Ensure the container holds the perfect proportions from your screenshot */
    .hero-slider-container {
        height: 55vh !important;
        /* Retains an elegant height to comfortably display text and image elements */
        background: #f4f9fc !important;
    }

    .hero-slide {
        width: 100% !important;
        height: 100% !important;
        padding: 0 20px !important;
        /* Gives the text layers some breathing room from the screen edges */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 2. BRING BACK THE TEXT CONTENT BOX & MAKE IT STUNNING */
    .slide-content {
        display: block !important;
        /* Brings the text and buttons back to life on phone screens */
        position: relative !important;
        z-index: 5 !important;
        /* Layers the text cleanly on top of the background graphic */
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Optimize typography for standard phone screens so it doesn't cause overlap crowding */
    .slide-content h1 {
        font-size: 1.8rem !important;
        /* Crisp, readable scale for mobile devices */
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
        color: var(--secondary) !important;
        text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
        /* Protects text contrast over the graphic background */
    }

    .slide-content p {
        font-size: 0.95rem !important;
        margin-bottom: 18px !important;
        line-height: 1.4 !important;
        color: var(--text-main) !important;
        font-weight: 500 !important;
    }

    .slide-content .btn {
        padding: 10px 22px !important;
        font-size: 0.9rem !important;
    }

    /* 3. SET GRAPHIC OPACITY TO 50% FOR SLIDE 2 & 3 TO PROTECT LEGIBILITY */
    .slide-bg-img {
        position: absolute !important;
        object-fit: fill !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 0.5 !important;
        /* Exactly 50% opacity as requested to keep texts readable */
    }

    /* Slide 1 does not contain HTML text, so we keep it at 100% full vibrant clarity */
    .slide-1 .slide-bg-img {
        opacity: 0.5 !important;
    }
}

/* ==========================================================
   SUCCESS MODAL / THANK YOU POPUP
   ========================================================== */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.success-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.success-modal-overlay.show .success-modal {
    transform: scale(1);
}

.success-modal i {
    font-size: 4.5rem;
    color: #2ecc71;
    /* Success Green */
    margin-bottom: 20px;
    display: inline-block;
    opacity: 0;
}

.success-modal-overlay.show .success-modal i {
    animation: popInCheck 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.2s;
}

@keyframes popInCheck {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal h3 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.success-modal p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.success-modal .btn {
    width: 100%;
}

/* ==========================================================
   FAQ ACCORDION STYLES
   ========================================================== */
.faq-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.1);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    text-align: left;
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.4s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fff;
}

.faq-answer p {
    padding: 0 25px 25px 25px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==========================================================
   EXTRACTED INTERNAL STYLES (Cleaned from HTML files)
   ========================================================== */

/* Global Typography Fix */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

/* --- About Page Styles --- */
.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.about-slider-box {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 450px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    overflow: hidden;
}

.about-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.about-slide-img.active {
    opacity: 1;
}

/* --- Blog/Newsroom Styles --- */
.featured-post {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
    border: 1px solid var(--glass-border);
}

.featured-img-box {
    flex: 1;
    min-width: 300px;
    min-height: 400px;
    background: url('PHOTOS/1 Platinum RO Water Purifiers/1.1 CROWN WHITE.png') center/contain no-repeat;
    background-color: #f4f9fc;
}

.featured-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
}

.article-tag {
    background: rgba(0, 136, 204, 0.1);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.featured-title {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-excerpt {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: #fff;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    align-items: center;
    text-decoration: none;
}

.news-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.news-thumb {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    background: #f4f9fc;
}

.news-info {
    flex: 1;
}

.news-info .date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

.news-info h4 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 10px;
    transition: 0.3s;
}

.news-item:hover .news-info h4 {
    color: var(--primary);
}

.news-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .featured-content {
        padding: 30px;
    }

    .featured-title {
        font-size: 1.8rem;
    }

    .news-item {
        flex-direction: column;
        text-align: center;
    }

    .news-thumb {
        width: 100%;
        height: 200px;
    }
}

/* --- Index/Hero Slider Styles --- */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    background: #eef7fc;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    padding: 0 5%;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-1,
.slide-2,
.slide-3 {
    background: linear-gradient(to right, #e1f0fa 0%, #f4f9fc 100%);
}

.slide-content {
    max-width: 700px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    position: relative;
    z-index: 5;
}

.hero-slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--secondary);
    font-family: 'Montserrat', sans-serif;
}

.slide-content h1 span {
    color: var(--primary);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--text-muted);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 136, 204, 0.1);
    border: 1px solid rgba(0, 136, 204, 0.2);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 136, 204, 0.2);
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary) !important;
    transform: scale(1.3);
}

/* --- Products & Cart Styles --- */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    /* Fixes overlapping issues */
    z-index: 50;
    /* Forces the container to the front layer */
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--aqua);
    background: transparent;
    color: var(--secondary);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    touch-action: manipulation;
    /* Removes the 300ms tap delay on mobile */
    position: relative;
    z-index: 50;
    /* Ensures the button itself is clickable */
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--aqua);
    color: #fff;
}

.product-card {
    display: block;
    position: relative;
}

.product-card.hidden {
    display: none;
}

.price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0 20px 0;
}

.qty-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f4f7f6;
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    padding: 5px;
    width: 100%;
}

.qty-btn {
    background: var(--secondary);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary);
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary);
    outline: none;
}

#cartFloatingBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary);
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: 0.3s;
    border: none;
}

#cartFloatingBtn:hover {
    transform: scale(1.1);
    background: var(--primary);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff3333;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

#cartSidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    transition: 0.4s ease-in-out;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

#cartSidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    background: var(--secondary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-cart {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    background: var(--bg-color);
}

.cart-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
}

.cart-item-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-item-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--secondary);
    flex: 1;
}

.cart-sidebar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-qty-btn {
    background: #eee;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: var(--secondary);
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    background: #ddd;
}

.cart-qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px;
    font-weight: bold;
    outline: none;
}

.remove-item {
    color: #ff3333;
    cursor: pointer;
    font-size: 1.2rem;
    background: none;
    border: none;
    padding: 5px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.cart-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid var(--glass-border);
}

.cart-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    outline: none;
}

.whatsapp-btn {
    width: 100%;
    padding: 15px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.whatsapp-btn:hover {
    background: #1ebe57;
}

#cartOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: 0.3s;
}

#cartOverlay.show {
    display: block;
    opacity: 1;
}

/* ==========================================================
   BLOG MODAL (POPUP) STYLES
   ========================================================== */
.blog-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.blog-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.blog-modal {
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.blog-modal-overlay.show .blog-modal {
    transform: translateY(0);
}

.close-blog-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-blog-btn:hover {
    background: #ff3333;
}

.modal-blog-img {
    width: 100%;
    height: 350px;
    background-color: #f4f9fc;
}

.modal-blog-body {
    padding: 40px;
}

.modal-text-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-text-content strong {
    color: var(--secondary);
}

@media (max-width: 768px) {
    .modal-blog-img {
        height: 200px;
    }

    .modal-blog-body {
        padding: 25px;
    }

    #modalBlogTitle {
        font-size: 1.5rem !important;
    }
}

/* ==========================================================
   PRODUCT IMAGE LIGHTBOX STYLES
   ========================================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Dark background */
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    background: #fff;
    /* Keeps PNGs looking clean */
    padding: 20px;
}

.lightbox-overlay.show img {
    transform: scale(1);
    /* Zoom in animation */
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1000001;
}

.lightbox-close:hover {
    color: var(--primary);
}


/* ==========================================================
   ULTIMATE MOBILE FIXES
   ========================================================== */
@media (max-width: 768px) {

    /* 1. Fix the horizontal scroll & missing hamburger menu */
    .nav-spacer {
        display: none !important;
    }

    .navbar {
        padding: 15px 20px !important;
    }

    /* 2. Shrink massive inline heading sizes */
    .hero h1,
    .hero-content h1,
    .hero-content h1[style] {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    /* 3. Reduce giant gaps in your About & Contact page layouts */
    .section>div[style*="gap: 50px"],
    .section>div[style*="gap: 80px"] {
        gap: 25px !important;
        flex-direction: column !important;
    }

    /* 4. Reduce overall section padding for smaller screens */
    .section {
        padding: 40px 5% !important;
    }

    /* 5. Force side-by-side elements to stack neatly */
    .about-text,
    .about-slider-box,
    .featured-img-box,
    .featured-content {
        min-width: 100% !important;
        width: 100% !important;
    }
}