:root {
    --primary: #1d4ed8; /* Darker Blue for high-contrast accessibility (7.3:1) */
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #fbbf24; /* Amber */
    --bg-color: #f3f4f6;
    --bg-surface: #ffffff;
    --text-main: #000000; /* Pure black for maximum contrast */
    --text-muted: #374151; /* Deeper gray for solid accessibility (8.6:1 on white) */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 9999px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.navbar {
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1001;
    padding: 12px 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-top-mobile {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

.search-wrap:focus-within {
    border-color: var(--primary);
}

.location-select-custom {
    min-width: 220px;
    border-right: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
}

.location-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
}

.location-current span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 300px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    display: none;
    border: 1px solid var(--border-color);
    animation: slideUp 0.2s ease;
}

.location-dropdown.active {
    display: block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.location-search {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.location-search i {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.location-search input {
    width: 100%;
    padding: 10px 10px 10px 32px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.location-list {
    max-height: 400px;
    overflow-y: auto;
}

.location-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-main);
}

.location-item:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.current-geo {
    color: var(--primary);
    font-weight: 600;
}

.location-divider {
    padding: 12px 16px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.city-list {
    display: none;
    background: #fcfcfc;
}

.city-list.active {
    display: block;
}

.city-item {
    padding: 10px 32px;
    font-size: 13px;
    border-left: 2px solid transparent;
}

.city-item:hover {
    border-left-color: var(--primary);
    background: #fff;
}

.state-item i {
    font-size: 10px;
    transition: transform 0.2s;
}

.main-search {
    flex: 1;
    display: flex;
    align-items: center;
}

.main-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
}

.main-search button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: var(--transition);
}

.main-search button:hover {
    background: var(--primary-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 600;
}

.lang-dropdown-wrapper {
    position: relative;
    display: inline-block;
    padding: 10px 0;
}

.lang-switch {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.lang-switch:hover {
    color: var(--primary);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: -10px;
    margin-top: 5px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: var(--radius-md);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    border: 1px solid var(--border-color);
    padding: 8px 0;
}

.lang-dropdown-wrapper:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-wrapper:hover .lang-switch {
    color: var(--primary);
}

.lang-dropdown-wrapper:hover .lang-switch i {
    transform: rotate(180deg);
}

.lang-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.lang-menu a:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.lang-menu a.active {
    font-weight: 700;
    color: var(--primary);
    background: #ecfdf5;
}

/* Hide the Google translate top frame and branding */
body { top: 0 !important; }
.skiptranslate iframe,
.goog-te-gadget-icon,
.goog-te-gadget span {
    display: none !important;
}
.goog-te-gadget {
    color: transparent !important;
    font-size: 0;
}

.like-btn {
    font-size: 22px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.like-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.sell-btn {
    background: #fff;
    color: var(--text-main);
    border: 3px solid var(--secondary);
    border-radius: var(--radius-pill);
    padding: 8px 24px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sell-btn i {
    color: var(--secondary);
}

.sell-btn:hover {
    background: var(--secondary);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.sell-btn:hover i {
    color: white;
}

/* Categories Nav */
.categories-bar {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    position: relative;
    z-index: 500;
}

.cat-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}


.all-categories-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.all-cat-btn-pill {
    background: var(--primary); 
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(47, 111, 163, 0.2);
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: 0.5px;
}

.all-cat-btn-pill i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.all-cat-btn-pill:hover {
    background: var(--primary-dark);
}

.all-categories-dropdown.active .all-cat-btn-pill i {
    transform: rotate(180deg);
}

/* Mega Dropdown */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 900px;
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    animation: fadeInScale 0.2s ease;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.mega-dropdown.active {
    display: block;
}

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

.mega-column h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-column h4 i {
    color: var(--primary);
    width: 20px;
}

.mega-column ul {
    list-style: none;
}

.mega-column li {
    margin-bottom: 8px;
}

.mega-column a {
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition);
}

.mega-column a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.cat-pill-list {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
}

.cat-pill-list::-webkit-scrollbar {
    display: none;
}


.cat-pill-item {
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    background: white;
}

.cat-pill-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #ecfdf5;
}

.cat-divider {
    width: 2px;
    height: 20px;
    background: #e5e7eb;
    margin: 0 8px;
    flex-shrink: 0;
}

.cat-date {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;
}

/* Hero Slider */
.hero-slider {
    max-width: 1280px;
    margin: 20px auto 0;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    height: 380px;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #ffffff 40%, #f9fafb 100%);
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

/* Full-width Banner Slide */
.slide.full-slide {
    background: none;
    display: block;
    padding: 0;
}

.slide.full-slide .slide-content {
    display: block;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.slide.full-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.slide.full-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    filter: none;
    aspect-ratio: unset;
    max-height: none;
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 80px;
    gap: 40px;
}

.slide-text {
    flex: 1;
    max-width: 500px;
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-text .badge {
    background: rgba(47, 111, 163, 0.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
    display: inline-block;
}

.slide-text h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-main);
}

.slide-text p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.cta-btn {
    padding: 14px 32px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cta-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.slide-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 300px; /* Base height for the flex container */
}

.slide-image img {
    max-height: 100%;
    width: auto;
    aspect-ratio: 2 / 1; /* Match HTML width="600" height="300" */
    object-fit: contain;
    border-radius: var(--radius-md);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
}

.slider-nav:hover {
    background: var(--primary);
    color: white;
}

.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
}

.dot {
    width: 48px; /* Increased hit area to industry-standard 48px for Lighthouse/A11y */
    height: 48px; /* Standard touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 4px; /* Combined with slider-dots gap of 10px, total spacing is safe */
    transition: var(--transition);
    outline: none;
}

.dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: var(--transition);
}

.dot.active::after {
    background: var(--primary);
    width: 24px;
    border-radius: 10px;
}

@media (max-width: 991px) {
    .hero-slider { height: auto; padding: 40px 0; margin: 16px 20px 0; border-radius: var(--radius-md); }
    .slide-content { flex-direction: column; text-align: center; padding: 0 50px; }
    .slide-image { justify-content: center; margin-top: 30px; height: 200px; }
    .slide-text h2 { font-size: 28px; }
}

@media (max-width: 576px) {
    .hero-slider { margin: 10px 10px 0; padding: 30px 0 50px 0; }
    .slide-content { padding: 0 30px; gap: 16px; }
    .slide-text h2 { font-size: 22px; margin-bottom: 10px; }
    .slide-text p { font-size: 14px; margin-bottom: 20px; }
    .cta-btn { padding: 12px 24px; font-size: 14px; }
    .slide-image { height: 140px; margin-top: 10px; }
    .slider-nav { width: 32px; height: 32px; font-size: 12px; }
    .slider-nav.prev { left: 5px; }
    .slider-nav.next { right: 5px; }
    .slider-dots { bottom: 16px; }
    .section-title { flex-direction: column; align-items: flex-start; gap: 12px; }
    .section-title h2 { font-size: 22px; }
}


.page-header {
    margin-bottom: 24px;
}
.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}
.page-header p {
    color: var(--text-muted);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}
.section-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}
.section-title p {
    color: var(--text-muted);
    font-size: 15px;
}
.view-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
    transition: var(--transition);
}
.view-all-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}


