 /* 1. Root Variables & Reset */
:root {
    /* Al Diwan Color Palette */
    --light-teal: #6d9abf;
    --dark-teal: #1D435F;
    --bg-grey: #F8F9FA;
    --border-light: #EEEEEE;
    --text-main: #212529; /* Slightly darker for better contrast SEO */
    --text-muted: #6c757d;
    --header-font: 'Montserrat', sans-serif;
--whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    /* Mobile-First Fluid Font Scale (Using REM for SEO/Accessibility) */
    --size-h1: 2rem;      /* 32px - Prominent for Product titles */
    --size-h2: 1.5rem;    /* 24px */
    --size-h3: 1.25rem;   /* 20px */
    --size-body: 1rem;    /* 16px - The standard for mobile readability */
    --size-small: 0.675rem; /* 14px - For muted text or breadcrumbs */
    
    /* Standardized Container */
    --container-width: 1350px;
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--header-font);
    color: var(--text-main);
    font-size: var(--size-body);
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased; /* Better font rendering on Mobile Safari */
}

/* Bootstrap Container Override for your specific width */
@media (min-width: 1200px) {
    .container, .container-lg, .container-xl {
        max-width: var(--container-width);
    }
}

/* Typography Hierarchy for SEO */
h1, .h1 { font-size: var(--size-h1); font-weight: 700; color: var(--dark-teal); margin-bottom: 1rem; }
h2, .h2 { font-size: var(--size-h2); font-weight: 600; color: var(--dark-teal); }
h3, .h3 { font-size: var(--size-h3); font-weight: 600; }
p { margin-bottom: 1rem; }

/* Mobile Touch Targets */
a, button {
    text-decoration: none;
    transition: all 0.3s ease;
}

 /* ===============================
   1.  Utility Bar
================================ */
 
.utility-bar {
    background-color: var(--dark-teal);
    padding: 10px 0; /* Slightly more padding for better touch targets */
    font-size: 0.8125rem; /* ~13px */
    color: #ffffff;
}

.utility-left {
    font-weight: 400;
    letter-spacing: 0.5px;
}

.utility-right a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
}

.utility-right a:hover {
    opacity: 0.8;
    color: var(--light-teal);
}

.separator {
    opacity: 0.3;
    margin: 0 10px;
}

/* Ensure icons are slightly larger on mobile for easy tapping */
@media (max-width: 576px) {
    .utility-bar i {
        font-size: 1.1rem;
    }
}

 /* ===============================
  2. Main Header
================================ */ 
:root {
    --primary-teal: #1D435F;
    --hover-teal: #2A5C82;
    --text-dark: #333333;
    --text-muted: #717171;
    --bg-light: #F1F4F5;
    --border-color: #E5E8EB;
}

