/* =====================================================
   STARK GALLERY UPGRADE
===================================================== */

:root {
    --stark-green: #35823F;
    --stark-green-light: #35823F;
    --stark-gold: #F2D202;
    --stark-white: #FFFFFF;
    --stark-light: #F9F9F8;
    --stark-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}


/* ================= MEDIA HUB HERO UPGRADE ================= */

.media-hub-hero {
    position: relative;
    padding: 40px 24px 120px;
    /* Using your brand green with a slightly more 'newsroom' depth */
    background: linear-gradient( to bottom, rgba(20, 83, 45, 0.92), rgba(10, 33, 20, 0.95)), url('../assets/gallery/hero.jpg') center/cover no-repeat fixed;
    text-align: center;
    overflow: hidden;
}

.hero-eyebrow {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #F2D202;
    /* Brand Gold */
    margin-bottom: 20px;
    font-weight: 800;
}

.media-hub-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 8vw, 72px);
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1;
}

.media-hub-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 50px;
    font-weight: 500;
}


/* --- THE STATS BAR --- */

.hero-stats-bar {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(242, 210, 2, 0.2);
    padding: 30px 60px;
    border-radius: 4px;
    gap: 40px;
}

.stat-item {
    text-align: left;
}

.stat-count {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #F2D202;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(242, 210, 2, 0.2);
}


/* --- RESPONSIVE FIXES --- */

@media (max-width: 768px) {
    .hero-stats-bar {
        flex-direction: column;
        padding: 30px;
        width: 100%;
        gap: 20px;
    }
    .stat-divider {
        width: 60%;
        height: 1px;
    }
    .stat-item {
        text-align: center;
    }
}


/* --- NEWS & UPDATES STYLING --- */

.news-updates-section {
    padding: 40px 0;
    background: #fff;
}

.news-header {
    margin-bottom: 60px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}


/* --- FEATURED CARD --- */

.news-focus-card {
    background: #fdfdfc;
    border: 1px solid rgba(20, 83, 45, 0.05);
    transition: 0.4s;
}

.news-image-wrap {
    position: relative;
    overflow: hidden;
}

.news-image-wrap img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: 0.6s;
}

.news-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #35823F;
    color: #F2D202;
    padding: 6px 15px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.news-tag.highlight {
    background: #F2D202;
    color: #35823F;
}

.news-content {
    padding: 40px;
}

.news-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #35823F;
    margin-bottom: 20px;
}


/* --- THE ANNOUNCEMENT PLAQUE (In place of an image) --- */

.announcement-plaque {
    height: 400px;
    background: #35823F;
    /* Deep Brand Green */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.announcement-plaque::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border: 1px solid rgba(242, 210, 2, 0.3);
    /* Delicate Gold Frame */
}

.plaque-content {
    text-align: center;
    color: #F2D202;
    /* Gold */
    z-index: 2;
}

.plaque-eyebrow {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.plaque-location {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 20px;
}

.plaque-divider {
    width: 40px;
    height: 2px;
    background: #F2D202;
    margin: 0 auto 20px;
}

.plaque-year {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    opacity: 0.9;
}


/* --- PROGRESS TRACKER POLISH --- */

.status-label-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.status-text {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: #35823F;
}

.status-percentage {
    font-size: 12px;
    font-family: 'Playfair Display', serif;
    color: #35823F;
    font-weight: 700;
}

.status-track {
    height: 2px;
    /* Very thin, elegant line */
    background: rgba(20, 83, 45, 0.1);
    margin-bottom: 15px;
}

.status-fill {
    width: 75%;
    height: 100%;
    background: #F2D202;
}

.status-note {
    font-size: 13px;
    color: #888;
    margin: 0;
}


/* --- SIDEBAR FEED --- */

.news-feed-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feed-item {
    display: flex;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feed-item .news-tag {
    position: static;
    height: fit-content;
    white-space: nowrap;
}

.feed-text h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #35823F;
    margin: 5px 0;
}

.feed-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.btn-all-news {
    text-align: center;
    padding: 15px;
    border: 1px solid #35823F;
    color: #35823F;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    transition: 0.3s;
}

.btn-all-news:hover {
    background: #35823F;
    color: #fff;
}


/* --- RESPONSIVE --- */

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}


/* --- FILTER SYSTEM --- */

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 80px 0 50px;
}

