/* ========== DYNAMIC RESPONSIVE STYLES ========== */
/* Home Page Specific Responsive Adjustments */
/* ========== HERO SLIDER VERTICAL CENTERING FIXES ========== */
.hero-slider .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: calc(100vh - 90px);
    /* Account for header */
}

.hero-slider .slide-content {
    width: 100%;
    max-width: 1200px;
    padding: 40px 5%;
    transform: translateY(0);
    /* Reset any transforms */
    margin: 0 auto;
    position: relative;
    top: 0;
}

/* Adjustments for different screen sizes */
@media (max-width: 1600px) {
    .hero-slider .slide-content {
        padding: 35px 5%;
    }
}

@media (max-width: 1200px) {
    .hero-slider .slide-content {
        padding: 30px 5%;
    }
}

@media (max-width: 992px) {
    .hero-slider .swiper-slide {
        min-height: calc(90vh - 80px);
    }

    .hero-slider .slide-content {
        padding: 25px 5%;
    }
}

@media (max-width: 768px) {
    .hero-slider .swiper-slide {
        min-height: calc(85vh - 70px);
    }

    .hero-slider .slide-content {
        padding: 20px 5%;
    }
}

@media (max-width: 576px) {
    .hero-slider .swiper-slide {
        min-height: calc(80vh - 60px);
    }

    .hero-slider .slide-content {
        padding: 15px 5%;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
        /* Hide arrows on smallest devices */
    }
}

/* Special cases for foldable and very tall devices */
@media (max-height: 700px) {
    .hero-slider .swiper-slide {
        min-height: calc(100vh - 60px);
    }
}

@media (min-height: 1000px) {
    .hero-slider .swiper-slide {
        min-height: 70vh;
    }
}

/* Landscape orientation fixes */
@media (orientation: landscape) and (max-width: 992px) {
    .hero-slider .swiper-slide {
        min-height: 100vh;
    }

    .hero-slider .slide-content {
        padding-top: 10vh;
        padding-bottom: 10vh;
    }
}

/* Ensure content never gets cut off */
.hero-slider .swiper-wrapper {
    align-items: center;
}

/* Fix for Safari/iOS browsers */
@supports (-webkit-touch-callout: none) {
    .hero-slider .swiper-slide {
        height: calc(100vh - 90px) !important;
        min-height: 0 !important;
    }
}


/* Marquee Section Adjustments */
@media (max-width: 992px) {
    .marquee-item {
        font-size: 1rem;
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    .marquee-section {
        padding: 20px 0;
        z-index: 10;
    }

    .marquee-item {
        font-size: 0.9rem;
        padding: 0 15px;
    }

    .marquee-content {
        animation-duration: 30s;
        /* Slower on tablets for readability */
    }
}

@media (max-width: 576px) {
    .marquee-item {
        font-size: 0.8rem;
        padding: 0 10px;
        /*white-space: normal;*/
        /* Allow text wrapping */
    }

    .marquee-content {
        animation-duration: 40s;
        /* Slower on mobile for readability */
        /*white-space: normal;*/
        /* Allow wrapping */
    }

    /*.marquee-item:after {
        display: none; /* Remove bullets on mobile *
    }*/
}

/* Impact Stats Section */
@media (max-width: 768px) {
    .impact-stats {
        padding: 60px 0;
    }

    .impact-stats .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 25px;
    }

    .stat-card h3 {
        font-size: 2.5rem;
    }
}

