/* ----------------------------------------------------
   Ek Uddan - NGO Website Styles
   Theme: Professional, Hopeful, Clean
---------------------------------------------------- */

:root {
    --primary-blue: #1565c0;   /* Trust, Depth, Healthcare */
    --hover-blue: #0d47a1;
    --primary-green: #2e7d32;  /* Growth, Environment, Prosperity */
    --hover-green: #1b5e20;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    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;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.section-subtitle {
    display: block;
    color: var(--primary-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.text-center {
    text-align: center;
}

/* ----------------------------------------------------
   Buttons
---------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.btn-primary:hover {
    background-color: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ----------------------------------------------------
   Update Bar (Scrolling News)
---------------------------------------------------- */
.update-bar {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.update-bar-content {
    display: inline-block;
    animation: scroll-left 25s linear infinite;
}

.update-bar-content:hover {
    animation-play-state: paused;
}

.update-item {
    margin-right: 50px;
}

.update-item i {
    margin-right: 5px;
    color: #ffd54f; /* Pop color for icon */
}

@keyframes scroll-left {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* ----------------------------------------------------
   Header / Navigation
---------------------------------------------------- */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo span {
    color: var(--primary-green);
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* ----------------------------------------------------
   Hero Slider (CSS Only)
---------------------------------------------------- */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
}

.slider {
    display: flex;
    width: 300%; /* 3 slides */
    height: 100%;
    animation: auto-slide 15s infinite;
}

.slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-1 { background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?q=80&w=1920&auto=format&fit=crop'); }
.slide-2 { background-image: url('https://images.unsplash.com/photo-1497633762265-9d179a990aa6?q=80&w=1920&auto=format&fit=crop'); }
.slide-3 { background-image: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?q=80&w=1920&auto=format&fit=crop'); }

.slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
}

.slide-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
    padding: 0 5%;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fade-in-up 1s ease-out;
}

.slide-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fade-in-up 1s ease-out 0.2s both;
}

.slide-content .btn {
    margin-right: 15px;
    animation: fade-in-up 1s ease-out 0.4s both;
}

@keyframes auto-slide {
    0%, 25% { transform: translateX(0); }
    33.33%, 58.33% { transform: translateX(-33.333%); }
    66.66%, 91.66% { transform: translateX(-66.666%); }
    100% { transform: translateX(0); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------
   About Section
---------------------------------------------------- */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
}

.experience-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.about-content {
    flex: 1;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.mission-vision {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mv-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.mv-icon {
    background-color: rgba(21, 101, 192, 0.1);
    color: var(--primary-blue);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mv-item h3 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.mv-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ----------------------------------------------------
   Projects Section
---------------------------------------------------- */
.projects-section {
    background-color: var(--bg-light);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.project-image {
    position: relative;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-size: 1.4rem;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more i {
    transition: transform 0.3s ease;
}

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

/* ----------------------------------------------------
   Events Section
---------------------------------------------------- */
.events-timeline {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: flex;
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--box-shadow);
    align-items: center;
    gap: 30px;
    transition: var(--transition);
    border-left: 5px solid transparent;
}

.event-card:hover {
    border-left-color: var(--primary-green);
    transform: translateX(5px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 80px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 10px;
    color: var(--primary-green);
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
}

.event-details h3 {
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.event-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.event-meta i {
    color: #ffd54f;
    margin-right: 5px;
}

.event-details p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ----------------------------------------------------
   CTA / Donate Section
---------------------------------------------------- */
.cta-section {
    position: relative;
    padding: 100px 0;
    background-image: url('https://images.unsplash.com/photo-1593113516815-419b4fcb7b1e?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(21, 101, 192, 0.85); /* Blue overlay */
}

.cta-container {
    position: relative;
    z-index: 10;
    color: var(--white);
}

.cta-container h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-container p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* ----------------------------------------------------
   Footer
---------------------------------------------------- */
.footer {
    background-color: #1a2238; /* Very dark blue for trust */
    color: #e0e0e0;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary-green);
}

.about-widget p {
    margin-bottom: 25px;
    color: #a0aabf;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-green);
}

.links-widget ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-widget a {
    color: #a0aabf;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.links-widget a i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: var(--primary-green);
    transition: var(--transition);
}

.links-widget a:hover {
    color: var(--white);
}

.links-widget a:hover i {
    transform: translateX(5px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #a0aabf;
}

.contact-info i {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-top: 3px;
}

.footer-bottom {
    background-color: #12182b;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #8c97ad;
}

/* ----------------------------------------------------
   WhatsApp Floating Button
---------------------------------------------------- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Official WhatsApp color */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

/* ----------------------------------------------------
   Responsive Design (Mobile & Tablet)
---------------------------------------------------- */
@media (max-width: 992px) {
    .section-title { font-size: 2.2rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .about-container { flex-direction: column; }
    .about-image { margin-bottom: 40px; }
    .experience-badge { bottom: 20px; right: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .slide-content h1 { font-size: 2.5rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .event-card { flex-direction: column; text-align: center; gap: 15px; }
    .event-meta { flex-direction: column; gap: 5px; justify-content: center; }
    
    .header-actions { display: none; }
    .mobile-menu-toggle { display: block; }

    /* CSS Only Mobile Menu implementation */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .nav-menu ul li {
        border-bottom: 1px solid #eee;
    }

    .nav-menu a {
        display: block;
        padding: 15px 5%;
    }
    
    .nav-menu a::after { display: none; } /* Hide underline effect on mobile */

    .nav-menu.active {
        max-height: 400px; /* arbitrary max-height larger than content */
    }
}

@media (max-width: 576px) {
    .slide-content h1 { font-size: 2rem; }
    .slide-content p { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .btn-large { padding: 12px 24px; font-size: 1rem; }
    .cta-container h2 { font-size: 2rem; }
}
