/* AHCQAD Custom Image Styles */
.hero-section .slide-bg {
    width: 100%;
    height: 100vh !important;
    object-fit: cover;
    object-position: center;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background-color: #28a745;
    border-left: 4px solid #1e7e34;
}

.notification-error {
    background-color: #dc3545;
    border-left: 4px solid #c82333;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    opacity: 0.8;
}

/* ULTIMATE OVERLAY REMOVAL - Multiple approaches */
.slide-overlay,
.hero-section .slide-overlay,
.hero-slider .slide-overlay,
div.slide-overlay,
.slide .slide-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* Fix slider container */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-slider {
    position: relative;
    height: 100vh !important;
    width: 100% !important;
}

/* Fix slide positioning and transitions */
.slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    opacity: 0 !important;
    transition: opacity 0.8s ease-in-out !important;
    z-index: 1 !important;
}

.slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

/* Ensure slide content is visible */
.slide-content {
    position: absolute !important;
    top: 80% !important;
    left: 0 !important;
    width: 100% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    color: white !important;
}

/* Enhanced text styling */
.hero-title {
    text-shadow: 3px 3px 10px rgba(0,0,0,0.9), 1px 1px 5px rgba(0,0,0,1) !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 3.5rem !important;
}

.hero-subtitle {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9), 0px 0px 4px rgba(0,0,0,1) !important;
    color: white !important;
    font-size: 1.2rem !important;
}

/* Fix slider navigation */
.slider-nav {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 15 !important;
    display: flex !important;
    gap: 15px !important;
}

.nav-dot {
    width: 60px !important;
    height: 6px !important;
    background-color: rgba(255,255,255,0.5) !important;
    border: none !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    overflow: hidden !important;
    outline: none !important;
}

.nav-dot.active {
    background-color: rgba(255,255,255,1) !important;
    box-shadow: 0 0 10px rgba(255,255,255,0.8) !important;
}

.nav-dot:hover {
    background-color: rgba(255,255,255,0.8) !important;
    transform: scale(1.1) !important;
}

