/* =========================================
   RAMSETU JAN KALYAN FOUNDATION CSS
========================================= */

/* ==========================================================================
   Hero Slider Core & Variables
   ========================================================================== */
:root {
    --primary-color: #0d4b68;    /* Deep Blue from logo */
    --secondary-color: #1b8a43;  /* Vibrant Green from logo */
    --accent-color: #fca311;     /* Sun-orange accent */
    --text-light: #ffffff;
    --font-main: 'Poppins', sans-serif; /* Recommended clean font */
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh; /* Falls back to 85% viewport height */
    min-height: 500px;
    overflow: hidden;
    font-family: var(--font-main);
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Slide Structure & Overlay
   ========================================================================== */
.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* Vertically centers the content */
    justify-content: flex-start;
    box-sizing: border-box;
}

/* Slide background image configuration */
.swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Dark gradient overlay to make text highly legible */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(13, 75, 104, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

/* ==========================================================================
   Typography & Layout Content
   ========================================================================== */
.hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 650px;
    padding: 0 10%;
    box-sizing: border-box;
}

/* Small tag/badge styled line */
.hero-content span {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* ==========================================================================
   Interactive Buttons
   ========================================================================== */
.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btns a {
    text-decoration: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    text-align: center;
}

/* Primary "Donate Now" Button */
.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(27, 138, 67, 0.3);
}

.btn-primary:hover {
    background-color: #146932; /* Slightly darker green */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(27, 138, 67, 0.5);
}

/* Outline "Learn More" Button */
.btn-outline {
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Swiper Bullet Customization matching the theme */
.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
    width: 25px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Interactive Text Animations (Triggers on active Swiper Slide)
   ========================================================================== */
.swiper-slide-active .hero-content span {
    animation: fadeInUp 0.6s ease forwards 0.2s;
    opacity: 0;
}

.swiper-slide-active .hero-content h1 {
    animation: fadeInUp 0.6s ease forwards 0.4s;
    opacity: 0;
}

.swiper-slide-active .hero-content p {
    animation: fadeInUp 0.6s ease forwards 0.6s;
    opacity: 0;
}

.swiper-slide-active .hero-btns {
    animation: fadeInUp 0.6s ease forwards 0.8s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Breakpoints (Mobile First to Desktop adjustments)
   ========================================================================== */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content {
        max-width: 80%;
        padding: 0 5%;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 75vh;
    }
    .hero-content {
        max-width: 100%;
        padding: 0 20px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .hero-btns a {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 65vh;
        min-height: 420px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }
    .hero-btns a {
        width: 100%; /* Full width buttons on tiny mobile views */
    }
}
/* =========================================
   ABOUT SECTION
========================================= */

/* ==========================================================================
   About Section Settings & Root Palette
   ========================================================================== */
:root {
    --primary-color: #0d4b68;       /* Deep Blue */
    --secondary-color: #1b8a43;     /* Vibrant Green */
    --accent-color: #fca311;        /* Sun Orange */
    --text-dark: #222222;
    --text-muted: #555555;
    --bg-light: #f9fbfd;            /* Soft blue-gray tinted background */
    --font-main: 'Poppins', sans-serif;
}

.about-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    font-family: var(--font-main);
    overflow: hidden;
}

/* Global Container Utility */
.about-section .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==========================================================================
   2-Column Grid Layout
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    align-items: center;
}

/* ==========================================================================
   Left Side: Image & Experience Box
   ========================================================================== */
.about-image {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Base styling for the uploaded image */
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(13, 75, 104, 0.15);
    display: block;
    transition: transform 0.4s ease;
}

/* Subtle image zoom interaction on section hover */
.about-image:hover img {
    transform: scale(1.02);
}

/* Overlapping Experience Box badge */
.experience-box {
    position: absolute;
    bottom: -25px;
    right: -25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #083247 100%);
    color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(13, 75, 104, 0.3);
    min-width: 140px;
    z-index: 10;
    animation: floatBadge 4s ease-in-out infinite;
}

