/* Modern NGO Template CSS */
:root {
    /* Modern Sky Blue Color Scheme */
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #7dd3fc;
    --secondary-color: #0f172a;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-color: #e2e8f0;
    --text-light: #64748b;
    --text-dark: #0f172a;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, rgba(14, 165, 233, 0.9) 0%, rgba(59, 130, 246, 0.8) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #ffffff;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-behavior: smooth;
    position: relative;
}

/* Loading Spinner - Disabled to fix scroll issues */
.spinner-overlay {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Original kept for reference but overridden above
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
}
*/

.spinner-overlay.hide {
    opacity: 0;
    visibility: hidden;
}

.spinner-content {
    text-align: center;
    color: white;
}

.modern-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.spinner-text {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utility Classes */
.section-padding {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 2px;
    background: var(--gradient-primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Navigation */
.modern-navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: var(--transition-base);
}

.modern-navbar.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
}

.brand-logo {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.brand-text .brand-name {
    display: block;
    font-size: 1.25rem;
    line-height: 1;
}

.brand-text .brand-tagline {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1;
}

/* Custom Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    position: relative;
    background: none;
}

.navbar-toggler span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 5px auto;
    transition: var(--transition-base);
}

.navbar-toggler:not(.collapsed) span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler:not(.collapsed) span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem !important;
    border-radius: var(--border-radius-sm);
    margin: 0 0.25rem;
    transition: var(--transition-base);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* User Menu */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition-base);
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Buttons - Professional Government/MNC Style */
.btn {
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 6px;
    padding: 0.85rem 2.2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #0d4d4d 0%, #1a5f5f 100%);
    border-color: #1a5f5f;
    color: #faf8f5;
    box-shadow: 0 4px 12px rgba(13, 77, 77, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 77, 77, 0.4);
    background: linear-gradient(135deg, #1a5f5f 0%, #2d7f7f 100%);
    border-color: #2d7f7f;
    color: #faf8f5;
}

.btn-outline-primary {
    border-color: #0d4d4d;
    color: #0d4d4d;
    background: transparent;
    border-width: 2px;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #0d4d4d, #1a5f5f);
    border-color: #0d4d4d;
    color: #faf8f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 77, 77, 0.3);
}

.btn-outline-white {
    border-color: rgba(250, 248, 245, 0.6);
    color: #faf8f5;
    background: rgba(13, 77, 77, 0.2);
    backdrop-filter: blur(10px);
    border-width: 2px;
}

.btn-outline-white:hover {
    background: #faf8f5;
    border-color: #faf8f5;
    color: #001f3f;
    transform: translateY(-1px);
}

.btn-white {
    background: white;
    border-color: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(14, 165, 233, 0.2) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-btn {
    min-width: 180px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Media */
.hero-media {
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    animation: floatCard 3s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 20%;
    right: -10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 30%;
    left: -5%;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-down {
    display: block;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition-base);
    background: white;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-base);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 165, 233, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-progress {
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-info .raised {
    color: var(--success-color);
    font-size: 1.125rem;
}

.progress-info .goal {
    color: var(--text-light);
    font-size: 0.875rem;
}

.progress {
    height: 8px;
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    background: var(--gradient-primary);
    transition: width 1s ease;
    border-radius: 10px;
}

.percentage {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-primary);
    color: white;
}

/* Responsive Design - Mobile First */
@media (max-width: 576px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-btn {
        min-width: auto;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .navbar-actions {
        margin-top: 1rem;
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }
    
    .navbar-actions .btn {
        flex: 1;
        text-align: center;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .floating-card {
        animation-play-state: running;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-scroll-indicator,
    .back-to-top,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    * {
        color: black !important;
        background: white !important;
        box-shadow: none !important;
    }
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Top Bar ***/
.top-bar {
    height: 90px;
    padding: 0 90px;
}

.top-bar h6 {
    letter-spacing: 1px;
}


/*** Nav Bar ***/
.nav-bar {
    padding: 0 90px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: var(--bs-dark);
    font-size: 18px;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-white);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        border-top: 1px solid var(--bs-white);
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header Carousel ***/
.header-carousel {
    position: relative;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
    /* Allow vertical page scroll on touch while interacting with carousel */
    touch-action: pan-y;
}

.header-carousel .carousel-img {
    position: relative;
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bs-dark);
    background: var(--bs-primary);
}

.page-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); /* Professional Gradient */
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-size: cover;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-header .display-3 {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
}


/*** Video ***/
.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--bs-dark);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-dark);
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-dark);
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--bs-white);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: var(--bs-white);
    background: #000000;
    opacity: 1;
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    display: none !important;
    content: none !important;
    border-top: 0 !important;
}

.section-title::after {
    display: none !important;
    content: none !important;
    border-bottom: 0 !important;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** About ***/
.about-img {
    position: relative;
}

.about-img::before,
.about-img::after {
    position: absolute;
    content: "";
    width: 33%;
    height: 90px;
    background: var(--bs-white);
}

.about-img::before {
    top: 0px;
    left: 0px;
}

.about-img::after {
    right: 0px;
    bottom: 0px;
}


/*** Service ***/
.service-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.service-item {
    overflow: hidden;
}

.service-item .btn-square {
    width: 65px;
    height: 65px;
}

.service-item a {
    position: relative;
    padding: 0;
    font-size: 14px;
    line-height: 14px;
    text-transform: uppercase;
    transition: .5s;
}

.service-item a::after {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    left: 100%;
    bottom: 3px;
    margin-left: 10px;
    border-bottom: 2px solid var(--bs-primary);
}


/*** Donation ***/
.donation-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.donation-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.donation-item .donation-progress {
    width: 80px;
}

.donation-item .progress .progress-bar {
    height: 20px;
    overflow: visible;
    transition: 3s;
}


/*** Banner ***/
.banner .banner-inner {
    position: relative;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.banner .banner-inner::before,
.banner .banner-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
}

.banner .banner-inner::before {
    top: 0;
    left: 0;
    border-top: 150px solid var(--bs-primary);
    border-right: 150px solid transparent;
}

.banner .banner-inner::after {
    right: 0;
    bottom: 0;
    border-bottom: 150px solid var(--bs-secondary);
    border-left: 150px solid transparent;
}


/*** Event ***/
.event-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.event-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}


/*** Donate ***/
.donate .donate-text {
    position: relative;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.donate .donate-text::before,
.donate .donate-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
}

.donate .donate-text::before {
    top: 0;
    left: 0;
    border-top: 150px solid var(--bs-primary);
    border-right: 150px solid transparent;
}

.donate .donate-text::after {
    right: 0;
    bottom: 0;
    border-bottom: 150px solid var(--bs-secondary);
    border-left: 150px solid transparent;
}

.donate .donate-form .form-control {
    border: none;
    background: rgba(255, 255, 255, .5);
}

.donate .donate-form .btn-group {
    display: flex;
}

.donate .donate-form .btn-group .btn {
    margin: 0;
    padding: 0;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--bs-tertiary);
    background: rgba(255, 255, 255, .5);
}

