/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.logo img {
    height: 48px;
    width: auto;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #059669;
}

.dropdown-arrow {
    font-size: 12px;
    color: #666;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 0;
    width: 400px;
    max-width: 100%;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    color: #64748b;
}

.search-bar input::placeholder {
    color: #94a3b8;
}

.search-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    color: #64748b;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #e2e8f0;
}

.search-close-btn {
    display: none;
}


.nav-link.active {
    color: #059669;
    /* This is the same green color used for hover */
    font-weight: 700;
    /* Make it a bit bolder */
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #059669;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.icon-link:hover {
    background-color: #f0fdf4;
}

/* Main Content */
main {
    min-height: 60vh;
}

/* Footer Styles */
footer {
    margin-top: 80px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 0;
    margin: 0;

}

.newsletter-container {
    background-image: url('../images/gazon_footer.jpg');
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.3);
    background-size: cover;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    border-radius: 24px;

}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-logo img {
    height: 60px;
    width: auto;
}

.newsletter-text h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    max-width: 400px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 300px;
}

.email-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.email-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    z-index: 1;
}

.email-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: white;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.email-input::placeholder {
    color: #9ca3af;
}

.newsletter-btn {
    background: white;
    color: #059669;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-btn:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Footer Main */
.footer-main {
    background-color: #f8fafc;
    padding: 80px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-main .footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 60px;
}

.about-section {
    max-width: 300px;
}

.footer-title {
    color: #047857;
    font-size: 1.15em;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bold-title {
    font-weight: 900;
    font-size: 1.9em;
}

.footer-description {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 32px;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #059669;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #047857;
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #059669;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #f1f5f9;
    padding: 24px 0;
    border-top: 1px solid #e2e8f0;
}

.copyright {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}


/* static/css/admin_slider.css */

/* -- Overlay and Base Slider Styles -- */
.admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.admin-overlay.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.admin-slider {
    position: fixed;
    top: 0;
    left: 0;
    /* Position on the left */
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 3000;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    /* Start off-screen to the left */
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    border-radius: 0 16px 16px 0;
}

.admin-slider.open {
    transform: translateX(0);
    /* Slide into view */
}

/* -- Slider Content -- */
.admin-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-slider-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.admin-close-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
}

.admin-slider-nav ul {
    list-style: none;
    padding: 16px;
}

.admin-slider-nav li a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.nav-icon {
    width: 20px;
    height: 20px;
    background-color: #cbd5e1;
    margin-right: 16px;
    border-radius: 4px;
}

.admin-slider-nav li a:hover {
    background-color: #f1f5f9;
}

.admin-slider-nav li.active a {
    background-color: #059669;
    color: white;
}

.admin-slider-nav li.active .nav-icon {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Add this to the bottom of base.css */

/* -- Mobile Navigation -- */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    color: #059669;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.hamburger-menu:hover {
    background-color: #f0fdf4;
}

.hamburger-menu svg {
    display: block;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1999;
    transition: left 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    left: 0;
}

/* Mobile Nav Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.mobile-nav-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #334155;
}

.mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background-color: #e2e8f0;
    color: #334155;
}

/* Mobile Nav Content */
.mobile-nav-content {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.mobile-nav-content a {
    display: block;
    padding: 16px 24px;
    text-decoration: none;
    color: #334155;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.mobile-nav-content a:hover {
    background-color: #f8fafc;
    color: #059669;
    padding-left: 32px;
}

.mobile-nav-content a:last-child {
    border-bottom: none;
}
.modal {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff; border-radius: 12px;
    width: 90%; max-width: 400px;
    z-index: 1001; display: none;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active, .modal.active {
    display: block;
    opacity: 1;
}
.modal-header { padding: 20px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center;}
.modal-header h2 { margin: 0; font-size: 20px; }
.modal-body { padding: 20px; }
.modal-body p { text-align: center; margin-bottom: 16px; color: #475569; }
.close-btn { background: none; border: none; font-size: 24px; cursor: pointer; }
.btn-submit { width: 100%; padding: 14px; background-color: #059669; color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 16px; }

/* -- Responsive Rules -- */



/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .search-bar {
        width: 300px;
    }

    .footer-main .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .about-section {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-text h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {

    /* Hide the desktop nav */
    .main-nav {
        display: none;
    }

    /* Show the hamburger menu */
    .hamburger-menu {
        display: block;
    }

    .header-container {
        flex-direction: row;
        /* Override the column direction */
        align-items: center;
        /* Vertically center items */
        justify-content: space-between;
        position: relative;
        /* Needed for absolute positioning of the logo */
        height: 60px;
        /* Give header a consistent height */
        padding: 0 16px;
    }

    /* Add this to show the hamburger menu */
    .hamburger-menu {
        display: flex;
    }

    /* Center the logo */
    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .logo img {
        height: 40px;
    }

    /* Hide the main nav links */
    .main-nav {
        display: none;
    }

    /* Group the right-side icons */
    .header-right-icons {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Keep the search bar element but hide the input */
    .search-bar {
        width: auto;
        max-width: none;
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        order: 0;
        /* Reset order if needed */
    }

    .search-bar input {
        display: none;
    }

    /* Style the search button as a standalone icon */
    .search-btn {
        padding: 8px;
        color: #059669;
    }

    .search-btn:hover {
        background-color: #f0fdf4;
    }

    /* Adjust main header icons container */
    .header-icons {
        justify-content: flex-end;
        gap: 8px;
    }


    /* When active, the header becomes the positioning context */
    header.search-active {
        position: relative;
    }

    /* The search bar becomes a full-screen overlay */
    @media (max-width: 768px) {
    /* ...existing code... */

    header.search-active .search-bar {
        position: absolute;
        left: -16px; /* Change this from 0 to -16px to match the header padding */
        top: 0;
        width: calc(100% + 32px); /* Add 32px (16px on each side) to compensate */
        height: 60px;
        z-index: 1001;
        display: flex;
        align-items: center;
        padding: 0 16px;
        background: #fff;
        gap: 8px;
    }

    header.search-active .search-bar input {
        display: block;
        flex: 1;
        width: calc(100% - 88px); /* Slightly adjusted to account for wider container */
        padding: 8px 12px;
        font-size: 14px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #f8fafc;
    }
}

    header.search-active .search-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        font-size: 24px;
        background: none;
        border: none;
        padding: 0;
        color: #64748b;
    }

    header.search-active .search-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* When active, hide the other header elements to avoid clutter */
    header.search-active .logo,
    header.search-active .header-icons {
        display: none;
    }
}

@media (max-width: 480px) {

    /* Header adjustments for mobile */
    .header-container {
        padding: 12px 16px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    /* Hide navigation on mobile (matching your image) */
    .main-nav {
        display: none;
    }

    /* Hide search bar on mobile header */
    .search-bar {
        background: none;
        border: none;
        width: auto;
        padding: 0;
    }

    .search-bar input {
        display: none;
        /* Hide the text input field */
    }

    .search-btn {
        color: #059669;
        /* Match the other header icons */
    }

    /* Logo adjustments */
    .logo img {
        height: 40px;
    }

    /* Header icons adjustments */
    .header-icons {
        gap: 12px;
    }

    .icon-link {
        width: 36px;
        height: 36px;
    }

    /* Newsletter section mobile optimizations */

    .newsletter-container {
        padding: 24px 20px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: left;
        gap: 20px;
    }

    .newsletter-logo {
        align-self: center;
        width: 20%
    }

    .newsletter-logo img {
        height: 40px;
    }

    .newsletter-text {
        align-self: flex-start;
        width: 100%;
    }

    .newsletter-text h2 {
        font-size: 18px;
        font-weight: 700;
        text-align: left;
        max-width: none;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .newsletter-form {
        width: 80%;
        min-width: auto;
        gap: 12px;
    }

    .email-input {
        padding: 12px 12px 12px 40px;
        font-size: 14px;
    }

    .email-icon {
        left: 12px;
    }

    .newsletter-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Footer main adjustments */
    .footer-main {
        padding: 40px 0 20px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-main .footer-container {
        grid-template-columns: 1fr 1fr;
        /* This creates the two-column layout */
        gap: 32px;
        /* or gap: 24px; */
    }

    /* About section mobile */
    .about-section {
        grid-column: 1 / -1;
    }

    .bold-title {
        font-size: 1.5em;
    }

    .footer-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

    /* Footer titles mobile */
    .footer-title {
        font-size: 1em;
        margin-bottom: 16px;
    }

    /* Footer links mobile */
    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 13px;
    }

    /* Social icons mobile */
    .social-icons {
        gap: 12px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    /* Footer bottom mobile */
    .footer-bottom {
        padding: 20px 0;
    }

    .copyright {
        font-size: 13px;
        padding: 0 20px;
    }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
    .header-container {
        padding: 10px 12px;
    }

    .newsletter-container {
        padding: 20px 16px;
    }

    .newsletter-text h2 {
        font-size: 16px;
    }

    .footer-container {
        padding: 0 16px;
    }

    .copyright {
        padding: 0 16px;
    }
}
/* Updated mobile layout for header */
@media (max-width: 768px) {
    .header-container {
        display: grid;
        grid-template-columns: 40px 1fr 40px 40px 40px;
        align-items: center;
        padding: 0 16px;
        height: 60px;
        gap: 8px;
    }

    .hamburger-menu {
        grid-column: 1;
        display: flex;
        justify-self: start;
    }

    .logo {
        grid-column: 2;
        justify-self: center;
        position: static;
        transform: none;
        left: auto;
        top: auto;
    }

    .logo img {
        height: 40px;
    }

    .search-bar {
        grid-column: 3;
        display: flex;
        justify-content: center;
        background: none;
        border: none;
        padding: 0;
        width: auto;
    }

    .search-bar input {
        display: none;
    }

    .search-bar .search-close-btn {
        display: none;
    }

    .search-bar .search-btn {
        display: block;
        color: #059669;
        padding: 8px;
    }

    .header-icons {
        grid-column: 4 / span 2;
        display: flex;
        justify-content: flex-end;
        gap: 0;
    }

    .header-icons .icon-link {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    /* Keep existing active search styles */
    header.search-active .search-bar {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 1001;
        display: flex;
        align-items: center;
        padding: 0 16px;
        background: #fff;
    }
    
    header.search-active .search-bar input,
    header.search-active .search-close-btn {
        display: block;
    }
    
    header.search-active .hamburger-menu,
    header.search-active .logo,
    header.search-active .header-icons {
        display: none;
    }
}