:root {
  --header-bg: rgba(5, 11, 20, 0.65);
  --bg-color: #090e17;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-teal: #2dd4bf;
  --accent-teal-glow: rgba(45, 212, 191, 0.5);
  --accent-red: #f43f5e;
  --accent-red-glow: rgba(244, 63, 94, 0.5);
  --accent-blue: #0b2a4a;
  --glass-blur: blur(24px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 15% 50%, rgba(45, 212, 191, 0.08), transparent 35%),
    radial-gradient(circle at 85% 30%, rgba(244, 63, 94, 0.05), transparent 35%),
    var(--bg-color);
  background-size: 200% 200%;
  animation: gradientMove 15s ease infinite;
}

header {
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  background: var(--header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span.teal { color: var(--accent-teal); }
.logo span.red { 
  color: var(--accent-red);
  text-shadow: 0 0 10px var(--accent-red-glow);
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  margin-left: 30px;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-teal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-teal), #14b8a6);
  color: #042f2e; /* Dark contrast text */
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-teal-glow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(45, 212, 191, 0.8);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(255,255,255,0.1);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.search-container {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-container:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(45, 212, 191, 0.2), inset 0 0 0 1px rgba(255,255,255,0.1);
  border-color: rgba(45, 212, 191, 0.4);
}

.search-container input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px 25px;
  color: white;
  font-size: 1.1rem;
  outline: none;
  min-width: 0;
}

.search-divider {
  width: 1px;
  background: var(--card-border);
  margin: 15px 0;
}

.search-container input::placeholder {
  color: rgba(255,255,255,0.3);
}

.search-container button {
  background: linear-gradient(135deg, var(--accent-red), #fb7185);
  color: white;
  border: none;
  padding: 0 40px;
  border-radius: 100px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px var(--accent-red-glow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-container button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.8);
}

/* Featured Section */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title::before {
  content: '';
  width: 10px;
  height: 30px;
  background: var(--accent-teal);
  border-radius: 5px;
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-teal-glow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-25deg);
  transition: 0.7s ease;
}

.card:hover::before {
  left: 200%;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(45, 212, 191, 0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.card p.category {
  color: var(--accent-teal);
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card p.location {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card p.location i {
  color: var(--accent-red);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--card-border);
  padding-top: 15px;
  margin-top: 10px;
}

.card-footer a {
  color: var(--accent-teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.card-footer a:hover {
  text-decoration: underline;
}

/* Forms */
.form-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
/* Footer */
footer {
  margin-top: auto;
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
}

@media (max-width: 992px) {
    header { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0; background: var(--header-bg) !important; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); position: fixed !important; top: 0; left: 0; right: 0; z-index: 1000; padding: 15px 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
    .mobile-menu-btn { display: block !important; }
    nav.main-nav { display: none !important; width: 100%; flex-direction: column; gap: 15px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border-color); }
    nav.main-nav.active { display: flex !important; }
    nav.main-nav a { margin-left: 0 !important; color: var(--text-main) !important; text-align: center; font-weight: 600; padding: 10px 0; }
    nav.main-nav a:hover { color: var(--accent-teal) !important; }
    nav.main-nav a.btn-primary { color: white !important; width: 100%; box-sizing: border-box; }
    .hero-section { padding-top: 100px; height: auto; padding-bottom: 80px; }
}

/* Massive Directory Footer Global Styles */
.main-footer { background: #0b0f19; color: white; padding: 80px 5% 30px; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.05); }
.m-footer-grid {
    max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px;
    padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.m-footer-brand { text-align: center; }
.m-footer-brand p { color: #cbd5e1; line-height: 1.7; margin: 0 0 25px 0; font-size: 1.05rem; font-weight: 300; letter-spacing: 0.3px; }
.m-socials { display: flex; gap: 15px; justify-content: center; }
.m-socials a {
    width: 44px; height: 44px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #f8fafc; font-size: 1.15rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.m-socials a:hover { background: var(--accent-teal); color: white; transform: translateY(-5px); border-color: var(--accent-teal); box-shadow: 0 10px 25px rgba(30,117,97,0.5); }

/* App Download Buttons in Footer */
.m-app-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 25px; }
.m-app-btn {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; padding: 8px 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    color: white; text-decoration: none; transition: all 0.3s; width: 100%; box-sizing: border-box;
}
.m-app-btn:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.2); color: white; }
.m-app-btn i { font-size: 1.8rem; }
.m-app-btn-text { display: flex; flex-direction: column; }
.m-app-btn-text small { font-size: 0.65rem; color: #94a3b8; line-height: 1; margin-bottom: 3px; }
.m-app-btn-text span { font-size: 0.95rem; font-weight: 600; line-height: 1; font-family: 'Outfit', sans-serif; }

.m-footer-widget h4 { font-size: 1.15rem; margin-bottom: 25px; color: white; letter-spacing: 0.5px; position: relative; padding-bottom: 10px; }
.m-footer-widget h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: #1e7561; border-radius: 2px; }

.m-footer-links { display: flex; flex-direction: column; gap: 14px; }
.m-footer-links a { display: flex; align-items: center; gap: 10px; color: #94a3b8; text-decoration: none; font-size: 0.95rem; transition: all 0.3s ease; }
.m-footer-links a i { width: 16px; text-align: center; color: #1e7561; font-size: 0.95rem; transition: all 0.3s ease; }
.m-footer-links a:hover { color: white; transform: translateX(5px); }
.m-footer-links a:hover i { color: white; }

.m-footer-contact { display: flex; flex-direction: column; gap: 16px; }
.m-contact-item { display: flex; align-items: flex-start; gap: 12px; color: #94a3b8; font-size: 0.95rem; line-height: 1.5; text-align: left; }
.m-contact-item i { width: 16px; text-align: center; color: #1e7561; font-size: 0.95rem; margin-top: 3px; flex-shrink: 0; }

.newsletter-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 5px; border-radius: 10px; display: flex; margin-top: 15px; transition: all 0.3s ease; }
.newsletter-box:focus-within { border-color: #1e7561; box-shadow: 0 0 15px rgba(30,117,97,0.25); background: rgba(255,255,255,0.05); }
.newsletter-box input { flex: 1; background: transparent; border: none; padding: 10px 15px; color: white; outline: none; font-size: 0.9rem; }
.newsletter-box input::placeholder { color: #64748b; }
.newsletter-box button { background: #1e7561; color: white; border: none; padding: 10px 18px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.newsletter-box button:hover { background: #238971; transform: translateY(-1px); }

.m-footer-bottom { max-width: 1300px; margin: 0 auto; padding-top: 30px; text-align: center; color: #64748b; font-size: 0.9rem; }

@media (max-width: 992px) {
    .m-footer-grid { grid-template-columns: 1fr; gap: 40px; }
    body > .container, body > .static-content-container { margin-top: 80px; }
}

.btn-search {
    background: var(--accent-teal);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-search:hover { background: #165b4b; transform: scale(1.02); }

/* Page Search Bar */
.page-search-bar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    padding: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 0 auto 40px auto;
    max-width: 800px;
}
.page-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    min-width: 0;
}
.page-search-field i {
    color: var(--accent-teal);
    font-size: 1.2rem;
    margin-right: 15px;
}
.page-search-field input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    font-family: 'Inter', sans-serif;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.page-search-field input::placeholder { color: var(--text-muted); text-overflow: ellipsis; }
.page-search-divider { width: 1px; height: 40px; background: var(--card-border); }

@media (max-width: 768px) {
    .page-search-bar { flex-direction: column; border-radius: 20px; padding: 20px; }
    .page-search-divider { width: 100%; height: 1px; margin: 10px 0; }
    .page-search-field { width: 100%; box-sizing: border-box; padding: 10px 0; }
    .page-search-bar .btn-search { width: 100%; justify-content: center; border-radius: 12px; margin-top: 15px; }
}

/* View Toggle Controls */
.view-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 10px;
}
.view-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.view-btn:hover {
    color: var(--accent-teal);
    border-color: var(--accent-teal);
}
.view-btn.active {
    background: var(--accent-teal);
    color: #fff;
    border-color: var(--accent-teal);
}

/* List View Styles for Grid */
.grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.grid.list-view .offer-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 160px; /* Reduced from 240px */
    border-radius: 12px;
}
.grid.list-view .offer-image-container {
    width: 200px; /* Reduced from 280px */
    height: 100%;
    flex-shrink: 0;
}
.grid.list-view .offer-image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.grid.list-view .offer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px; /* Added explicit padding for list view */
}
@media (max-width: 768px) {
    .grid.list-view .offer-card {
        flex-direction: row;
        height: 140px;
    }
    .grid.list-view .offer-image-container {
        width: 140px;
        height: 100%;
    }
    .grid.list-view .offer-content {
        padding: 12px;
    }
    .grid.list-view .offer-content h3 {
        font-size: 1rem;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .grid.list-view .offer-content p {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 5px;
    }
    .grid.list-view .offer-content .text-sm {
        font-size: 0.75rem;
    }
    .grid.list-view .offer-image-container .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
        top: 8px;
        right: 8px;
    }
}


/* ========================================================================= */
/* THEME TOGGLE AND LIGHT MODE VARIABLES                                      */
/* ========================================================================= */

[data-theme="light"] {
  --accent-teal: #1e7561;
  --header-bg: rgba(255, 255, 255, 0.9);
  --bg-color: #f4f7f6;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --text-main: #1e293b;
  --text-muted: #64748b;
  
  /* Additional overrides for light mode */
  --accent-teal-glow: rgba(30, 117, 97, 0.2);
}

[data-theme="light"] body {
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(30, 117, 97, 0.05), transparent 30%),
    radial-gradient(circle at 85% 30%, rgba(30, 117, 97, 0.03), transparent 30%);
}

.btn-theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}
.btn-theme-toggle:hover {
    background: var(--card-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: scale(1.05);
}


/* Theme Toggle Flex Order Fixes */
header {
    display: flex !important;
    align-items: center !important;
}
header > .logo { order: 1; }
header > .main-nav { order: 2; margin-left: auto; }
header > #theme-toggle { order: 3; margin-left: 15px; }
header > .mobile-menu-btn { order: 4; }

@media (max-width: 992px) {
    header > #theme-toggle {
        margin-left: auto !important;
        margin-right: 15px !important;
    }
    header > .main-nav {
        margin-left: 0;
        order: 5; /* push nav dropdown to the bottom */
    }
}
/* Offers RGB Glow in Nav */
.nav-glow-text {
    animation: textRgbGlow 4s infinite alternate ease-in-out !important;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}
@keyframes textRgbGlow {
    0% { color: #ff0055; text-shadow: 0 0 8px rgba(255,0,85,0.8), 0 0 15px rgba(255,0,85,0.4); box-shadow: 0 0 10px rgba(255,0,85,0.2); border-color: rgba(255,0,85,0.5); }
    33% { color: #00ffaa; text-shadow: 0 0 8px rgba(0,255,170,0.8), 0 0 15px rgba(0,255,170,0.4); box-shadow: 0 0 10px rgba(0,255,170,0.2); border-color: rgba(0,255,170,0.5); }
    66% { color: #00aaff; text-shadow: 0 0 8px rgba(0,170,255,0.8), 0 0 15px rgba(0,170,255,0.4); box-shadow: 0 0 10px rgba(0,170,255,0.2); border-color: rgba(0,170,255,0.5); }
    100% { color: #8a2be2; text-shadow: 0 0 8px rgba(138,43,226,0.8), 0 0 15px rgba(138,43,226,0.4); box-shadow: 0 0 10px rgba(138,43,226,0.2); border-color: rgba(138,43,226,0.5); }
}


/* --- MODERN UI OVERRIDES --- */

        /* E-Commerce Header */
        .ecommerce-header {
            background: var(--card-bg);
            border-bottom: 1px solid var(--card-border);
            padding: 15px 0;
            position: relative;
            z-index: 1000;
        }
        .header-container {
            max-width: 1400px; margin: 0 auto; padding: 0 20px;
            display: flex; align-items: center; justify-content: space-between; gap: 30px;
        }
        .header-container .logo img { height: 45px; border-radius: 10px; }
        
        .header-search-bar {
            flex: 1; max-width: 700px;
            display: flex; align-items: center;
            background: var(--bg-color);
            border: 2px solid var(--accent-teal);
            border-radius: 50px;
            padding: 4px;
        }
        .header-search-bar .search-field {
            flex: 1; padding: 8px 15px;
        }
        .header-search-bar input {
            width: 100%; background: transparent; border: none; color: var(--text-main); outline: none;
            font-size: 0.95rem; font-family: 'Inter', sans-serif;
        }
        .header-search-bar .divider { width: 1px; height: 24px; background: var(--card-border); }
        .header-search-bar .btn-search {
            background: var(--accent-teal); color: white; border: none;
            padding: 0 35px; height: 42px; border-radius: 50px; cursor: pointer;
            font-size: 1.2rem; transition: background 0.3s;
            display: flex; align-items: center; justify-content: center;
        }
        .header-search-bar .btn-search:hover { background: #14b8a6; }

        .header-actions { display: flex; align-items: center; gap: 20px; }
        .header-link { display: flex; align-items: center; gap: 8px; color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
        .header-link:hover { color: var(--accent-teal); }
        .header-link i { font-size: 1.2rem; }
        .btn-icon { background: transparent; border: none; color: var(--text-main); font-size: 1.2rem; cursor: pointer; }
        .text-danger { color: #ff3b3b !important; }
        .btn-primary-small { background: linear-gradient(135deg, var(--accent-teal), #14b8a6); color: white; padding: 8px 20px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }

        /* E-Commerce Nav */
        .ecommerce-nav {
            background: var(--bg-color); border-bottom: 1px solid var(--card-border);
            position: relative; z-index: 999;
        }
        .nav-container {
            max-width: 1400px; margin: 0 auto; padding: 0 20px;
            display: flex; align-items: center; gap: 30px;
        }
        .all-categories-wrapper { position: relative; }
        .all-categories-btn {
            background: var(--card-bg); color: var(--text-main); padding: 12px 25px;
            font-weight: 700; font-family: 'Outfit', sans-serif; border-right: 1px solid var(--card-border); border-left: 1px solid var(--card-border);
            display: flex; align-items: center; gap: 10px; cursor: pointer;
        }
        .all-categories-dropdown {
            position: absolute; top: 100%; left: 0; width: 280px; background: var(--bg-color);
            border: 1px solid var(--card-border); border-top: none; border-radius: 0 0 12px 12px;
            box-shadow: 0 15px 30px rgba(0,0,0,0.5); display: none; z-index: 1000;
            padding: 10px 0; max-height: 400px; overflow-y: auto;
        }

        .all-categories-dropdown a {
            display: flex; align-items: center; gap: 12px; padding: 12px 20px;
            color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.95rem;
            transition: background 0.3s, color 0.3s;
        }
        .all-categories-dropdown a:hover { background: rgba(30, 117, 97, 0.05); color: var(--accent-teal); }
        .all-categories-dropdown i { width: 20px; text-align: center; color: var(--accent-teal); font-size: 1.1rem; }
        .nav-links { display: flex; align-items: center; gap: 25px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
        .nav-links::-webkit-scrollbar { display: none; }
        .nav-links a, .nav-dropdown .dropdown-trigger {
            color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.95rem; white-space: nowrap; transition: color 0.3s;
        }
        .nav-links a:hover, .nav-dropdown .dropdown-trigger:hover { color: var(--accent-teal); }
        .nav-highlight { color: #ff0055 !important; font-weight: 700 !important; }

        @media (max-width: 992px) {
            .ecommerce-nav .nav-container { gap: 0; padding: 0; }
            .ecommerce-nav .nav-links { display: none; } /* Hide redundant menu on mobile */
            .ecommerce-nav .all-categories-wrapper { width: 100%; }
            .ecommerce-nav .all-categories-btn { width: 100%; justify-content: center; border: none; padding: 15px; }
            .ecommerce-nav .all-categories-dropdown { width: 100%; left: 0; }
        }

        /* Promo Banner */
        .promo-banner-wrapper { padding: 30px 20px; background: var(--bg-color); }
        .promo-banner {
            max-width: 1400px; margin: 0 auto; border-radius: 20px; overflow: hidden;
            background: linear-gradient(135deg, #0f172a, #1e293b);
            position: relative; min-height: 400px; display: flex;
        }
        .promo-bg {
            flex: 1; padding: 60px; display: flex; flex-direction: column; justify-content: center;
            background-image: url('<?= $hero_bg_url ?>'); background-size: cover; background-position: center;
            position: relative;
        }
        .promo-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.4) 100%); }
        .promo-title, .promo-subtitle { position: relative; z-index: 2; }
        .promo-title { font-size: 3.5rem; font-weight: 800; color: white; line-height: 1.1; margin-bottom: 20px; }
        .promo-subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.9); max-width: 600px; }
        
        .promo-cards {
            width: 400px; background: rgba(255,255,255,0.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            padding: 30px; display: flex; flex-direction: column; gap: 20px; border-left: 1px solid rgba(255,255,255,0.1);
        }
        .promo-mini-card {
            display: flex; gap: 15px; background: rgba(0,0,0,0.4); padding: 10px; border-radius: 12px;
            text-decoration: none; color: white; transition: transform 0.3s, background 0.3s;
            border: 1px solid rgba(255,255,255,0.1);
        }
        .promo-mini-card:hover { transform: translateX(-5px); background: rgba(0,0,0,0.6); border-color: var(--accent-teal); }
        .pm-img { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
        .pm-img img { width: 100%; height: 100%; object-fit: cover; }
        .pm-details h4 { font-size: 1rem; margin-bottom: 5px; font-weight: 600; line-height: 1.3; }
        .pm-badge { display: inline-block; background: #ff0055; color: white; font-size: 0.75rem; padding: 3px 8px; border-radius: 4px; font-weight: 700; }

        /* Categories Grid (AliExpress Style) */
        .home-categories-section {
            padding: 40px 20px;
            background: var(--bg-color);
        }
        .categories-grid {
            max-width: 1400px; margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 15px;
            justify-items: center;
        }
        .cat-item-neat {
            display: flex; flex-direction: column; align-items: center; gap: 8px;
            text-decoration: none; color: var(--text-main);
            width: 100%; transition: transform 0.2s;
        }
        .cat-item-neat:hover { transform: translateY(-3px); }
        .cat-icon-wrap {
            width: 60px; height: 60px; border-radius: 50%;
            background: var(--card-bg); border: 1px solid var(--card-border);
            display: flex; align-items: center; justify-content: center;
            font-size: 1.5rem; color: var(--accent-teal);
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            transition: all 0.3s;
        }
        .cat-item-neat:hover .cat-icon-wrap {
            background: var(--accent-teal); color: white; border-color: var(--accent-teal);
            box-shadow: 0 6px 15px rgba(30,117,97,0.3);
        }
        .cat-item-name {
            font-size: 0.85rem; font-weight: 500; text-align: center;
            line-height: 1.2;
        }

        /* Popular Businesses Grid */
        .home-businesses-section {
            padding: 20px 20px 60px;
            background: var(--bg-color);
        }
        .section-header-neat {
            max-width: 1400px; margin: 0 auto 20px;
            display: flex; justify-content: space-between; align-items: flex-end;
        }
        .section-header-neat h2 { font-size: 1.8rem; font-weight: 800; margin: 0; }
        .section-header-neat a { color: var(--accent-teal); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
        .section-header-neat a:hover { text-decoration: underline; }
        
        .biz-grid {
            max-width: 1400px; margin: 0 auto;
            display: grid; gap: 20px;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        }
        @media (min-width: 1200px) {
            .biz-grid { grid-template-columns: repeat(4, 1fr); }
        }
        .biz-card-neat {
            background: var(--card-bg); border-radius: 16px; overflow: hidden;
            border: 1px solid var(--card-border); text-decoration: none; color: inherit;
            transition: all 0.3s; display: flex; flex-direction: column;
        }
        .biz-card-neat:hover {
            transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1);
            border-color: rgba(30,117,97,0.3);
        }
        .biz-img-neat { width: 100%; height: 180px; position: relative; }
        .biz-img-neat img { width: 100%; height: 100%; object-fit: cover; }
        .biz-badge {
            position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.7);
            color: white; padding: 4px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; backdrop-filter: blur(5px);
        }
        .biz-info-neat { padding: 15px; flex: 1; display: flex; flex-direction: column; }
        .biz-title-neat { font-size: 1.1rem; font-weight: 700; margin: 0 0 5px; color: var(--text-main); }
        .biz-cat-neat { color: var(--accent-teal); font-size: 0.8rem; font-weight: 600; margin-bottom: 10px; }
        .biz-loc-neat { color: #888; font-size: 0.85rem; display: flex; align-items: center; gap: 5px; margin-top: auto; }
    



/* Mobile Menu Overlay */
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }
.mobile-menu-overlay { position: fixed; top: 0; left: -100%; width: 280px; height: 100vh; background: white; z-index: 2000; box-shadow: 4px 0 20px rgba(0,0,0,0.1); transition: 0.3s ease-in-out; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu-overlay.active { left: 0; }
.mobile-menu-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); }
.mobile-menu-close { background: none; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }
.mobile-menu-links { padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.mobile-menu-links a { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 1.1rem; display: flex; align-items: center; gap: 15px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.mobile-menu-links a i { color: var(--accent-teal); width: 20px; text-align: center; }
.mobile-highlight-btn { background: rgba(30, 117, 97, 0.1); color: var(--accent-teal) !important; padding: 12px 15px !important; border-radius: 8px; border: none !important; margin-top: 10px; }
.mobile-primary-btn { background: var(--accent-teal); color: white !important; padding: 12px 15px !important; border-radius: 8px; border: none !important; }
.mobile-primary-btn i { color: white !important; }

/* Mobile Filter Toggle */
.mobile-filter-toggle { display: none; width: 100%; background: white; border: 1px solid var(--border-color); padding: 12px; border-radius: 8px; font-weight: 600; font-family: 'Outfit', sans-serif; color: var(--text-main); margin-bottom: 20px; cursor: pointer; text-align: center; }

@media (max-width: 992px) {
    .header-actions { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .mobile-filter-toggle { display: block; }
    .search-sidebar, .job-sidebar { display: none; width: 100%; margin-bottom: 20px; background: white; padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); }
    .search-sidebar.active, .job-sidebar.active { display: block; }
}

/* Section Backgrounds */
.bg-white { background-color: #ffffff; width: 100%; }
.bg-gray { background-color: #f1f5f9; width: 100%; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.bg-gray + .bg-gray { border-top: none; }

/* Center Aligned Headers */
.section-header-centered { text-align: center; margin-bottom: 40px; display: flex; flex-direction: column; align-items: center; }
.section-badge { display: inline-block; padding: 6px 14px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.badge-teal { background: rgba(30, 117, 97, 0.1); color: var(--accent-teal); border: 1px solid rgba(30, 117, 97, 0.2); }
.badge-deals { background: rgba(244, 63, 94, 0.1); color: var(--deals-primary); border: 1px solid rgba(244, 63, 94, 0.2); }
.badge-market { background: rgba(245, 158, 11, 0.1); color: var(--market-primary); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-jobs { background: rgba(14, 165, 233, 0.1); color: var(--jobs-primary); border: 1px solid rgba(14, 165, 233, 0.2); }
.section-header-centered h2 { font-family: 'Outfit', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--text-main); margin-bottom: 0; }
.section-footer-centered { text-align: center; margin-top: 40px; }
.btn-outline-center { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 600; text-decoration: none; transition: 0.3s; border: 2px solid; }
.btn-teal { color: var(--accent-teal); border-color: var(--accent-teal); }
.btn-teal:hover { background: var(--accent-teal); color: white; }
.btn-deals { color: var(--deals-primary); border-color: var(--deals-primary); }
.btn-deals:hover { background: var(--deals-primary); color: white; }
.btn-market { color: var(--market-primary); border-color: var(--market-primary); }
.btn-market:hover { background: var(--market-primary); color: white; }
.btn-jobs { color: var(--jobs-primary); border-color: var(--jobs-primary); }
.btn-jobs:hover { background: var(--jobs-primary); color: white; }

@media (max-width: 768px) {
    .section-header-centered h2 { font-size: 1.8rem; }
}

/* Badge Animation */
@keyframes floatBadge {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.section-badge {
    animation: floatBadge 3s ease-in-out infinite;
    /* Adding a subtle glow effect on hover */
    transition: all 0.3s ease;
}
.section-badge:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Fix for unequal card heights in Swiper */
.swiper-slide { height: auto !important; display: flex !important; }
.biz-card, .deal-card, .prod-card, .job-card-sm { height: 100%; width: 100%; display: flex; flex-direction: column; }
.biz-content, .deal-content, .prod-content, .job-content { flex: 1; display: flex; flex-direction: column; }
.biz-footer, .deal-footer, .prod-footer { margin-top: auto; }

.swiper-wrapper { align-items: stretch; }

/* Forcing swiper slide flex heights */
.swiper-slide { height: auto !important; display: flex !important; }