.filter-btn {
    padding: 12px 28px;
    border-radius: 12px;
    border: 1px solid var(--stark-green);
    background: transparent;
    color: var(--stark-green);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--stark-transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--stark-green);
    color: var(--stark-gold);
    border-color: var(--stark-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(20, 83, 45, 0.15);
}


/* --- GALLERY LAYOUT --- */

.gallery-section {
    padding: 40px 0;
    background: #ffffff;
}

.filter-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-filters {
    display: inline-flex;
    background: #f4f7f5;
    padding: 8px;
    border-radius: 20px;
    gap: 5px;
    border: 1px solid #e0e6e1;
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 12px 24px;
    border-radius: 15px;
    font-weight: 700;
    color: #35823F;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn.active {
    background: #35823F;
    color: #F2D202;
    box-shadow: 0 10px 20px rgba(20, 83, 45, 0.15);
}


/* --- THE MOSAIC GRID --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 320px;
    grid-auto-flow: dense;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}


/* Bento Logic: Randomized sizes for desktop */

@media (min-width: 1024px) {
    .gallery-item:nth-child(3n) {
        grid-column: span 2;
    }
    .gallery-item:nth-child(5n) {
        grid-row: span 2;
    }
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #0a2e19;
    cursor: zoom-in;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease, filter 0.6s ease;
}


/* --- CINEMATIC HOVER --- */

.gallery-item figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 83, 45, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.gallery-item figcaption span {
    color: #F2D202;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #F2D202;
    padding: 10px 20px;
    border-radius: 50px;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.gallery-item:hover figcaption {
    opacity: 1;
}

.gallery-item:hover figcaption span {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(1deg);
    filter: grayscale(40%) brightness(50%);
}


/* --- LIGHTBOX STYLING --- */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 46, 25, 0.98);
    display: none;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 40px;
    backdrop-filter: blur(15px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.lightbox-content {
    position: relative;
    max-width: 1100px;
    width: 100%;
    text-align: center;
}

.lightbox-img {
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(242, 210, 2, 0.3);
}

.lightbox-caption {
    color: #F2D202;
    margin-top: 25px;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 60px;
    cursor: pointer;
    line-height: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* --- CAREERS STYLING --- */

.stark-careers {
    padding: 40px 0;
    background: var(--stark-white);
}

.careers-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.hiring-focus ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.hiring-focus li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--stark-green);
}

.hiring-focus i {
    color: var(--stark-gold);
}


/* --- FORM STYLING --- */

.application-form-wrapper {
    background: var(--stark-white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--stark-shadow);
    border: 1px solid var(--stark-border);
}

.stark-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stark-form input,
.stark-form select,
.stark-form textarea {
    padding: 15px;
    border: 1px solid var(--stark-border);
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--stark-light);
}

.file-upload {
    padding: 20px;
    border: 2px dashed var(--stark-gold);
    border-radius: 8px;
    text-align: center;
    background: var(--stark-gold-soft);
}


/* Responsive */

@media (max-width: 992px) {
    .careers-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* ================= FAQ: STARK BRANDING ================= */

.stark-faq {
    padding: 40px 0;
    background: var(--stark-white);
    /* Keeps the page clean */
}

.faq-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.faq-intro {
    font-size: 17px;
    color: var(--stark-text-muted);
    margin-top: 15px;
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--stark-light);
    margin-bottom: 20px;
    border-radius: 20px;
    border: 1px solid var(--stark-border);
    transition: all 0.3s ease;
}

.faq-item[open] {
    background: var(--stark-white);
    border-color: var(--stark-gold);
    box-shadow: var(--stark-shadow);
}

.faq-item summary {
    padding: 30px;
    font-size: 18px;
    font-weight: 700;
    color: var(--stark-green);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Custom Icon for Summary */

.faq-item summary::after {
    content: '+';
    width: 32px;
    height: 32px;
    background: var(--stark-gold-soft);
    color: var(--stark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
    background: var(--stark-green);
    color: var(--stark-white);
}

.faq-answer {
    padding: 0 30px 35px;
    color: var(--stark-text-muted);
    line-height: 1.8;
    font-size: 16px;
}


/* Remove default triangle in Chrome/Safari */

summary::-webkit-details-marker {
    display: none;
}


/* --- FINAL CTA --- */

.gallery-cta {
    margin-top: 100px;
    padding: 40px 24px;
    background: var(--stark-green);
    border-radius: 40px 40px 0 0;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .gallery-filters {
        gap: 8px;
    }
    .filter-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}