/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --danger-color: #e74c3c;
    --success-color: #27ae60;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #bdc3c7;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover {
    background-color: var(--light-bg);
    border-bottom-color: var(--accent-color);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Main Content */
main {
    padding: 2rem 0;
}

.section {
    background-color: var(--white);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
}

.content-box {
    padding: 1rem 0;
}

/* Key Facts Box */
.key-facts {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid var(--accent-color);
    margin-top: 1rem;
}

.key-facts h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.key-facts ul {
    list-style: none;
}

.key-facts ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.key-facts ul li:last-child {
    border-bottom: none;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 50px;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--accent-color);
}

.timeline-date {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 5px;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-item {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.photo-item img:hover {
    opacity: 0.9;
}

.photo-caption {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-align: center;
}

/* Email Communications */
.email-list {
    margin-top: 1.5rem;
}

.email-item {
    background-color: var(--light-bg);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
}

.email-header {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.email-subject {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.email-body {
    margin-top: 1rem;
}

.email-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.document-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.document-link:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Document Grid */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.document-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.document-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.document-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.document-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

/* Contact Section */
.contact-info,
.city-info {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.city-info {
    border-left: 4px solid var(--danger-color);
}

.city-info h3 {
    color: var(--danger-color);
    margin-bottom: 1rem;
}

.contact-info p,
.city-info p {
    padding: 0.5rem 0;
}

/* Notes */
.note {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 5px;
    font-style: italic;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Modal for Images */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header .subtitle {
        font-size: 1rem;
    }

    nav .container {
        display: block;
        padding: 0;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        top: 0;
        left: 0;
        margin: 0.5rem 1rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        margin: 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        border-bottom: 1px solid var(--border-color);
        border-right: none;
        padding: 0.875rem 1rem;
    }

    .section {
        padding: 1.5rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .photo-gallery,
    .document-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item::before {
        left: -28px;
    }
}

@media print {
    nav,
    footer {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}