.team-member .member-image img {
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member .member-image img:hover {
    transform: scale(1.05);
}

.partner-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-image img {
    transition: opacity 0.3s ease;
}

.partner-image img:hover {
    opacity: 0.8;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cause-image img,
.blog-image img {
    transition: transform 0.3s ease;
}

.cause-card:hover .cause-image img,
.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

/* Volunteer page styles */
.volunteer-image img,
.volunteer-hero img {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.opportunity-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.opportunity-card:hover {
    transform: translateY(-5px);
}

/* About page team section */
.about-team-member .member-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* Responsive adjustments for images */
@media (max-width: 768px) {
    .hero-section .slide-bg {
        height: 60vh;
    }
    
    .team-member .member-image img {
        width: 150px !important;
        height: 150px !important;
    }
    
    .partner-image img {
        max-height: 100px !important;
    }
}

/* Fix for image loading */
.slide-bg,
.member-image img,
.partner-image img,
.about-image img,
.cause-image img,
.blog-image img,
.volunteer-image img {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.slide-bg[src*="jpeg"],
.member-image img[src*="jpeg"],
.partner-image img[src*="jpeg"],
.about-image img[src*="jpeg"],
.cause-image img[src*="jpeg"],
.blog-image img[src*="jpeg"],
.volunteer-image img[src*="jpeg"] {
    background: transparent;
    border: none;
}

/* === COMPLETE OVERLAY REMOVAL - ABSOLUTE OVERRIDE === */
/* Target EVERY possible overlay element and pseudo-element */

.hero-section .slide::before,
.hero-section .slide::after,
.slide::before,
.slide::after,
.hero-slider::before,
.hero-slider::after,
.hero-section::before,
.hero-section::after,
.hero-banner::before,
.hero-banner::after,
.banner::before,
.banner::after,
.slider::before,
.slider::after,
*[class*="hero"]::before,
*[class*="hero"]::after,
*[class*="slide"]::before,
*[class*="slide"]::after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    background-size: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    top: -10000px !important;
    left: -10000px !important;
    z-index: -1000 !important;
}

/* Remove ANY overlay classes or elements */
.overlay,
.hero-overlay,
.slide-overlay,
.banner-overlay,
.bg-overlay,
.image-overlay,
.dark-overlay,
.gradient-overlay,
*[class*="overlay"],
*[id*="overlay"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    background: none !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    top: -10000px !important;
    left: -10000px !important;
    z-index: -1000 !important;
}

/* Force transparent backgrounds on ALL slider elements */
.hero-section,
.hero-section *,
.hero-slider,
.hero-slider *,
.slide,
.slide *,
.hero-banner,
.hero-banner *,
*[class*="hero"],
*[class*="slide"] {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    background-attachment: initial !important;
    background-blend-mode: normal !important;
    background-size: auto !important;
    background-position: initial !important;
    background-repeat: no-repeat !important;
}

/* === SLIDER STRUCTURE === */
.hero-section {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    position: relative !important;
    overflow: hidden !important;
    background: transparent !important;
}

.hero-slider {
    height: 100% !important;
    width: 100% !important;
    position: relative !important;
    background: transparent !important;
}

.slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    transition: opacity 1s ease-in-out !important;
    z-index: 1 !important;
    background: transparent !important;
}

.slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

/* === SLIDE CONTENT POSITIONED TO THE RIGHT === */
.slide-content {
    position: absolute !important;
    top: 80% !important;
    right: 0% !important;  /* Moved to the right */
    transform: translateY(-50%) !important;  /* Only vertical centering */
    text-align: left !important;  /* Left align text */
    color: white !important;
    z-index: 15 !important;
    width: 100% !important;  /* Narrower width for right positioning */
    background: rgba(0,0,0,0.5) !important;  /* Semi-transparent background */
    padding: 3rem !important;
    border-radius: 15px !important;
    backdrop-filter: blur(8px) !important;
}

/* === TEXT STYLING === */
.slide-content h1,
.slide-content h2,
.hero-title {
    font-size: 2.8rem !important;
    font-weight: bold !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 4px 4px 12px rgba(0,0,0,0.9), 2px 2px 8px rgba(0,0,0,0.8) !important;
    line-height: 1.2 !important;
    color: white !important;
    text-align: left !important;
}

.slide-content p,
.hero-subtitle {
    font-size: 1.3rem !important;
    margin-bottom: 2rem !important;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.9), 1px 1px 6px rgba(0,0,0,0.8) !important;
    color: white !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

/* === ENSURE IMAGES ARE FULLY VISIBLE === */
.hero-section .slide img,
.slide img,
.slide-bg,
.hero-slider img,
*[class*="slide"] img {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    background: none !important;
}

/* === NAVIGATION DOTS === */
.slider-nav {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 15px !important;
    z-index: 25 !important;
    background: rgba(0,0,0,0.4) !important;
    padding: 12px 25px !important;
    border-radius: 30px !important;
    backdrop-filter: blur(5px) !important;
}

.nav-dot {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background-color: rgba(255,255,255,0.6) !important;
    border: 2px solid rgba(255,255,255,0.9) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 26 !important;
}

.nav-dot:hover,
.nav-dot.active {
    background-color: white !important;
    border-color: white !important;
    transform: scale(1.4) !important;
    box-shadow: 0 0 15px rgba(255,255,255,0.9) !important;
}

/* === VOLUNTEER PAGE IMAGE FIX === */
.volunteer-image img,
.volunteer-benefits-image img,
.story-image img,
.opportunity-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    transition: transform 0.3s ease !important;
}

.story-image img {
    height: 250px !important;
    object-fit: cover !important;
}

.volunteer-image img:hover,
.volunteer-benefits-image img:hover {
    transform: scale(1.02) !important;
}

.story-card {
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease !important;
}

.story-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.opportunity-card {
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease !important;
    background: white !important;
}

.opportunity-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* === MISSION ICON STYLING === */
.mission-icon i {
    color: white !important;
}

/* === PARTNER IMAGE CONTAINER - 100% WIDTH AND HEIGHT === */
.partner-image-container {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 5% 5%;
}

.partner-image-container img,
.partner-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* === FOUNDERS SECTION IMAGE HEIGHT REDUCTION === */
.founders-section .founders-image {
    max-height: 400px !important;
    overflow: hidden !important;
    border-radius: 15px !important;
}

.founders-section .founders-image img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 15px !important;
}

/* Responsive adjustments for founders image */
@media (max-width: 768px) {
    .founders-section .founders-image {
        max-height: 300px !important;
    }
    
    .founders-section .founders-image img {
        height: 300px !important;
    }
}

@media (max-width: 576px) {
    .founders-section .founders-image {
        max-height: 250px !important;
    }
    
    .founders-section .founders-image img {
        height: 250px !important;
    }
}

/* === REMOVE GAP BETWEEN SLIDER AND SUPPORT SECTION === */
.hero-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.support-section {
    margin-top: 0 !important;
    padding-top: 3rem !important;
}

/* Ensure no gaps between sections */
section + section {
    margin-top: 0 !important;
}

/* Override Bootstrap py-5 spacing for support section */
.support-section.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
/* Remove unwanted transform from hero-section */
.hero-section {
    transform: none !important;
}