.layout-grid, .layout-grid-full {
    display: grid;
    gap: 32px;
}
.layout-grid {
    grid-template-columns: 280px 1fr;
}
.layout-grid-full {
    grid-template-columns: 1fr;
}
.main-content {
    max-width: 1280px;
    margin: 64px auto 40px; /* Increased top margin */
    padding: 0 20px;
}

/* Sidebar Filters */
.sidebar-filters {
    background: transparent;
}

.filter-box {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
}

.filter-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group h4 {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.filter-group ul {
    list-style: none;
}

.filter-group li {
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-group li.active a {
    font-weight: 600;
    color: var(--primary);
}

.filter-group a {
    color: var(--text-main);
    transition: color 0.2s;
}

.filter-group a:hover {
    color: var(--primary);
}

.checkbox-list li label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-main);
}
.checkbox-list input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.view-more {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    margin-top: 8px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.price-inputs input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}
.apply-btn {
    width: 100%;
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.apply-btn:hover {
    background: rgba(75, 140, 193, 0.1);
}

.search-brand {
    position: relative;
    margin-bottom: 12px;
}
.search-brand i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-brand input {
    width: 100%;
    padding: 10px 10px 10px 32px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-img {
    position: relative;
    aspect-ratio: 3 / 2; /* Match HTML width="300" height="200" */
    background: #f8f9fa;
    width: 100%;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
    color: #ef4444; /* Red */
}

.featured-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--secondary);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.title {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.details {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: auto;
    padding-bottom: 12px;
}
.details span {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
}

.location-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}
.location-date span:first-child i {
    margin-right: 4px;
}

.card-actions {
    padding: 0 16px 16px;
}

.bid-btn {
    width: 100%;
    padding: 12px;
    background: var(--bg-surface);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bid-btn:hover {
    background: var(--primary);
    color: white;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}
.load-more-btn {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.load-more-btn:hover {
    background: var(--text-main);
    color: white;
}

/* Marketplace Categories */
.marketplace-categories {
    max-width: 1280px;
    margin: 64px auto 40px;
    padding: 0 20px;
}
.category-header {
    text-align: center;
    margin-bottom: 40px;
}
.category-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}
.category-header p {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 600;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.market-card {
    height: 140px;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}
.market-card h3 {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    max-width: 90%;
    z-index: 2;
    position: relative;
    letter-spacing: -0.3px;
}
.market-card .icon-circle {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(4px);
    z-index: 1;
}
.market-card:hover .icon-circle {
    transform: scale(1.15) rotate(-10deg);
    background: rgba(255,255,255,0.8);
}

/* FAQ Section */
.faq-section {
    background: #fff;
    padding: 80px 20px;
    margin-top: 40px;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.faq-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
}
.faq-header:hover {
    background: #f8f9fa;
}
.faq-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}
.faq-header i {
    color: var(--primary);
    transition: transform 0.3s ease;
    font-size: 16px;
}
.faq-item.active .faq-header i {
    transform: rotate(180deg);
}
.faq-body {
    padding: 0 24px 24px;
    display: none;
}
.faq-item.active .faq-body {
    display: block;
    animation: fadeInScale 0.2s ease-out;
}
.faq-body p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* App Download Section */
.app-download-section {
    max-width: 1280px;
    margin: 64px auto 80px;
    padding: 0 20px;
}
.app-download-container {
    background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
    border-radius: 32px;
    padding: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
    border: 1px solid rgba(47, 111, 163, 0.1);
}
.app-text-content {
    flex: 1;
    max-width: 500px;
}
.app-badge {
    background: #d1fae5;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 24px;
}
.app-text-content h2 {
    font-size: 42px;
    font-weight: 900;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.app-text-content h2 span {
    color: var(--primary);
}
.app-text-content p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 32px;
}
.download-app-btn {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(47, 111, 163, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.download-app-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(47, 111, 163, 0.4);
}
.app-image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* CSS Phone Mockup */
.css-phone {
    width: 280px;
    height: 560px;
    background: #1f2937;
    border-radius: 40px;
    border: 8px solid #111827;
    position: relative;
    box-shadow: 20px 25px 50px -12px rgba(0,0,0,0.25), inset 0 0 0 2px #4b5563;
    overflow: hidden;
}
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #111827;
    border-radius: 0 0 12px 12px;
    z-index: 20;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: #f9fafb;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.app-topbar {
    text-align: center;
    padding: 36px 0 12px;
    background: #fff;
    font-weight: 800;
    font-size: 13px;
    color: #111827;
}
.app-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px 16px 32px;
    color: white;
    border-radius: 0 0 24px 24px;
}
.app-hero p { font-size: 10px; opacity: 0.8; margin-bottom: 2px;}
.app-hero h3 { font-size: 18px; font-weight: 800;}
.app-tabs {
    display: flex;
    background: #fff;
    margin: -16px 16px 16px;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}
.app-tabs span {
    flex: 1;
    font-size: 9px;
    text-align: center;
    font-weight: 700;
    padding: 4px;
    color: #6b7280;
}
.app-tabs span.active {
    background: #f3f4f6;
    color: var(--primary);
    border-radius: 4px;
}
.app-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 16px;
}
.stat-box {
    padding: 12px;
    border-radius: 12px;
    color: white;
}
.stat-box span { font-size: 9px; opacity: 0.9; }
.stat-box h2 { font-size: 20px; font-weight:800; margin-top: 4px; }

