/* Import Quicksand font */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
    /* Daycare Theme Colors */
    --navbar-bg: #E40045;
    /* Flieo Red/Pink */
    --navbar-text: #fff7ed;
    --accent-yellow: #F9B000;
    /* Flieo Yellow/Orange */
    --hero-bg: #fff7ed;
    /* Warm light background */
    --hero-text: #1A1A18;
    /* Flieo Dark Grey */

    --primary-color: #E40045;
    /* Flieo Red/Pink */
    --primary-hover: #c82333;
    --secondary-color: #F9B000;
    /* Flieo Yellow/Orange */
    --accent-color: #8AC6D1;
    /* Soft Blue */
    --text-color: #4A4A4A;
    /* Softer dark grey */
    --heading-color: #1A1A18;
    /* Flieo Dark Grey */
    --bg-color: #fff7ed;
    --white: #FFFFFF;
    --border-radius: 20px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --font-main: 'Quicksand', sans-serif;

    /* Footer Colors */
    --footer-bg: #E40045;
    /* Deep Navy Blue */
    --footer-text: #fff7ed;
    --footer-accent: #F9B000;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-weight: 700;
}

/* Logo Styles */
.nav-logo {
    flex-shrink: 0;
    flex: 0 0 auto;
}

.logo {
    height: 2.5rem;
    /* tuned to fit the header */
    align-items: center;
    justify-content: center;
    width: auto;
    cursor: pointer;
    /* margin-top: 10px; */
    /* transition: all 0.3s ease; */
    /* transform: scale(1); */
}

.nav-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

