/* ==========================================================================
   MOBILE STYLES (max-width: 500px)
   ========================================================================== */

@media only screen and (max-width: 500px) {
    /* Base Layout */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-wrapper {
        padding: 0.6rem 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .logo-title {
        font-size: 1.4rem;
    }
    
    .menu-toggle {
        font-size: 1.3rem;
        padding: 0.4rem;
    }
    
    /* Mobile Menu */
    .mobile-menu {
        width: 85%;
        max-width: 300px;
    }
    
    .mobile-menu-header {
        padding: 1.2rem;
    }
    
    .mobile-menu-header h3 {
        font-size: 1.2rem;
    }
    
    .mobile-nav-list {
        padding: 1.5rem 1rem;
    }
    
    .mobile-nav-link {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        gap: 0.8rem;
    }
    
    /* Hero Section */
    .hero-section {
        margin-top: 60px;
        min-height: 60vh;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
    
    .btn-primary, 
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.5rem;
        max-width: 100%;
    }
    
    /* Mission Banner */
    .mission-banner {
        padding: 3rem 0 !important;
    }
    
    .mission-card {
        padding: 1.5rem !important;
        margin: 0;
        border-radius: 12px;
    }
    
    .mission-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .mission-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .mission-divider {
        width: 40px;
        margin: 0.8rem 0;
    }
    
    .mission-statement {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Values Section */
    .values-section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .title-decoration {
        margin: 1rem auto;
    }
    
    .values-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .value-item {
        padding: 1.2rem;
        border-radius: 10px;
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .value-item h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .value-item p {
        font-size: 0.95rem;
    }
    
    /* Features Section */
    .features-section {
        padding: 3rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .feature-image {
        height: 180px;
    }
    
    .feature-content {
        padding: 1.2rem;
    }
    
    .feature-content h3 {
        font-size: 1.3rem;
    }
    
    .feature-content p {
        font-size: 0.95rem;
    }
    
    /* Mobile Donation Section */
    .mobile-donation-section {
        padding: 2rem 0;
    }
    
    .donation-card {
        padding: 1.5rem;
        margin: 0;
        border-radius: 12px;
    }
    
    .donation-header i {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .donation-header h3 {
        font-size: 1.4rem;
    }
    
    .donation-content p {
        font-size: 1rem;
    }
    
    .btn-donate-mobile {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    
    /* Footer */
    .site-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-column {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .footer-column:last-child {
        margin-bottom: 0;
    }
    
    .logo-wrapper {
        gap: 12px;
        margin-bottom: 1.5rem;
    }
    
    .logo-symbol {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 12px;
    }
    
    .logo-text h3 {
        font-size: 1.5rem;
    }
    
    .logo-tagline {
        font-size: 0.9rem;
    }
    
    .footer-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
        padding-bottom: 0.8rem;
    }
    
    .links-list a {
        font-size: 0.95rem;
        padding: 0.4rem 0;
    }
    
    .contact-details li {
        margin-bottom: 1.2rem;
        gap: 12px;
    }
    
    .contact-details i {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .contact-details p {
        font-size: 0.95rem;
    }
    
    .donate-message {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .donate-button {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
        gap: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .copyright {
        font-size: 0.85rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal a {
        font-size: 0.85rem;
    }
    
    /* Gallery Page */
    .page-header {
        height: 40vh;
        min-height: 300px;
        margin-top: 60px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .header-decoration {
        gap: 15px;
    }
    
    .decoration-line {
        width: 40px;
    }
    
    .about-intro {
        padding: 2rem 0;
    }
    
    .about-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .about-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .about-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .divider-center {
        gap: 10px;
        margin: 1rem 0 1.2rem;
    }
    
    .divider-line {
        width: 30px;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .gallery-section {
        padding: 2rem 0;
    }
    
    .gallery-filters {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .filter-btn {
        width: 200px;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .image-overlay {
        padding: 1rem;
    }
    
    .overlay-content h3 {
        font-size: 1.2rem;
    }
    
    .overlay-content p {
        font-size: 0.9rem;
    }
    
    .view-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }
    
    .gallery-action {
        margin-top: 1.5rem;
    }
    
    .load-more-btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .mission-showcase {
        padding: 2rem 0;
    }
    
    .mission-card {
        padding: 1.2rem;
    }
    
    .mission-card-icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .mission-card h3 {
        font-size: 1.2rem;
    }
    
    .mission-card p {
        font-size: 0.95rem;
    }
    
    .statistics-section {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .stat-item {
        padding: 1.2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .gallery-cta {
        padding: 2rem 0;
    }
    
    .cta-card {
        margin: 0;
        border-radius: 15px;
    }
    
    .cta-content {
        padding: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .cta-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .cta-image {
        height: 200px;
    }
    
    /* Image Modal */
    .modal-content {
        border-radius: 10px;
    }
    
    .modal-image {
        height: 200px;
    }
    
    .modal-info {
        padding: 1rem;
    }
    
    .modal-info h3 {
        font-size: 1.3rem;
    }
    
    .modal-info p {
        font-size: 0.95rem;
    }
    
    /* Typography */
    h1 { 
        font-size: 2rem !important; 
        line-height: 1.2;
    }
    
    h2 { 
        font-size: 1.7rem !important; 
        line-height: 1.3;
    }
    
    h3 { 
        font-size: 1.4rem !important; 
    }
    
    h4 {
        font-size: 1.2rem !important;
    }
    
    p {
        font-size: 1rem !important;
        line-height: 1.6;
    }
    
    /* Buttons */
    .btn, button {
        min-height: 44px;
        min-width: 44px;
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    
    /* Forms */
    input, textarea, select {
        font-size: 1rem;
        padding: 0.7rem;
        min-height: 44px;
    }
    
    /* Utility Classes */
    .hide-on-mobile {
        display: none !important;
    }
    
    .show-on-mobile {
        display: block !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    /* Newsletter Form */
    .newsletter-section {
        padding: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .newsletter-input,
    .newsletter-btn {
        width: 100%;
        min-height: 44px;
    }
    
    /* Extra Small Devices */
    @media only screen and (max-width: 350px) {
        .hero-title {
            font-size: 1.6rem !important;
        }
        
        .logo-title {
            font-size: 1.1rem;
        }
        
        .mobile-menu {
            width: 100%;
        }
        
        .mission-card,
        .value-item,
        .feature-content,
        .donation-card {
            padding: 1rem;
        }
        
        .gallery-image {
            height: 180px;
        }
    }
    
    /* Portrait vs Landscape */
    @media only screen and (max-width: 500px) and (orientation: landscape) {
        .hero-section {
            min-height: 100vh;
        }
        
        .page-header {
            height: 70vh;
        }
        
        .gallery-image {
            height: 150px;
        }
        
        .mobile-menu {
            height: 100vh;
            overflow-y: auto;
        }
    }
    
    /* High Contrast Mode */
    @media (prefers-contrast: high) {
        .btn-primary,
        .btn-secondary,
        .donate-button,
        .filter-btn.active {
            border: 2px solid #000;
        }
        
        .nav-link,
        .mobile-nav-link {
            font-weight: 700;
        }
    }
    
    /* Print Styles */
    @media print {
        .nav-wrapper,
        .mobile-menu,
        .menu-toggle,
        .hero-section,
        .mobile-donation-section,
        .site-footer,
        .gallery-filters,
        .view-btn,
        .load-more-btn,
        .cta-buttons {
            display: none !important;
        }
        
        body {
            font-size: 12pt;
            color: #000;
            background: #fff;
        }
        
        .container {
            max-width: 100% !important;
            padding: 0 !important;
        }
        
        a {
            color: #000;
            text-decoration: underline;
        }
        
        .gallery-image img {
            max-height: 150px;
        }
    }
}