/* 
 * ARPD Pakistan - Premium Design System
 * Primary Color: #008744 (Brand Green)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
    --primary-color: #008744;
    --primary-hover: #006b36;
    --secondary-color: #f8fcf9; /* Light Mint */
    --accent-color: #c5a028; /* Gold */
    --text-dark: #2c3e50;
    --text-muted: #5d6d7e;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 135, 68, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.bg-alternate {
    background-color: #f0f7f3;
}

/* Section Dividers */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #ffffff;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.bg-alternate .section-divider {
    background: #f0f7f3;
}

.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #006b36);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 135, 68, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #006b36, var(--primary-color));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 135, 68, 0.35);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 2rem;
}

.top-bar-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 0.8rem;
    margin-left: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-switcher a {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.7;
    transition: var(--transition);
}

.lang-switcher a:hover, .lang-switcher a.active {
    opacity: 1;
    color: #ffd700; /* Gold */
}

/* Header */
header {
    background: #e8f7ee; /* Refined Mint Green */
    backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 135, 68, 0.1);
    transition: var(--transition);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation Toggle */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 1rem;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--primary-color);
    height: 3px;
    width: 2rem;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    bottom: 8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

.main-nav {
    flex: 1;
    margin-left: 3rem;
    display: flex;
    justify-content: center;
}

.logo-wrapper {
    display: inline-block;
    padding: 5px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent-color), #f9e1a1);
    box-shadow: 0 5px 15px rgba(197, 160, 40, 0.2);
    transition: var(--transition);
}

.logo-wrapper:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 10px 25px rgba(197, 160, 40, 0.4);
}

.logo-frame {
    background: var(--white);
    padding: 8px 15px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-frame img {
    height: 55px; /* Refined for frame */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

nav ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

/* Dropdown Logic */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #ffffff;
    min-width: 600px; /* Stronger, Wider List */
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 135, 68, 0.12);
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column list type */
    gap: 1rem;
    z-index: 1001;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #ffffff;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(15px);
}

.dropdown li {
    display: block;
}

.dropdown li a {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
}

.dropdown li a i {
    color: var(--accent-color); /* Gold Icons */
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

.dropdown li a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown li a:hover i {
    transform: scale(1.2);
}

.dropdown li a::after {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatsapp-btn {
    width: 45px;
    height: 45px;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background: #128c7e;
}

.donate-btn {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.85rem !important;
}

nav ul li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6)), url('../img/arpdhome.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 100px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 700;
    color: #ffd700; /* Gold */
    margin-bottom: 1.5rem;
    display: block;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero h1 span {
    color: var(--primary-color);
    background: linear-gradient(135deg, #008744, #00b359);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-3px);
}

/* Hero Right Column */
.hero-feature-card {
    background: linear-gradient(145deg, #d4af37, #c5a028); /* Rich Golden Metallic */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 3.5rem 3rem;
    border-radius: 35px;
    box-shadow: 0 40px 80px rgba(197, 160, 40, 0.35);
    position: relative;
    overflow: hidden;
}

.hero-feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: goldenShimmer 15s linear infinite;
    pointer-events: none;
}

@keyframes goldenShimmer {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    align-items: center;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--white);
    color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
}

.feature-item h4 {
    color: var(--white);
    margin-bottom: 0.3rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.feature-item p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--white);
    opacity: 0.95;
    line-height: 1.4;
}

/* News Ticker */
.news-ticker-container {
    position: relative;
    width: 100%;
    background: #004d26; /* Deep Forest Green */
    color: #ffd700; /* Gold text */
    padding: 0;
    overflow: hidden;
    border-bottom: 2px solid #c5a028; /* Golden border */
    font-family: 'Outfit', sans-serif;
}

.ticker-wrapper {
    display: flex;
    white-space: nowrap;
    align-items: stretch;
}

.ticker-title {
    background: linear-gradient(135deg, #d4af37, #c5a028); /* Golden Gradient */
    color: #1a1a1a;
    padding: 0.8rem 2rem;
    font-weight: 800;
    position: relative;
    z-index: 10;
    margin-right: 2rem;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
}

.ticker-content {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    animation: ticker 40s linear infinite;
}

.ticker-item {
    display: inline-block;
    margin-right: 5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
}

.ticker-item i {
    color: #ffd700; /* Golden icons */
    margin-right: 10px;
    font-size: 1rem;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* About Section */
.about {
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about::before {
    content: 'ARPD';
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    z-index: -1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Programs Section */
.programs {
    background-color: var(--secondary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 135, 68, 0.05);
}

.program-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    opacity: 0.03;
    border-radius: 50% 0 0 0;
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 135, 68, 0.12);
    border-color: var(--primary-color);
}

.program-card:hover::after {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-read-more i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-read-more:hover {
    color: var(--primary-hover);
    gap: 1.2rem;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}


/* Statistics Counter */
.stats-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Mission Boxes */
.mission-box {
    padding: 3.5rem 2.5rem;
    background: var(--white);
    border: 1px solid #eee;
    border-top: 5px solid var(--accent-color); /* Gold Top Border */
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mission-box:hover {
    transform: translateY(-10px);
    background: var(--secondary-color);
    border-color: var(--primary-color);
    box-shadow: 0 30px 60px rgba(0, 135, 68, 0.1);
}

.mission-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.8rem;
    margin: 0 auto 2rem;
    transition: var(--transition);
}

.mission-box:hover .mission-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(360deg);
}

.mission-box h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.mission-box p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.program-card {
    background: var(--white);
    padding: 3.5rem 2.5rem; /* Luxurious Padding */
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 135, 68, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card-img {
    height: 240px; /* Refined height */
    overflow: hidden;
    margin: -3.5rem -2.5rem 2rem; /* Adjusted for new card padding */
    border-radius: 28px 28px 0 0;
    position: relative;
}

.program-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-card:hover .program-card-img img {
    transform: scale(1.15);
}

.program-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.program-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: auto;
}


.program-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0, 135, 68, 0.15);
    border-color: var(--primary-color);
}

