/* Base styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    direction: ltr; /* Explicitly set LTR */
}

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

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

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

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

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

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

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

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

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

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

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

.site-header .hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.site-header .hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFD700; /* Secondary color for bars */
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Footer styles */
.site-footer {
    background-color: #1A237E; /* Primary color */
    color: #fff;
    padding: 40px 20px 20px;
    font-size: 0.9em;
}

.site-footer .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 30px;
    gap: 20px;
}

.site-footer .footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.site-footer .footer-col h3 {
    color: #FFD700; /* Secondary color for headings */
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
    padding-bottom: 5px;
}

.site-footer .footer-col p,
.site-footer .footer-nav a {
    color: #ddd;
    line-height: 1.8;
}

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

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

.site-footer .contact-info a {
    color: #FFD700; /* Secondary color for contact links */
}

.site-footer .contact-info a:hover {
    text-decoration: underline;
}

.site-footer .footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    color: #aaa;
}

.scroll-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFD700; /* Secondary color */
    color: #1A237E; /* Primary color */
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.scroll-to-top:hover {
    background-color: #e6c200; /* Slightly darker gold */
    transform: translateY(-3px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .site-header .header-container {
        flex-wrap: wrap;
    }

    .site-header .logo {
        flex-grow: 1;
        text-align: left;
        font-size: 1.8em;
    }

    .site-header .hamburger-menu {
        display: block;
        order: 2; /* Ensure hamburger is on the right */
    }

    .site-header .main-nav {
        width: 100%;
        order: 3; /* Push nav below logo and hamburger */
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        background-color: #1A237E; /* Primary color */
        position: absolute;
        top: 65px; /* Adjust based on header height */
        left: 0;
        right: 0;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

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

    .site-header .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-header .main-nav li {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .site-header .main-nav li:last-child {
        border-bottom: none;
    }

    .site-header .main-nav a {
        display: block;
        padding: 15px 20px;
        color: #fff;
    }
    
    .site-header .main-nav a::after {
        display: none; /* Hide underline on mobile menu items */
    }

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

    .site-footer .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .site-footer .footer-col {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .site-footer .footer-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .site-header .logo {
        font-size: 1.5em;
    }
    .site-header {
        padding: 10px 15px;
    }
    .site-header .main-nav {
        top: 55px; /* Adjust for smaller header height */
    }
    .site-footer {
        padding: 30px 15px 15px;
    }
}