/* Root Variables */
:root {
    --primary-green: #2ecc71;
    --secondary-green: #27ae60;
    --dark-green: #1a3c34;
    --light-green: #e8f5e9;
    --gradient-1: linear-gradient(135deg, #2ecc71, #27ae60);
    --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #f5f6fa;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-1) url('https://via.placeholder.com/1920x600?text=News+Background') no-repeat center/cover;
    position: relative;
    padding: 8rem 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.9);
    /* backdrop-filter: blur(10px); */ /* Removed: Not widely supported in 2020-era browsers */
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-body {
    padding: 2rem; /* Increased from 1.5rem for better spacing */
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Row Gaps */
.row {
    margin-right: -10px;
    margin-left: -10px;
}

.row > [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

/* Featured News */
.featured-news {
    border-left: 6px solid var(--primary-green);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    position: relative;
}

.featured-news::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--gradient-1);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(30px, -30px);
}

/* News Date */
.news-date {
    background: var(--light-green);
    color: var(--dark-green);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* News Icon */
.news-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover .news-icon {
    transform: scale(1.1);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--gradient-1);
    color: white;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.newsletter-section .form-control {
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.newsletter-section .form-control:focus {
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.3);
    border-color: var(--primary-green);
}

.newsletter-section .btn {
    border-radius: 25px;
    background: white;
    color: var(--primary-green);
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Stats Section */
.stats-item {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.stats-item:hover .stats-number {
    transform: scale(1.1);
}

.stats-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Calendar Section */
.calendar-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-left: 5px solid var(--secondary-green);
    position: relative;
}

.calendar-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    opacity: 0.1;
    border-radius: 50%;
}

.calendar-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.calendar-item:last-child {
    border-bottom: none;
}

.calendar-item:hover {
    background: var(--light-green);
    transform: translateX(5px);
}

.calendar-date {
    font-weight: 700;
    color: var(--primary-green);
    min-width: 120px;
    display: inline-block;
}

/* Section Headings */
.section-heading {
    position: relative;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-green);
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-1);
    border-radius: 3px;
}

/* Highlight Badge */
.highlight-badge {
    background: var(--gradient-1);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* Filter Buttons */
.filter-btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover,
.filter-btn:focus {
    background: var(--light-green);
    color: var(--primary-green);
    outline: none;
}

.filter-btn:focus {
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.3);
}

/* Carousel */

.carousel-item img {
    object-fit: cover;
    height: 500px;
    width: 100%;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.carousel-item.active img {
    transform: scale(1.05);
}

.carousel-indicators li {
    background-color: var(--primary-green);
}

.carousel-indicators .active {
    background-color: var(--secondary-green);
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-green);
}

/* Buttons */
.btn-success {
    background: var(--gradient-1);
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-outline-success {
    border-color: var(--primary-green);
    color: var(--primary-green);
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background: var(--light-green);
    color: var(--primary-green);
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.3);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Accessibility */
[aria-pressed="true"] {
    background: var(--primary-green);
    color: white;
}

[aria-pressed="false"]:hover {
    background: var(--light-green);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .carousel-item img {
        height: 200px;
    }

    .news-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .stats-number {
        font-size: 2rem;
    }

    .calendar-date {
        min-width: 100px;
    }
}

@media (max-width: 576px) {
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        margin: 0.25rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .row {
        margin-right: -5px;
        margin-left: -5px;
    }

    .row > [class*="col-"] {
        padding-right: 5px;
        padding-left: 5px;
    }
}