/* ========================================
   HOME PAGE SLIDER & GALLERY STYLES
   ======================================== */

/* Hero Slider Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    /* Reduced gap */
    padding: 1.5rem;
    /* Reduced padding */
    align-items: center;
    background: var(--gradient-warm);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    /* Reduced margin */
    box-shadow: var(--shadow-md);
}

.hero-content {
    padding: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--nav-dark-green);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-slider-frame {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg-soft);
}

.hero-slider-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider-frame img.active,
.hero-slider-frame img:first-child {
    opacity: 1;
}

/* News Ticker */
/* Alerts & Updates Grid */
.alerts-section {
    margin-bottom: 2rem;
}

.section-header-compact {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--accent-gold);
}

.section-header-compact h2 {
    font-size: 1.5rem;
    color: var(--nav-dark-green);
    margin-left: 0.5rem;
}

.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.alert-card {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.alert-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.alert-card.priority-high {
    border-left: 4px solid #FF6B6B;
}

.alert-card.priority-medium {
    border-left: 4px solid #FFD166;
}

.alert-card.priority-info {
    border-left: 4px solid #4D96FF;
}

.alert-icon {
    font-size: 1.8rem;
    background: var(--bg-soft);
    padding: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-content h4 {
    font-size: 1rem;
    color: var(--nav-dark-green);
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.alert-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-gold);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--nav-dark-green);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Home Members Section */
.home-members-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--nav-dark-green);
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-gold);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-text:hover {
    color: var(--nav-dark-green);
    transform: translateX(5px);
}

/* Gallery Page Styles */
.gallery-page {
    padding: 2rem;
}

.page-title {
    font-size: 2.5rem;
    color: var(--nav-dark-green);
    margin-bottom: 1rem;
    text-align: center;
}

.page-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    aspect-ratio: 4/3;
    background: var(--bg-soft);
}

.gallery-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.close-lightbox {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    transform: rotate(90deg);
    color: var(--accent-gold);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual {
        height: 300px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .features-section {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-ticker-section {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .ticker-label {
        width: 100%;
        text-align: center;
    }
}

/* Page Container Styles */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.schemes-page,
.services-page,
.members-page,
.contact-page,
.documents-page {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

/* Scheme Cards Grid */
.schemes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.scheme-card {
    background: var(--gradient-warm);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.scheme-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-gold);
}

.scheme-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.scheme-card h3 {
    font-size: 1.4rem;
    color: var(--nav-dark-green);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.scheme-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}