@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css");

/* Base Styling */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f4f9f2;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

footer {
    margin-top: auto;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
    border: none;
}

.btn-primary,
.bg-primary {
    background-color: #31632a;
    color: #fff;
    transition: all 0.2s ease;
}

.btn-primary:hover,
.bg-primary:hover {
    background-color: #1c800f;
    transform: translateY(-1px);
}

.btn-secondary,
.bg-secondary {
    background-color: #31632a;
    color: #fff;
    transition: all 0.2s ease;
}

.btn-secondary:hover,
.bg-secondary:hover {
    background-color: #1c800f;
    transform: translateY(-1px);
}

/* ==========================================================================
    Header & Dropdown Styles for mobile and desktop
   ========================================================================== */

.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e5e7eb;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    padding: 0 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.logo-link .logo-image {
    height: 80px;
}

.desktop-nav {
    display: none;
    /* Hidden by default, shown on medium screens up */
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    padding: 0.5rem 0.25rem;
    transition: color 0.2s ease-in-out;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover {
    color: #3b75b3;
    /* Primary color */
}

/* Dropdown specific styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    transform-origin: top center;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    padding: 1rem;
    margin-top: 0.5rem;
    display: grid;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
    pointer-events: none;
}

.dropdown:hover .dropdown-menu,
.dropdown-toggle:focus+.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

.dropdown-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #4b5563;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: #3b75b3;
    /* Primary color */
}

.dropdown-menu.single-column {
    grid-template-columns: 1fr;
    /* Overrides the multi-column grid */
    width: 280px;
    /* A suitable width for a single column */
    gap: 0.25rem;
    /* Tighter spacing for single column */
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle button {
    background: none;
    border: none;
    color: #374151;
    font-size: 1.25rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu.active {
    display: block;
}

.mobile-link,
.mobile-link-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-link:hover,
.mobile-link-toggle:hover {
    background-color: #f9fafb;
}

.mobile-dropdown {
    display: none;
    background-color: #f9fafb;
    padding-left: 1.5rem;
}

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

.mobile-dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
}

/* Notification Message */
.notification {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
}

.notification.success {
    background-color: #d4edda;
    color: #155724;
}

.notification.error {
    background-color: #f8d7da;
    color: #721c24;
}