/* Custom CSS for NGO Website Redesign */

/* 1. Brand Colors & CSS Variables */
/* These fallback to Donatix defaults but can be updated here easily */
:root {
  --donatix-base: #D85A18; /* Update to your primary logo color */
  --donatix-secondary: #0F7547; /* Update to your secondary logo color */
  --donatix-secondary-rgb: 15, 117, 71;
}

/* Professional Color Treatment for Homepage using Logo Colors */

/* Buttons */
.thm-btn, .btn-box a {
    background-color: var(--donatix-base) !important;
    color: #ffffff !important;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255, 85, 40, 0.3);
    transition: all 0.3s ease;
}
.thm-btn:hover, .btn-box a:hover {
    background-color: var(--donatix-secondary) !important;
    box-shadow: 0 6px 20px rgba(26, 104, 91, 0.4);
    transform: translateY(-2px);
}

/* Headings & Text */
.sec-title__title {
    color: var(--donatix-secondary) !important;
}
.sec-title__tagline .text h4 {
    color: var(--donatix-base) !important;
}

/* Icons & Accents */
.icon-box span {
    color: var(--donatix-base);
}

/* 2. Fix Dropdown Hover Logic & Theme Colors */
.main-menu .main-menu__list > li.custom-mega-menu-li {
    position: static;
}

.main-menu .main-menu__list > li.custom-mega-menu-li > .mega-menu-wrapper {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 100%;
    background-color: #fff;
    padding: 40px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    pointer-events: none; /* Fixes unintended hover from overlapping invisible boxes */
    border-top: 3px solid var(--donatix-base); /* Theme color accent */
}

