/********** Template CSS **********/
:root {
    /* Primary Brand - Raska Foundation Deep Green */
    --primary: #166534;
    --primary-light: #15803d;

    /* Accent - Gold/Amber from branding */
    --accent: #D97706;
    --accent-dark: #B45309;

    /* Secondary - same deep green family */
    --secondary: #166534;
    --secondary-dark: #14532d;

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f0fdf4;
    --bg-dark: #14532d;

    /* Text */
    --text-dark: #14532d;
    --text-body: #374151;
    --text-muted: #6B7280;
    --text-light: #ffffff;

    /* Geometry */
    --radius: 8px;
    --shadow: 0 10px 30px rgba(22, 101, 52, 0.08);
}

body {
    color: var(--text-body);
    background-color: var(--bg-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    color: var(--text-dark);
    font-family: 'Lora', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-dark {
    background-color: var(--bg-dark) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.btn-primary {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(5, 20, 35, 0.2);
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: #FFFFFF !important;
}


.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: var(--radius); /* Professional Formal Radius */
    padding: 1rem 2.25rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    color: #FFFFFF !important;
}

.btn-donate {
    background-color: var(--secondary) !important;
    color: #FFFFFF !important;
}

.btn-donate:hover {
    background-color: var(--secondary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 125, 66, 0.2);
}

.hero-btn {
    background-color: var(--secondary) !important;
    border-radius: var(--radius) !important;
    color: #ffffff !important;
}

.hero-btn:hover {
    background-color: var(--secondary-dark) !important;
}


/*** Navbar ***/
.fixed-top {
    transition: top 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 9999;
    background-color: var(--bg-dark);
}

.top-bar {
    height: 45px;
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.navbar {
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: rgba(255, 255, 255, .85);
    font-weight: 500;
    outline: none;
    transition: .3s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, .07);
        background: var(--bg-dark);
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

/* Force solid background for inner page navbars */
.fixed-top.nav-inner {
    background-color: var(--bg-dark) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/*** Carousel & Header ***/
#header-carousel .carousel-item {
    height: 100vh;
    min-height: 600px;
    position: relative;
}

#header-carousel .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 83, 45, 0.65);
    z-index: 1;
}

#header-carousel .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2; /* Ensure caption is above overlay */
    padding-top: 45px; /* Accounting for top-bar */
}

.hero-btn {
    background-color: var(--secondary) !important; /* Growth Green for Donate */
    border-radius: var(--radius) !important;
    color: #ffffff !important;
}

.hero-btn:hover {
    background-color: var(--secondary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 125, 66, 0.2);
}

/*** Sections & Cards ***/
.py-5 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.service-item, .causes-item, .team-item {
    background: var(--bg-white);
    border: none;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(11, 37, 61, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover, .causes-item:hover, .team-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(11, 37, 61, 0.08);
}

/* Icons */
.service-item i, .causes-item i, .contact-item i {
    color: var(--secondary) !important; /* Growth Green for thematic alignment */
}

/*** Team ***/
.team-item {
    transition: .5s;
    border-radius: 12px !important;
    overflow: hidden;
}

.team-item img {
    transition: .5s;
}

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

.team-item .team-text {
    position: relative;
    padding: 1.5rem;
    background: #FFFFFF;
    transition: .5s;
    text-align: center;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 83, 45, 0.9);
    transition: .5s;
    opacity: 0;
}

.team-item:hover .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    width: 40px;
    height: 40px;
    margin: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .3s;
    padding: 0;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--secondary);
}

/*** Testimonial ***/
.testimonial-item {
    padding: 2rem;
    text-align: left !important;
}

.testimonial-text {
    position: relative;
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(11, 37, 61, 0.05);
    border-radius: 12px;
    padding: 2.5rem !important;
    margin-bottom: 2.5rem;
    transition: .5s;
    border-left: 5px solid var(--secondary);
}

.testimonial-text::after {
    position: absolute;
    content: "";
    width: 20px;
    height: 20px;
    bottom: -10px;
    left: 50px;
    background: #FFFFFF;
    transform: rotate(45deg);
    box-shadow: 10px 10px 10px rgba(0,0,0,0.02);
}

.testimonial-text p {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-body);
}

.testimonial-item img {
    width: 70px !important;
    height: 70px !important;
    border-radius: 70px;
    margin-right: 15px;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 40px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    opacity: 0;
    transition: .5s;
    z-index: 1;
    pointer-events: none;
}

.testimonial-carousel:hover .owl-nav {
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: .5s;
    pointer-events: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

/*** Footer ***/
.footer {
    background-color: var(--bg-dark) !important;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,0.5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255,255,255,0.5);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bg-white);
    letter-spacing: 1px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--secondary);
}

