/* Modern Design System - NGO Redesign */

:root {
    /* Color Palette */
    --primary-color: #0077C8;
    /* Strong Blue */
    --primary-dark: #005a9e;
    /* Darker Blue for hover */
    --secondary-color: #8FBCE6;
    /* Light Blue */
    --accent-color: #FFA500;
    /* Orange for Call to Actions (Warmth) */
    --text-dark: #1F2937;
    /* Dark Grey for text */
    --text-light: #6B7280;
    /* Medium Grey for descriptions */
    --bg-light: #F9FAFB;
    /* Page Background */
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Borders */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Global Reset & Base Styles */
body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    transition: all 0.3s ease;
    text-decoration: none !important;
}

a:hover {
    color: var(--primary-color);
}

/* --- Navigation --- */
.navbar {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 60px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
    /* Lighter blue bg */
    color: var(--primary-dark);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--white) 0%, #f0f4f8 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* --- Cards (Global) --- */
.custom-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.custom-card img {
    border-bottom: 3px solid var(--secondary-color);
    width: 100%;
    height: 200px;
    /* Fixed height for consistency */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* --- Section Headings --- */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}


.parichay-title {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.parichay-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 80px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.parichay-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.parichay-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    text-align: justify;
}

/* Scroll Container Helper */
.scroll-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-md);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    /* Custom Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

.scroll-container::-webkit-scrollbar {
    width: 6px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* --- Footer --- */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 0;
    font-size: 0.95rem;
}

footer a {
    color: #cbd5e1;
}

footer a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-bottom {
    background-color: #111827;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* --- Buttons --- */
.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 119, 200, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 119, 200, 0.4);
    color: #fff;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* --- Mobile Responsiveness Adjustments --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .navbar-brand img {
        height: 50px;
    }

    .section-title {
        margin-bottom: 2rem;
    }
}

/* --- Scroll To Top Button --- */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 99;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

#btn-back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* --- Projects Horizontal Scroll --- */
.projects-scroll-wrapper {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0 2rem;
    /* Bottom padding for shadow/hover space */
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.projects-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.projects-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.projects-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 20px;
}

.project-card-item {
    width: 300px;
    /* Fixed width for cards */
    scroll-snap-align: start;
}