/* Search Bar Styles */
.nav-search {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* Header controls (toggle + search + icons) grouped to the right */
.nav-container>.mobile-menu-toggle,
.nav-container>.nav-icons {
    /* margin-left: 0.5rem; */
    justify-content: right;

    align-items: center;
}

/* Search bar should be centered, not margin-left */
.nav-container>.nav-search {
    margin-left: 0;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    display: none;
    /* hidden on desktop */
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Ensure hamburger sits above other elements to avoid click passing through */
.mobile-menu-toggle {
    position: relative;
    z-index: 1201;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 50px;
    border: 2px solid #eee;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 155, 126, 0.2);
}

.search-input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    width: 25rem;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    border-radius: 50px;
    color: var(--text-color);
    font-family: var(--font-main);
}

.search-input::placeholder {
    color: #999;
    opacity: 0.8;
}

.search-btn {
    padding: 0.25rem;
    margin-right: 0.4rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.12s ease;
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

/* Profile and Cart Icon Styles */
.nav-icons {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 1rem;
    flex-shrink: 0;
    flex: 0 0 auto;
}

.nav-profile {
    flex-shrink: 0;
}

.profile-btn {
    position: relative;
    padding: 0.75rem;
    background: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: var(--heading-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-btn:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Profile Dropdown Menu */
.profile-dropdown {
    position: relative;
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.profile-dropdown:hover .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #1A1A18;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background-color: #FFF5F0;
    color: var(--primary-color);
}

.profile-menu-item svg {
    flex-shrink: 0;
}

.profile-welcome {
    background-color: #FFF5F0;
    font-weight: 600;
    color: var(--primary-color) !important;
    cursor: default;
}

.profile-welcome:hover {
    background-color: #FFF5F0;
}

.nav-cart {
    flex-shrink: 0;
}

.cart-btn {
    position: relative;
    padding: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #1A1A18;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
}

.cart-btn:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Ensure badge is not clipped by parent and sits above other header controls */
.cart-btn,
.nav-icons {
    overflow: visible;
}

.cart-count {
    z-index: 1300;
}

/* Navigation Links Styles */
.nav-Links {
    display: none;
    /* Hidden on desktop, used for mobile menu */
    align-items: center;
    justify-content: flex-start;
    background-color: var(--white);
    height: 60px;
    width: 100%;
    padding: 0 1rem;
    font-weight: 700;
    border-bottom: 1px solid #eee;
}

.nav-link {
    text-decoration: none;
    color: var(--heading-color);
    font-weight: 700;
    transition: color 0.2s ease;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    margin-left: 20px;
    border-radius: 20px;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: #FFF5F0;
    /* text-decoration: underline; */
}

/* Hide mobile-only navigation links on desktop */
.nav-link.mobile-only {
    display: none;
}

/* Categories Dropdown Styles */
.nav-categories {
    margin-left: 50px;
}

.categories-section {
    background-color: transparent;
}

.categories-container {
    padding: 0;
}

.categories-dropdown {
    position: relative;
    display: inline-block;
}

.categories-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background: var(--primary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(230, 155, 126, 0.3);
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 44px;
    position: relative;
    overflow: hidden;
}

.categories-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.categories-btn:hover::before {
    left: 100%;
}

.categories-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 155, 126, 0.4);
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.categories-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: 0.5rem 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    color: #1A1A18;
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
    border-bottom: 1px solid #f8f9fa;
}

.category-item:hover {
    background-color: #FFF5F0;
    color: var(--primary-color);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item.featured {
    color: var(--primary-color);
    font-weight: 500;
}

.category-name {
    flex: 1;
}

.category-count {
    color: #6c757d;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.category-item:hover .category-count {
    color: var(--primary-color);
}

/* Main content spacing */
.main-content {
    padding: 0;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 100px;
    background-color: var(--hero-bg);
    position: relative;
    /* overflow: hidden; */
    min-height: auto;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text-column {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    color: var(--heading-color);
    margin-bottom: 2rem;
    font-weight: 800;
}

.hero-cta-btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--heading-color);
    border-radius: 50px;
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.hero-cta-btn-outline:hover {
    background-color: var(--heading-color);
    color: white;
}

.hero-image-column {
    position: relative;
}

.hero-main-image {
    width: 100%;
    border-radius: 40px;
    /* Rounded corners */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Mobile Hero */
@media (max-width: 768px) {
    .hero-content-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 40px 0;
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1A1A18;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: #f8f9fa;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Links */
.nav-Links {
    transition: all 0.3s ease;
}

.hero-cta-btn,
.btn,
button {
    min-height: 44px;
    /* Touch-friendly minimum */
    min-width: 44px;
    transition: all 0.2s ease;
}

/* Programs Section */
.programs-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.programs-header {
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.program-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #E40045;
    /* Red/Pink from image */
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.program-icon {
    font-size: 1.2rem;
}

.program-title {
    font-size: 2.5rem;
    color: #050A30;
    /* Dark blue/black */
    line-height: 1.2;
    font-weight: 800;
}

.programs-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

.programs-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.programs-carousel::-webkit-scrollbar {
    display: none;
}

.program-card {
    flex: 0 0 300px;
    /* Fixed width for cards */
    text-align: center;
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-img-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.program-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-img {
    transform: scale(1.05);
}

.program-name {
    font-size: 1.2rem;
    color: #050A30;
    font-weight: 700;
}

.program-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #050A30;
    color: #050A30;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 2;
}

.program-nav-btn:hover {
    background: #050A30;
    color: white;
}

/* Override for Programs Carousel to show 5 items per row */
.program-card {
    flex: 0 0 calc(20% - 24px) !important;
    min-width: 200px !important;
}

@media (max-width: 1200px) {
    .program-card {
        flex: 0 0 calc(25% - 24px) !important;
        /* 4 items */
    }
}

@media (max-width: 992px) {
    .program-card {
        flex: 0 0 calc(33.33% - 20px) !important;
        /* 3 items */
    }
}

@media (max-width: 768px) {
    .program-card {
        flex: 0 0 260px !important;
        /* Fixed width for mobile scrolling */
    }
}

/* Features Section */
.features-section {
    padding: calc(100px + 8vw) 0 100px;
    background-color: var(--white);
    position: relative;
}

.features-section::before {
    display: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: white;
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    background: #FFF5F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 30px rgba(230, 155, 126, 0.3);
}

.feature-title {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: var(--primary-color);
}

.feature-description {
    font-family: var(--font-main);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.feature-card:hover .feature-description {
    color: var(--text-color);
    opacity: 1;
}

.top-category-section {
    padding: 80px 40px;
    background: #ffffff;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.categories-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    /* Hide scrollbar for modern browsers */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* Hide scrollbar for WebKit browsers */
.categories-wrapper::-webkit-scrollbar {
    display: none;
}

.categories-container {
    display: flex;
    gap: 24px;
    padding: 10px 0;
    /* Smooth scrolling animation */
    transition: transform 0.3s ease-out;
    /* Enable continuous scrolling */
    will-change: transform;
}

.category-card {
    flex: 0 0 240px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: visible;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #c82333);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.2);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.category-card:hover .category-image {
    border-color: #dc3545;
    transform: scale(1.05);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1A1A18;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: #dc3545;
}

.category-count {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    transition: color 0.3s ease;
}

.category-card:hover .category-count {
    color: #495057;
}

.category-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.category-card:hover .category-badge {
    transform: scale(1);
}

/* Footer Styles */
.footer {
    background-color: var(--primary-color);
    color: var(--footer-text);
    padding-top: 220px;
    /* Increased height to fit banner */
    padding-bottom: 20px;
    margin-top: 150px;
    /* Space for the wave to sit above */
    position: relative;
}

/* Wave/Cloud Separator */
.footer-wave {
    position: absolute;
    bottom: 99%;
    /* Sit exactly on top of the footer */
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
    /* Let clicks pass through */
}

.footer-wave img {
    width: 100%;
    height: auto;
    display: block;
    transform: scaleY(-1);
    /* Keep flipped to have flat bottom, wavy top */
}

/* Footer Decorative Icons */
.footer-deco-icon {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.plane-icon {
    top: 15%;
    left: 5%;
    width: 100px;
    height: auto;
    animation: floatPlane 8s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.stars-icon {
    top: 20%;
    right: 8%;
    width: 70px;
    height: auto;
    animation: twinkle 4s ease-in-out infinite;
}

.rainbow-icon {
    bottom: 0;
    left: 10%;
    width: 200px;
    height: auto;
    opacity: 0.8;
    z-index: 0;
}

.deco-icon-4 {
    bottom: 15%;
    right: 5%;
    width: 80px;
    height: auto;
    animation: floatPlane 10s ease-in-out infinite reverse;
    opacity: 0.9;
}

.deco-icon-5 {
    top: 45%;
    left: 3%;
    width: 60px;
    height: auto;
    animation: twinkle 5s ease-in-out infinite;
    opacity: 0.8;
}

.deco-icon-6 {
    top: 55%;
    right: 12%;
    width: 90px;
    height: auto;
    animation: floatPlane 12s ease-in-out infinite;
    opacity: 0.85;
}

@keyframes floatPlane {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    /* Content above wave */
}

/* Enrollment Banner */
.enrollment-banner {
    background-color: var(--hero-bg);
    color: var(--hero-text);
    border-radius: 30px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-top: -160px;
    /* Adjusted to sit inside footer */
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 20px;
    z-index: 10;
}

.enrollment-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.enrollment-icon {
    width: 60px;
    height: 60px;
    background-color: #ccff00;
    /* Lime green */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #050A30;
    flex-shrink: 0;
}

.enrollment-text h3 {
    color: var(--hero-text);
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.enrollment-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.enrollment-btn:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-color);
}

/* Footer Main Content */
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr 2fr;
    gap: 60px;
    padding: 40px 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Newsletter Column */
.footer-newsletter h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.newsletter-form {
    position: relative;
    max-width: 300px;
}

.newsletter-input {
    width: 100%;
    padding: 20px 20px;
    padding-right: 50px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.newsletter-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #050A30;
}

.privacy-check {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Links Columns */
.footer-links-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--footer-accent);
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    width: 100%;
    margin: 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
    padding: 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    color: white;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
    color: var(--footer-accent);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .enrollment-banner {
        flex-direction: column;
        text-align: center;
        top: -40px;
    }

    .enrollment-content {
        flex-direction: column;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.profile-menu-divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

.profile-menu-item.admin-item {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.profile-menu-item.admin-item:hover {
    background: var(--primary-hover);
    transform: translateX(3px);
}

.profile-menu-item.admin-item svg {
    stroke: white;
}

/* Admin Panel Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

.admin-sidebar {
    width: 280px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
}

.admin-content {
    margin-left: 280px;
    flex: 1;
    padding: 30px;
    min-height: 100vh;
}

.admin-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    margin: -30px -30px 30px -30px;
    border-radius: 12px 12px 0 0;
}

.admin-header h1 {
    margin: 0;
    color: #1A1A18;
    font-size: 1.8rem;
    font-weight: 700;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-card h3 {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #dc3545;
    margin: 0;
}

.stat-card .stat-change {
    font-size: 0.85rem;
    margin-top: 8px;
}

.stat-change.positive {
    color: #28a745;
}

.stat-change.negative {
    color: #dc3545;
}

/* Sidebar Navigation */
.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.sidebar-logo {
    max-width: 120px;
    height: auto;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background: #f8f9fa;
    color: #dc3545;
    border: #dc3545;
    text-decoration: none;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    vertical-align: middle;
}

.nav-item span {
    font-weight: 500;
}

.admin-footer {
    grid-template-columns: 1fr 1fr 1fr;
}

.admin-footer .footer-section:first-child {
    max-width: none;
}

.admin-footer .footer-description {
    color: #8b8b8b;
    font-style: italic;
}

.featured-products-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
}

.featured-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #E40045 50%, transparent 100%);
}

.featured-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.featured-header h2 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1A1A18;
    margin-bottom: 16px;
    position: relative;
}

.featured-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #E40045, #c82333);
    border-radius: 2px;
}

.featured-header p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.refresh-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #E40045, #c82333);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.refresh-products-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 0, 69, 0.3);
}

.refresh-products-btn svg {
    transition: transform 0.3s ease;
}

.refresh-products-btn:hover svg {
    transform: rotate(180deg);
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.featured-product-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
}

.featured-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E40045, #c82333);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.featured-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(228, 0, 69, 0.15);
    border-color: rgba(228, 0, 69, 0.2);
}

.featured-product-card:hover::before {
    transform: scaleX(1);
}

.featured-product-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.featured-product-card:hover .featured-product-image {
    border-color: #E40045;
    transform: scale(1.05);
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.1);
}

.featured-product-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1A1A18;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.featured-product-card:hover .featured-product-name {
    color: #E40045;
}

.featured-product-price {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #E40045;
    margin-bottom: 16px;
}

.featured-product-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.star {
    color: #ffc107;
    font-size: 1rem;
}

.rating-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 8px;
}

.featured-product-btn {
    background: linear-gradient(135deg, #E40045, #c82333);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

.featured-product-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 0, 69, 0.3);
    color: white;
    text-decoration: none;
}

.featured-view-all {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #E40045;
    border: 2px solid #E40045;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #E40045;
    transition: left 0.3s ease;
    z-index: -1;
}

.view-all-btn:hover::before {
    left: 0;
}

.view-all-btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(228, 0, 69, 0.3);
}

.view-all-btn svg {
    transition: transform 0.3s ease;
}

.view-all-btn:hover svg {
    transform: translateX(5px);
}

/* Why Choose Us Section */
.why-choose-us-section {
    padding: 96px 0;
    background: #fff7ed;
}

.why-choose-us-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.why-choose-header {
    max-width: 640px;
}

.why-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.why-choose-header h2 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.why-choose-header p {
    font-size: 1rem;
    max-width: 520px;
    color: #4b5563;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.why-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #ffe4e6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.why-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b91c1c;
}

.why-card h3 {
    font-size: 1rem;
    font-weight: 700;
}

.why-card p {
    font-size: 0.9rem;
    color: #4b5563;
}

.why-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.06);
}