.donate .donate-form .btn-group .btn-check:checked+.btn {
    border: none;
    background: var(--bs-white);
}



/*** Team ***/
.team-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.team-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.team-item .team-detail span {
    letter-spacing: 2px;
}



/*** Testimonial ***/
.testimonial-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.testimonial-carousel .owl-prev,
.testimonial-carousel .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--bs-white);
    background: var(--bs-secondary);
    transition: .5s;
}

.testimonial-carousel .owl-prev:hover,
.testimonial-carousel .owl-next:hover {
    color: var(--bs-secondary);
    background: var(--bs-white);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-nav {
        top: 6.3rem;
    }
    
    /* Mobile Navigation Improvements */
    .navbar-collapse {
        max-height: 400px;
        overflow-y: auto;
    }
    
    /* Better spacing for mobile */
    section {
        padding: 40px 0 !important;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Button improvements */
    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    /* Card improvements */
    .card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    section {
        padding: 30px 0 !important;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}



/*** Footer ***/
.footer {
    color: #333333;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to right, rgba(200, 200, 200, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(200, 200, 200, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    pointer-events: none;
}

.footer > .container {
    position: relative;
    z-index: 1;
}

.footer h4 {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0d4d4d, #1a5f5f);
    border-radius: 2px;
}

.footer .text-light-50 {
    color: #475569 !important;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 10px 12px;
    text-align: left;
    color: #d4d0c8;
    font-weight: 600;
    text-transform: capitalize;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding-left: 0;
    position: relative;
}

.footer .btn.btn-link::before {
    display: none;
}

.footer .btn.btn-link:hover {
    color: #1a5f5f;
    background: rgba(250, 248, 245, 0.1);
    transform: translateX(5px);
    text-decoration: none;
}

.footer .btn.btn-link i {
    color: #0d4d4d;
    width: 24px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer .btn.btn-link:hover i {
    color: #1a5f5f;
}

.footer .btn-square {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(13, 77, 77, 0.3);
    border: 2px solid rgba(13, 77, 77, 0.5);
    position: relative;
    overflow: hidden;
}

.footer .btn-square::before {
    display: none;
}

.footer .btn-square:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 77, 77, 0.4);
    border-color: #1a5f5f;
    background: linear-gradient(135deg, #0d4d4d, #1a5f5f);
}

.footer .btn-square i {
    color: #faf8f5;
    font-size: 18px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.footer .btn-square:hover i {
    color: white;
}

.footer .copyright {
    border-top: none;
    background: transparent;
    backdrop-filter: none;
    margin-top: 2rem;
    padding-top: 1.25rem;
}

.footer .copyright p {
    margin-bottom: 0;
    line-height: 1.6;
    color: #cbd5e1;
}

.footer .copyright a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer .copyright a:hover {
    color: #f1f5f9;
}

.footer p {
    margin-bottom: 1rem;
}

.footer p i {
    color: #64748b;
    width: 24px;
}

/* Footer Impact Stats Styling */
.footer .d-flex.align-items-center {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.footer .d-flex.align-items-center:hover {
    background: rgba(100, 116, 139, 0.1);
    transform: translateX(5px);
}

.footer .d-flex .btn-square {
    background: rgba(100, 116, 139, 0.15);
}

/* Footer Recent Projects Images */
.footer .row.g-2 img {
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 2px solid rgba(100, 116, 139, 0.2);
}

.footer .row.g-2 img:hover {
    transform: scale(1.05);
    border-color: #64748b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* UNIVERSAL PAGE HERO SECTION - Added by Copilot */
.universal-hero {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(59, 130, 246, 0.95)), url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    padding: 6rem 0;
    margin-bottom: 4rem;
    text-align: center;
    border-radius: 0 0 50px 50px;
}

.universal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Wave/Curve Bottom SVG */
    background: url('data:image/svg+xml,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 1440 320\'><path fill=\'%23ffffff\' fill-opacity=\'0.1\' d=\'M0,32L48,37.3C96,43,192,53,288,85.3C384,117,480,171,576,186.7C672,203,768,181,864,154.7C960,128,1056,96,1152,101.3C1248,107,1344,149,1392,170.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z\'></path></svg>') no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
    z-index: 1;
}

.universal-hero .container {
    position: relative;
    z-index: 2;
}

.universal-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: white;
}

.universal-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    color: #f1f5f9;
}


/* UNIVERSAL HERO STYLE APPLIED TO EXISTING CLASSES - Added by GitHub Copilot to match Events page design */
.about-hero, 
.contact-hero, 
.team-hero, 
.projects-hero, 
.gallery-hero, 
.feature-hero, 
.news-hero, 
.testimonial-hero, 
.donation-hero, 
.reports-hero, 
.professional-hero, 
.awards-hero, 
.id-hero, 
.verify-hero, 
.vision-hero,
.finance-hero,
.events-hero,
.hero-section {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(118, 75, 162, 0.9)), url('../img/bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.about-hero::before, 
.contact-hero::before, 
.team-hero::before, 
.projects-hero::before, 
.gallery-hero::before, 
.feature-hero::before, 
.news-hero::before, 
.testimonial-hero::before, 
.donation-hero::before, 
.reports-hero::before, 
.professional-hero::before, 
.awards-hero::before, 
.id-hero::before, 
.verify-hero::before, 
.vision-hero::before,
.finance-hero::before,
.events-hero::before,
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 1440 320\'><path fill=\'%23ffffff\' fill-opacity=\'0.1\' d=\'M0,32L48,37.3C96,43,192,53,288,85.3C384,117,480,171,576,186.7C672,203,768,181,864,154.7C960,128,1056,96,1152,101.3C1248,107,1344,149,1392,170.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z\'></path></svg>') no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
    z-index: 1;
}

.about-hero .container, 
.contact-hero .container, 
.team-hero .hero-content, 
.projects-hero .container, 
.gallery-hero .container, 
.feature-hero .hero-content, 
.news-hero .hero-content, 
.testimonial-hero .hero-content, 
.donation-hero .container, 
.reports-hero .container, 
.professional-hero .container, 
.awards-hero .container, 
.id-hero .container, 
.vision-hero .container,
.finance-hero .container,
.events-hero .container,
.hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Ensure hero headings stay readable (global h1 color is dark by default) */
.about-hero h1,
.contact-hero h1,
.team-hero h1,
.projects-hero h1,
.gallery-hero h1,
.feature-hero h1,
.news-hero h1,
.testimonial-hero h1,
.donation-hero h1,
.reports-hero h1,
.professional-hero h1,
.awards-hero h1,
.id-hero h1,
.verify-hero h1,
.vision-hero h1,
.finance-hero h1,
.events-hero h1,
.hero-section h1 {
    color: #ffffff !important;
    text-shadow: 0 3px 10px rgba(0,0,0,0.22);
}