.main-menu .main-menu__list > li.custom-mega-menu-li:hover > .mega-menu-wrapper {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.main-menu .main-menu__list > li:not(.custom-mega-menu-li):hover > .mega-menu-wrapper {
    display: none !important;
}

/* Category Styling matching logo theme */
.mega-col h5 a {
    color: var(--donatix-secondary);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

.mega-col h5 a:hover {
    color: var(--donatix-base);
}

.mega-col ul li a {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    display: inline-block;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

.mega-col ul li a:hover {
    color: var(--donatix-base);
}

/* 2.5 Mega Menu Structural Layout (4 Top / 3 Bottom) */
.mega-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.mega-row.top-row {
    margin-bottom: 30px;
}

.mega-row.top-row > .mega-col {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
}

.mega-row.bottom-row {
    justify-content: flex-start;
    gap: 20px;
}

.mega-row.bottom-row > .mega-col {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

@media (max-width: 991px) {
    .main-menu .main-menu__list > li.custom-mega-menu-li {
        position: relative;
    }
    .main-menu .main-menu__list > li.custom-mega-menu-li > .mega-menu-wrapper {
        position: static;
        width: 100%;
        min-width: 100%;
        padding: 15px;
        box-shadow: none;
        display: none;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        border-top: none;
    }
    .main-menu .main-menu__list > li.custom-mega-menu-li:hover > .mega-menu-wrapper,
    .main-menu .main-menu__list > li.custom-mega-menu-li.active > .mega-menu-wrapper {
        display: block;
    }
    .mega-row.top-row, .mega-row.bottom-row {
        flex-direction: column;
        margin-bottom: 0;
        gap: 0;
    }
    .mega-row.top-row > .mega-col,
    .mega-row.bottom-row > .mega-col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* 3. Hero Slider Styles (Targeting reference site proportions) */
.hero-slider-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-slider-container {
    width: 100%;
    height: 80vh; /* Large impactful banner matching reference */
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-slide-item {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay using brand secondary color for professional feel */
    background: linear-gradient(to right, rgba(var(--donatix-secondary-rgb), 0.8), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-slide-subtitle {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: var(--donatix-base);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
}

.hero-slide-title {
    color: #ffffff;
    font-size: 75px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-slide-text {
    color: #ffffff;
    font-size: 20px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero-slide-btn {
    padding: 15px 40px;
    font-size: 18px;
    background-color: var(--donatix-base) !important;
    border: none;
    color: #fff !important;
}

/* Swiper Navigation & Pagination */
.hero-slider-container .swiper-button-next,
.hero-slider-container .swiper-button-prev {
    color: #ffffff;
    background: rgba(26, 104, 91, 0.5); /* Secondary color for arrows */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-slider-container .swiper-button-next:after,
.hero-slider-container .swiper-button-prev:after {
    font-size: 24px;
}

.hero-slider-container .swiper-button-next:hover,
.hero-slider-container .swiper-button-prev:hover {
    background: var(--donatix-base);
}

.hero-slider-container .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.hero-slider-container .swiper-pagination-bullet-active {
    background: var(--donatix-base);
    opacity: 1;
}

/* Animations inside active slide */
.swiper-slide-active .hero-slide-subtitle {
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
}
.swiper-slide-active .hero-slide-title {
    animation: fadeInUp 1s ease 0.8s forwards;
    opacity: 0;
}
.swiper-slide-active .hero-slide-text {
    animation: fadeInUp 1s ease 1.1s forwards;
    opacity: 0;
}
.swiper-slide-active .hero-slide-btn {
    animation: fadeInUp 1s ease 1.4s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Hero Slider */
@media (max-width: 1199px) {
    .hero-slider-container { height: 70vh; min-height: 450px; }
    .hero-slide-title { font-size: 60px; }
}

@media (max-width: 991px) {
    .hero-slider-container { height: 60vh; min-height: 400px; }
    .hero-slide-title { font-size: 50px; }
    .hero-slide-subtitle { font-size: 20px; }
}

@media (max-width: 767px) {
    .hero-slider-container { height: 50vh; min-height: 350px; }
    .hero-slide-title { font-size: 38px; }
    .hero-slide-subtitle { font-size: 16px; }
    .hero-slide-text { font-size: 16px; margin-bottom: 30px; }
    .hero-slider-container .swiper-button-next,
    .hero-slider-container .swiper-button-prev { display: none; } /* Hide arrows on mobile */
}

/* 4. Logo Sizing Fix */
.logo-box .custom-header-logo {
    max-width: 220px; /* Increased from 140px to ensure it is clearly visible */
    height: auto;
    width: auto;
}

/* 5. Header & Top Bar Adjustments for Banner Space */
.main-header__one-top {
    padding: 2px 0 !important;
}
.main-header__one-top-inner {
    min-height: auto !important;
}
.main-menu__wrapper-inner {
    padding: 0 !important;
}
/* Reduce default navigation padding that makes header tall */
.main-menu .main-menu__list > li > a {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
.logo-box .custom-header-logo {
    max-width: 140px !important; 
}

/* 6. Project Page Custom Styles */
.custom-project-sidebar {
    background-color: #f8f9fa;
    border: 1px solid #eaeaea;
}
.sidebar-category-list li a {
    color: #444;
    padding: 8px 0;
    transition: color 0.3s;
}
.sidebar-category-list li a:hover {
    color: var(--donatix-base);
}
.sidebar-category-list li a.active {
    color: var(--donatix-base);
}
.custom-faq-accordion .card-header {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
}
.custom-faq-accordion .btn-link {
    color: var(--donatix-secondary);
}
.custom-faq-accordion .btn-link:hover {
    text-decoration: none;
}
.transition-icon {
    transition: transform 0.3s ease;
}
.custom-faq-accordion .btn-link:not(.collapsed) .transition-icon {
    transform: rotate(180deg);
}

/* Sitemap Page Styles */
.sitemap-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}
.sitemap-box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.04);
    border-top: 4px solid var(--thm-base);
    transition: all 0.3s ease;
}
.sitemap-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.08);
}
.sitemap-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--thm-black);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    position: relative;
}
.sitemap-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--thm-base);
}
.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sitemap-list li {
    margin-bottom: 12px;
}
.sitemap-list li a {
    color: #666;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
.sitemap-list li a::before {
    content: "\e90e"; /* Flaticon right arrow icon */
    font-family: 'icomoon' !important;
    font-weight: normal;
    color: var(--thm-base);
    margin-right: 10px;
    font-size: 12px;
    transition: all 0.3s ease;
}
.sitemap-list li a:hover {
    color: var(--thm-base);
    padding-left: 5px;
}

/* Extracted inline styles for contact and donate pages */
.contact-icon-box { flex-shrink: 0; }
.contact-content-box { min-width: 0; }
.contact-email-text { word-break: break-all; }

.donation-page-section-custom { padding: 80px 0; background-color: #f9f9f9; }
.donation-info-box-custom { height: 100%; box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.05); padding: 40px; border-radius: 15px; background-color: #ffffff; border-top: 5px solid var(--thm-base); }
.donation-info-box-custom h2.title { font-size: 32px; margin-bottom: 20px; font-weight: 700; line-height: 1.2; }
.donation-info-box-custom p.desc { margin-bottom: 30px; font-size: 16px; color: #666; line-height: 1.8; }
.donation-info-box-custom hr.divider { margin: 30px 0; border-color: #eee; }
.donation-content-box { margin-bottom: 25px; }
.donation-content-box h4 { margin-bottom: 15px; color: var(--thm-black); font-weight: 600; display: flex; align-items: center; }
.donation-content-box h4 i { color: var(--thm-base); margin-right: 10px; }
.donation-content-box ul.bank-details { list-style: none; padding: 0; margin: 0; color: #666; line-height: 2; }
.donation-upi-text { color: #666; margin-bottom: 5px; }
.donation-upi-note { font-size: 14px; color: #888; font-style: italic; }

.donation-form-inner-custom { box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.05); padding: 50px 40px; border-radius: 15px; background-color: #ffffff; }
.donation-form-inner-custom h2.title { font-size: 28px; font-weight: 700; }
.donation-form-inner-custom p.desc { color: #666; margin-top: 10px; }
.donation-form-inner-custom input[type="text"],
.donation-form-inner-custom input[type="email"],
.donation-form-inner-custom input[type="number"],
.donation-form-inner-custom textarea { border-radius: 8px; }
.donation-form-inner-custom input[type="number"] { border: 2px solid #eef1f6; font-weight: bold; font-size: 18px; color: var(--thm-black); }
.donation-form-inner-custom .submit-btn { width: 100%; border-radius: 8px; padding: 20px 0; font-size: 18px; font-weight: 700; }
.donation-form-inner-custom .secure-text { margin-top: 15px; font-size: 13px; color: #999; }