.experience-box h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--accent-color);
    line-height: 1;
}

.experience-box p {
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    opacity: 0.9;
}

/* Floating animation for the badge */
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==========================================================================
   Right Side: Typography Content
   ========================================================================== */
.about-content .sub-heading {
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--secondary-color);
    display: inline-block;
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
}

/* Small line accent next to the sub-heading */
.about-content .sub-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--secondary-color);
}

.about-content h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

/* ==========================================================================
   Interactive Feature Boxes Grid
   ========================================================================== */
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* Icon configuration */
.feature-box i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.feature-box span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Interactive Box Hover States */
.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(13, 75, 104, 0.1);
    border-left-color: var(--accent-color);
    background-color: var(--primary-color);
}

.feature-box:hover span {
    color: #ffffff;
}

.feature-box:hover i {
    color: var(--accent-color);
    transform: rotate(-10deg) scale(1.1);
}

/* ==========================================================================
   Call To Action Button (Read More)
   ========================================================================== */
.about-section .btn-primary {
    display: inline-block;
    text-decoration: none;
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(27, 138, 67, 0.25);
    transition: all 0.3s ease-in-out;
}

.about-section .btn-primary:hover {
    background-color: #146932;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(27, 138, 67, 0.4);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet Optimization */
@media (max-width: 991px) {
    .about-grid {
        gap: 40px;
    }
    .about-content h2 {
        font-size: 2rem;
    }
    .experience-box {
        right: -10px;
        bottom: -10px;
        padding: 15px;
        min-width: 110px;
    }
    .experience-box h2 {
        font-size: 2rem;
    }
}

/* Mobile Layout Shift (Stacks 2 columns into 1) */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    .about-grid {
        grid-template-columns: 1fr; /* Switch grid to single column */
        gap: 50px;
    }
    .about-image {
        max-width: 500px;
        margin: 0 auto; /* Centers image on mobile views */
    }
    .experience-box {
        right: 15px;
        bottom: -20px;
    }
}