.why-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.9rem;
    color: #4b5563;
}

.why-metrics strong {
    color: #111827;
}

.why-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.why-cta-btn svg {
    transform: translateX(1px);
}

/* ==========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ========================================== */

/* Mobile Navigation Enhancements */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1A1A18;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    min-height: 44px;
    max-width: 20px;
}

.mobile-menu-toggle:hover {
    background-color: #f8f9fa;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

.visual-item img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.visual-item:nth-child(1) {
    grid-row: 1 / 3;
}

.visual-item:nth-child(2) {
    grid-row: 1 / 2;
}

.visual-item:nth-child(3) {
    grid-row: 2 / 4;
}

.visual-item:nth-child(4) {
    grid-row: 3 / 4;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(228, 0, 69, 0.8), rgba(200, 35, 51, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-item:hover .visual-overlay {
    opacity: 1;
}

.overlay-icon {
    color: white;
    font-size: 2rem;
}


.nav-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* distribute space evenly for centered search */
    height: 80px;
    overflow: visible;
    font-weight: 600;
}

/* Keep the container as the positioning context so the search can be centered */
.nav-container {
    position: relative;
    align-items: center;
}

/* Center the search bar visually on desktop by absolute centering; mobile rules will override/hide this */
.nav-search {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(980px, 80%);
    max-width: 1100px;
    display: flex;
    justify-content: center;
    z-index: 1200;
}

/* CSS Custom Properties for Mobile */
:root {
    --vh: 1vh;
    --primary-color: #E40045;
    --text-color: #1A1A18;
    --bg-color: #FFF9F5;
    --border-color: #e9ecef;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --touch-target: 44px;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Hide scrollbars but keep scrolling functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbars for any scrollable element on index pages */
html {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

html::-webkit-scrollbar {
    display: none;
}

/* Ensure all containers can still scroll but hide scrollbars */
* {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
    display: none;
}

/* Navigation Bar Styles */
.navbar {
    background-color: var(--navbar-bg);
    box-shadow: 0 10px 30px rgba(74, 14, 143, 0.2);
    position: sticky;
    top: 20px;
    z-index: 1100;
    /* padding: 0.8rem 2rem; */
    font-weight: 600;
    width: 95%;
    max-width: 95%;
    margin: 20px auto;
    border-radius: 50px;
    color: white;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Left: Links */
.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link-pill {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-link-pill:hover {
    color: var(--accent-yellow);
}

.nav-link-pill.active {
    background-color: var(--accent-yellow);
    color: var(--navbar-bg);
}

/* Center: Logo */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-icon {
    color: var(--accent-yellow);
    font-size: 1.5rem;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

/* Right: Cart & CTA */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-cart-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.nav-cta-btn {
    background-color: white;
    color: var(--navbar-bg);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-cta-btn:hover {
    background-color: var(--accent-yellow);
    transform: translateY(-2px);
}

/* Responsive overrides (keeps desktop unchanged) */
@media (max-width: 1024px) {
    .navbar {
        width: 100%;
        margin: 0;
        border-radius: 0;
        top: 0;
        padding: 1rem;
    }

    .nav-center {
        position: static;
        transform: none;
    }

    .nav-left {
        display: none;
        /* Hide links on mobile/tablet, use hamburger */
    }

    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    .nav-cart,
    .cart-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .cart-btn {
        padding: 0.5rem;
    }

    /* Put logo on the left and group the cart + hamburger on the right for tablet sizes */
    .nav-logo {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1202;
    }

    /* Place icons (cart) and the menu toggle at the right edge and keep them aligned.
       Use different `right` offsets so they don't overlap: the cart group sits left of the
       hamburger toggle. Increase touch target sizes slightly to avoid clipping. */
    .nav-icons {
        position: absolute !important;
        /* sit left of the hamburger */
        right: 3.25rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex !important;
        gap: 0.5rem;
        align-items: center;
        z-index: 1203;
    }

    .mobile-menu-toggle {
        position: absolute !important;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 1204;
        padding: 0.5rem;
        border-radius: 8px;
    }

    /* ensure cart touch target and badge don't get clipped */
    .cart-btn {
        min-width: var(--touch-target);
        min-height: var(--touch-target);
        padding: 0.4rem;
    }

    /* Make nav links convert to a full-screen drawer controlled by JS (.active) */
    .nav-Links {
        position: fixed;
        top: 72px;
        /* account for header height */
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        transform: translateX(-100%);
        transition: transform 280ms ease-in-out;
        background: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0.75rem;
        overflow-y: auto;
        z-index: 1150;
    }

    /* Class toggled by JS in mobile-utils.js */
    .nav-Links.active {
        transform: translateX(0);
    }

    .nav-Links .nav-link {
        color: #fff;
        font-size: 1.125rem;
        padding: 1rem 0.5rem;
        margin: 0.125rem 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link.mobile-only {
        display: block;
    }

    .nav-categories {
        margin-left: 0;
        padding: 0 0.5rem 1rem;
    }

    .categories-btn {
        width: 100%;
        justify-content: center;
    }

    /* Keep hero layout visually same on large screens but stack on small tablets */
    .hero-content {
        grid-template-columns: 1fr;
        /* stacks content on narrower widths */
        gap: 2rem;
    }



}

/* Mobile specific (phones) */
@media (max-width: 768px) {

    /* Hide footer wave on mobile to prevent gaps */
    .footer-wave {
        display: none;
    }

    .navbar {
        max-width: 100% !important;
    }

    .footer {
        margin-top: 60px;
        padding-top: 120px;
    }

    .enrollment-banner {
        margin-top: 0px;
    }

    /* Why Choose Us Section - Mobile Responsive */
    .why-choose-us-section {
        padding: 48px 0;
    }

    .why-choose-us-inner {
        padding: 0 16px;
        gap: 32px;
    }

    .why-choose-header h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .why-choose-header p {
        font-size: 0.95rem;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-card {
        padding: 20px 18px;
    }

    .why-cta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .why-metrics {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .why-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .nav-container {
        padding: 0 0.75rem;
        height: 45px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        max-width: 100%;
        /* margin-left: 25px; */
    }

    /* Make logo bigger on small screens for stronger brand presence */
    .logo {
        height: 2rem !important;
        width: auto !important;
        max-height: 6.5rem;
        margin-top: 10px;

    }

    .nav-search {
        order: 2;
        flex: 1 1 auto;
        max-width: none;
    }

    /* Hide search bar on small screens to save space */
    .nav-search {
        display: none !important;
    }

    .mobile-menu-toggle {
        order: 3;
        background: none;
        border: none;
        padding: 6px;
    }

    /* Keep logo left and icons (cart + hamburger) on right for phones */
    .nav-logo {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1202;
    }

    /* On phones keep the cart group slightly left of the hamburger to avoid overlap */
    .nav-icons {
        position: absolute !important;
        right: 3.5rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex !important;
        gap: 0.5rem;
        align-items: center;
        z-index: 1203;
    }

    .mobile-menu-toggle {
        position: absolute !important;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 1204;
        padding: 0.5rem;
        border-radius: 8px;
    }

    .cart-btn {
        min-width: var(--touch-target);
        min-height: var(--touch-target);
        padding: 0.4rem;
    }

    /* Make hero stack and reduce sizes on phones */
    .hero-section {
        min-height: 70vh;
    }


    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-welcome {
        font-size: 1.05rem;
    }

    .hero-cta-btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
    }

    /* Features & grids stack single column */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        padding: 0 0.75rem;
    }

    .featured-products-grid {
        grid-template-columns: 1fr !important;
        padding: 0 0.75rem;
        gap: 1rem;
    }

    .categories-container {
        gap: 12px;
        padding-left: 0.25rem;
    }

    .category-card {
        flex: 0 0 180px;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
        padding: 0 0.75rem 1.5rem;
    }

    /* Why Choose Us: narrow right column with stacked stat cards next to text on phones */
    .why-choose-us-content {
        grid-template-columns: 1fr 160px;
        gap: 18px;
        align-items: start;
    }

    .why-choose-us-text {
        padding-right: 0;
    }

    /* Restore categories button and present navigation as a vertical overlay like screenshot */
    .nav-categories {
        display: block !important;
        width: 100%;
        padding: 0 0.75rem 1rem;
    }

    .categories-btn {
        margin: 0 auto 0.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: calc(100% - 1.5rem);
        max-width: 520px;
    }

    /* Vertical full-height overlay for links (below header) */
    .nav-Links {
        flex-direction: column !important;
        align-items: flex-end;
        /* align link boxes to the right on small screens */
        justify-content: flex-start;
        padding: 1.25rem 1rem 1.25rem 0.75rem;
        /* extra right padding so items don't touch edge */
        height: calc(100vh - 72px);
        overflow-y: auto;
        white-space: normal;

    }

    /* Make each link a constrained-width box and right-aligned so the list sits on the right */
    .nav-Links .nav-link {
        display: block !important;
        width: auto;
        max-width: 520px;
        text-align: right;
        padding: 14px 0;
        margin: 6px 0;
        font-size: 1.125rem;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Mobile-only items (Sign In / Cart) centered with extra spacing */
    .nav-link.mobile-only {
        display: block !important;
        margin-top: 18px;
        font-weight: 700;
    }
}

/* Very small phones: stack content and show stats as a centered 2x2 grid below the text */
@media (max-width: 480px) {
    .why-choose-us-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-choose-us-visual {
        order: 2;
        width: 100%;
        display: block;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 12px;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-item {
        padding: 18px 12px;
        text-align: center;
    }

    .stat-number {
        font-size: 2rem;
        font-weight: 800;
    }
}

.hero-wave {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 10;
    pointer-events: none;
    transform: rotate(180deg);
}

.hero-wave .wave-img {
    width: 100%;
    transform: scaleY(-1);
    height: auto;
    display: block;
    /* filter: brightness(0) invert(96%) sepia(6%) saturate(108%) hue-rotate(314deg) brightness(103%) contrast(100%); */
}

/* Showcase Section */
.showcase-section {
    padding: 80px 0;
    background-color: #fff;
}

.showcase-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border-radius: 30px;
    border: 2px solid;
    border-color: var(--primary-color);
    /* Purple/Blue from image */
    background: transparent;
    color: #1A1A18;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-left: 30px;
    padding-right: 30px;
}

@media (max-width: 1200px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 992px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Why Choose Us Section - Tablet Responsive */
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

.showcase-card {
    border: 2px dashed var(--primary-color);
    /* Dashed border from image */
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(123, 97, 255, 0.15);
    border-style: solid;
}

.showcase-img-wrapper {
    height: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.showcase-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.showcase-card:hover .showcase-img {
    transform: scale(1.1);
}

.showcase-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1A1A18;
}

.showcase-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}



.shop-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(123, 97, 255, 0.2);
}

.shop-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(123, 97, 255, 0.3);
    background: var(--secondary-color);
}

/* Community Section */
.community-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-image: url('https://images.unsplash.com/photo-1596464716127-f9a82741cacb?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    margin-top: 60px;
}

.community-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: flex-start;
    padding-left: 5%;
}

.community-cloud {
    background-color: #fff7ed;
    padding: 60px;
    border-radius: 50% 40% 60% 40% / 60% 50% 40% 50%;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.community-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1A1A18;
    background: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-icon-star {
    color: #3b82f6;
    background: #e0f2fe;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.community-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #0f172a;
    font-weight: 800;
}

.highlight-red {
    color: #E40045;
    text-decoration: underline;
    text-decoration-color: #E40045;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.community-btn {
    background-color: #0f172a;
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.community-btn:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .community-title {
        font-size: 1.8rem;
    }

    .community-cloud {
        padding: 40px 20px;
        border-radius: 30px;
    }

    .community-container {
        justify-content: center;
        padding-left: 0;
    }
}

/* Bottom Navigation for Mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-direction: row;
    /* Ensure row direction */
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: 600;
    transition: color 0.3s ease;
    gap: 4px;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item:hover {
    color: var(--primary-color);
}

/* Cart Badge for Bottom Nav */
.bottom-nav-item .cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 1px solid white;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }

    /* Add padding to footer to prevent content from being hidden */
    .footer {
        padding-bottom: 80px;
    }

    /* Hide top navbar cart and mobile menu toggle on mobile */
    .nav-cart-link,
    .mobile-menu-toggle {
        display: none !important;
    }
}