/* ARA Website Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll */
html {
    max-width: 100%;
    overflow-x: hidden;
}

/* Additional mobile overflow protection */
.container,
.landing-container,
.about-container,
.board-container,
.events-container,
.contact-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Header container - no overflow hidden to preserve sticky behavior */
.header-container {
    width: 100%;
    max-width: 100%;
}

/* Ensure header stays sticky on all devices */
@media (max-width: 768px) {
    header {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1001 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
}

/* Fallback for browsers with sticky issues */
@supports not (position: sticky) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1001;
    }
    
    /* Add top padding to body to compensate for fixed header */
    body {
        padding-top: 80px;
    }
}

/* Ensure all images and media are responsive */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-padding {
    padding: 4rem 0;
}

/* Header Styles */
header {
    background-color: #5D4037;
    color: #ecf0f1;
    padding: 1rem 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    left: 0;
    right: 0;
    /* Ensure no transform issues */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    max-height: 60px;
}

/* Navigation Styles */
.main-nav {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.5rem;
    display: block;
}

.nav-menu a:hover {
    color: #f39c12;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Focus styles for accessibility */
.mobile-menu-toggle:focus {
    outline: 2px solid #f39c12;
    outline-offset: 2px;
}

/* Main Landing Section */
main {
    background-color: #f5f3f0;
    min-height: 90vh;
    padding: 4rem 0;
    scroll-margin-top: 80px;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    min-height: 600px;
}

.content-section {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

.main-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #5d4037;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 300;
}

.description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #757575;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    background-color: #f39c12;
    color: #2c3e50;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: visible;
    padding: 1rem 1rem 2rem 1rem;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    height: 450px;
    background-image: url('../images/RajasthanSunset.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    position: relative;
    margin: 0;
    flex-shrink: 0;
    filter: brightness(1.1) contrast(1.05);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0) 100%);
    border-radius: 15px;
}

.hero-image > div {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* About Section Styles */
.about-section {
    background-color: #ffffff;
    padding: 4rem 0;
    scroll-margin-top: 80px;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #5d4037;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 300;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.story-block {
    background-color: #f5f3f0;
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid #f39c12;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.story-block h3 {
    color: #5d4037;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.story-icon {
    color: #f39c12;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.story-block p {
    color: #555;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.story-block p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    background: linear-gradient(120deg, #f39c12 0%, #e67e22 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.year-badge {
    background-color: #5d4037;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-right: 0.5rem;
}

.growth-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: bold;
    color: #f39c12;
    display: block;
}

.stat-label {
    color: #757575;
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-top: 0.5rem;
}

/* Board Members Section Styles */
.board-section {
    background-color: #f5f3f0;
    padding: 4rem 0;
    scroll-margin-top: 80px;
}

.board-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.board-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #5d4037;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 300;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
}

.board-member {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    max-width: 280px;
    width: 100%;
}

.board-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f39c12;
    transition: border-color 0.3s ease;
}

.board-member:hover .member-photo {
    border-color: #e67e22;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.board-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-info {
    padding-top: 0.5rem;
}

