﻿/* --- Color Palette based on Logo --- */
:root {
    --primary-brown: #4a2c15; /* Deep brown from text/cow outline */
    --accent-orange: #e88d14; /* Orange from halo */
    --accent-green: #2e7d32; /* Green from book/ground */
    --accent-blue: #0288d1; /* Blue from background circle */
    --light-bg: #f8f5f0; /* Creamy off-white background from logo */
    --dark-footer: #332211; /* Darker brown for footer */
}

body {
    font-family: 'Segoe UI', Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--light-bg);
    color: #333;
    overflow-x: hidden;
}

/* --- Navbar Styling --- */
.navbar {
    background-color: #fff !important;
    border-bottom: 3px solid var(--accent-green);
}

.trust-name-header {
    font-weight: 800;
    color: var(--primary-brown);
    font-size: 1.4rem;
    line-height: 1.2;
}

.nav-link {
    color: var(--primary-brown) !important;
    font-weight: 600;
    padding: 1rem !important;
    transition: all 0.3s ease;
}

    .nav-link:hover, .nav-link.active {
        color: var(--accent-orange) !important;
    }

/* --- Buttons --- */
.btn-donate {
    background-color: var(--accent-orange);
    border: none;
    font-weight: 700;
    border-radius: 30px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    .btn-donate:hover {
        background-color: var(--accent-green);
        transform: translateY(-3px);
        color: white;
    }

.btn-outline-primary-trust {
    color: var(--primary-brown);
    border-color: var(--primary-brown);
}

    .btn-outline-primary-trust:hover {
        background-color: var(--primary-brown);
        color: white;
    }


/* --- Layout Helpers --- */
.main-content-wrapper {
    /* Push content down so it doesn't hide behind fixed navbar */
    margin-top: 90px;
    min-height: 80vh;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    color: var(--primary-brown);
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

    /* Add a small underline to section titles */
    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: var(--accent-orange);
        margin: 20px auto 0;
    }

/* --- Footer Styling --- */
.footer-dark {
    background-color: var(--dark-footer);
    color: #fff;
    margin-top: 50px;
}

.border-bottom-accent {
    border-bottom: 2px solid var(--accent-orange);
    display: inline-block;
    padding-bottom: 10px;
    color: var(--accent-orange);
    font-weight: 700;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

    .footer-links a:hover {
        color: var(--accent-orange);
        padding-left: 5px;
    }

.text-accent {
    color: var(--accent-orange) !important;
}

.social-icons a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
    margin-right: 15px;
}

    .social-icons a:hover {
        color: var(--accent-orange);
    }

/* --- Homepage Specific --- */
.hero-section {
    /* You should replace this with a real high-quality photo relevant to trust work */
    background: linear-gradient(rgba(51, 34, 17, 0.7), rgba(51, 34, 17, 0.7)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    text-align: center;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
    height: 100%;
    border-bottom: 5px solid transparent;
}

    .feature-card:hover {
        transform: translateY(-10px);
    }

/* Color code the service cards based on logo colors */
.card-gyaan {
    border-bottom-color: var(--accent-blue);
}

.card-sewa {
    border-bottom-color: var(--accent-green);
}

.card-jaanhit {
    border-bottom-color: var(--accent-orange);
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 35px;
    color: white;
}


/* --- New Additions for Extra Sections --- */

/* Campaign Cards */
.campaign-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

    .campaign-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
    }

    .campaign-card .card-img-top {
        height: 200px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .campaign-card:hover .card-img-top {
        transform: scale(1.05);
    }

/* Progress Bars */
.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

/* --- FAQ Accordion Styling --- */
.accordion-button:not(.collapsed) {
    color: var(--primary-brown);
    background-color: rgba(232, 141, 20, 0.1); /* Light Orange tint */
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 0.25rem rgba(232, 141, 20, 0.25);
}

.accordion-button {
    font-size: 1.05rem;
}


/* --- RESPONSIVE HEADER & MENU FIXES --- */

/* 1. Base Styles (Desktop) */
.logo-img {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
}

.trust-name-header {
    font-weight: 800;
    color: var(--primary-brown);
    font-size: 1.4rem;
    line-height: 1.1;
    white-space: nowrap; /* Desktop: keep on one line */
}

.slogan-text {
    font-size: 0.8rem;
    display: block;
}

/* 2. Tablet & Mobile (Screens < 992px) */
@media (max-width: 991px) {
    .logo-img {
        height: 50px; /* Smaller logo */
    }

    .trust-name-header {
        font-size: 1.1rem;
    }

    /* When menu opens, give it a clean look */
    .navbar-collapse {
        background-color: white;
        padding: 15px;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        max-height: 80vh; /* Prevent menu from being too tall */
        overflow-y: auto; /* Scroll if menu is too long */
    }

    .nav-item {
        width: 100%; /* Full width items for easier tapping */
        padding: 5px 0;
        border-bottom: 1px solid #f8f9fa;
    }
}

/* 3. Small Mobile (Screens < 576px) */
@media (max-width: 576px) {
    /* Logo styling */
    .logo-img {
        height: 40px;
    }

    /* Text Logic: Allow wrapping so it fits next to button */
    .trust-name-header {
        font-size: 0.95rem; /* Readable but small */
        white-space: normal; /* CRITICAL: Allows text to wrap to 2 lines */
        word-wrap: break-word;
    }

    /* Hide slogan on very small screens to save vertical space */
    .slogan-text {
        display: none;
    }

    /* Adjust Hamburger Button */
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 0.9rem;
        border: 1px solid #ddd;
    }

    /* Ensure the Navbar doesn't grow huge */
    .navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}


/* --- Banner Carousel Styling --- */
.hero-slide {
    height: 85vh; /* Takes up 85% of screen height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* On mobile, reduce height so it doesn't look empty */
@media (max-width: 768px) {
    .hero-slide {
        height: 60vh;
    }

    .display-3 {
        font-size: 2.5rem; /* Smaller text on mobile */
    }
}