.app-actions {
    padding: 20px 16px;
}
.app-actions h4 {
    font-size: 12px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}
.action-grid {
    display: flex;
    justify-content: space-between;
}
.action-grid div {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Footer */
.site-footer {
    background: #0f172a; /* Slate 900 for a sleek modern look */
    color: #94a3b8;
    padding: 64px 20px 24px;
}

.footer-top {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h3 {
    color: white;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.social-links a {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.app-downloads {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    gap: 16px;
    font-weight: 500;
}

.footer-links-inline {
    display: flex;
    gap: 20px;
}
.footer-links-inline a:hover {
    color: white;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}
.close-modal:hover {
    background: rgba(0,0,0,0.1);
}

.modal-header {
    background: var(--bg-color);
    padding: 32px 24px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-main);
}
.modal-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.current-asking {
    display: inline-block;
    background: rgba(75, 140, 193, 0.1);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
}

.modal-body {
    padding: 24px;
}

.bid-input-group {
    position: relative;
    margin-bottom: 12px;
}
.bid-input-group .currency-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
}
.bid-input-group input {
    width: 100%;
    padding: 16px 16px 16px 40px;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    color: var(--text-main);
    transition: var(--transition);
}
.bid-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(75, 140, 193, 0.1);
}

.bid-hint {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}

.confirm-bid-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.confirm-bid-btn:hover {
    background: var(--primary-dark);
}

/* Responsiveness */
@media (max-width: 1100px) {
    /* Maintained for safety */
}

@media (max-width: 991px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-filters {
        display: none; /* In a real app, this would be a toggle menu */
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .app-download-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .download-app-btn {
        margin: 0 auto;
    }
    .app-text-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 10px 0;
    }
    .header-top-mobile {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        padding: 0 15px;
    }
    .logo {
        text-align: center;
        font-size: 26px;
        margin: 0;
        width: auto;
    }
    .logo a {
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .lang-dropdown-wrapper {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        padding: 0;
    }
    .nav-actions {
        width: 100%;
        justify-content: center;
        margin: 0;
        gap: 15px;
    }
    .search-wrap {
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        border: none;
        padding: 0 10px;
        background: transparent;
    }
    .location-select-custom {
        width: 100%;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        background: #fff;
    }
    .main-search {
        width: 100%;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        background: #fff;
        display: flex;
    }
    .main-search input {
        flex: 1;
        padding: 12px;
    }
    .main-search button {
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        padding: 12px 20px;
    }

    /* Slider Fix */
    .hero-slider {
        height: auto !important;
        min-height: 450px;
        margin-top: 15px;
        position: relative;
    }
    .slide {
        position: relative !important;
        display: none !important;
    }
    .slide.active {
        display: block !important;
    }
    .slide-content {
        flex-direction: column-reverse;
        padding: 30px 15px;
        text-align: center;
        gap: 15px;
    }
    .slide-image {
        height: 180px;
        width: 100%;
        display: flex;
        justify-content: center;
        flex: none;
    }
    .slide-image img {
        max-width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
    }
    .slide-text {
        max-width: 100%;
    }
    .slide-text h2 {
        font-size: 24px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Category Bar Redesign Mobile */
    .categories-bar {
        padding: 5px 0;
        /* Removed overflow: hidden to prevent cropping the Mega Dropdown */
    }
    .cat-container {
        padding: 0 10px;
        position: relative;
    }
    .all-cat-btn-pill {
        padding: 8px 12px;
        font-size: 11px;
    }
    .all-cat-btn-pill span {
        display: none; /* Hide 'ALL CATEGORIES' text to save space */
    }
    .all-cat-btn-pill i {
        font-size: 18px;
    }
    .cat-pill-list {
        gap: 8px;
        padding-right: 40px; /* Space for fade indicator */
    }
    .cat-pill-item {
        padding: 6px 12px;
        font-size: 12px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }
    .cat-divider, .cat-date {
        display: none; /* Hide date on small mobile */
    }
    
    /* Scroll indicator fade */
    .cat-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 40px;
        background: linear-gradient(to right, transparent, #fff);
        pointer-events: none;
        z-index: 5;
    }

    /* Mega Dropdown Mobile Fix */
    .mega-dropdown {
        width: calc(100vw - 40px) !important;
        left: -10px !important;
        top: 100% !important;
        padding: 20px !important;
        grid-template-columns: 1fr !important;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 2000 !important;
    }
    .mega-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 480px) {
    .sell-btn span { display: none; }
    .sell-btn::after { content: 'Sell'; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr; }
}

/* About Page Redesign (V2 - Flipkart Style) */
.about-hero-v2 {
    padding: 80px 0;
    background-color: #fff;
    position: relative;
    background-image: radial-gradient(#ececec 1px, transparent 1px);
    background-size: 24px 24px; /* Subtle tiling dots for background */
}

.container-about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-top-flex {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    align-items: flex-start;
}

.about-text-left {
    flex: 1;
    position: relative;
    z-index: 2;
}

.about-handwriting {
    font-family: 'Dancing Script', cursive;
    font-size: 60px;
    color: #444;
    line-height: 1;
    margin-bottom: -10px;
}

.about-text-left h1 {
    font-size: 50px;
    font-weight: 800;
    color: #222;
    line-height: 1.1;
    margin-bottom: 30px;
}

.about-intro-text {
    font-size: 18px;
    font-weight: 500;
    color: #444;
    margin-bottom: 25px;
    line-height: 1.6;
}

.about-body-text {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image-right {
    flex-shrink: 0;
    width: 450px;
    position: relative;
}

.image-box {
    position: relative;
    border-radius: 4px;
    overflow: visible;
}

.image-box img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

/* The colorful "Circle of Dots" from screenshot */
.branded-dot-circle {
    position: absolute;
    bottom: -60px;
    right: -40px;
    width: 280px;
    height: 280px;
    background-image: radial-gradient(circle, var(--primary) 2px, transparent 3px),
                      radial-gradient(circle, #ec4899 2px, transparent 3px),
                      radial-gradient(circle, #8b5cf6 2px, transparent 3px);
    background-size: 25px 25px;
    background-position: 0 0, 12px 12px, 24px 24px;
    border-radius: 50%;
    opacity: 0.6;
    mask-image: radial-gradient(circle, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 100%);
    z-index: 1;
}

.dot-pattern-overlay {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(#d1d5db 1px, transparent 1.5px);
    background-size: 15px 15px;
    z-index: 1;
}

/* Leadership Section Refinement */
.leadership-section {
    padding: 120px 0;
    background: #fff;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 35px 35px;
    position: relative;
    overflow: hidden;
}

.leader-flex {
    display: flex;
    align-items: center; /* Centered vertically for better look */
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.leader-img-box {
    flex-shrink: 0;
    position: relative;
}

.leader-circle {
    width: 380px;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 15px 45px rgba(0,0,0,0.06);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
}

.leader-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

/* Photo Hover Animation */
.leader-img-box:hover .leader-circle {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 60px rgba(47, 111, 163, 0.2);
    border-color: var(--primary);
}

.leader-img-box:hover .leader-circle img {
    transform: scale(1.1);
}

/* Badge/Social icons for Founder */
.founder-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-start;
}

.founder-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 18px;
}

.founder-socials a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.leader-quote-box {
    flex: 1;
}

.leader-bio-text {
    margin: 20px 0;
    position: relative;
}

.leader-bio-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 20px;
    text-align: justify;
}

.leader-bio-text p:first-child {
    font-size: 19px;
    font-weight: 600;
    color: #111;
    line-height: 1.5;
    margin-bottom: 25px;
}

.mega-quote-start {
    font-size: 80px;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: -40px;
    left: -20px;
    z-index: 0;
}

/* Signature Styling */
.founder-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 36px;
    color: var(--primary);
    margin-top: 25px;
    text-align: left;
    opacity: 0.9;
}

.quote-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quote-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #d1d5db, transparent);
}

.leader-info h2 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.leader-title {
    font-size: 18px;
    color: var(--primary);
    font-weight: 700;
    margin-top: 5px;
}

@media (max-width: 900px) {
    .leader-flex { flex-direction: column; text-align: center; gap: 40px; }
    .quote-header::after { display: none; }
    .founder-socials { justify-content: center; }
    .founder-signature { text-align: center; }
    .leader-circle { width: 250px; height: 250px; }
}

/* Mission cards v2 */
.mission-vision-minimal {
    padding: 80px 0;
    background: #fff;
}

.mission-vision-minimal .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .about-top-flex { flex-direction: column; gap: 40px; }
    .about-image-right { width: 100%; }
    .leader-flex { flex-direction: column; text-align: center; gap: 40px; }
    .mega-quote-start { display: none; }
    .about-text-left h1 { font-size: 36px; }
    .branded-dot-circle { transform: scale(0.6); right: -100px; }
}

/* Meet Our Leaders Section */
.leaders-grid-section {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.scribble-decor {
    position: absolute;
    top: 40px;
    left: 20px;
    width: 250px;
    opacity: 0.1;
    z-index: 1;
}

.leaders-grid-section h2 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 60px;
    color: #111;
}

.leaders-flex-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.leader-card-v2 {
    text-align: center;
}

.leader-img-v2 {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 25px;
    /* Special Flipkart-style rounded corners */
    border-radius: 80px 20px 80px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.leader-img-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-card-v2 h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.leader-card-v2 p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .leaders-flex-row { grid-template-columns: 1fr; gap: 60px; }
    .leader-img-v2 { border-radius: 60px 20px 60px 20px; }
}

/* --- New Floating & Moving Animations --- */

/* Keyframes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-slow {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.6; }
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes blob-move {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translate(0, 0) rotate(0); }
    33% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%; transform: translate(100px, 50px) rotate(90deg); }
    66% { border-radius: 30% 70% 70% 30% / 60% 40% 60% 40%; transform: translate(-50px, 100px) rotate(180deg); }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translate(0, 0) rotate(360deg); }
}

/* Applying Animations */
.about-handwriting {
    animation: slideUp 0.8s ease-out;
}

.about-text-left h1 {
    animation: slideUp 1s ease-out;
}

.branded-dot-circle {
    animation: pulse-slow 4s infinite ease-in-out;
}

.scribble-decor {
    animation: float 6s infinite ease-in-out;
}

.leader-card-v2 {
    transition: transform 0.4s ease;
}

.leader-card-v2:hover {
    transform: translateY(-10px);
}

.leader-img-v2 {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.leader-card-v2:hover .leader-img-v2 {
    transform: scale(1.03);
}

/* Background Animated Blobs */
.bg-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(47, 111, 163, 0.05) 0%, transparent 70%);
    z-index: -2;
    filter: blur(40px);
    animation: blob-move 20s infinite alternate linear;
}

.blob-1 { top: 10%; left: -100px; }
.blob-2 { bottom: 10%; right: -100px; background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, transparent 70%); }

/* Stats Bar */
.stats-section {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
/* --- Global Fix for Horizontal Scroll/Alignment --- */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Leadership Section Refinement */
.leadership-section {
    padding: 120px 0;
    background: #fff;
    position: relative;
    overflow: hidden; /* Prevent decorative elements from pushing width */
}

.leader-flex {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* Language Ticker v3 (Cloud/Atmosphere Style) */
.language-ticker-v3 {
    background: #fff;
    padding: 20px 0;
    overflow: hidden; /* Crucial for ticker */
    position: relative;
    width: 100%;
}

.ticker-cloud {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
}

.ticker-content {
    display: flex;
    animation: tickerLTR 60s linear infinite;
}

.track-1 .ticker-content { animation-duration: 50s; }
.track-2 .ticker-content { animation-duration: 70s; }

.ticker-content span {
    display: inline-block;
    padding: 0 40px;
    font-size: 32px;
    font-weight: 300;
    color: #475569; /* Darkened for accessibility contrast - was #e5e7eb */
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.ticker-content span:hover {
    color: var(--primary);
    opacity: 1;
}

@keyframes tickerLTR {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

/* --- Comprehensive Responsiveness for About Page --- */

@media (max-width: 1024px) {
    .container-about { padding: 0 30px; }
    .leader-flex { gap: 40px; }
    .leader-circle { width: 320px; height: 400px; }
}

@media (max-width: 768px) {
    /* Hero & Feature Sections */
    .about-hero-v2 { padding: 60px 0; }
    .about-top-flex {
        flex-direction: column !important;
        text-align: center !important;
        gap: 30px;
        padding-top: 20px;
    }

    .about-text-left, .about-image-right {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .about-text-left h1 { 
        font-size: 32px; 
        line-height: 1.2; 
        margin: 10px 0 20px;
        text-align: center;
    }

    .about-handwriting { 
        font-size: 38px;
        margin: 0 auto -10px;
        text-align: center;
    }

    .about-intro-text { 
        font-size: 16px; 
        text-align: center;
        margin-top: 15px;
    }

    .about-body-text { 
        font-size: 15px; 
        text-align: center;
        margin-bottom: 20px;
    }

    .image-box {
        max-width: 100%;
        margin: 0 auto;
    }

    .image-box img { 
        width: 100%;
        height: auto;
        border-radius: 15px;
    }

    /* Leadership Section */
    .leadership-section { padding: 80px 0; }
    .leader-flex { 
        flex-direction: column !important; 
        text-align: center !important; 
        gap: 40px; 
        padding: 0 20px; 
    }
    
    .leader-info { text-align: center; width: 100%; }
    .leader-info h2 { font-size: 28px; }
    .leader-title { font-size: 16px; }
    
    .leader-circle { 
        width: 280px; 
        height: 350px; 
        margin: 0 auto; 
        border-radius: 20px;
    }

    .quote-header { 
        flex-direction: column; 
        align-items: center; 
        gap: 10px; 
        margin-bottom: 25px; 
    }
    .quote-header::after { display: none; }
    
    .leader-bio-text p { text-align: center; font-size: 15px; }
    .leader-bio-text p:first-child { font-size: 17px; }
    
    .founder-socials { justify-content: center; margin-top: 25px; }
    .founder-signature { text-align: center; margin-top: 20px; font-size: 30px; }
    
    .mega-quote-start { display: none; }

    /* Language Ticker */
    .language-ticker-v3 { padding: 40px 0; }
    .ticker-content span { font-size: 20px; padding: 0 20px; }
    .ticker-cloud { gap: 20px; }

    /* Leaders Grid */
    .leaders-grid-section { padding: 80px 0; }
    .leaders-grid-section h2 { font-size: 30px; text-align: center; margin-bottom: 50px; }
    .leaders-flex-row { 
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
        gap: 50px; 
    }

    .tech-partner-section { padding: 60px 0 !important; }
}

@media (max-width: 480px) {
    .about-text-left h1 { font-size: 28px; }
    .leader-circle { width: 100%; max-width: 260px; height: 320px; }
    .ticker-content span { font-size: 18px; }
    .about-handwriting { font-size: 34px; }
}

@media (max-width: 768px) {
    .ticker-content span { font-size: 22px; padding: 0 20px; }
    .ticker-cloud { gap: 15px; }
}

/* --- Careers Page Specific Styles --- */
.careers-wrapper {
    background-color: #fff;
    padding-top: 80px;
}

.careers-hero {
    background: transparent;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-cta-box {
    margin-top: 35px;
}

.btn-primary-v2 {
    background-color: var(--primary);
    color: #fff;
    padding: 14px 34px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(47, 111, 163, 0.2);
}

.btn-primary-v2:hover {
    background-color: #265983;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(47, 111, 163, 0.3);
}

.btn-outline-v2 {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-v2:hover {
    background-color: var(--primary);
    color: #fff;
}

.section-title-v2 {
    font-size: 38px;
    font-weight: 800;
    color: #111;
    margin-bottom: 50px;
    text-align: center;
}

/* Benefits Grid */
.why-work-section {
    padding: 100px 0;
    background: #f9fafb;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    text-align: left;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.benefit-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Positions List */
.positions-section {
    padding: 100px 0;
    background: #fff;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.section-header-flex .section-title-v2 {
    margin-bottom: 0;
    text-align: left;
}

.job-filter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.job-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(47, 111, 163, 0.08);
}

.job-details h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.job-meta {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--primary);
    opacity: 0.7;
    font-size: 13px;
}

.meta-sep {
    color: #e2e8f0;
}

/* CTA Career */
.career-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1e4b6e 100%);
    color: #fff;
}

.career-cta h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.career-cta p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.career-cta .btn-primary-v2 {
    background: #fff;
    color: var(--primary);
}

/* Responsiveness Careers */
@media (max-width: 768px) {
    .section-header-flex { flex-direction: column; align-items: flex-start; gap: 20px; }
    .job-filter { flex-wrap: wrap; }
    .job-card { flex-direction: column; text-align: left; align-items: flex-start; gap: 20px; }
    .career-cta h2 { font-size: 32px; }
    .benefits-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .job-card { padding: 25px; }
    .benefit-card { padding: 30px; }
}

/* --- Fixing Padding for Mobile Careers --- */
@media (max-width: 768px) {
    .careers-wrapper .container {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
    
    .section-header-flex .section-title-v2 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .career-cta h2 {
        font-size: 28px !important;
        padding: 0 10px;
    }
    
    .career-cta p {
        font-size: 16px !important;
        padding: 0 15px;
    }
}

/* --- Fixing Excessive Top Spacing for Careers Mobile --- */
@media (max-width: 768px) {
    .careers-wrapper {
        padding-top: 20px !important; /* Huge reduction */
    }
    
    .careers-hero {
        padding: 40px 0 !important; /* Drastic reduction */
    }
    
    .about-handwriting {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* --- Final Cleanup of Careers Mobile Spacing --- */
@media (max-width: 768px) {
    .careers-hero .about-top-flex {
        padding-top: 10px !important; /* Remove the extra 40px from about-top-flex */
    }
    
    .careers-wrapper {
        padding-top: 0px !important; /* Align to very top */
    }
    
    .careers-hero {
        padding-top: 20px !important; /* Minimal top buffer */
    }
}

/* --- Centering CTA for Careers --- */
.career-cta {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.career-cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.career-cta h2, .career-cta p {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center !important;
}

/* --- Global Container Fix for Careers --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px !important; /* Force padding to prevent screen touch */
    width: 100%;
}

/* Specific fix for Section Header padding */
.section-header-flex {
    width: 100%;
    padding: 0 5px; /* Tiny extra buffer */
}

/* Responsive adjustments for Container */
@media (max-width: 768px) {
    .container {
        padding: 0 25px !important;
    }
}

/* --- Apply Now Page Styles --- */
.apply-page-wrapper {
    background: #fff;
    padding: 60px 0 100px;
}

.back-link-box {
    margin-bottom: 40px;
}

.back-link {
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.apply-flex-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.dept-badge {
    background: #f0f7ff;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.job-apply-title {
    font-size: 48px;
    font-weight: 800;
    color: #111;
    margin: 20px 0;
    line-height: 1.1;
}

.job-meta-list {
    display: flex;
    gap: 25px;
    color: #666;
    font-size: 15px;
    margin-bottom: 40px;
}

.job-meta-list span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-description-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: #222;
    margin: 40px 0 20px;
}

.job-description-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.apply-steps-list {
    list-style: none;
    margin-top: 20px;
}

.apply-steps-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #444;
    margin-bottom: 12px;
}

.apply-steps-list i {
    color: #10b981;
    font-size: 14px;
}

/* Form Card */
.form-card-premium {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
}

.form-card-premium h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #111;
}

.form-group-v2 {
    margin-bottom: 25px;
}

.form-group-v2 label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.form-group-v2 input, .form-group-v2 textarea {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group-v2 input:focus, .form-group-v2 textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(47, 111, 163, 0.1);
}

/* File Upload Premium Style */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-label-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.file-input:hover + .file-label-v2 {
    background: #f1f5f9;
    border-color: var(--primary);
}

.file-label-v2 i {
    font-size: 32px;
    color: var(--primary);
}

.file-label-v2 span {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.file-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

.submit-app-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.submit-app-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(47, 111, 163, 0.25);
}

/* Response Apply Page */
@media (max-width: 992px) {
    .apply-flex-layout { grid-template-columns: 1fr; gap: 40px; }
    .job-apply-title { font-size: 36px; }
    .form-card-premium { padding: 30px; }
}

/* --- Contact Page Creative Styles --- */
.contact-page-wrapper {
    background: #fff;
    overflow: hidden;
}

.contact-hero {
    padding: 120px 0 80px;
    background: transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.contact-hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin: 15px 0 25px;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-subtext {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* Contact Main Layout */
.contact-main-section {
    padding: 60px 0 100px;
    background: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card-premium {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}

.info-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: #f0f7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
}

.info-details h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.info-link {
    font-weight: 600;
    color: var(--primary);
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.contact-socials a {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    transition: all 0.3s ease;
}

.contact-socials a:hover {
    background: var(--primary);
    color: #fff;
}

/* Glass Form Container */
.form-glass-container {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 30px 100px rgba(0,0,0,0.06);
    border: 1px solid #fff;
}

.form-glass-container h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 40px;
    color: #111;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.custom-select-v2 {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background-color: #fff;
    font-family: inherit;
    font-size: 15px;
    color: #334155;
}

.submit-contact-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.submit-contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(47, 111, 163, 0.3);
}

/* Map Section */
/* Taj Heritage Section Redesign */
.taj-heritage-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.heritage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.heritage-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(47, 111, 163, 0.1);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
}

.heritage-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.heritage-text {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
}

.heritage-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.h-feature {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.h-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.h-feature span {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.heritage-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #111;
    color: #fff;
    padding: 16px 35px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
}

.heritage-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(47, 111, 163, 0.3);
}

.heritage-card {
    position: relative;
    padding: 20px;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
}

.taj-image-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 550px;
}

.taj-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.heritage-card:hover .taj-image-container img {
    transform: scale(1.05);
}

.taj-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.map-pulse-marker {
    position: absolute;
    z-index: 10;
}

.pulse-center {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.pulse-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    animation: markerPulse 2s infinite ease-out;
    opacity: 0;
}

@keyframes markerPulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.floating-location-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: #fff;
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 10;
    text-align: left;
}

.floating-location-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 4px 0;
}

.floating-location-card p {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 992px) {
    .heritage-grid { grid-template-columns: 1fr; gap: 60px; }
    .heritage-title { font-size: 38px; }
    .taj-image-container { height: 400px; }
}

@media (max-width: 768px) {
    .heritage-features { 
        grid-template-columns: 1fr; 
        gap: 25px; 
    }
    
    .h-feature {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        background: #fff;
        padding: 15px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    }
    
    .h-icon {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .h-feature span {
        font-size: 14px;
    }
    
    .heritage-title {
        font-size: 32px;
    }
}


/* FAQ Page Specific Styles */
.faq-page-wrapper {
    background: #fff;
    overflow-x: hidden;
}

.faq-hero {
    padding: 120px 0 80px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.faq-subtext {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

.faq-search-box {
    max-width: 600px;
    margin: 20px auto 0;
    background: #fff;
    padding: 12px 24px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(47, 111, 163, 0.1);
}

.faq-search-box i {
    color: var(--primary);
    font-size: 18px;
}

.faq-search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    font-family: inherit;
    color: #111;
}

.faq-main-content {
    padding: 80px 0 120px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

.faq-category-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    position: sticky;
    top: 100px;
}

.faq-category-card h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #111;
}

.faq-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-cat-list li {
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.faq-cat-list li:hover {
    background: #f8fafc;
    color: var(--primary);
}

.faq-cat-list li.active {
    background: rgba(47, 111, 163, 0.1);
    color: var(--primary);
}

.faq-category-group {
    margin-bottom: 60px;
}

.cat-title {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    text-align: left;
}

.faq-accordion-v2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item-v2 {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: left;
}

.faq-item-v2:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.faq-item-v2.active {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(47, 111, 163, 0.08);
}

.faq-item-v2 .faq-header {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fff;
}

.faq-item-v2 h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.faq-item-v2 .faq-header i {
    font-size: 14px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item-v2 .faq-body {
    padding: 0 30px 24px;
    display: none;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.faq-item-v2.active .faq-body {
    display: block;
    animation: fadeInScale 0.2s ease-out;
}

.faq-cta {
    padding: 100px 0;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.faq-cta h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.faq-cta p {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

.faq-cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.no-results-box {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 30px;
}

.no-results-box i {
    font-size: 60px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-results-box h3 {
    font-size: 24px;
    color: #334155;
    margin-bottom: 10px;
}

@media (max-width: 992px) {
    .faq-grid { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }
    
    .faq-sidebar {
        order: -1;
        margin-bottom: 0;
    }
    
    .faq-category-card {
        background: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
        position: static;
        width: 100vw;
        margin-left: -20px; /* Counter container padding */
        padding-left: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .faq-category-card::-webkit-scrollbar {
        display: none;
    }
    
    .faq-category-card h2 {
        display: none; /* Hide 'Categories' title on mobile */
    }
    
    .faq-cat-list {
        display: flex;
        flex-direction: row;
        gap: 12px;
        padding-right: 20px;
        margin: 0;
    }
    
    .faq-cat-list li {
        white-space: nowrap;
        padding: 10px 20px;
        margin-bottom: 15px; /* Added slight baseline for shadow if any */
        background: #f1f5f9;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .faq-cat-list li.active {
        background: var(--primary);
        color: #fff;
    }
    
    .faq-cat-list li i {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .faq-hero {
        padding: 80px 0 40px;
    }
    
    .faq-hero h1 {
        font-size: 32px;
        margin-top: 10px;
    }
    
    .faq-subtext {
        font-size: 15px;
        padding: 0 15px;
    }
    
    .faq-search-box {
        margin: 20px 15px 0;
        padding: 10px 18px;
    }
    
    .faq-main-content {
        padding: 40px 0 60px;
    }
    
    .cat-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .faq-item-v2 {
        border-radius: 15px;
    }
    
    .faq-item-v2 .faq-header {
        padding: 18px 20px;
    }
    
    .faq-item-v2 h3 {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .faq-item-v2 .faq-body {
        padding: 0 20px 20px;
        font-size: 14px;
    }
    
    .faq-cta {
        padding: 60px 0;
    }
    
    .faq-cta h2 {
        font-size: 28px;
    }
    
    .faq-cta p {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .faq-cta-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }
    
    .faq-cta-btns a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .faq-hero h1 {
        font-size: 28px;
    }
    
    .faq-cat-list li {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* Responsive adjustments for Contact page */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
@media (max-width: 768px) {
    .contact-hero h1 { font-size: 36px; }
    .form-glass-container { padding: 30px 20px; border-radius: 20px; }
    .form-glass-container h2 { font-size: 24px; margin-bottom: 25px; }
    .form-row-2 { grid-template-columns: 1fr; gap: 15px; }
    .submit-contact-btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   GLOBAL RESPONSIVE OVERRIDES & ENHANCEMENTS
   ========================================================================== */

/* Prevent Horizontal Overflow */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

@media (max-width: 1200px) {
    .nav-container, .cat-container, .main-content, .footer-top {
        padding: 0 15px;
    }
}

/* Header & Search Bar */
@media (max-width: 768px) {
    .navbar {
        padding: 8px 0;
    }
    .nav-container {
        flex-direction: column;
        gap: 12px;
    }
    .header-top-mobile {
        width: 100%;
        justify-content: space-between;
    }
    .search-wrap {
        width: 100%;
        flex: none;
        order: 3;
    }
    .location-select-custom {
        min-width: 110px;
        flex: 1;
    }
    .main-search {
        flex: 2;
    }
    .location-current {
        padding: 8px 10px;
        font-size: 13px;
    }
    .main-search input {
        padding: 8px 12px;
        font-size: 14px;
    }
    .main-search button {
        padding: 8px 16px;
    }
    .nav-actions {
        width: 100%;
        justify-content: space-around;
        padding-top: 5px;
        border-top: 1px solid var(--border-color);
    }
    .sell-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    .categories-bar {
        padding: 8px 0;
    }
    .cat-container {
        gap: 10px;
    }
    .cat-divider, .cat-date {
        display: none;
    }
}

/* Product & Layout Grids */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-filters {
        display: none; /* Can be toggled with a button later if needed */
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
    .section-title h2 {
        font-size: 24px;
    }
    .main-content {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-card {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }
}

/* App Download Section */
@media (max-width: 991px) {
    .app-download-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
        padding: 60px 20px;
    }
    .app-text-content {
        max-width: 100%;
    }
    .app-image-content {
        display: flex;
        justify-content: center;
    }
}

/* Enhanced Footer Mobile View */
@media (max-width: 768px) {
    .site-footer {
        padding: 48px 20px 30px;
        text-align: center;
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
        margin-bottom: 40px;
        text-align: left; /* Keep text left aligned but columns centered */
    }
    .footer-col h3 {
        margin-bottom: 12px;
        color: #fff;
    }
    .footer-col li {
        margin-bottom: 8px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-top: 30px;
    }
    .footer-links-inline {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .social-links {
        justify-content: center;
        gap: 16px;
    }
    .app-downloads {
        justify-content: center;
        gap: 12px;
    }
    .app-downloads img {
        height: 32px !important;
    }
}

/* Modal Responsiveness */
@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        padding: 25px 20px;
        margin: 10px;
    }
    .modal-header h2 {
        font-size: 20px;
    }
    .bid-input-group input {
        font-size: 24px;
    }
}

/* Additional General Responsive Fixes */
@media (max-width: 768px) {
    .main-content {
        padding: 0 15px !important;
        margin: 20px auto !important;
    }
    .main-content > div[style*="padding: 45px"] {
        padding: 20px !important;
    }
    .main-content h1 {
        font-size: 24px !important;
    }
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .main-content > div {
        padding: 15px !important;
        border-radius: 12px !important;
    }
    button[style*="padding: 20px"] {
        padding: 15px !important;
        font-size: 16px !important;
    }
}
