/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --text-color: #333;
    --text-light: #777;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: var(--transition);
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-color);
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

/* Header */
.site-header {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    top: 0;
    z-index: 100;
}

.site-logo a {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--text-light);
    font-size: 1rem;
}

/* Navigation */
.main-nav {
    background-color: var(--primary-color);
    color: white;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: white;
    padding: 1rem;
    display: block;
}

.nav-links a.active {
    background-color: var(--primary-dark);
}

.nav-links a:hover {
    background-color: var(--primary-dark);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-icon {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 5px;
}

/* Breadcrumb */
.breadcrumb-nav {
    margin: 1rem 0;
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
}

.breadcrumb li {
    margin-right: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb [aria-current="page"] {
    color: var(--text-color);
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-navigation {
    margin-bottom: 2rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-heading {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-link-list {
    list-style: none;
}

.footer-link-list li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #ecf0f1;
}

.footer-link:hover {
    color: white;
}

.footer-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-notice {
    color: #bdc3c7;
}

.back-to-top-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.back-to-top-link:hover {
    background-color: var(--primary-color);
}

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nowrap {
    white-space: nowrap;
}

/* Responsive adjustments for header and footer */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        display: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .footer-extra {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
}