/* Micro-screen optimization */
@media (max-width: 480px) {
    .about-features {
        grid-template-columns: 1fr; /* Feature items list vertically */
        gap: 15px;
    }
    .about-content h2 {
        font-size: 1.75rem;
    }
    .about-section .btn-primary {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
/* =========================================
   SERVICES
========================================= */

/* ==========================================================================
   Counter Section Core Settings
   ========================================================================== */
:root {
    --primary-color: #0d4b68;       /* Deep Blue */
    --secondary-color: #1b8a43;     /* Vibrant Green */
    --accent-color: #fca311;        /* Sun Orange */
    --text-dark: #222222;
    --text-muted: #666666;
    --bg-light: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

.counter-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    font-family: var(--font-main);
}

/* Container Utility */
.counter-section .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==========================================================================
   Responsive 4-Column Grid
   ========================================================================== */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

/* ==========================================================================
   Counter Card & Interactive States
   ========================================================================== */
.counter-card {
    background: #ffffff;
    padding: 35px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(13, 75, 104, 0.05);
    border: 1px solid rgba(13, 75, 104, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

/* Hidden bottom decorative accent border that slides up on hover */
.counter-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

/* Interactive Card Hover Styles */
.counter-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(13, 75, 104, 0.12);
    border-color: rgba(13, 75, 104, 0.1);
}

.counter-card:hover::before {
    transform: scaleX(1);
}

/* ==========================================================================
   Card Elements (Icons, Typography)
   ========================================================================== */
/* Icon Styling */
.counter-card i {
    font-size: 2.2rem;
    color: var(--primary-color);
    background-color: rgba(13, 75, 104, 0.06);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.4s ease;
}

/* Interactive Icon Pop on Hover */
.counter-card:hover i {
    color: #ffffff;
    background-color: var(--secondary-color);
    transform: rotateY(360deg);
}

/* Big Counting Number */
.counter-card h2.count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

/* Plus sign styling after the numbers if you want to add them later */
.counter-card h2.count::after {
    content: '+';
    font-size: 2rem;
    color: var(--accent-color);
    margin-left: 2px;
}

/* Label text */
.counter-card p {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
    text-transform: capitalize;
}

/* ==========================================================================
   Responsive Media Queries (Responsive Breakpoints)
   ========================================================================== */

/* Medium Devices / Tablets (2 columns per row) */
@media (max-width: 991px) {
    .counter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .counter-card {
        padding: 30px 15px;
    }
    .counter-card h2.count {
        font-size: 2.2rem;
    }
}

/* Small Mobile Screens (1 column per row) */
@media (max-width: 480px) {
    .counter-section {
        padding: 40px 0;
    }
    .counter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .counter-card i {
        font-size: 1.8rem;
        width: 60px;
        height: 60px;
        line-height: 60px;
        margin-bottom: 15px;
    }
    .counter-card h2.count {
        font-size: 2rem;
    }
}
/* ==========================================================================
   Services Section Base Settings
   ========================================================================== */
:root {
    --primary-color: #0d4b68;       /* Deep Blue */
    --secondary-color: #1b8a43;     /* Vibrant Green */
    --accent-color: #fca311;        /* Sun Orange */
    --text-dark: #222222;
    --text-muted: #666666;
    --bg-light: #f4f7f6;            /* Soft light tint */
    --font-main: 'Poppins', sans-serif;
}

.services-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    font-family: var(--font-main);
}

/* Global Container Utility */
.services-section .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==========================================================================
   Section Title (Centered Header Layout)
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title span {
    font-size: 0.95rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-bottom: 15px;
}

/* Center line decorator underneath the section title */
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* ==========================================================================
   Services 4-Column Responsive Grid Layout
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

/* ==========================================================================
   Service Card Design & Dynamic Interactions
   ========================================================================== */
.service-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 75, 104, 0.05);
    height: 380px; /* Fixed height provides structural layout consistency */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* Base style for card background images */
.service-card > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.5s ease;
}

/* Dark gradient mask protecting text contrast over images */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 75, 104, 0.4) 0%, rgba(13, 75, 104, 0.95) 100%);
    z-index: -1;
    transition: background 0.3s ease;
}

/* Dynamic Card Hover Transitions */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(13, 75, 104, 0.2);
}

.service-card:hover > img {
    transform: scale(1.1); /* Zoom image on hover */
}

.service-card:hover::before {
    /* Changes overlay blend towards your secondary green theme on hover */
    background: linear-gradient(to bottom, rgba(27, 138, 67, 0.5) 0%, rgba(13, 75, 104, 0.98) 100%);
}

/* ==========================================================================
   Card Internal Text Elements
   ========================================================================== */
.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 25px;
    box-sizing: border-box;
    color: #ffffff;
    transition: transform 0.3s ease;
}

/* Icon Design */
.service-content i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-content i {
    transform: scale(1.15) translateY(-2px);
}

.service-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

/* Description paragraph settings */
.service-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-content p {
    opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Landscape Tablets & Smaller Screens (2 Columns per row) */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .service-card {
        height: 350px;
    }
    .section-title h2 {
        font-size: 2.2rem;
    }
}

