/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #212529; /* Improved contrast */
    background-color: #f8f9fa;
}

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

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #495057; /* Improved contrast */
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem;
    border-radius: 4px;
}

nav a:hover {
    color: #0056b3; /* Better contrast */
    background-color: #e9ecef;
}

nav a:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
    background-color: #e9ecef;
}

/* Main Content */
main {
    min-height: calc(100vh - 160px);
    padding: 3rem 0;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    background: white;
    margin: 2rem 0;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Improved link contrast within content */
.content-section a {
    color: #0056b3;
    text-decoration: underline;
}

.content-section a:hover {
    color: #004085;
}

.content-section a:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
    background-color: #e3f2fd;
}

.content-section h1,
.content-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.content-section h1 {
    font-size: 2.5rem;
    font-weight: 300;
    border-bottom: 2px solid #3498db;
    padding-bottom: 1rem;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin: 1rem 0 1rem 2rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.footer-nav a {
    color: #ced4da; /* Improved contrast */
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.footer-nav a:hover {
    color: white;
    background-color: rgba(255,255,255,0.1);
}

.footer-nav a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    background-color: rgba(255,255,255,0.1);
}

.copyright {
    color: #ced4da; /* Improved contrast */
    font-size: 0.9rem;
}

/* Updated footer for new date format */
.footer-date {
    color: #ced4da;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* Accessibility improvements */
.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;
}

/* Focus improvements for better accessibility */
*:focus {
    outline-color: #0056b3;
    outline-width: 2px;
    outline-style: solid;
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .content-section {
        padding: 2rem;
    }

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

    .footer-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}