/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    /*background: linear-gradient(to bottom, #97ADC1, #C1CDD8, #E1E6EB); /* Gradient from top to bottom #e1e5ebd2*/
    background: linear-gradient(to bottom, #97a6c1c5,#c1c9d8da,#c1c9d8da,#e1e5ebd2);
    background-attachment: fixed; /* Keep gradient fixed while content scrolls - smooth transition throughout entire page */
    min-height: 100vh; /* Ensure gradient covers full viewport height */
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
}

.logo-img {
    height: 70px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

/* Hamburger Menu Button (Hidden on Desktop) */
.hamburger-menu {
    display: none; /* Hidden by default (desktop) */
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 0.75rem; /* Add space from right edge */
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background-color: #9999999c;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Menu (Hidden by Default) */
.mobile-nav {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: auto;
    width: auto;
    white-space: nowrap;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    z-index: 1000;
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* Main Content */
.main {
    padding: 2rem 0;
    flex: 1; /* Allow main to grow and push footer to bottom */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer Styles */
.footer {
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
    margin-top: 0; /* No margin needed, flexbox handles positioning */
}

.footer-content {
    max-width: 100%;        /* Use full width on desktop */
    margin: 0;              /* Remove centering margin */
    padding: 0 3.75rem;     /* Increased left/right buffer (triple previous) */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    color: #007bff;
}

.footer-right {
    text-align: right;
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-right p {
    margin: 0.25rem 0;
}

.footer-right p:first-child {
    font-weight: 500; /* Match font-weight of footer links */
}

/* Mobile Header Styles */
@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem 1rem; /* Reduce padding */
        flex-wrap: nowrap; /* Prevent wrapping */
        position: relative; /* For absolute positioning of mobile menu */
    }
    
    .logo-img {
        height: 45px; /* Reduce logo size from 70px */
        width: auto;
    }
    
    /* Hide regular navigation on mobile */
    .nav {
        display: none;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }
    
    .nav-link {
        font-size: 0.9rem; /* Reduce from 1.1rem */
        padding: 0.25rem 0; /* Add small vertical padding for touch */
    }
    
    .main {
        padding: 1rem 0; /* Reduce from 2rem */
    }
    
    .container {
        padding: 0 1rem; /* Reduce from 2rem */
    }
    
    .footer {
        padding: 1.5rem 0; /* Increase vertical padding */
    }
    
    .footer-content {
        flex-direction: row; /* Keep side-by-side, not column */
        align-items: flex-start; /* Align to top */
        gap: 1rem; /* Reduce gap between left and right */
        padding: 0 1rem; /* Reduce horizontal padding */
        flex-wrap: wrap; /* Allow wrapping if screen is too small */
    }
    
    .footer-left {
        flex-direction: column; /* Stack links vertically */
        gap: 0.75rem; /* Reduce gap from 2rem */
        flex: 1; /* Take available space */
        min-width: 150px; /* Minimum width */
    }
    
    .footer-link {
        font-size: 0.9rem; /* Slightly smaller for mobile */
    }
    
    .footer-right {
        text-align: right; /* Keep right aligned */
        font-size: 0.8rem; /* Smaller font for mobile */
        flex: 1; /* Take available space */
        min-width: 150px; /* Minimum width */
    }
    
    .footer-right p {
        margin: 0.25rem 0; /* Keep spacing */
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem 0.75rem; /* Even smaller padding */
    }
    
    .logo-img {
        height: 35px; /* Even smaller logo */
    }
    
    .nav-link {
        font-size: 0.85rem; /* Smaller text */
    }
    
    .main {
        padding: 0.75rem 0;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .footer-content {
        padding: 0 0.75rem;
        gap: 0.75rem; /* Even smaller gap on very small screens */
    }
    
    .footer-left {
        gap: 0.5rem; /* Smaller gap between links */
        min-width: 120px; /* Smaller minimum width */
    }
    
    .footer-link {
        font-size: 0.85rem; /* Smaller text */
    }
    
    .footer-right {
        font-size: 0.75rem; /* Smaller text */
        min-width: 120px; /* Smaller minimum width */
    }
}