/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fonts & Colors */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    line-height: 1.6;
    padding: 10px;
    text-align: center;
}

/* Header */
header {
    padding: 40px 20px 20px;
}

header h1 {
    font-weight: 700;
    font-size: 2.8em;
}

header .subtitle {
    font-weight: 400;
    font-size: 1.3em;
    margin: 10px 0 20px;
    color: #dcdcdc;
}

header nav a {
    color: #f0f0f0;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
    transition: color 0.3s;
}

header nav a:hover {
    color: #ee0600;
}

/* Menu Horizontal */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    justify-content: center;
}

nav ul li a {
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 600;
    padding: 5px 10px;
}

nav ul li a:hover {
    color: #ee0600;
}

/* Gallery Page */
.gallery {
    padding: 2rem 1rem;
}

.gallery h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.gallery p {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #cccccc;
}

.gallery .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.gallery .grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.gallery .grid img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px 0;
    font-size: 0.9em;
}

footer a {
    color: #f0f0f0;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .gallery h2 {
        font-size: 1.5rem;
    }

    .gallery p {
        font-size: 0.9rem;
    }

    .gallery .grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }

    header nav a {
        display: inline-block;
        margin: 0 5px 5px;
        font-size: 0.9em;
    }

    .gallery .grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
}

/* Hero Image Section */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    width: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 15s ease-in-out;
}

.hero-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.6)
    );
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.hero-text {
    color: #fff;
    padding: 0 20px;
    z-index: 3;
    opacity: 0;
    animation: fadeInText 2s ease-in forwards 1s;
}

.hero-text h2 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-text p {
    font-size: 1.5em;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* About Section (Intro Paragraph) */
.about {
    padding: 2rem 1rem;
    text-align: left; /* Normal flow, paragraph not boxed or centered */
}

/* Article Boxes */
.article-box,
.article-box * {
    text-align: left; /* force left-align for box and all its contents */
    background-color: #1e1e1e;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}


.article-title {
    margin-top: 0;
    margin-bottom: 0.5em;
}

.pub-date {
    font-size: 0.9em;
    color: #aaaaaa;
    margin-bottom: 1em;
}

.read-more-btn, .back-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #333333;
    color: #f0f0f0;
    text-decoration: none;
    border-radius: 4px;
}

.read-more-btn:hover, .back-btn:hover {
    background-color: #555555;
}

/* Responsive Hero Text */
@media (max-width: 768px) {
    .hero-text h2 { font-size: 2em; }
    .hero-text p { font-size: 1em; }
}

@media (max-width: 480px) {
    .hero-text h2 { font-size: 1.5em; }
    .hero-text p { font-size: 0.9em; }
}
