:root {
    --primary-color: #5E1064;
    /* Purple */
    --secondary-color: #78350F;
    /* Brown */
    --accent-color: #D97706;
    /* Amber/Gold */
    /* --newsletter-text-color: #F7E7CE; */

    --newsletter-text-color: #8F6B29;
    /* Darker text for better contrast on light background */

    /* Cream/Beige for Newsletter */
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

/* Override Bootstrap primary colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
}

/* TOP BAR */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar i {
    margin-right: 8px;
    color: var(--accent-color);
}

/* NAVBAR */
.navbar {
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-color) !important;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.brand-title span {
    color: inherit;
}

.brand-slogan {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.3px;
    text-transform: none;
    white-space: nowrap;
}

.nav-link {
    font-weight: 600;
    color: var(--secondary-color) !important;
    padding: 0 15px !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-donate {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-donate:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94, 16, 100, 0.3);
}

/* HERO SECTION CAROUSEL (FULL-BLEED) */
.hero-section {
    height: 100vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
    background-color: #000;
    /* Fallback Black */
}

#heroCarousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block !important;
}

.hero-container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-content h1,
.hero-content .display-1,
.hero-content p.lead {
    color: var(--white) !important;
    font-weight: 800 !important;
}

.hero-image {
    display: none;
    /* Removed for full-bleed look */
}

/* CAROUSEL ANIMATIONS (Ken Burns & Text Drop-ins) */
.carousel-item.active .hero-slide-bg {
    animation: zoomInImage 6s linear forwards;
}

@keyframes zoomInImage {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

/* Initial state for text elements */
.hero-content h1,
.hero-content p.lead,
.hero-content .d-flex {
    opacity: 0;
    transform: translateY(-50px);
}

/* Trigger animations when slide is active, staggered delays */
.carousel-item.active .hero-content h1 {
    animation: dropDownText 0.8s ease forwards 0.5s;
}

.carousel-item.active .hero-content p.lead {
    animation: dropDownText 0.8s ease forwards 0.9s;
}

.carousel-item.active .hero-content .d-flex {
    animation: dropDownText 0.8s ease forwards 1.3s;
}

@keyframes dropDownText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 991px) {
    .hero-container {
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* SECTION TITLES */
.section-padding {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* ABOUT SECTION REFINEMENTS */
.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 8px solid var(--white);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Premium Buttons */
.btn-premium-red {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--primary-color);
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(94, 16, 100, 0.2);
}

.btn-premium-red:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(120, 53, 15, 0.3);
}

.btn-premium-navy {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--secondary-color);
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(120, 53, 15, 0.2);
}

.btn-premium-navy:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(94, 16, 100, 0.3);
}

/* Brown Outline Buttons (for Donation Selection) */
.btn-outline-brown {
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-brown:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-check:checked+.btn-outline-brown {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 5px 15px rgba(120, 53, 15, 0.3);
}

/* UNIQUE SECTION: WHAT WE DO (Visual Story Style) */
.do-section {
    padding: 100px 0;
    background-color: var(--white);
}

.story-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 450px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(120, 53, 15, 0.9) 10%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: var(--white);
    transition: var(--transition);
}

.story-card:hover img {
    transform: scale(1.1);
}

.story-card:hover .story-overlay {
    background: linear-gradient(to top, rgba(94, 16, 100, 0.9) 20%, transparent 70%);
}

.story-content h4 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.story-content p {
    font-size: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease 0.1s;
}

.story-card:hover .story-content h4,
.story-card:hover .story-content p {
    transform: translateY(0);
    opacity: 1;
}

/* UNIQUE SECTION: HOW YOU CAN HELP (Glass-Impact Style) */
.help-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.glass-help-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.help-glow-icon {
    width: 90px;
    height: 90px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 35px;
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(94, 16, 100, 0.15);
    position: relative;
    z-index: 1;
}

.help-glow-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.1;
    z-index: -1;
    transition: transform 0.5s ease;
}

.glass-help-card:hover {
    transform: translateY(-15px);
    background: var(--white);
    box-shadow: 0 30px 60px rgba(94, 16, 100, 0.1);
}

.glass-help-card:hover .help-glow-icon {
    background: var(--primary-color);
    color: var(--white);
}

