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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #ddd;
    --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-color);
    background-color: var(--bg-color);
}

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

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.header-top {
    text-align: center;
    margin-bottom: 20px;
}

.site-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.site-tagline {
    font-size: 1.2em;
    font-style: italic;
    opacity: 0.9;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--white);
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Alert Banner */
.alert-banner {
    background: var(--accent-color);
    color: var(--white);
    padding: 15px 0;
    text-align: center;
    font-weight: 600;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: 60vh;
}

.page-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
}

.content-section {
    background: var(--white);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8em;
}

.content-section h3 {
    color: var(--secondary-color);
    margin: 20px 0 10px;
    font-size: 1.3em;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Image Styles */
.featured-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.9em;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Info Boxes */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Map Container */
.map-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Links */
.external-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.external-link:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

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

.footer-section p {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9em;
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2em;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-nav a {
        text-align: center;
    }
    
    .page-title {
        font-size: 2em;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5em;
    }
    
    .site-tagline {
        font-size: 1em;
    }
    
    .page-title {
        font-size: 1.5em;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .main-nav ul.mobile-active {
        display: flex;
    }
}

/* Image Modal (Lightbox) */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.image-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    z-index: 2001;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 2002;
}

.modal-close:hover {
    color: #ccc;
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 1rem;
}

.modal-caption h3 {
    margin: 0 0 0.5rem 0;
}

.modal-caption p {
    margin: 0;
    opacity: 0.8;
}

.modal-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.modal-prev,
.modal-next {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-size: 24px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Timeline Item Styling */
.timeline-item {
    border-left: 4px solid var(--secondary-color);
    padding-left: 2rem;
    margin: 2rem 0;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
}

.timeline-item h3 {
    color: var(--secondary-color);
    margin-top: 0;
}