.main-header {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- Search Bar UI --- */
.search-wrapper {
    position: relative;
}

.custom-search-group {
    background: var(--bg-light);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.custom-search-group:focus-within {
    background: #fff;
    border-color: var(--primary-teal);
    box-shadow: 0 4px 12px rgba(29, 67, 95, 0.08);
}

.custom-search-group .form-control {
    background: transparent;
    border: none;
    height: 40px;
    padding-left: 20px;
    font-size: 0.95rem;
}

.btn-search {
    background: var(--primary-teal);
    color: #fff !important;
    border-radius: 50px !important;
    padding: 0 22px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
}

.btn-search:hover {
    background: var(--hover-teal);
}

/* --- Right Side Spacing & Components --- */
.header-actions {
    gap: 30px; /* Standardized spacing */
}

.action-link {
    text-decoration: none !important;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
}

.icon-wrapper {
    position: relative;
    font-size: 1.3rem;
    color: var(--primary-teal);
    height: 28px;
    display: flex;
    align-items: center;
}

.action-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
    color: var(--text-muted);
}

.action-link:hover .icon-wrapper {
    transform: translateY(-2px);
}

.v-separator {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #E74C3C;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 10px;
    border: 2px solid #fff;
}

.project-cta-btn {
    text-decoration: none !important;
    background: var(--primary-teal);
    color: #fff !important;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.project-cta-btn:hover {
    background: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- Suggestion Dropdown --- */
.suggestion-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1100;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f8f9fa;
    text-decoration: none !important;
    transition: background 0.2s;
}

.suggestion-item:hover { background: #f4f7f9; }

.suggestion-img {
    width: 50px; height: 50px;
    object-fit: contain;
    margin-right: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.suggestion-title { font-weight: 600; color: #333; font-size: 0.9rem; margin-bottom: 2px; }
.suggestion-model { font-size: 0.7rem; color: #999; text-transform: uppercase; }
.suggestion-price { font-size: 0.85rem; font-weight: 700; color: var(--primary-teal); margin-top: 2px; }
  /* ==========================================================================
   3. Navigation & Mega Menu (Complete & Professional)
   ========================================================================== */

/* --- Bottom Nav Main Styles --- */
.bottom-nav { 
    background: #fff; 
    position: relative; 
    border-bottom: 1px solid var(--border-light);
    /* Ensure a consistent height to prevent layout shift */
    min-height: 55px; 
}

/* Desktop Mega Menu Anchor */
.all-categories-wrapper {
    position: relative;
    height: 55px;
    z-index: 1060;
}

.all-cats-trigger {
    background: var(--dark-teal);
    color: #fff;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-family: var(--header-font);
    font-weight: 700;
    font-size: var(--size-small);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.all-cats-trigger:hover {
    background: #153246; /* Slightly darker depth for professional feel */
}

/* Mega Dropdown Box - Optimized for Content and Responsiveness */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    /* Use max-width for better behavior on various desktop screens */
    width: 1100px; 
    max-width: calc(100vw - 40px); 
    background: #fff;
    display: flex;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    
    /* Animation: Subtle slide and fade */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
}

.all-categories-wrapper:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sidebar Menu inside Mega Menu */
.side-menu {
    width: 260px;
    background: var(--bg-grey);
    border-right: 1px solid var(--border-light);
    flex-shrink: 0; /* Keep sidebar from squishing */
}

.side-item {
    padding: 0 !important;
    font-size: var(--size-small);
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}
.side-item-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none !important;
    color: var(--text-dark); /* Or your primary color */
    width: 100%;
    transition: all 0.2s ease;
}
.side-item-link img {
    margin-right: 12px;
    filter: grayscale(1); /* Optional: makes icons look high-end */
    transition: filter 0.2s;
}

.side-item.active .side-item-link,
.side-item:hover .side-item-link {
    background: #f8f9fa;
    color: var(--primary-teal);
}

.side-item.active img, .side-item:hover img {
    opacity: 1;
}

/* Mega Content Area */
.mega-content { 
    flex: 1; 
    padding: 30px; 
    max-height: 500px; /* Optional: adds scroll if content is too long */
    overflow-y: auto;
}

.content-pane { display: none; }
.content-pane.active { display: block; }

.menu-col h3 {
    font-size: var(--size-body);
    font-family: var(--header-font);
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

.menu-col h3 a { color: inherit; text-decoration: none; }

.menu-col ul { list-style: none; padding: 0; }

.menu-col ul li a {
    font-size: var(--size-small);
    color: var(--text-muted);
    padding: 5px 0;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-col ul li a:hover { 
    color: var(--dark-teal); 
    padding-left: 5px; /* Professional micro-interaction */
}

/* --- Navbar Links & Icons --- */
.navbar-nav {
    list-style: none;
    display: flex;
    flex-direction: row;      /* Force horizontal on desktop */
    flex-wrap: nowrap;        /* CRITICAL: Fixes the double row issue */
    align-items: center;
    gap: 2px;                 /* Tightened for space-saving */
    padding-left: 0;
    margin: 0;
}

.navbar-nav li a {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: var(--size-small);
    font-weight: 600;
    color: var(--dark-teal);
    padding: 4px 6px;        /* Consistent vertical/horizontal padding */
    border-radius: 6px;
    white-space: nowrap;      /* Prevents text from breaking inside links */
    transition: all 0.3s ease;
}

.navbar-nav li a img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;           /* Prevents icons from squishing */
}

.navbar-nav li a:hover {
    background-color: var(--light-teal);
    color: #fff;
}

.navbar-nav li a.active {
    background-color: var(--dark-teal);
    color: #fff;
}

.navbar-nav li a.active img {
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   3.2. Mobile Adjustments (Offcanvas & Responsive)
   ========================================================================== */
@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: column;
        flex-wrap: wrap;       /* Allow wrapping if list is long on mobile */
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .navbar-nav li { width: 100%; }

    .navbar-nav li a {
        width: 100%;
        padding: 14px 20px;    /* Larger tap targets for mobile UX */
        border-bottom: 1px solid var(--border-light);
        border-radius: 0;
        font-size: 1rem;
    }
    .main-header .navbar-toggler {
        padding-left: 0;
        font-size: 1.5rem; /* Makes the bars slightly more prominent */
    }
    
    .logo img {
        max-height: 40px; /* Adjusts logo size to fit nicely next to the menu icon */
    }
    .mobile-sub { background-color: var(--bg-grey); } 
    .mobile-sub-sub { background-color: #ffffff; }

    /* Icon Rotation Logic for Mobile Accordions */
    .transition-icon {
        transition: transform 0.3s ease;
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-left: auto;     /* Push arrow to the right edge */
    }

    [aria-expanded="true"] .transition-icon {
        transform: rotate(180deg);
        color: var(--dark-teal);
    }
}

/* Desktop Width Adjustment for smaller screens */
@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-nav li a {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    .mega-dropdown {
        width: 900px;
    }
}
/* ==========================================================================
   4. Core Video Wrapper
   ========================================================================== */

.hero-wrapper {
    font-family: var(--header-font);
    background-color: var(--dark-teal);
}

/* Center Text Styling */
.hero-main-text {
    /* 1.5rem = Minimum size (Mobile)
       3vw = Scaling speed (Desktop)
       3rem = Maximum size (Large PC) 
    */
    font-size: clamp(1.5rem, 3vw, 3rem); 
    
    /* Letter spacing: 0 or slightly positive feels more premium for long titles */
    letter-spacing: 1px; 
    
    /* Line height: 1.2 or 1.3 provides better "breathing room" */
    line-height: 1.3;
    
    /* Subtle shadow: helps readability without looking "dirty" */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    
    color: white;
    text-transform: uppercase;
    font-weight: 700;
}

/* Optional: Add a slight opacity to the sub-text to make the main title pop */
.hero-main-text .text-teal {
    color: var(--light-teal);
    display: block; /* Puts "Since 1990" on its own small line */
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-top: 10px;
}

.hero-line {
    width: 80px;
    height: 4px;
    background: var(--light-teal);
}

/* Video Overlay */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(29, 67, 95, 0.6) 0%, rgba(0,0,0,0.8) 100%);
}

/* Bottom Service Bar Styling */
.service-bar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item {
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-item:hover {
    background: rgba(109, 154, 191, 0.2);
}

.service-inner {
    padding: 25px 15px;
    text-align: center;
    color: #fff;
}

.service-inner h6 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: var(--light-teal);
}

.service-inner p {
    font-size: 0.75rem;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Vertical dividers for PC */
@media (min-width: 992px) {
    .service-inner {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    .service-item:first-child .service-inner {
        border-left: none;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-wrapper {
        height: auto !important;
        min-height: 100vh;
    }
    .hero-main-text {
        padding: 60px 0;
    }
    
    .service-bar .row {
        display: flex;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .service-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .service-inner {
        height: 100%;
    }
}
/* ==========================================================================
   5. promo-section
   ========================================================================== */

 /* Helper Classes for your Roots */
.text-dark-teal { color: var(--dark-teal) !important; }
.text-light-teal { color: var(--light-teal) !important; }

/* The Card: Minimalist & Clean */
.promo-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 4px; /* Squared edges feel more industrial/engineered */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-height: 220px;
    font-family: var(--header-font);
    position: relative;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(29, 67, 95, 0.1) !important; /* Subtle Teal Shadow */
    border-color: var(--light-teal);
}

/* Typography Hierarchy */
.promo-tag {
    color: var(--text-muted);
    font-size: var(--size-small);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    display: block;
}

.promo-title {
    color: var(--dark-teal);
    font-size: var(--size-h2);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.promo-percent {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
}

.promo-off {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Custom "Diwan" Button Style */
.btn-diwan-sm {
    background-color: var(--dark-teal);
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 8px 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: 0.3s;
}

.btn-diwan-sm:hover {
    background-color: var(--light-teal);
    color: white;
}

/* Image Presentation */
.promo-image {
    flex: 1;
    text-align: right;
}

.promo-image img {
    max-height: 170px;
    width: auto;
    object-fit: contain;
    /* This creates a high-end "Product Catalog" look */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

/* Responsive Scaling */
@media (max-width: 767px) {
    .promo-percent { font-size: 2.8rem; }
    .promo-card { padding: 20px !important; }
}


/* ==========================================================================
   5. Partners Section Specifics
   ========================================================================== */
.accent-line {
    width: 60px;
    height: 3px;
    background: var(--light-teal);
    margin-top: 15px;
}

/* The Brand Item (Injected by JS) */
.brand-item {
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--border-light);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
    margin-bottom: 0; /* Override figure default */
}

.brand-item img {
    max-height: 90px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-item:hover {
    border-color: var(--light-teal);
    box-shadow: 0 10px 20px rgba(29, 67, 95, 0.1);
    transform: translateY(-5px);
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Slider Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-teal);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover { background: var(--light-teal); }
.slider-nav.prev { left: 0; }
.slider-nav.next { right: 0; }

 
/* ==========================================================================
   5. Partners Section - Mobile Optimized
   ========================================================================== */

/* Container adjustment */
.partners-wrapper {
    position: relative;
    padding: 0 10px;
}

.brand-item {
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--border-light);
    height: 120px; /* Reduced height for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: all 0.3s ease;
    border-radius: 8px; /* Softer look */
}

.brand-item img {
    max-height: 100px; /* Smaller logos for mobile screens */
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    object-fit: contain;
}

@media (max-width: 767px) {
    /* Force the row to stay as one single line */
    #brandGrid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 10px !important;
        padding: 10px 20px 20px 20px !important; /* Side padding so logos don't touch edges */
        -webkit-overflow-scrolling: touch;
    }

    /* Hide the navigation buttons on mobile */
    .slider-nav { display: none !important; }

    /* Hide scrollbar */
    #brandGrid::-webkit-scrollbar { display: none; }

    /* Size each item to show exactly 2.5 items */
    #brandGrid > div {
        flex: 0 0 40% !important; /* 40% ensures 2 items (80%) + half of the 3rd item */
        max-width: 40% !important;
        scroll-snap-align: start;
    }

    .brand-item {
        height: 100px; 
        padding: 10px;
    }
    
    .brand-item img {
        filter: grayscale(0%);
        opacity: 1;
        max-height: 80px;
    }
}


  
/* ==========================================================================
  6. Products Section - Revised
   ========================================================================== */
:root {
    --primary-teal: #1D435F;
    --accent-teal: #6d9abf;
    --bg-light: #f8fafc;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --white: #ffffff;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --border-light: #EEEEEE;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Font Scale */
    --size-h1: 2rem;
    --size-h2: 1.5rem;
    --size-h3: 1.25rem;
    --size-body: 1rem;
    --size-small: 0.875rem;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
}

/* --- Collection Header --- */
.collection-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center; /* Added for better alignment */
}
.collection-header .title {
    font-size: var(--size-h1);
    font-weight: 800;
    color: var(--primary-teal);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.divider {
    width: 60px;
    height: 4px;
    background: var(--accent-teal);
    margin: 1rem auto;
    border-radius: 10px;
}

/* --- Category Hero (Side Card) --- */
.category-hero {
    height: 100%;
    min-height: 350px;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-teal) 100%);
    color: var(--white);
    transition: var(--transition);
    position: relative;
}

.hero-content {
    text-align: left;
}

.category-hero h3 { 
    font-size: var(--size-h2); 
    font-weight: 700; 
    margin-bottom: 0.5rem;
}

.category-hero p {
    font-size: var(--size-small);
    opacity: 0.9;
}

.category-hero .btn-hero {
    margin-top: auto; 
    align-self: flex-start;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: var(--size-small);
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.category-hero .btn-hero:hover {
    border-color: var(--white);
    gap: 12px;
}

/* --- Horizontal Scroll Engine --- */
.scroll-wrapper {
    position: relative;
    padding: 0 10px;
    max-width: 1300px; /* Limits overall section width */
    margin: 0 auto;
}

.product-scroll-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem; /* Reduced gap for 4-in-a-row */
    padding: 1rem 0.5rem 2rem;
    scrollbar-width: none;
}
.product-scroll-grid::-webkit-scrollbar { display: none; }

/* Desktop: EXACTLY 4 Cards per row */
.product-item-flex {
    flex: 0 0 calc(25% - 0.75rem); 
    max-width: calc(25% - 0.75rem);
    min-width: 220px; /* Ensures cards don't get too skinny */
}

/* --- Grid Navigation Buttons --- */
.grid-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    color: var(--primary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.grid-nav-btn:hover { background: var(--primary-teal); color: var(--white); }
.grid-nav-btn.prev { left: -10px; }
.grid-nav-btn.next { right: -10px; }

/* --- Product Card Styling --- */
.product-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem; /* Reduced padding */
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--accent-teal);
}

.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.product-img {
    height: 150px; /* Scaled down for 4-column layout */
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #fff;
    padding: 5px;
}

.product-img img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    display: block; 
}

.brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}
.brand { font-size: 0.65rem; font-weight: 700; color: var(--accent-teal); text-transform: uppercase; }
.product-rating { color: #FFC107; font-size: 0.6rem; display: flex; gap: 2px; }

.product-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    height: 2.4rem; /* Adjusted for smaller cards */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.75rem;
}

.price-row {
    margin-top: auto; /* Pushes price/actions to bottom */
    display: flex;
    align-items: baseline;
}

.price-now { font-size: 1.1rem; font-weight: 800; color: var(--primary-teal); }
.price-was { font-size: 0.75rem; color: var(--text-muted); text-decoration: line-through; margin-left: 5px; }

.card-actions { display: flex; gap: 6px; margin-top: 1rem; }

.btn-view {
    flex: 1;
    background: var(--primary-teal);
    color: white;
    text-align: center;
    padding: 7px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
}

.btn-wa {
    width: 34px;
    height: 34px;
    background: var(--whatsapp-green);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
}
/* Show More Button Design */
 /* Simple Premium Teal Button */
.btn-show-more {
    --primary-teal: #1D435F;
    --accent-teal: #6d9abf;
    
    background-color: var(--primary-teal);
    color: #ffffff;
    border: none;
    padding: 12px 40px; 
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-show-more:hover {
    background-color: var(--accent-teal);
    color: #ffffff;
}

.btn-show-more:active {
    transform: scale(0.98); /* Slight click feedback */
}

/* Tightening the layout */
.category-block {
    margin-bottom: 2rem !important; /* Reduced bottom margin */
}

/* Simple Entrance Animation */
.hidden-category {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hidden-category.show-visible {
    opacity: 1;
}

/* Icon Spacing */
.btn-show-more i {
    margin-left: 10px;
}
/* Mobile Adjustments  */
@media (max-width: 1024px) {
    .product-item-flex {
        flex: 0 0 calc(33.33% - 0.75rem); /* 3 cards for tablets */
        max-width: calc(33.33% - 0.75rem);
    }
}

@media (max-width: 767px) {
    :root {
        --size-h1: 1.5rem;
        --size-h2: 1.25rem;
        --size-h3: 1.1rem;
    }

    .collection-header {
        margin-bottom: 2rem;
        padding: 0 15px;
    }

    .category-hero {
        min-height:40px; 
        padding: 0.5rem;
        margin-bottom: 0.2rem;
        text-align: center;
        border-radius: 1px;
    }

    /* 2 Cards visible with a peek at the 3rd */
    .product-item-flex {
        flex: 0 0 45%; 
        max-width: 45%;
        min-width: 160px;
    }

    .scroll-wrapper {
        padding: 0;
    }

    .product-scroll-grid {
        padding: 1rem 15px 1.5rem;
        gap: 0.75rem;
    }

    .grid-nav-btn {
        display: none !important;
    }

    .product-card {
        padding: 0.75rem;
    }

    .product-img {
        height: 120px;
    }
    
    .price-now { font-size: 1rem; }
}

/* Extra Small Phones */
@media (max-width: 380px) {
    .product-item-flex {
        flex: 0 0 70%;
        max-width: 70%;
    }
}


/* ==========================================================================
  6. About Diwan Section
   ========================================================================== */
 /* --- High-End Global Variables --- */
:root {
    --primary-deep: #1D435F;
    --accent-light: #6d9abf;
    --white: #ffffff;
    --text-dark: #2d2d2d;
    --border-soft: #f0f0f0;
}

.aldiwan-premium-section {
    padding: 10px 0;
    background-color: var(--white);
    font-family: 'Montserrat', sans-serif;
}

.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Responsive Hero Layout --- */
.brand-hero-wrapper {
    display: flex;
    gap: 60px;
    align-items: stretch;
    margin-bottom: 80px;
}

/* LEFT PILLAR - Desktop */
.brand-column-left {
    flex: 0 0 380px;
}

.logo-pillar {
    background: var(--primary-deep);
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pillar-top {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    background: var(--white);
    margin: 10px;
    border-radius: 15px;
}

.brand-logo-img {
    width: 100%;
    max-width: 240px;
    height: auto;
}

.pillar-bottom {
    display: flex;
    background: var(--primary-deep);
    padding: 25px 0;
}

.stat-box {
    flex: 1;
    text-align: center;
    color: white;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-box:last-child { border-right: none; }

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
}

.stat-desc {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* RIGHT CONTENT */
.brand-column-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.narrative-tag {
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.brand-column-right h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-deep);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.brand-column-right h1 span {
    display: block;
    font-weight: 300;
    color: #777;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.dual-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

/* --- Grid System --- */
.category-grid-system {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background: #fafafa;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 40px 30px;
}

.icon-frame {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.icon-frame img {
    height: 35px;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-deep);
    margin-bottom: 10px;
}

.category-card p {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
}

.btn-minimal {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
}

/* --- Hover Effects --- */
.category-card:hover {
    transform: translateY(-10px);
    background: white;
    border-color: var(--accent-light);
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

/* --- Mobile Styling (Best for Mobile) --- */
 /* --- Desktop & Mobile Base --- */
.narrative-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dual-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* --- Mobile Specific Overrides --- */
@media (max-width: 1024px) {
    /* 1. Reset Text to standard paragraphs */
    .dual-info-grid {
        grid-template-columns: 1fr; /* Stack vertically like normal paras */
        gap: 15px;
        text-align: left; /* Better for readability in UAE market */
    }

    .lead-text {
        text-align: left;
        margin-bottom: 15px;
    }

    /* 2. Transform Grid into a Slider */
    .category-grid-system {
        display: flex; /* Change from grid to flex for horizontal scroll */
        overflow-x: auto; /* Enable horizontal scroll */
        scroll-snap-type: x mandatory; /* Snap effect for cards */
        gap: 15px;
        padding: 20px 0 40px 0; /* Space for shadows and breathing room */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    /* Hide scrollbar for a cleaner look */
    .category-grid-system::-webkit-scrollbar {
        display: none;
    }

    /* 3. Force 1 and a Half Cards visibility */
    .category-card {
        flex: 0 0 75%; /* Each card takes 75% width, showing 25% of the next card */
        scroll-snap-align: start; /* Alignment for snapping */
        background: #fafafa;
        border-radius: 18px;
        border: 1px solid #f0f0f0;
    }

    /* Adjust padding for mobile cards so they don't look too bulky */
    .category-card a {
        padding: 30px 20px;
    }

    /* Ensure icons don't shrink */
    .icon-frame {
        width: 50px;
        height: 50px;
    }

    /* Maintain Brand Hero alignment on mobile */
    .brand-hero-wrapper {
        flex-direction: column;
        text-align: left;
    }
}
 /* ==========================================================================
  7. Support Section
   ========================================================================== */
:root {
  --light-teal: #6d9abf;
  --dark-teal: #1D435F;
}

.support-cta-row {
  background-color: #f8f9fa;
}

/* The horizontal bar container */
.cta-wrapper {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
}

/* Text adjustments */
.support-text h2 {
  color: var(--dark-teal);
  font-size: 28px;
}

.support-text p {
  color: #6c757d;
  font-size: 15px;
}

/* Input Styling */
.cta-form-horizontal .form-control {
  padding: 12px 15px;
  background-color: #f1f4f6;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.cta-form-horizontal .form-control:focus {
  background-color: #fff;
  border-color: var(--light-teal);
  box-shadow: 0 0 0 4px rgba(109, 154, 191, 0.1);
  outline: none;
}

/* WhatsApp Button styling */
.btn-whatsapp-row {
  background: linear-gradient(135deg, var(--dark-teal), var(--light-teal));
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-whatsapp-row:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29, 67, 95, 0.2);
}

/* Shine effect on hover */
.btn-whatsapp-row::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn-whatsapp-row:hover::after {
  left: 100%;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .cta-wrapper {
    padding: 30px 20px;
  }
  
  .support-text {
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .support-text h2 {
    font-size: 22px;
  }
  
  .cta-wrapper {
    margin: 0 10px;
    border-radius: 15px;
  }
}
  /* ==========================================================================
   7. Services Section - High-End Mobile & Desktop
   ========================================================================== */
 /* ==========================================================================
   SERVICES SECTION - ELITE REVISION
   ========================================================================== */

:root {
    --dark-teal: #1D435F;
    --accent-blue: #6d9abf;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.services-section {
    background-color: #ffffff;
    padding: 60px 0;
    overflow: hidden; /* Vital for mobile swipe */
}

/* --- Section Title Styling --- */
.section-title {
    color: var(--dark-teal);
    font-size: 1.75rem;
    letter-spacing: 1.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 3px;
    background: var(--accent-blue);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

/* --- Grid & Card Architecture --- */
.services-scroll-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 20px 0;
}

.service-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

.card-img-wrapper {
    height: 180px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
    padding: 25px;
}

.card-img-top {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* --- MOBILE PROFESSIONAL OVERRIDE (MAX-WIDTH: 768PX) --- */
@media (max-width: 768px) {
    .services-scroll-container {
        display: flex; /* Horizontal swipe engine */
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 20px 10% 40px 10%; /* Peek effect on edges */
        gap: 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .services-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .service-item {
        flex: 0 0 100%; /* Ensures center snap */
        scroll-snap-align: center;
    }

    .service-card {
        max-width: 320px;
        margin: 0 auto;
        border: 1px solid rgba(0,0,0,0.03); /* Softer for mobile */
    }

    /* --- "Learn More" Expandable Text Logic --- */
    .more-text {
        display: none; /* Collapsed by default on mobile */
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .service-item.expanded .more-text {
        display: inline;
        opacity: 1;
        animation: fadeIn 0.4s ease forwards;
    }

    .btn-toggle-service {
        background: transparent;
        border: 1px solid var(--accent-blue);
        color: var(--dark-teal);
        padding: 8px 18px;
        border-radius: 50px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 auto;
        transition: var(--transition-smooth);
    }

    .btn-toggle-service i {
        transition: transform 0.3s ease;
    }

    .service-item.expanded .btn-toggle-service i {
        transform: rotate(180deg);
    }

    /* --- MODERN COLOR-CHANGING PILL DOTS --- */
    .service-dots {
        gap: 8px;
        margin-top: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
        background-color: #cbd5e1; /* Soft inactive blue-grey */
        border-radius: 50%;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dot.active {
        width: 24px; /* Expands into pill shape */
        background-color: var(--dark-teal); /* Color changes to primary */
        border-radius: 10px;
    }
}

/* --- DESKTOP BEHAVIOR --- */
@media (min-width: 769px) {
    .more-text {
        display: inline !important; /* Always visible on desktop */
        opacity: 1;
    }
    .btn-toggle-service {
        display: none !important; /* Hide toggle on desktop */
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

 /* ==========================================================================
  9. Stats Section
   ========================================================================== */
:root {
  --steel-dark: #1D435F;
  --steel-accent: #6d9abf;
  --platinum: #f1f5f9;
  --border-subtle: rgba(226, 232, 240, 0.8);
}

.stats-premium-section {
  background-color: #ffffff;
}

.stats-grid-container {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-premium-box {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border-subtle);
  height: 100%;
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  background: #fff;
}

/* Stat Index (The small 01, 02 numbers) */
.stat-index {
  font-family: 'Monaco', monospace;
  font-size: 0.7rem;
  color: #cbd5e1;
  font-weight: 400;
}

.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.stat-top i {
  font-size: 1.1rem;
  color: var(--steel-accent);
  transition: transform 0.3s ease;
}

/* Typography Hierarchy */
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--steel-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -1.5px;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* Hover Interaction */
.stat-premium-box:hover {
  background-color: var(--platinum);
}

.stat-premium-box:hover .stat-top i {
  transform: translateY(-5px);
  color: var(--steel-dark);
}

/* Responsive Logic */
@media (max-width: 991px) {
  .stat-premium-box {
    padding: 2.5rem 1rem;
  }
  .stat-value {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  /* Create a 2x3 Grid on Mobile with proper borders */
  .col-6 {
    border-bottom: 1px solid var(--border-subtle);
  }
  .col-6:nth-child(even) {
    border-right: none;
  }
  /* Remove bottom border on the last two items */
  .col-6:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

.border-none {
  border-right: none !important;
}

 /* ==========================================================================
  10. location Section
   ========================================================================== */

:root {
  --primary-blue: #1D435F;
  --accent-teal: #6d9abf;
  --whatsapp-green: #25D366;
}

.title-line {
  width: 60px;
  height: 3px;
  background: var(--accent-teal);
  margin-top: 10px;
}

/* Card Styling */
.location-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eef2f6;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(29, 67, 95, 0.1) !important;
}

/* Map Container */
.map-container {
  width: 100%;
  height: 220px;
  background: #eee;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Buttons */
.btn-direction {
  background-color: var(--primary-blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 15px;
  transition: background 0.3s;
}

.btn-direction:hover {
  background-color: var(--accent-teal);
  color: #fff;
}

.btn-whatsapp-icon {
  background-color: #fff;
  color: var(--whatsapp-green);
  border: 1px solid var(--whatsapp-green);
  border-radius: 8px;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.btn-whatsapp-icon:hover {
  background-color: var(--whatsapp-green);
  color: #fff;
}

/* Text Consistency */
.location-body h3 {
  color: var(--primary-blue);
}

.location-body p {
  min-height: 40px; /* Ensures card heights match even if address wraps */
}

@media (max-width: 576px) {
  .map-container {
    height: 180px;
  }
}

 /* --- Root Variables --- */
:root {
    --diwan-blue: #1D435F;
    --diwan-accent: #6d9abf;
    --diwan-gray: #f8fafc;
    --text-main: #334155;
    --text-light: #64748b;
}

/* FIX 1: Prevent the body from ever scrolling horizontally */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* --- Support Band --- */
.support-band {
    background: #ffffff;
}
.support-card i {
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: block;
}
.support-card h6 {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--diwan-blue);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.support-card a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}
.support-card a:hover { color: var(--diwan-accent); }

 /* --- Footer Core --- */
.main-footer {
    background-color: var(--diwan-gray);
    color: var(--text-main);
    width: 100%;
    position: relative;
    /* Safety catch for any internal element leaking out */
    overflow-x: hidden; 
}

.footer-logo {
    max-height: 55px;
    height: auto;
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--diwan-blue);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-links li { margin-bottom: 0.7rem; }
.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.88rem;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: var(--diwan-blue);
    padding-left: 4px;
}

/* --- Socials --- */
.footer-socials a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--diwan-blue);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.footer-socials a:hover {
    background: var(--diwan-blue);
    color: #fff;
    transform: translateY(-3px);
}

/* --- CTA Card Light --- */
.footer-cta-light {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.btn-diwan-primary {
    background-color: var(--diwan-blue);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: none;
}

.btn-diwan-primary:hover {
    background-color: var(--diwan-accent);
    color: #fff;
}

/* --- Mobile App Bar --- */
.mobile-app-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    z-index: 1000;
}

.bar-item {
    text-decoration: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
}

.bar-item i { font-size: 1.25rem; margin-bottom: 3px; }
.bar-item.active { color: var(--diwan-blue); }

/* --- Responsive Fixes --- */
@media (max-width: 991px) {
    body { 
        padding-bottom: 75px;
        /* Prevents the entire page from sliding sideways */
        max-width: 100%;
        overflow-x: hidden;
    }

    .main-footer { 
        text-align: center; 
    }

    /* Reset row margins to prevent the -15px bootstrap bleed */
    .main-footer .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* Ensure container doesn't force a width larger than screen */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-cta-light { 
        margin-top: 20px; 
    }
}

.x-small { font-size: 0.75rem; }