/* Base Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

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

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 60px; /* Minimum height for desktop */
    background-color: #0056B3; /* Primary color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    color: #fff;
    display: flex;
    flex-direction: column; /* Allows mobile elements to stack */
    justify-content: center;
    align-items: center;
}

.site-header .logo {
    font-size: 2.2em;
    font-weight: bold;
    color: #FFC107; /* Secondary color for logo */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    display: block;
    text-decoration: none;
}

/* Desktop Header Content */
.header-desktop-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 10px 20px;
    box-sizing: border-box;
}

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

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

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: #FFC107;
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #FFC107;
}

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

.desktop-buttons {
    display: flex;
    gap: 10px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: none;
}

.btn-desktop-primary,
.btn-mobile-primary {
    background-color: #FFC107; /* Secondary color */
    color: #0056B3; /* Primary color */
    border: 2px solid #FFC107;
}

.btn-desktop-primary:hover,
.btn-mobile-primary:hover {
    background-color: #e0a800;
    color: #003d80;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.btn-desktop-secondary,
.btn-mobile-secondary {
    background-color: #0056B3; /* Primary color */
    color: #FFC107; /* Secondary color */
    border: 2px solid #FFC107;
}

.btn-desktop-secondary:hover,
.btn-mobile-secondary:hover {
    background-color: #003d80;
    color: #e0a800;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile Specific Header Elements (Hidden by default on desktop) */
.header-mobile-top,
.header-buttons-mobile,
.mobile-nav-overlay {
    display: none;
}

/* Hamburger Menu */
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    padding: 0;
    z-index: 1001; /* Higher than header buttons */
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #FFC107;
    transition: all 0.3s ease;
}

.hamburger-menu.is-active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.is-active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark overlay */
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.menu-open {
    opacity: 1;
    visibility: visible;
}

.main-nav-mobile ul {
    text-align: center;
}

.main-nav-mobile li {
    margin: 20px 0;
}

.main-nav-mobile a {
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

.main-nav-mobile a:hover {
    color: #FFC107;
}

/* Footer Styles */
.site-footer {
    background-color: #003d80; /* Darker shade of primary for footer */
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9em;
}

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

.footer-col {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-logo {
    font-size: 2em;
    font-weight: bold;
    color: #FFC107;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
    text-decoration: none;
}

.site-footer h4 {
    color: #FFC107;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.site-footer p {
    margin-bottom: 10px;
}

.site-footer a {
    color: #fff;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #FFC107;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    display: block;
    padding: 5px 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFC107;
    color: #0056B3;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .site-header {
        min-height: auto;
        padding-bottom: 10px;
    }

    .header-desktop-content {
        display: none;
    }

    .header-mobile-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 20px;
        box-sizing: border-box;
        min-height: 50px;
    }

    .header-mobile-top .logo {
        flex-grow: 1;
        text-align: center;
        padding: 0;
        font-size: 1.8em;
    }

    .header-top-right-placeholder {
        width: 30px; /* Match hamburger width for centering */
        height: 25px;
    }

    .header-buttons-mobile {
        display: flex;
        justify-content: center;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        margin-top: 10px;
        z-index: 1000; /* Buttons below menu overlay */
    }

    .btn-mobile-primary, .btn-mobile-secondary {
        padding: 10px 15px;
        font-size: 0.9em;
        flex: 1;
        text-align: center;
    }

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

    .footer-col {
        text-align: center;
        margin-bottom: 30px;
    }

    .footer-nav ul {
        align-items: center;
    }
}