/* Mobile Screens (Stacking to single column layout) */
@media (max-width: 600px) {
    .services-section {
        padding: 60px 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-card {
        max-width: 400px;
        margin: 0 auto; /* Center individual cards cleanly on small viewports */
        width: 100%;
        height: 340px;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   Gallery Section Base Settings
   ========================================================================== */
:root {
    --primary-color: #0d4b68;       /* Deep Blue */
    --secondary-color: #1b8a43;     /* Vibrant Green */
    --accent-color: #fca311;        /* Sun Orange */
    --text-dark: #222222;
    --bg-light: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

.gallery-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    font-family: var(--font-main);
}

/* Global Container Utility */
.gallery-section .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==========================================================================
   Section Title (Centered Header Layout)
   ========================================================================== */
.gallery-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-section .section-title span {
    font-size: 0.95rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.gallery-section .section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-bottom: 15px;
}

/* Center line decoration */
.gallery-section .section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* ==========================================================================
   Gallery Responsive Grid Layout (Displays up to 8 cards fluidly)
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 Columns on standard desktop */
    gap: 20px;
    margin-bottom: 45px;
}

/* ==========================================================================
   Gallery Item Card & Interactive States
   ========================================================================== */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 280px; /* Fixed height for clean grid line structure */
    box-shadow: 0 8px 25px rgba(13, 75, 104, 0.06);
    background-color: #f0f0f0;
    cursor: pointer;
}

/* Gallery Base Image Styling */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover State Image Effect */
.gallery-item:hover img {
    transform: scale(1.1) rotate(1deg); /* Slight zoom and twist interaction */
}

/* ==========================================================================
   Slide-Up Overlay Interactive Effect
   ========================================================================== */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 75, 104, 0.9) 0%, rgba(27, 138, 67, 0.4) 100%);
    display: flex;
    align-items: flex-end; /* Keeps text placed at the bottom */
    padding: 25px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(15px); /* Initially offset downwards */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover State Triggering Overlay */
.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Image Title Typography */
.gallery-overlay h4 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    transform: translateY(10px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-overlay h4 {
    transform: translateY(0);
}

/* ==========================================================================
   Bottom Center Call To Action Button (View Full Gallery)
   ========================================================================== */
.gallery-btn {
    text-align: center;
}

.gallery-btn .btn-primary {
    display: inline-block;
    text-decoration: none;
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 14px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(27, 138, 67, 0.2);
    transition: all 0.3s ease-in-out;
}

.gallery-btn .btn-primary:hover {
    background-color: #146932; /* Rich darker green */
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(27, 138, 67, 0.35);
}

/* ==========================================================================
   Responsive Media Queries (Responsive Grid Adaptation)
   ========================================================================== */

/* Large Tablets & Medium Screen Monitors */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* Switch to 3 Columns */
        gap: 15px;
    }
    .gallery-item {
        height: 250px;
    }
}

/* Portrait Tablets & Large Mobile Layouts */
@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* Switch to 2 Columns */
    }
    .gallery-section .section-title h2 {
        font-size: 2rem;
    }
}

/* Tiny Mobile Screen Device Frameworks */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 Card per row stacked vertically */
        gap: 15px;
    }
    .gallery-item {
        height: 240px;
        max-width: 360px;
        margin: 0 auto; /* Centers the cards cleanly on smartphones */
        width: 100%;
    }
    .gallery-section .section-title h2 {
        font-size: 1.75rem;
    }
    .gallery-btn .btn-primary {
        width: 100%; /* Full width interactive action button on mobile screens */
        box-sizing: border-box;
    }
}

/* ==========================================================================
   Events Section Settings & Variables
   ========================================================================== */
:root {
    --primary-color: #0d4b68;       /* Deep Blue */
    --secondary-color: #1b8a43;     /* Vibrant Green */
    --accent-color: #fca311;        /* Sun Orange */
    --text-dark: #222222;
    --text-muted: #666666;
    --bg-light: #f8fafc;            /* Clean light grey tint */
    --font-main: 'Poppins', sans-serif;
}

.events-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    font-family: var(--font-main);
}

/* Global Container Utility */
.events-section .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==========================================================================
   Section Title Layout
   ========================================================================== */
.events-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.events-section .section-title span {
    font-size: 0.95rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.events-section .section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-bottom: 15px;
}

/* Center accent line beneath header */
.events-section .section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* ==========================================================================
   Events Responsive Grid (Displays up to 6 cards symmetrically)
   ========================================================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 Columns on standard monitors */
    gap: 30px;
}

/* ==========================================================================
   Event Card Container & Hover Mechanics
   ========================================================================== */
