:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --white: #fff;
    --header-height: 70px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    direction: ltr;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

.site-header {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 10px 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-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2.2em;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.site-header .logo:hover {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--white);
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.nav-toggle .icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-toggle .icon-bar:last-child {
    margin-bottom: 0;
}

.site-footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

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

.footer-col h3 {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.footer-col p,
.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-col a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
}

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

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 992px) {
    .site-header .logo {
        font-size: 1.8em;
    }
    .main-nav li {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        flex-basis: 100%;
        height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
        opacity: 0;
        visibility: hidden;
        background-color: var(--dark-bg);
        padding: 0 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .main-nav.active {
        max-height: 500px; /* Adjust as needed */
        opacity: 1;
        visibility: visible;
        padding: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav li {
        margin: 0 0 15px 0;
        width: 100%;
        text-align: left;
    }
    .main-nav a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }
    .main-nav a::after {
        left: 0;
        bottom: 5px;
    }

    .nav-toggle.active .icon-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active .icon-bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .icon-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-columns {
        flex-direction: column;
        gap: 20px;
    }

    .footer-col {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-header .logo {
        font-size: 1.5em;
    }
    .header-container {
        padding: 0 15px;
    }
    .footer-container {
        padding: 0 15px;
    }
}