.member-name {
    color: #5d4037;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.member-title {
    color: #757575;
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

/* Mission Section Styles */
.mission-block {
    background: linear-gradient(135deg, #ffffff 0%, #f8f6f3 100%);
    padding: 3rem;
    border-radius: 20px;
    border-left: 5px solid #f39c12;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.mission-statement {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.8;
    color: #444;
    font-style: italic;
    text-align: center;
    margin: 2rem 0 3rem;
    padding: 1.5rem;
    background-color: rgba(243, 156, 18, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(243, 156, 18, 0.1);
}

.mission-pillars {
    margin-top: 2.5rem;
}

.pillars-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pillar-tab {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    min-width: 120px;
    justify-content: center;
}

.pillar-tab:hover {
    border-color: #f39c12;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
}

.pillar-tab.active {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-color: #f39c12;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.pillar-tab i {
    font-size: 1.1rem;
}

.pillars-content {
    position: relative;
    min-height: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    padding-bottom: 2rem;
}

.pillar-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 2.5rem 2.5rem 2.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

.pillar-content.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
    visibility: visible;
}

/* Ensure all pillars work consistently */
.pillar-content#community.active,
.pillar-content#generations.active,
.pillar-content#growth.active,
.pillar-content#home-pillar.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    z-index: 10 !important;
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.pillar-content h4 {
    color: #5d4037;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.pillar-content p {
    color: #666;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Events Section Styles */
.events-section {
    background-color: #ffffff;
    padding: 4rem 0;
    scroll-margin-top: 80px;
}

.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.events-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #5d4037;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.events-intro {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.event-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.8) 0%, rgba(243, 156, 18, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover .event-overlay {
    opacity: 1;
}

.event-icon {
    font-size: 4rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.event-content {
    padding: 2rem;
}

.event-title {
    color: #5d4037;
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.event-description {
    color: #666;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.event-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Events Section Responsive */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }

    .event-card {
        max-width: none;
    }

    .event-image {
        height: 200px;
    }

    .event-content {
        padding: 1.5rem;
    }

    .event-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .events-container {
        padding: 0 1rem;
    }

    .events-grid {
        max-width: none;
    }

    .event-content {
        padding: 1.2rem;
    }

    .feature-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Contact Section Styles */
.contact-section {
    background-color: #ffffff;
    padding: 4rem 0;
    scroll-margin-top: 80px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #5d4037;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 300;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-image {
    width: 100%;
    height: 450px;
    background-image: url('../images/hawa-mahal-jaipur-rajasthan.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.contact-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-block {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    color: #f39c12;
    font-size: 1.5rem;
    margin-top: 0.2rem;
    min-width: 30px;
    flex-shrink: 0;
}

.contact-info h3 {
    color: #5d4037;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-info p {
    color: #757575;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.contact-info a {
    color: #757575;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-info a:hover {
    color: #f39c12;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.social-link {
    color: #f39c12;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.social-link:hover {
    color: #e67e22;
    transform: translateY(-2px);
}

.whatsapp-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.qr-code {
    width: 80px;
    height: 80px;
    background-color: white;
    border: 2px solid #f39c12;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-align: center;
    color: #5d4037;
    flex-shrink: 0;
}

.whatsapp-link {
    background-color: #25D366;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .landing-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    .main-heading {
        font-size: 3rem;
    }
    
    .hero-image {
        height: 400px;
        max-width: 350px;
    }
    
    .image-section {
        padding: 0.5rem 0.5rem 2rem 0.5rem;
    }
    
    .contact-image {
        height: 400px;
    }

    /* Board Members Responsive - Large Tablet */
    .board-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .member-photo {
        width: 130px;
        height: 130px;
    }
}

/* Mobile Landscape and Small Tablet */
@media (max-width: 768px) {
    /* Adjust scroll margin for mobile header */
    main,
    .about-section,
    .board-section,
    .events-section,
    .contact-section {
        scroll-margin-top: 100px;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
        position: relative;
    }

    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide desktop navigation and show mobile menu */
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #5D4037;
        width: min(250px, 100vw);
        max-width: 250px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
        transform: translateX(100%);
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
    }

    .main-nav.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
        width: 100%;
        text-align: left;
    }

    .nav-menu a:hover {
        background-color: rgba(243, 156, 18, 0.1);
        color: #f39c12;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .landing-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        text-align: center;
        min-height: auto;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .main-heading {
        font-size: 2.5rem;
    }

    .description {
        font-size: 1.1rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-image {
        height: 320px;
        max-width: 350px;
        margin: 0 auto;
    }

    .content-section {
        padding: 1rem 0;
    }
    
    .image-section {
        padding: 0.5rem 0.5rem 2rem 0.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-heading {
        font-size: 2.5rem;
    }

    .contact-image {
        height: 280px;
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-block {
        gap: 1rem;
    }

    .contact-icon {
        font-size: 1.3rem;
    }

    .contact-info h3 {
        font-size: 1.2rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .whatsapp-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .qr-code {
        width: 70px;
        height: 70px;
    }

    .about-heading {
        font-size: 2.5rem;
    }

    .story-block {
        padding: 2rem;
    }

    .story-block h3 {
        font-size: 1.5rem;
    }

    .story-block p {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .growth-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    /* Board Members Responsive - Tablet */
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .board-member {
        padding: 1.5rem;
        max-width: none;
    }

    .member-photo {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }

    .board-heading {
        font-size: 2.5rem;
    }

    /* Mission Responsive - Tablet */
    .mission-block {
        padding: 2.5rem;
    }

    .pillars-tabs {
        gap: 0.3rem;
    }

    .pillar-tab {
        padding: 0.8rem 1.2rem;
        min-width: 100px;
        font-size: 0.9rem;
    }

    .pillar-content {
        padding: 2rem 2rem 2.5rem 2rem;
    }

    .pillar-icon {
        font-size: 2.5rem;
    }
    
    .pillars-content {
        min-height: 320px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    /* Ensure no element exceeds viewport width, except header */
    *:not(header):not(.header-container) {
        max-width: 100vw;
    }
    
    .header-container {
        padding: 0 1rem;
    }

    /* Adjust mobile menu for smaller screens */
    .main-nav {
        width: 220px;
    }

    .nav-menu a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .main-heading {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-image {
        height: 280px;
        max-width: 320px;
    }
    
    .image-section {
        padding: 0.25rem 0.25rem 2rem 0.25rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        max-width: min(280px, calc(100vw - 2rem));
    }

    .contact-container,
    .about-container {
        padding: 0 1rem;
    }

    .contact-heading,
    .about-heading {
        font-size: 2rem;
    }

    .contact-details {
        gap: 2rem;
    }

    .story-block {
        padding: 1.5rem;
    }

    .growth-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .whatsapp-content {
        align-items: center;
    }

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

    /* Board Members Responsive - Mobile */
    .board-container {
        padding: 0 1rem;
    }

    .board-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 350px;
        margin: 0 auto;
    }

    .board-member {
        padding: 1.5rem;
    }

    .member-photo {
        width: 100px;
        height: 100px;
    }

    .board-heading {
        font-size: 2rem;
    }

    /* Mission Responsive - Mobile */
    .mission-block {
        padding: 1.5rem;
    }

    .mission-statement {
        font-size: 1rem;
        padding: 1rem;
    }

    .pillars-tabs {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .pillar-tab {
        width: 100%;
        max-width: 250px;
        padding: 1rem;
        justify-content: center;
    }

    .pillar-content {
        padding: 1.5rem 1.5rem 2rem 1.5rem;
    }

    .pillar-icon {
        font-size: 2rem;
    }

    .pillars-content {
        min-height: 350px;
        padding-bottom: 2rem;
    }
}

/* Very Small Mobile */
@media (max-width: 320px) {
    .header-container {
        padding: 0 0.5rem;
    }

    .landing-container,
    .contact-container,
    .about-container {
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .main-heading {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .story-block {
        padding: 1rem;
    }

    .contact-block {
        gap: 0.8rem;
    }
}

/* Print Styles */
@media print {
    header {
        position: static;
        box-shadow: none;
    }

    .cta-button,
    .whatsapp-link,
    .social-link {
        background: none !important;
        color: #333 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .hero-image,
    .contact-image {
        background: #f0f0f0 !important;
    }
}

/* Focus and Accessibility */
a:focus,
button:focus {
    outline: 2px solid #f39c12;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.hero-image,
.contact-image {
    transition: opacity 0.3s ease;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .highlight-text {
        background: none;
        color: #f39c12;
        -webkit-text-fill-color: unset;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 20px;
    max-width: 70%;
    max-height: 90%;
    width: 100%;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f5f3f0 0%, #ffffff 100%);
    border-radius: 20px 20px 0 0;
}

.modal-title {
    color: #5d4037;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    background: #f39c12;
    color: white;
    transform: rotate(90deg);
}

.modal-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.modal-flyer {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-flyer img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.modal-description h4 {
    color: #5d4037;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-description p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-details {
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #555;
}

.detail-item i {
    color: #f39c12;
    width: 20px;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.modal-cta-button {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.modal-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.modal-secondary-button {
    background: transparent;
    border: 2px solid #f39c12;
    color: #f39c12;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-secondary-button:hover {
    background: #f39c12;
    color: white;
}

/* Modal Responsive Styles */
@media (max-width: 768px) {
    .modal-container {
        max-width: 90%;
        max-height: 95%;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .modal-flyer {
        order: -1;
        max-width: 100%;
        margin: 0 auto;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-cta-button,
    .modal-secondary-button {
        width: 100%;
        text-align: center;
    }
}

/* Membership Modal Specific Styles */
.membership-modal-container {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.membership-modal-content {
    display: block;
    padding: 1.5rem;
}

.membership-intro {
    margin-bottom: 2rem;
    text-align: center;
}

.membership-intro h4 {
    color: #5D4037;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.membership-intro p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.membership-benefits {
    background-color: #f5f3f0;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.membership-benefits h5 {
    color: #5D4037;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.membership-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.membership-benefits li {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

.membership-form-container {
    border-top: 2px solid #f5f3f0;
    padding-top: 1.5rem;
}

.membership-form-container h5 {
    color: #5D4037;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.form-instructions {
    text-align: center;
    padding: 2rem;
    background-color: #fafafa;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.form-instructions p {
    color: #5D4037;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.form-instructions ol {
    text-align: left;
    max-width: 400px;
    margin: 1.5rem auto;
    color: #666;
}

.form-instructions li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.form-instructions .cta-button {
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
}

.form-note {
    margin-top: 1rem;
}

.form-note small {
    color: #888;
    font-style: italic;
}

/* Responsive adjustments for membership modal */
@media (max-width: 768px) {
    .membership-modal-container {
        max-width: 95vw;
        margin: 1rem;
    }
    
    .membership-modal-content {
        padding: 1rem;
    }
    
    .membership-intro h4 {
        font-size: 1.5rem;
    }
    
    .membership-benefits {
        padding: 1rem;
    }
    
    .form-instructions {
        padding: 1.5rem;
    }
    
    .form-instructions ol {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 0.5rem;
    }

    .modal-container {
        max-width: 95%;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-content {
        padding: 1rem;
    }

    .modal-description h4 {
        font-size: 1.3rem;
    }

    .modal-description p {
        font-size: 1rem;
    }
}
