/* news.css — News page specific styles */

/* ============================================
   NAVBAR DROPDOWN
   ============================================ */

.has-dropdown { position: relative; }

.nav-arrow {
    font-size: 0.65rem;
    margin-left: 4px;
    transition: transform 0.25s ease;
    vertical-align: middle;
}

.has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 10000;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 22px;
    color: #1a4a2e !important;
    font-size: 0.9rem;
    font-weight: 400 !important;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #f4f9f3;
    color: #4a7c59 !important;
}

@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: rgba(0,0,0,0.08);
        transition: opacity 0.3s ease, max-height 0.3s ease;
        pointer-events: none;
    }
    .has-dropdown.dropdown-open .dropdown-menu {
        opacity: 1;
        max-height: 400px;
        pointer-events: all;
    }
    .has-dropdown.dropdown-open .nav-arrow { transform: rotate(180deg); }
    .dropdown-menu li a { color: rgba(255,255,255,0.9) !important; padding: 10px 24px; }
    .dropdown-menu li a:hover { background: rgba(255,255,255,0.1); color: #ffffff !important; }
}

/* ============================================
   SECTION LABEL & TITLE
   ============================================ */

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-green);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 3px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--deep-green);
    margin-bottom: var(--space-md);
}

/* ============================================
   HERO
   ============================================ */

.news-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.news-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.03);
    transition: transform 8s ease;
}

.news-hero:hover .news-hero-bg { transform: scale(1); }

.news-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(5, 28, 10, 0.93) 0%,
        rgba(5, 28, 10, 0.62) 35%,
        rgba(5, 28, 10, 0.22) 65%,
        rgba(5, 28, 10, 0.06) 100%
    );
}

.news-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
    max-width: 820px;
}

.news-hero-label {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    color: #ffffff;
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
}

.news-hero-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 18px;
    text-shadow: 0 2px 18px rgba(0,0,0,0.4);
}

.news-hero-content > p {
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    color: rgba(255,255,255,0.88);
    max-width: 620px;
    line-height: 1.72;
    font-weight: 300;
    margin-bottom: 32px;
}

.news-hero-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
}

.news-meta-item i { color: #a8d5a2; }

/* ============================================
   FEATURED NEWS
   ============================================ */

.featured-news { background-color: var(--white); }

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.10);
}

.featured-img {
    overflow: hidden;
    min-height: 340px;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-img img { transform: scale(1.05); }

.featured-content {
    padding: var(--space-lg);
    background-color: var(--off-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date i { color: var(--accent-green); }

.featured-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--deep-green);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: var(--space-md);
}

.featured-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.news-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-green);
    background-color: #e8f5e4;
    padding: 4px 10px;
    border-radius: 20px;
}

.news-tag i { font-size: 0.65rem; }

/* ============================================
   LATEST NEWS GRID
   ============================================ */

.latest-updates { background-color: var(--off-white); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.news-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s;
    border-bottom: 3px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
    border-bottom-color: var(--accent-green);
}

.news-card-img {
    height: 180px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img { transform: scale(1.06); }

.news-card-body { padding: var(--space-md); }

.news-card-body .news-date { margin-bottom: 8px; }

.news-card-body h3 {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 8px;
}

.news-card-body h3 a {
    color: var(--deep-green);
    text-decoration: none;
    transition: color 0.2s;
}

.news-card-body h3 a:hover { color: var(--accent-green); }

.news-card-body p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: var(--space-sm);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--accent-green);
    text-decoration: none;
    transition: gap 0.2s;
}

.read-more:hover { gap: 10px; }

/* ============================================
   COMMUNITY ACTIVITIES
   ============================================ */

.community-activities { background-color: var(--white); }

.activities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.activity-item {
    background-color: var(--off-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s;
    border-bottom: 3px solid transparent;
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.11);
    border-bottom-color: var(--accent-green);
}

.activity-item-img {
    height: 150px;
    overflow: hidden;
}

.activity-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.activity-item:hover .activity-item-img img { transform: scale(1.07); }

.activity-item-body { padding: var(--space-md); }

.activity-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4edcf, #a8d5a2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: background 0.25s;
}

.activity-item:hover .activity-item-icon {
    background: linear-gradient(135deg, var(--accent-green), var(--deep-green));
}

.activity-item-icon i {
    font-size: 0.9rem;
    color: var(--deep-green);
    transition: color 0.25s;
}

.activity-item:hover .activity-item-icon i { color: #ffffff; }

.activity-item-body h3 {
    font-size: 0.98rem;
    color: var(--deep-green);
    margin-bottom: 6px;
}

.activity-item-body p {
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   EVENTS — empty state
   ============================================ */

.events { background-color: var(--off-white); }

.events-empty {
    text-align: center;
    padding: var(--space-lg);
    background-color: var(--white);
    border-radius: 12px;
    border: 2px dashed #d0e8cc;
    max-width: 560px;
    margin: 0 auto;
}

.events-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4edcf, #a8d5a2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
}

.events-empty-icon i {
    font-size: 1.6rem;
    color: var(--deep-green);
}

.events-empty h3 {
    color: var(--deep-green);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.events-empty p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.68;
    margin-bottom: var(--space-md);
}

/* ============================================
   MEDIA RESOURCES
   ============================================ */

.media-resources { background-color: var(--white); }

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.media-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.media-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.media-card:hover img { transform: scale(1.06); }

.media-caption {
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--text-light);
    background-color: var(--off-white);
    font-weight: 500;
}

.media-note {
    font-size: 0.86rem;
    color: var(--text-light);
    margin-top: var(--space-sm);
}

.media-note a {
    color: var(--accent-green);
    font-weight: 600;
    text-decoration: none;
}

.media-note a:hover { text-decoration: underline; }

/* ============================================
   CTA
   ============================================ */

.news-cta {
    background: linear-gradient(135deg, var(--deep-green) 0%, #2d6a4f 100%);
}

.news-cta-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.news-cta-label {
    color: #a8d5a2 !important;
    border-bottom-color: #a8d5a2 !important;
}

.news-cta-text h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #ffffff;
    margin-bottom: var(--space-sm);
}

.news-cta-text p {
    color: rgba(255,255,255,0.82);
    line-height: 1.72;
    margin-bottom: var(--space-md);
}

.news-cta-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn-white {
    background-color: #ffffff;
    color: var(--deep-green);
    border: 2px solid #ffffff;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-white:hover { background-color: transparent; color: #ffffff; }

.btn-outline-white-news {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.55);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-outline-white-news:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #ffffff;
}

.news-cta-image {
    border-radius: 12px;
    overflow: hidden;
    height: 320px;
    box-shadow: 0 20px 56px rgba(0,0,0,0.25);
    border: 4px solid rgba(255,255,255,0.15);
}

.news-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   UTILITY
   ============================================ */

.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-md); }

.section-hidden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.section-visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .activities-grid { grid-template-columns: repeat(2, 1fr); }
    .media-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .featured-card { grid-template-columns: 1fr; }
    .featured-img { min-height: 240px; }
    .news-cta-inner { grid-template-columns: 1fr; }
    .news-cta-image { display: none; }
}

@media (max-width: 768px) {
    .news-hero { height: 100svh; }
    .news-hero-content { padding-bottom: 80px; }
    .news-hero-meta { flex-direction: column; gap: 10px; }
    .news-grid { grid-template-columns: 1fr; }
    .activities-grid { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns: 1fr 1fr; }
    .news-cta-buttons { flex-direction: column; }
    .btn-white,
    .btn-outline-white-news { width: 100%; max-width: 280px; text-align: center; }
}