.event-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 75, 104, 0.04);
    border: 1px solid rgba(13, 75, 104, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Interactive Card Shadow Shift */
.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(13, 75, 104, 0.12);
    border-color: rgba(13, 75, 104, 0.08);
}

/* ==========================================================================
   Card Image Wrapper
   ========================================================================== */
.event-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #eaeaea;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Subtle image scale transition on hover */
.event-card:hover .event-image img {
    transform: scale(1.08);
}

/* ==========================================================================
   Card Body Content & Details
   ========================================================================== */
.event-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Keeps footer links lined up perfectly if descriptions vary */
}

/* Calendar Badge */
.event-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    background-color: rgba(27, 138, 67, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 15px;
}

.event-date i {
    color: var(--accent-color);
}

/* Title Header */
.event-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
    /* Limit heading lines to 2 to maintain structured dashboard looks */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description Details */
.event-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* ==========================================================================
   Interactive Action Link ("Read More")
   ========================================================================== */
.event-btn {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto; /* Ensures link snaps to bottom if descriptions are shorter */
    transition: color 0.3s ease;
}

/* Right arrow marker appended dynamically via CSS */
.event-btn::after {
    content: '\2192'; /* Unicode right arrow symbol */
    margin-left: 5px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

/* Link Interactions */
.event-btn:hover {
    color: var(--secondary-color);
}

.event-card:hover .event-btn::after {
    transform: translateX(5px); /* Arrow scoots right when hovering the card */
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Laptops & Landscape Tablets (2 Columns per row) */
@media (max-width: 991px) {
    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .events-section .section-title h2 {
        font-size: 2.2rem;
    }
}

/* Mobile Screens (Collapses down to a vertical stacked system) */
@media (max-width: 650px) {
    .events-section {
        padding: 60px 0;
    }
    .events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .event-card {
        max-width: 420px;
        margin: 0 auto; /* Centers the list nicely on mobile devices */
        width: 100%;
    }
    .event-image {
        height: 200px;
    }
    .events-section .section-title h2 {
        font-size: 1.8rem;
    }
}


/* ==========================================================================
   Testimonial Section Settings & Colors
   ========================================================================== */
:root {
    --primary-color: #0d4b68;       /* Deep Blue */
    --secondary-color: #1b8a43;     /* Vibrant Green */
    --accent-color: #fca311;        /* Sun Orange for Stars */
    --text-dark: #222222;
    --text-muted: #555555;
    --bg-light: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

.testimonial-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    font-family: var(--font-main);
}

/* Container Utility */
.testimonial-section .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==========================================================================
   Section Title
   ========================================================================== */
.testimonial-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.testimonial-section .section-title span {
    font-size: 0.95rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.testimonial-section .section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-bottom: 15px;
}

/* Center accent line decoration */
.testimonial-section .section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* ==========================================================================
   Testimonial Grid System (Displays up to 6 cards symmetrically)
   ========================================================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 Columns on Desktop */
    gap: 30px;
}

/* ==========================================================================
   Card Styling & Hover Mechanics
   ========================================================================== */
.testimonial-card {
    background-color: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(13, 75, 104, 0.05);
    border: 1px solid rgba(13, 75, 104, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Decorative background quotation mark */
.testimonial-card::after {
    content: "\201C"; /* Left Double Quote character */
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: rgba(13, 75, 104, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Interactive Card Elevation State */
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(13, 75, 104, 0.12);
    border-color: rgba(27, 138, 67, 0.15); /* Shifts border subtle green on hover */
}

/* ==========================================================================
   Review Sub-Elements (Stars & Paragraph Quotes)
   ========================================================================== */
/* FontAwesome Stars Block */
.stars {
    margin-bottom: 20px;
    display: flex;
    gap: 4px;
}

.stars i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* User Review Quote Description Text */
.testimonial-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 25px 0;
    position: relative;
    z-index: 2; /* Keeps text layered above decorative quotes background */
    flex-grow: 1; /* Aligns user profile info at bottom regardless of text height */
}

/* ==========================================================================
   User Profile Alignment Bottom Row
   ========================================================================== */
.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 20px;
    margin-top: auto;
}

/* Rounded User Thumbnail avatar picture */
.testimonial-user img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color); /* Elegant green brand loop wrapper */
    background-color: #f0f0f0;
}