.glass-help-card:hover .help-glow-icon::after {
    transform: scale(1.5);
    opacity: 0.05;
}

.glass-help-card h4 {
    color: var(--secondary-color);
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* UNIQUE SECTION: MEET OUR TEAM */
.team-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.team-profile-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f1f1;
}

.team-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    position: relative;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-avatar::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(94, 16, 100, 0.2);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.team-profile-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(94, 16, 100, 0.08);
}

.team-profile-card h5 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.team-profile-card .ro le {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-dark);
}

/* CONTACT PAGE HEADER */
.contact-header {
    background: linear-gradient(rgba(120, 53, 15, 0.85), rgba(120, 53, 15, 0.85)), url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?auto=format&fit=crop&q=80&w=2070') center/cover no-repeat;
    padding: 120px 0;
    text-align: center;
    color: var(--white);
    margin-bottom: -80px;
    /* Overlap effect for the card */
}

.contact-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 15px;
}

/* CONTACT CARD */
.contact-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.contact-info-side {
    padding: 60px;
}

.contact-form-side {
    padding: 60px;
    background-color: var(--bg-light);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-content h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-content p {
    margin-bottom: 0;
    color: var(--text-muted);
}

/* FORM STYLES */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.form-control {
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    transition: var(--transition);
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(94, 16, 100, 0.1);
    border-color: var(--primary-color);
}

.btn-send {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    width: 100%;
    border: none;
    transition: var(--transition);
    margin-top: 20px;
}

.btn-send:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94, 16, 100, 0.3);
}

/* MAP */
.map-section {
    margin-top: 80px;
    line-height: 0;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* FOOTER ENRICHMENT */
.footer-newsletter input {
    border-radius: 50px 0 0 50px;
    padding: 12px 25px;
}

.footer-newsletter button {
    border-radius: 0 50px 50px 0;
    background-color: var(--primary-color);
    border: none;
    padding: 0 30px;
}

@media (max-width: 991px) {

    .contact-info-side,
    .contact-form-side {
        padding: 40px;
    }
}

/* ELEGANT CARDS FOR ABOUT SECTION */
.elegant-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-color);
    height: 100%;
    transition: var(--transition);
    text-align: center;
}

.elegant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(94, 16, 100, 0.1);
}

.elegant-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.elegant-card h4,
.elegant-card h5 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.elegant-card h4 {
    font-size: 1.5rem;
}

.elegant-card h5 {
    font-size: 1.25rem;
}

/* VALUES GRID */
.value-item {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.3s ease;
    height: 100%;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.value-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-color);
    /* Slightly lighter version of secondary for depth */
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 25px;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.value-item:hover .value-icon {
    background-color: var(--primary-color);
    transform: rotateY(360deg);
    border-color: var(--primary-color);
}

.value-item h5 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

/* SECTION SUBTITLE */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

/* PROBLEM SECTION (Stark Reality) */
.problem-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
    height: 100%;
}

.problem-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* IMPACT / STATS */
.stats-section {
    background: linear-gradient(rgba(120, 53, 15, 0.9), rgba(120, 53, 15, 0.9)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&q=80&w=2070') center/cover fixed;
    color: var(--white);
    padding: 100px 0;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* APPROACH CARDS */
.approach-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: var(--transition);
    height: 100%;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.approach-card img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.approach-body {
    padding: 25px;
}

.approach-card:hover {
    transform: translateY(-10px);
}

/* GALLERY SECTION */
.gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    cursor: pointer;
    height: 300px;
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(94, 16, 100, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* BUTTON POLISH */
.btn-donate:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 100, 20, 0.3);
}

/* FOOTER */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.footer .brand-title {
    font-size: 1.4rem;
    margin-bottom: 0;
}

.footer .brand-slogan {
    font-size: 0.6rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links a {
    color: var(--white);
    font-size: 20px;
    margin-right: 15px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Footer Newsletter Heading */
.footer h5 {
    color: var(--newsletter-text-color) !important;
    border: none;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* PULSE ANIMATION FOR SUPPORT ICON */
.pulse-icon {
    animation: pulse 3s infinite ease-in-out;
    display: inline-block;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}