.program-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 135, 68, 0.03));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.program-card:hover::after {
    opacity: 1;
}

.program-icon {
    width: 75px;
    height: 75px;
    background: var(--white);
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: -38px auto 2rem;
    box-shadow: 0 10px 20px rgba(197, 160, 40, 0.15);
    position: relative;
    z-index: 10;
    transition: var(--transition);
}

.program-card:hover .program-icon {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 20px 40px rgba(0, 135, 68, 0.4), 0 0 0 8px rgba(0, 135, 68, 0.1); /* Glowing ring effect */
}



/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #eee;
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: #e0e0e0;
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Strong Footer */
footer {
    background: #002d16; /* Extra Dark Green */
    color: var(--white);
    padding: 100px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 5rem;
    margin-bottom: 80px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.footer-links h4 {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul li {
    margin-bottom: 1.2rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact h4 {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact p {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: #ffd700;
    font-size: 1.1rem;
}

.newsletter-box h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form button {
    background: var(--accent-color);
    border: none;
    width: 50px;
    border-radius: 10px;
    color: #1a1a1a;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* --- Responsiveness Managed at End of File --- */

/* Gallery Carousel */
.gallery-carousel-wrapper {
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.gallery-carousel {
    display: flex;
    gap: 30px;
    animation: scrollGallery 40s linear infinite;
    width: max-content;
}

.gallery-carousel:hover {
    animation-play-state: paused;
}

.gallery-item {
    flex: 0 0 450px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 135, 68, 0.9));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay h4 {
    transform: translateY(0);
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-480px * 5)); } /* item width + gap * count */
}

/* Video Gallery */
.video-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.video-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0, 135, 68, 0.4);
    transition: var(--transition);
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--accent-color);
    box-shadow: 0 15px 40px rgba(197, 160, 40, 0.5);
}

.video-card:hover .video-thumb img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.video-info {
    padding: 1.8rem;
}

.video-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.reveal-hidden {
    opacity: 1 !important; /* Force visibility */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-init {
    transform: translateY(40px);
    opacity: 0.2; /* Subtle fade instead of total invisibility */
}

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* --- Tablet & Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 3rem;
    }

    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr; /* Keep 2 cols on large tablets */
        gap: 3rem;
    }

    .stats-grid,
    .program-grid,
    .mission-grid,
    .video-grid {
        grid-template-columns: 1fr 1fr !important; /* 2 columns for tablet */
    }

    .about-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem !important;
    }

    .dropdown {
        min-width: 500px;
        padding: 2rem;
    }
    .hero {
        min-height: auto;
        padding: 6rem 0;
        background-attachment: scroll; /* Fix for mobile browser bugs */
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin: 0 auto 2rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .top-bar-info {
        display: none; /* Hide desktop top bar info */
    }

    .top-bar .container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-grid,
    .stats-grid,
    .program-grid,
    .mission-grid,
    .video-grid,
    .about-grid {
        grid-template-columns: 1fr !important; /* Stack for mobile */
    }
    html {
        font-size: 14px;
    }

    header .header-flex {
        flex-direction: row; /* Keep logo and hamburger on same row */
        justify-content: space-between;
        gap: 0;
        padding: 1rem 0;
    }

    .nav-toggle-label {
        display: block; /* Show hamburger */
        z-index: 1002;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Hide off-screen */
        width: 80%;
        height: 100vh;
        background: #ffffff;
        z-index: 1001;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 100px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        display: block;
        margin-left: 0;
    }

    /* Fallback to ensure sections are visible on mobile */
    .reveal-hidden {
        opacity: 1 !important;
        transform: none !important;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-toggle:checked ~ .main-nav {
        right: 0; /* Show menu */
    }

    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        bottom: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .header-actions {
        display: none; /* Hide actions on small mobile for space */
    }

    .hero h1 {
        font-size: 3rem;
    }

    .stats-grid,
    .program-grid,
    .mission-grid,
    .video-grid {
        grid-template-columns: 1fr !important;
    }

    .impact-stats {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        width: 100% !important;
        padding-left: 2rem !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }

    .timeline-item::after {
        left: -12px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .ticker-title {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .ticker-item {
        margin-right: 2rem;
        font-size: 0.8rem;
    }

    .logo-wrapper {
        transform: scale(0.9);
    }

    /* Mobile Carousel Fix */
    .gallery-item {
        flex: 0 0 300px !important;
        height: 200px !important;
    }

    @keyframes scrollGallery {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-330px * 5)); } /* Adjusted for mobile item width + gap */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}