/* User Identity Details column tracking */
.testimonial-user div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-user h4 {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.testimonial-user span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Laptops & Tablets (Drops from 3 columns down to 2) */
@media (max-width: 991px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .testimonial-section .section-title h2 {
        font-size: 2.2rem;
    }
}

/* Smartphones (Collapses down into single full-width stack columns) */
@media (max-width: 650px) {
    .testimonial-section {
        padding: 60px 0;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .testimonial-card {
        max-width: 450px;
        margin: 0 auto; /* Centers the review items nicely on narrower devices */
        width: 100%;
        padding: 30px 20px;
    }
    .testimonial-section .section-title h2 {
        font-size: 1.8rem;
    }
}


/* ==========================================================================
   President Section Base Configurations
   ========================================================================== */
:root {
    --primary-color: #0d4b68;       /* Deep Blue */
    --secondary-color: #1b8a43;     /* Vibrant Green */
    --accent-color: #fca311;        /* Sun Orange */
    --text-dark: #222222;
    --text-muted: #555555;
    --bg-light: #f9fbfd;            /* Soft tint background */
    --font-main: 'Poppins', sans-serif;
}

.president-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    font-family: var(--font-main);
    overflow: hidden;
}

/* Global Container Utility */
.president-section .container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==========================================================================
   President Card Container & Hover Mechanics
   ========================================================================== */
.president-card {
    display: grid;
    grid-template-columns: 350px 1fr; /* Distinct columns for profile image vs text content */
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(13, 75, 104, 0.06);
    border-left: 4px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Interactive Card Elevation & Shift Accent border to Green */
.president-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(13, 75, 104, 0.12);
    border-left-color: var(--secondary-color);
}

/* ==========================================================================
   Left Profile Image Block
   ========================================================================== */
.president-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
}

.president-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Subtle image focus zoom on card hover */
.president-card:hover .president-image img {
    transform: scale(1.04);
}

/* ==========================================================================
   Right Side Text Content
   ========================================================================== */