/* Aito-Tamar Banner */
@media (max-width: 992px) {
    .aito-tamar-banner {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    /* .banner-overlay {
        opacity: 0;
        background: rgba(0, 28, 64, 0.3);
    }

    .overlay-content {
        transform: translateY(0);
    } */
}

/* Featured Programs */
@media (max-width: 992px) {
    .featured-programs {
        padding: 80px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .featured-programs {
        padding: 60px 0;
    }

    .programs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .program-content {
        padding: 20px;
    }
}

/* Video Section */
@media (max-width: 992px) {
    .video-section .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .video-content {
        text-align: center;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .video-section {
        padding: 60px 0;
    }

    .video-content h2 {
        font-size: 2rem;
    }
}

/* Testimonials */
@media (max-width: 768px) {
    .testimonials {
        padding: 60px 0;
    }

    .testimonial-content {
        padding: 30px 20px;
    }

    .testimonial-content p {
        font-size: 1.1rem;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-author img {
        margin-bottom: 15px;
    }
}

/* Newsletter */
@media (max-width: 768px) {
    .newsletter .container {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }

    .newsletter-form input {
        border-radius: 50px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 50px;
        width: 100%;
    }
}

/* Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

        .btn-volunteer-mobile {
        display: inline-block;
        margin-top: 20px;
        width: 100%;
    }

    .footer-about {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* General Mobile Optimizations */
@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Ensure no horizontal scrolling */
    /* html,
    body {
        overflow-x: hidden;
        width: 100%;
    } */
}


/* ========== ABOUT PAGE RESPONSIVE STYLES ========== */

/* Page Header Adjustments */
@media (max-width: 992px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 90px 0 50px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
        padding-top: 50px;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
}

/* About Intro Section */
@media (max-width: 992px) {
    .about-intro .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
        right: 0;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .about-content h2 {
        font-size: 2rem;
    }
    
    .mission-card,
    .vision-card {
        padding: 20px;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .experience-badge {
        width: 80px;
        height: 80px;
        font-size: 0.9rem;
    }
    
    .experience-badge span {
        font-size: 2rem;
    }
}



/* Core Values Section */
@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .value-card {
        padding: 25px;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .value-card h3 {
        font-size: 1.3rem;
    }
}

/* Founder Section */
@media (max-width: 992px) {
    .founder-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .founder-image {
        text-align: center;
    }
    
    .founder-image img {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .founder-content h2 {
        font-size: 2rem;
    }
    
    blockquote {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    
    .founder-signature {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .founder-image img {
        max-width: 100%;
    }
    
    .founder-signature img {
        height: 50px;
    }
}

/* CTA Section */
@media (max-width: 768px) {
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* Footer Adjustments (Consistent with home page) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-about {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* General Mobile Optimizations */
@media (max-width: 576px) {
    /* .container {
        width: 95%;
    } */
    
    h2 {
        font-size: 1.8rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* .btn {
        padding: 10px 20px;
    } */
}


/* ========== EXPERIENCE BADGE RESPONSIVE FIXES ========== */
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary);
    color: var(--black);
    padding: 15px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    z-index: 2;
}

.experience-badge span{
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge p{
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
}



/* Responsive Adjustments */
@media (max-width: 992px) {
    .experience-badge, .program-badge {
        width: 100px;
        height: 100px;
        right: 10px;
        bottom: -15px;
    }
    .program-badge{
    text-align: center;

}
    
    .experience-badge span, .program-badge span {
        font-size: 2rem;
    }
    
    .experience-badge p, .program-badge p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    /* programs-nav{
        position: sticky;
    } */
    .program-badge{
        top: 10px;
        left: 30px;
    }
    .experience-badge, .program-badge {
        width: 90px;
        height: 90px;
        padding: 10px;
    }
    
    .experience-badge span, .program-badge span {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    /* .programs-nav{
        position: fixed;
    } */
    .experience-badge, .program-badge {
        width: 80px;
        height: 80px;
        right: 5px;
        bottom: -10px;
    }
    
    .experience-badge span, .program-badge span{
        font-size: 1.6rem;
    }
    
    .experience-badge p, .program-badge p {
        font-size: 0.7rem;
    }
}

/* Special fix for very small devices */
@media (max-width: 400px) {
    .experience-badge, .program-badge {
        width: 70px;
        height: 70px;
    }
    
    .experience-badge span, .program-badge span {
        font-size: 1.4rem;
    }
    
    .experience-badge p, .program-badge p {
        font-size: 0.65rem;
    }
}


/* Volunteer Page Responsive Styles */
/* Mobile-First Approach */

/* Volunteer Hero Section */
.volunteer-hero {
    display: flex;
    align-items: center;
    min-height: 60vh;
    padding: 100px 0;
    text-align: center;
}

.volunteer-hero .container {
    width: 100%;
}

/* Header Content Centering */
@media (max-width: 768px) {
    .volunteer-hero {
        min-height: 50vh;
        padding: 80px 0;
    }
    
    .volunteer-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .volunteer-hero p {
        font-size: 1.1rem;
        max-width: 90%;
        margin: 0 auto;
    }
}

/* Why Volunteer Section */
.why-volunteer {
    padding: 60px 0;
}

.why-volunteer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.reason-item {
    padding: 25px;
    text-align: center;
}

/* Volunteer Form Section */
.volunteer-form-section {
    padding: 60px 0;
}

.volunteer-form-wrapper {
    padding: 30px;
}

/* Checkbox Group Layout */
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    .volunteer-hero {
        min-height: 70vh;
    }
    
    .why-volunteer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkbox-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Styles (992px and up) */
@media (min-width: 992px) {
    .volunteer-hero {
        min-height: 50vh;
    }
    
    .why-volunteer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .volunteer-form-wrapper {
        padding: 50px;
    }
    
    .checkbox-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop Styles (1200px and up) */
@media (min-width: 1200px) {
    .volunteer-hero {
        min-height: 60vh;
    }
}

/* CTA Section Adjustments */
.cta-section .lead {
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 576px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Form Input Sizing */
.main-form input,
.main-form select,
.main-form textarea {
    width: 100%;
}

/* Footer Adjustments */
.footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Vertical Spacing for All Sections */
.section-padding {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

/* Header Content Vertical Centering */
.page-header,
.volunteer-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Animation Adjustments for Mobile */
@media (max-width: 768px) {
   .volunteer-hero {
        min-height: 40vh;
    }

    .volunteer-hero h1 {
        padding-top: 30px;
    }
        
    
    /* [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    } */
}

/* Touch Target Sizing */
/* .btn, 
.checkbox-group label, 
.programs-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
} */

/* Image Containment */
/* img {
    max-width: 100%;
    height: auto;
} */

/* Page Header Spacing Fix */
.page-header {
    padding-top: 120px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 100px;
        padding-bottom: 60px;
    }
}


/* ========== SITEMAP SECTION ========== */
.sitemap-section {
  padding: 60px 0;
  background: var(--gray);
}

.sitemap-section .container {
  width: 100%;
  /*max-width: 1200px;*/
  margin: 0 auto;
  padding: 0 15px;
}

.sitemap-section h1 {
  font-size: 2.5rem;
  color: var(--purply);
  margin-bottom: 15px;
  text-align: center;
}

.sitemap-section p {
  color: var(--light-text);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.sitemap-category {
  background: var(--white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.sitemap-category:hover {
  transform: translateY(-5px);
}

.sitemap-category h2 {
  color: var(--purply);
  margin-bottom: 15px;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.sitemap-category h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-dark);
}

.sitemap-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-category li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.sitemap-category li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 1.2rem;
  line-height: 1;
}

.sitemap-category a {
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 5px 0;
  font-size: 1rem;
}

.sitemap-category a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .sitemap-section {
    padding: 50px 0;
  }
  
  .sitemap-section h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .sitemap-section {
    padding: 40px 0;
  }
  
  .sitemap-section h1 {
    font-size: 2rem;
  }
  
  .sitemap-section p {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  
  .sitemap-grid {
    gap: 20px;
  }
  
  .sitemap-category {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .sitemap-section {
    padding: 30px 0;
  }
  
  .sitemap-section h1 {
    font-size: 1.8rem;
  }
  
  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .sitemap-category h2 {
    font-size: 1.3rem;
  }
  
  .sitemap-category a {
    font-size: 0.95rem;
  }
}


/* Mobile-specific hero slider adjustments */
@media (max-width: 992px) {
    /* .hero-slider .slide-content h1,
    .hero-slider .slide-content p {
        display: none !important; Hide the text elements */
    /* } */

    /* Adjust button positioning */
    /* .hero-slider .hero-buttons { */
        /* position: absolute; */
        /* padding-top: 100px !important; Position above pagination */
        /* left: 50%;
        transform: translateX(-50%);
        width: auto;
        margin: 0 !important;
        z-index: 10; */
    /* } */
}

@media (max-width: 768px) {
    .hero-slider {
        height: 40vh !important; /* Force 40vh height on mobile */
        min-height: 40vh !important; /* Override any min-height settings */
        padding-top: 70px; /* Maintain header spacing */
    }
    
    .hero-slider .swiper-slide {
        height: 40vh !important; /* Ensure slide matches container */
        min-height: 40vh !important;
    }
    
    /* Ensure background images maintain aspect ratio */
    .hero-slider .swiper-slide {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
    
    /* Adjust content positioning for smaller height */
    .hero-slider .slide-content {
        padding: 5% !important; /* Reduce padding */
        transform: none !important; /* Remove any transforms */
    }
    
    /* Text size adjustments for mobile */
    .hero-slider .slide-content h1 {
        /* Hide large heading on mobile */
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
    }
    
    .hero-slider .slide-content p {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }
    
    /* Button adjustments */
    .hero-buttons {
        margin-top: 90px !important;
    }
    
    .hero-buttons .btn {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }
}

/* Special case for landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-slider {
        height: 40vh !important; /* Slightly taller in landscape */
        min-height: 40vh !important;
    }
    
    .hero-slider .swiper-slide {
        height: 40vh !important;
        min-height: 40vh !important;
    }
}


/* Welcome Section Responsive */
@media (max-width: 1200px) {
    .welcome-content {
        gap: 40px;
    }
    
    .welcome-text h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .welcome-section {
        padding: 80px 0;
    }
    
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .welcome-text {
        text-align: center;
    }
    
    .welcome-buttons {
        justify-content: center;
    }
    
    .welcome-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .shape-decoration {
        right: 0;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 70px 0;
    }
    
    .welcome-text h2 {
        font-size: 2.2rem;
    }
    
    .welcome-text p {
        font-size: 1.1rem;
    }
    
    .welcome-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .welcome-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .welcome-section {
        padding: 60px 0;
    }
    
    .welcome-text h2 {
        font-size: 2rem;
    }
    
    .welcome-text p {
        font-size: 1rem;
    }
    
    .shape-decoration {
        width: 200px;
        height: 200px;
    }
}


/* Welcome Section Responsive 2*/
/* @media (max-width: 1200px) {
    .welcome-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .welcome-section {
        padding: 80px 0;
    }
    
    .welcome-grid {
        gap: 30px;
    }
    
    .welcome-card {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .welcome-header h2 {
        font-size: 2.2rem;
    }
    
    .divider {
        margin-bottom: 30px;
    }
    
    .welcome-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 40px;
    }
    
    .icon-circle {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .welcome-section {
        padding: 70px 0;
    }
    
    .welcome-header h2 {
        font-size: 2rem;
    }
    
    .welcome-card p {
        font-size: 1rem;
    }
    
    .welcome-cta .btn {
        width: 100%;
    }
} */
