* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* HEADER STYLES - Original style.css takes priority */
.header {
    background: linear-gradient(135deg, #1b4332 0%, #40916c 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
}

/* Adjust padding for subpage headers */
.header:has(.header-content) {
    padding: 1.5rem 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 200px;
    background: url('headerimage.jpg') center/cover no-repeat;
    mask: radial-gradient(ellipse 500px 150px at center, black 60%, transparent 75%);
    -webkit-mask: radial-gradient(ellipse 500px 150px at center, black 40%, transparent 75%);
    z-index: -1;
}

/* Adjust background for subpage headers (with .header-content) */
.header:has(.header-content)::before {
    height: 120px;
    width: 600px;
    mask: radial-gradient(ellipse 400px 100px at center, black 50%, transparent 70%);
    -webkit-mask: radial-gradient(ellipse 400px 100px at center, black 30%, transparent 70%);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(248, 249, 250, 0.3));
    pointer-events: none;
}

.header h1 {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow:
        2px 2px 4px rgba(116, 116, 116, 0.21),
        0 0 15px rgba(120, 120, 120, 0.765);
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, #f0f8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.5));
    position: relative;
    z-index: 1;
}

.header p {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* HEADER CONTENT - From HTML file but styled to match original header */
.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 1;
    position: relative;
    z-index: 1;
    text-shadow:
        2px 2px 4px rgba(116, 116, 116, 0.21),
        0 0 15px rgba(120, 120, 120, 0.765);
    letter-spacing: 2px;
}

.site-title a {
    color: white;
    text-decoration: none;
    border-bottom: 3px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    padding-bottom: 4px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ffffff, #f0f8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.5));
    display: inline-block;
}

.site-title a:hover {
    border-bottom-color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

/* CONTAINER STYLES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* MAP SECTION STYLES */
.map-section {
    margin: 2rem 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.map-header {
    background: #34495e;
    color: white;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

#map {
    height: 400px;
    width: 100%;
}

/* NEWS SECTION STYLES */
.news-section {
    margin: 2rem 0;
}

.section-title {
    background: white;
    padding: 1.5rem;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    border-left: 4px solid #3498db;
}

.news-container {
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 200px;
}

.news-post {
    padding: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.3s ease;
}

.news-post:hover {
    background-color: #f8f9fa;
}

.news-post:last-child {
    border-bottom: none;
}

.post-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.post-content {
    color: #555;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto;
}

.post-meta {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.read-more {
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.read-more-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

/* LOADING STATES */
.loading {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-style: italic;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.no-more-posts {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-style: italic;
    border-top: 1px solid #ecf0f1;
}

/* ARTICLE STYLES - From HTML file */
.article-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #ecf0f1;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.article-location {
    font-size: 1rem;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-byline {
    font-size: 1rem;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.article-content {
    padding: 1rem 2rem 2rem 2rem;
}

.content-paragraph {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
    line-height: 1.7;
}

.content-paragraph:last-child {
    margin-bottom: 0;
}

/* KEY DETAILS SECTION */
.key-details {
    background: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.key-details-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 600;
    color: #2c3e50;
}

/* HIGHLIGHT BOXES */
.highlight {
    background: linear-gradient(120deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    padding: 1.5rem;
    border-left: 4px solid #3498db;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

/* IMAGE GALLERY STYLES */
.image-gallery {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.image-gallery img {
    width: calc(50% - 0.5rem);
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.02);
}

/* ARTICLE IMAGE STYLES */
.article-image {
    margin: 2rem 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

.image-caption {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    font-style: italic;
    background: #f8f9fa;
    border-top: 1px solid #ecf0f1;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    #map {
        height: 300px;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-container {
        margin: 1rem;
        border-radius: 0;
    }

    .article-header,
    .article-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }



    /* Responsive adjustments for images */
    @media (max-width: 768px) {
        .article-image {
            margin: 1.5rem 0;
        }

        .image-caption {
            padding: 0.75rem 1rem;
            font-size: 0.85rem;
        }
    }
}

@media (max-width: 768px) {
    .image-gallery {
        flex-direction: column;
    }

    .image-gallery img {
        width: 100%;
    }
}