.president-content {
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Upper tag notification badge */
.president-content .sub-badge {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: inline-block;
}

/* President Name Header */
.president-content h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

/* Professional Designation Subtitle */
.president-content h4 {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Message Scrollable Wrapper block */
.message-text {
    position: relative;
}

/* Paragraph styling handles database nl2br strings cleanly */
.message-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Decorative vintage open quote watermark */
.president-content::after {
    content: "\201C";
    position: absolute;
    bottom: 20px;
    right: 40px;
    font-size: 8rem;
    color: rgba(13, 75, 104, 0.03);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Laptops & Standard Landscape Tablets */
@media (max-width: 991px) {
    .president-card {
        grid-template-columns: 300px 1fr; /* Narrow image space slightly */
    }
    .president-content {
        padding: 40px 30px;
    }
    .president-content h2 {
        font-size: 1.8rem;
    }
}

/* Mobile Screens (Collapses multi column grid layout into single vertical layer) */
@media (max-width: 768px) {
    .president-section {
        padding: 60px 0;
    }
    .president-card {
        grid-template-columns: 1fr; /* Image goes to top row, text goes underneath */
        max-width: 500px;
        margin: 0 auto;
        border-left: none;
        border-top: 4px solid var(--primary-color); /* Shifts interactive borders to top orientation */
    }
    .president-card:hover {
        border-top-color: var(--secondary-color);
    }
    .president-image {
        height: 350px;
        min-height: auto;
    }
    .president-content {
        padding: 35px 25px;
    }
    .president-content h2 {
        font-size: 1.6rem;
    }
}

/* Small Smartphone Panels */
@media (max-width: 480px) {
    .president-image {
        height: 280px;
    }
    .president-content {
        padding: 30px 20px;
    }
    .president-content h2 {
        font-size: 1.4rem;
    }
    .president-content h4 {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }
    .message-text p {
        font-size: 0.98rem;
    }
}

/* ==========================================================================
   CTA Section Settings & Dynamic Background
   ========================================================================== */
:root {
    --primary-color: #0d4b68;       /* Deep Blue */
    --secondary-color: #1b8a43;     /* Vibrant Green */
    --accent-color: #fca311;        /* Sun Orange */
    --text-light: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

.cta-section {
    padding: 90px 0;
    /* Beautiful diagonal blend using your core brand colors */
    background: linear-gradient(135deg, var(--primary-color) 0%, #062838 50%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
    text-align: center;
}

/* Subtle background glowing circles for high-end interactive depth */
.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.cta-section::before {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -100px;
}

.cta-section::after {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -100px;
}

/* Global Container Utility */
.cta-section .container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Forces text layout content over the background shapes */
    box-sizing: border-box;
}

/* ==========================================================================
   Typography Layout Content
   ========================================================================== */
.cta-content {
    max-width: 750px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 15px 0;
    line-height: 1.25;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 35px 0;
    line-height: 1.6;
    font-weight: 400;
}

/* ==========================================================================
   Interactive Buttons Wrapper Row
   ========================================================================== */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons a {
    text-decoration: none;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
    min-width: 180px;
}

/* "Become Member" Main Focus Button */
.btn-primary {
    background-color: var(--accent-color);
    color: #222222;
    box-shadow: 0 5px 20px rgba(252, 163, 17, 0.3);
}

.btn-primary:hover {
    background-color: #e5930b; /* Slightly richer orange */
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(252, 163, 17, 0.5);
}

/* "Donate Now" Transparent Light Secondary Button */
.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablets & Medium Screen Standard Scale downs */
@media (max-width: 768px) {
    .cta-section {
        padding: 70px 0;
    }
    .cta-content h2 {
        font-size: 2.2rem;
    }
    .cta-content p {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }
    .cta-buttons {
        gap: 15px;
    }
    .cta-buttons a {
        padding: 13px 30px;
        font-size: 0.95rem;
    }
}

/* Smartphone Micro Layout adjustments */
@media (max-width: 480px) {
    .cta-section {
        padding: 55px 0;
    }
    .cta-content h2 {
        font-size: 1.8rem;
    }
    .cta-buttons {
        flex-direction: column; /* Stacks the buttons cleanly vertically on narrow screens */
        align-items: center;
        width: 100%;
    }
    .cta-buttons a {
        width: 100%; /* Spreads button link out full-width for comfortable mobile taps */
        max-width: 280px;
    }
}
.newsevent-desc-text {
    font-family: var(--font-main);
    font-size: 1.05rem;
    line-height: 1.8;          /* Increased line height for clean reading */
    color: var(--text-muted);
    margin-bottom: 15px;
    text-align: justify;       /* Keeps text edges clean and aligned */
    word-wrap: break-word;     /* Prevents database text from breaking layout containers */
    overflow-wrap: break-word;
    transition: color 0.3s ease;
}

/* Dynamic interaction: highlights text slightly when hovered */
.newsevent-desc-text:hover {
    color: #222222;
}

/* Optional: Elegant left-border accent highlight style */
.newsevent-desc-text {
    position: relative;
    padding-left: 15px;
    border-left: 2px solid rgba(13, 75, 104, 0.15);
}

.newsevent-desc-text:hover {
    border-left-color: var(--primary-color);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablets & Smaller Monitors */
@media (max-width: 768px) {
    .newsevent-desc-text {
        font-size: 1rem;
        line-height: 1.7;
        padding-left: 12px;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .newsevent-desc-text {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left; /* Switches from justify to left-aligned for small viewports */
        padding-left: 10px;
    }
}