/* Donate Section Overlay */
.donate {
    background: rgba(5, 20, 35, 0.9); /* Brand Deep Blue Overlay */
}

.donate h1, .donate p {
    color: #ffffff !important;
}

/*** Form Controls ***/
.form-control {
    border: 1px solid rgba(5, 20, 35, 0.1);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    transition: .3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(5, 20, 35, 0.1);
}

.form-floating > label {
    padding-left: 1.25rem;
    color: var(--text-body);
}

.btn-check:checked + .btn-outline-primary {
    background-color: var(--primary);
    color: #ffffff !important;
}

/* Custom Impact Tier styling for donate page */
.impact-tier-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(11, 37, 61, 0.05);
    transition: .3s;
    border-bottom: 4px solid transparent;
    height: 100%;
}

.impact-tier-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary);
    box-shadow: 0 20px 40px rgba(11, 37, 61, 0.08);
}

.impact-tier-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/*** Gallery ***/
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(11, 37, 61, 0.05);
    transition: .5s;
    height: 300px;
}

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

.gallery-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(20, 83, 45, 0.88);
    transition: .5s;
    opacity: 0;
    padding: 2rem;
    text-align: center;
}

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

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

.gallery-overlay h5 {
    color: #ffffff;
    font-family: 'Lora', serif;
    margin-bottom: 0.5rem;
}

.gallery-overlay small {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*** Raska Foundation Brand Components ***/

/* Stats Counter Strip */
.stats-strip {
    background: linear-gradient(135deg, #14532d 0%, #166534 50%, #15803d 100%);
    padding: 60px 0;
}
.stats-strip .stat-item { text-align: center; }
.stats-strip .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #D97706;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}
.stats-strip .stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
}

/* Program Cards */
.program-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    border-top: 4px solid #166534;
    box-shadow: 0 8px 25px rgba(22,101,52,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(22,101,52,0.14);
}
.program-card .prog-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}
.program-card .prog-icon i {
    font-size: 1.7rem;
    color: #166534;
}
.program-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #14532d;
    margin-bottom: 12px;
}
.program-card p { font-size: 0.92rem; color: #4B5563; line-height: 1.7; margin: 0; }

/* Initiative Cards */
.initiative-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    padding: 50px 40px;
    color: #fff;
    height: 100%;
}
.initiative-card.milli-samvad {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}
.initiative-card.samvidhan {
    background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%);
}
.initiative-card .init-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}
.initiative-card h3 {
    color: #fff !important;
    font-size: 2rem;
    margin-bottom: 12px;
}
.initiative-card .init-sub {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 25px;
    font-style: italic;
}
.initiative-card p { color: rgba(255,255,255,0.85); line-height: 1.8; font-size: 0.95rem; }

/* Why Choose Us Cards */
.why-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid #D97706;
    box-shadow: 0 4px 15px rgba(22,101,52,0.06);
    transition: transform 0.25s ease;
    height: 100%;
}
.why-card:hover { transform: translateY(-4px); }
.why-card .why-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-card .why-icon i { font-size: 1.3rem; color: #D97706; }
.why-card h5 { font-size: 1rem; font-weight: 700; color: #14532d; margin-bottom: 6px; }
.why-card p { font-size: 0.875rem; color: #6B7280; margin: 0; line-height: 1.6; }

/* Certification Badge Strip */
.cert-strip {
    background: #f0fdf4;
    border-top: 1px solid #dcfce7;
    border-bottom: 1px solid #dcfce7;
    padding: 40px 0;
}
.cert-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #D97706;
    border-radius: 50%;
    width: 110px;
    height: 110px;
    text-align: center;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(217,119,6,0.15);
    transition: transform 0.25s;
}
.cert-badge:hover { transform: scale(1.08); }
.cert-badge .cert-title {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #14532d;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.cert-badge .cert-sub {
    font-size: 0.6rem;
    color: #D97706;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 3px;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #14532d 0%, #166534 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}

/* Leadership Cards */
.leader-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(22,101,52,0.1);
    transition: transform 0.3s;
}
.leader-card:hover { transform: translateY(-6px); }
.leader-card .leader-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top;
}
.leader-card .leader-info {
    padding: 25px;
    border-top: 4px solid #166534;
}
.leader-card .leader-info h4 { color: #14532d; font-size: 1.2rem; margin-bottom: 4px; }
.leader-card .leader-info span { color: #D97706; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.leader-card .leader-message { font-size: 0.9rem; color: #4B5563; line-height: 1.75; margin-top: 12px; }

/* Section title override for green brand */
.section-tittle span {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 14px;
}
