/* General Styling */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f4f4;
}

body.no-scroll {
    overflow: hidden; /* Prevent scrolling when mobile menu is open */
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header Styling */
.site-header {
    background-color: #CC0000; /* Primary color */
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-header .logo {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700; /* Secondary color */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.site-header .logo:hover {
    color: #fff;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #FFD700; /* Secondary color */
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #FFD700; /* Secondary color */
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001; /* Ensure it's above other elements */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

.hamburger-menu.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Footer Styling */
.site-footer {
    background-color: #333; /* Dark background for footer */
    color: #f4f4f4;
    padding: 40px 0 20px;
    font-size: 15px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.site-footer .logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700; /* Secondary color */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.footer-column h3 {
    color: #FFD700; /* Secondary color */
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: #CC0000; /* Primary color */
}

.footer-column p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-column p a {
    color: #FFD700;
    transition: color 0.3s ease;
}

.footer-column p a:hover {
    color: #fff;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #FFD700; /* Secondary color */
}

.footer-bottom {
    border-top: 1px solid #444;
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    color: #ccc;
}

.copyright {
    font-size: 14px;
}

/* Scroll to top button */
.scroll-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #CC0000; /* Primary color */
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 999;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #FFD700; /* Secondary color */
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .main-nav {
        position: absolute;
        top: 65px; /* Height of header + padding */
        left: 0;
        width: 100%;
        background-color: #CC0000; /* Primary color */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        z-index: 999;
    }

    .main-nav.active {
        display: flex; /* Show when active */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0; /* Remove gap for vertical stacking */
    }

    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .main-nav a::after {
        display: none; /* Hide underline on mobile menu items */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .site-footer .logo {
        margin-left: auto;
        margin-right: auto;
    }
}