/* ===== CSS VARIABLES ===== */
:root {
    --primary-green: #48a111;
    --primary-green-dark: #3a8a0e;
    --primary-green-light: #5cb82a;
    --primary-green-bg: #f0f9e8;
    --gold: #f5b342;
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 25px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 6px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--primary-green);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-green-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    padding: 0 20px;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader .spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.preloader .double-bounce1,
.preloader .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-green);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2s infinite ease-in-out;
}

.preloader .double-bounce2 {
    animation-delay: -1s;
}

@keyframes sk-bounce {
    0%,
    100% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
}

/* ===== NAVBAR ===== */
.navbar-custom {
    background: var(--white);
    padding: 12px 0;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-custom.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Oswald", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
    padding: 0;
}

.navbar-custom .navbar-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-green);
}

.navbar-custom .navbar-brand span {
    color: var(--primary-green);
}

.navbar-custom .nav-link {
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 18px !important;
    position: relative;
    transition: var(--transition);
}

.navbar-custom .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 70%;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-green);
}

/* Remove dropdown arrow completely */
.navbar-custom .dropdown-toggle::after {
    display: none !important;
}

/* Dropdown menu styling */
.navbar-custom .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-hover);
    border-radius: var(--border-radius);
    padding: 8px 0;
    margin-top: 10px;
    min-width: 200px;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Show dropdown on hover for desktop */
@media (min-width: 992px) {
    .navbar-custom .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Keep dropdown open when hovering over menu items */
    .navbar-custom .dropdown-menu:hover {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.navbar-custom .dropdown-item {
    color: var(--dark);
    padding: 10px 24px;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.navbar-custom .dropdown-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 60%;
    background: var(--primary-green);
    transition: var(--transition);
    border-radius: 0 3px 3px 0;
}

.navbar-custom .dropdown-item:hover::before {
    width: 4px;
}

.navbar-custom .dropdown-item:hover {
    background: var(--primary-green-bg);
    color: var(--primary-green);
    padding-left: 30px;
}

.navbar-custom .navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: none;
}

.navbar-custom .navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 28px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

.navbar-custom .navbar-toggler-icon::before,
.navbar-custom .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

.navbar-custom .navbar-toggler-icon::before {
    top: -8px;
}

.navbar-custom .navbar-toggler-icon::after {
    bottom: -8px;
}

.navbar-custom .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-custom
    .navbar-toggler[aria-expanded="true"]
    .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-custom
    .navbar-toggler[aria-expanded="true"]
    .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 991px) {
    .navbar-custom .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-hover);
        margin-top: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-custom .nav-link::after {
        display: none;
    }

    .navbar-custom .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-custom .dropdown-menu {
        box-shadow: none;
        padding-left: 20px;
        background: transparent;
        margin-top: 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
    }

    .navbar-custom .dropdown-menu.show {
        display: block;
    }

    .navbar-custom .dropdown-item {
        padding: 8px 0 8px 20px;
        color: var(--gray);
    }

    .navbar-custom .dropdown-item::before {
        display: none;
    }

    .navbar-custom .dropdown-item:hover {
        padding-left: 20px;
        background: transparent;
        color: var(--primary-green);
    }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: 80px;
    min-height: 70vh;
}

/* ===== FOOTER ===== */
.footer-custom {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 0 0;
    margin-top: 60px;
}

.footer-custom .footer-logo {
    font-family: "Oswald", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    display: inline-block;
    margin-bottom: 20px;
}

.footer-custom .footer-logo span {
    color: var(--primary-green);
}

.footer-custom .footer-description {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 400px;
}

.footer-custom .social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-custom .social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 16px;
}

.footer-custom .social-icon:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-custom .footer-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-custom .footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
}

.footer-custom .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-custom .footer-links ul li {
    margin-bottom: 12px;
}

.footer-custom .footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-custom .footer-links ul li a::before {
    content: "›";
    font-size: 18px;
    transition: var(--transition);
}

.footer-custom .footer-links ul li a:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

.footer-custom .footer-links ul li a:hover::before {
    color: var(--primary-green);
}

.footer-custom .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.footer-custom .contact-item i {
    width: 18px;
    color: var(--primary-green);
    font-size: 16px;
    margin-top: 4px;
}

.footer-custom .contact-item span,
.footer-custom .contact-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer-custom .contact-item a:hover {
    color: var(--primary-green);
}

.footer-custom .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 0;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-custom .footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-custom .footer-bottom a {
    color: var(--primary-green);
}

.footer-custom .footer-bottom a:hover {
    color: var(--primary-green-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .footer-custom .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-custom .footer-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 70px;
    }

    .navbar-custom .navbar-brand {
        font-size: 20px;
    }

    .navbar-custom .navbar-brand img {
        width: 40px;
        height: 40px;
    }

    .footer-custom {
        padding: 50px 0 0;
    }

    .footer-custom .footer-title {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .navbar-custom .navbar-brand {
        font-size: 18px;
    }

    .navbar-custom .navbar-brand img {
        width: 35px;
        height: 35px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-green {
    color: var(--primary-green);
}

.bg-green {
    background: var(--primary-green);
}

.bg-green-light {
    background: var(--primary-green-bg);
}

.btn-green {
    background: var(--primary-green);
    color: var(--white);
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-green:hover {
    background: var(--primary-green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(72, 161, 17, 0.25);
}

.btn-outline-green {
    background: transparent;
    color: var(--primary-green);
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: 500;
    border: 2px solid var(--primary-green);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline-green:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(72, 161, 17, 0.2);
}

.section-title {
    font-family: "Oswald", sans-serif;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title span {
    color: var(--primary-green);
}

.section-subtitle {
    color: var(--gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ALERT STYLES ===== */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.alert-success {
    background: rgba(72, 161, 17, 0.1);
    color: var(--primary-green);
    border: 1px solid rgba(72, 161, 17, 0.2);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.alert .btn-close {
    float: right;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}
