/* Base container */
.blog-content {
    padding: 20px;
    background-color: #000;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
}

/* Title */
.blog-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
}

/* Hero Section */
.hero-images {
    display: flex;
    width: 100%;
    max-height: 600px;
    height: auto;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 7;
}

.hero-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    bottom: 10px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
}

.hero-date {
    font-size: 0.9rem;
    color: #ccc;
}

/* Description */
.blog-description {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 30px;
    text-align: justify;
}

/* Section title */
.blog-section-title {
    color: #00ff88;
    font-size: 1.5rem;
    border-bottom: 2px solid #00ff88;
    display: inline-block;
    margin: 20px 0;
    padding-left: 0;
    border-left: 0;
}


/* Image grid */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blog-image {
    width: calc(33.33% - 8px);
    aspect-ratio: 3 / 2;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
}

.blog-image:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

.lightbox .close,
.lightbox .nav {
    position: absolute;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}

.lightbox .close {
    top: 20px;
    right: 30px;
}

.lightbox .nav.left {
    left: 30px;
}

.lightbox .nav.right {
    right: 30px;
}

/* General Text Elements */
h1 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: #00ff88;
}

h2 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid #00ff88;
    padding-left: 8px;
    color: #00ff88;
}

p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    text-align: justify;
}

ul {
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
}

li {
    margin-bottom: 0.4rem;
    color: #eee;
    font-size: 0.95rem;
    line-height: 1.5;
}

strong {
    color: #fff;
    font-weight: bold;
}

.blog-content iframe {
    width: 100%;
    max-width: 720px; /* Limit width on large screens */
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    display: block;
}

/* ------------------ */
/* RESPONSIVE DESIGN  */
/* ------------------ */
@media (max-width: 768px) {
    .blog-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .blog-description {
        font-size: 0.95rem;
        text-align: left;
    }

    .hero-overlay {
        bottom: 8px;
        left: 10px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .blog-section-title {
        font-size: 1.3rem;
    }

    .blog-image {
        width: calc(50% - 6px);
    }

    .lightbox .close,
    .lightbox .nav {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.3rem;
    }

    .blog-description {
        font-size: 0.9rem;
    }

    .blog-image {
        width: 100%;
    }

    .hero-overlay {
        bottom: 6px;
        left: 8px;
        font-size: 0.75rem;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 70vh;
    }

    .lightbox .close,
    .lightbox .nav {
        font-size: 1.5rem;
    }
}
