/* ============================================
   RESPONSIVE CSS - Fa'izin Charity Organization
   ============================================ */

/* ============================================
   LARGE DEVICES (1200px and up)
   ============================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .stats-grid {
        gap: 40px;
    }
}

/* ============================================
   MEDIUM DEVICES (992px to 1199px)
   ============================================ */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 30px;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .campaigns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   TABLET DEVICES (768px to 991px)
   ============================================ */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Typography */
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.6rem; }
    
    /* Top Bar */
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .top-bar-left,
    .top-bar-right {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .donation-counter {
        font-size: 0.8rem;
        padding: 3px 12px;
    }
    
    /* Hero Section */
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .hero-shapes {
        display: none;
    }
    
    /* Stats Section */
    .stats-section {
        margin-top: -40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Programs Section */
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .program-card {
        padding: 30px 20px;
    }
    
    .program-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    /* Campaigns Section */
    .campaigns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .campaign-image {
        height: 200px;
    }
    
    .campaign-timer {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    /* Testimonials */
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* News Section */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .news-image {
        height: 180px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }
    
    .footer-bottom-grid {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-copyright {
        justify-content: center;
    }
    
    .footer-legal ul {
        justify-content: center;
    }
    
    .footer-payment-methods {
        justify-content: center;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    /* Partners */
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .partner-logo {
        padding: 15px;
    }
    
    .partner-logo img {
        height: 50px;
    }
}

/* ============================================
   MOBILE DEVICES (576px to 767px)
   ============================================ */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Top Bar */
    .top-bar {
        font-size: 0.75rem;
        padding: 6px 0;
    }
    
    .top-bar-left {
        flex-direction: column;
        gap: 4px;
    }
    
    .top-bar-left .divider {
        display: none;
    }
    
    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .top-bar-right .divider {
        display: none;
    }
    
    .language-selector select {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .donation-counter {
        font-size: 0.7rem;
        padding: 2px 10px;
    }
    
    /* Navbar */
    .navbar {
        padding: 10px 0;
    }
    
    .nav-brand .logo {
        height: 35px;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger span {
        width: 25px;
        height: 2.5px;
        margin: 2.5px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 70px 25px 30px;
        transition: 0.3s ease;
        box-shadow: var(--shadow-xl);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-menu a {
        padding: 10px 15px;
        font-size: 0.95rem;
        border-radius: var(--border-radius-sm);
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(26, 106, 62, 0.05);
        color: var(--primary-color);
    }
    
    .donate-btn {
        background: var(--primary-gradient);
        color: var(--white) !important;
        padding: 10px 20px;
        border-radius: var(--border-radius-full);
        text-align: center;
        margin-top: 5px;
        justify-content: center;
    }
    
    .donate-btn:hover {
        background: var(--primary-gradient);
        transform: translateY(0);
    }
    
    /* Dropdown on Mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: transparent;
        border: none;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 8px 15px;
        font-size: 0.9rem;
        color: var(--gray-color);
    }
    
    .dropdown-menu a:hover {
        background: rgba(26, 106, 62, 0.03);
        padding-left: 20px;
    }
    
    /* Mobile Overlay */
    .mobile-overlay {
        display: none;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    /* Hero Section */
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content .highlight::after {
        display: none;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
        justify-content: center;
        text-align: center;
    }
    
    /* Emergency Banner */
    .emergency-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .emergency-content i {
        font-size: 1.2rem;
    }
    
    .emergency-content p {
        font-size: 0.9rem;
    }
    
    .emergency-content .btn {
        font-size: 0.85rem;
        padding: 6px 18px;
    }
    
    /* Stats Section */
    .stats-section {
        margin-top: -30px;
        padding: 40px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Programs Section */
    .programs-section {
        padding: 50px 0;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .program-card {
        padding: 25px 20px;
    }
    
    .program-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .program-card h3 {
        font-size: 1.1rem;
    }
    
    .program-card p {
        font-size: 0.9rem;
    }
    
    /* Campaigns Section */
    .campaigns-section {
        padding: 50px 0;
    }
    
    .campaigns-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .campaign-image {
        height: 180px;
    }
    
    .campaign-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    .campaign-timer {
        display: none;
    }
    
    .campaign-content {
        padding: 20px;
    }
    
    .campaign-content h3 {
        font-size: 1.1rem;
    }
    
    .campaign-content p {
        font-size: 0.9rem;
    }
    
    .progress-info {
        font-size: 0.8rem;
    }
    
    /* Testimonials */
    .testimonials-section {
        padding: 50px 0;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-content .fa-quote-left {
        font-size: 2rem;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
    }
    
    .testimonial-author img {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-author h4 {
        font-size: 0.95rem;
    }
    
    /* News Section */
    .news-section {
        padding: 50px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-content h3 {
        font-size: 1.1rem;
    }
    
    .news-content p {
        font-size: 0.9rem;
    }
    
    .news-date .day {
        font-size: 1.2rem;
    }
    
    .news-date .month {
        font-size: 0.6rem;
    }
    
    /* Partners Section */
    .partners-section {
        padding: 40px 0;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .partner-logo {
        padding: 12px;
    }
    
    .partner-logo img {
        height: 40px;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .cta-buttons .btn {
        justify-content: center;
        text-align: center;
    }
    
    .cta-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-top: 25px;
    }
    
    .cta-stat .stat-number {
        font-size: 2rem;
    }
    
    .cta-stat .stat-label {
        font-size: 0.85rem;
    }
    
    /* Footer */
    .footer-top {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-brand {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact-info li {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact-info li i {
        margin-bottom: 5px;
    }
    
    /* Footer Middle - Newsletter */
    .footer-middle {
        padding: 30px 0;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .newsletter-text h4 {
        font-size: 1rem;
    }
    
    .newsletter-text p {
        font-size: 0.85rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        font-size: 0.9rem;
        padding: 10px 15px;
        text-align: center;
    }
    
    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .form-check {
        justify-content: center;
        font-size: 0.8rem;
    }
    
    /* Footer Bottom */
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-bottom-grid {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
    }
    
    .footer-credit {
        font-size: 0.75rem !important;
    }
    
    .footer-legal ul {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-legal ul li a {
        font-size: 0.8rem;
    }
    
    .footer-payment-methods {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .payment-label {
        font-size: 0.75rem;
        display: block;
        width: 100%;
    }
    
    .footer-payment-methods i {
        font-size: 1.2rem;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        bottom: 20px;
        right: 20px;
    }
    
    /* Utility Classes */
    .mt-5 {
        margin-top: 30px;
    }
    
    .text-center {
        text-align: center;
    }
}

/* ============================================
   SMALL MOBILE DEVICES (575px and below)
   ============================================ */
@media (max-width: 575px) {
    .container {
        padding: 0 12px;
    }
    
    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1rem; }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .section-tag {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    /* Top Bar */
    .top-bar {
        font-size: 0.7rem;
        padding: 4px 0;
    }
    
    .top-bar a {
        font-size: 0.7rem;
        margin: 0 5px;
    }
    
    .language-selector select {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .donation-counter {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
    
    /* Hero Section */
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .hero-badge {
        font-size: 0.65rem;
        padding: 4px 12px;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    /* Stats Section */
    .stats-section {
        margin-top: -20px;
        padding: 30px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-item {
        padding: 10px 5px;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Programs Section */
    .programs-section {
        padding: 40px 0;
    }
    
    .programs-grid {
        gap: 15px;
    }
    
    .program-card {
        padding: 20px 15px;
    }
    
    .program-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .program-card h3 {
        font-size: 1rem;
    }
    
    .program-card p {
        font-size: 0.85rem;
    }
    
    .program-card .btn-sm {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    /* Campaigns Section */
    .campaigns-section {
        padding: 40px 0;
    }
    
    .campaigns-grid {
        gap: 15px;
    }
    
    .campaign-image {
        height: 150px;
    }
    
    .campaign-content {
        padding: 15px;
    }
    
    .campaign-content h3 {
        font-size: 1rem;
    }
    
    .campaign-content p {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .campaign-progress {
        margin: 10px 0;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .progress-info {
        font-size: 0.7rem;
    }
    
    .campaign-content .btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    /* Testimonials */
    .testimonials-section {
        padding: 40px 0;
    }
    
    .testimonial-card {
        padding: 15px;
    }
    
    .testimonial-content .fa-quote-left {
        font-size: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 0.85rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-author h4 {
        font-size: 0.85rem;
    }
    
    .testimonial-author span {
        font-size: 0.75rem;
    }
    
    /* News Section */
    .news-section {
        padding: 40px 0;
    }
    
    .news-card {
        border-radius: var(--border-radius-md);
    }
    
    .news-image {
        height: 140px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-content h3 {
        font-size: 1rem;
    }
    
    .news-content p {
        font-size: 0.85rem;
    }
    
    .news-date {
        padding: 5px 10px;
        min-width: 40px;
    }
    
    .news-date .day {
        font-size: 1rem;
    }
    
    .news-date .month {
        font-size: 0.55rem;
    }
    
    .read-more {
        font-size: 0.85rem;
    }
    
    /* Partners Section */
    .partners-section {
        padding: 30px 0;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .partner-logo {
        padding: 10px;
    }
    
    .partner-logo img {
        height: 35px;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 0.9rem;
    }
    
    .cta-buttons .btn-lg {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .cta-stat .stat-number {
        font-size: 1.6rem;
    }
    
    .cta-stat .stat-label {
        font-size: 0.75rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .btn-sm {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    /* Footer */
    .footer-logo {
        height: 35px;
    }
    
    .footer-brand h3 {
        font-size: 1rem;
    }
    
    .footer-description {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
    
    .footer-title {
        font-size: 0.95rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-contact-info li {
        font-size: 0.85rem;
    }
    
    .footer-contact-info li i {
        font-size: 0.9rem;
    }
    
    .footer-contact-info li strong {
        font-size: 0.75rem;
    }
    
    .footer-contact-info li span {
        font-size: 0.85rem;
    }
    
    /* Newsletter */
    .newsletter-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .newsletter-text h4 {
        font-size: 0.9rem;
    }
    
    .newsletter-text p {
        font-size: 0.8rem;
    }
    
    .newsletter-form input[type="email"] {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .newsletter-form .btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .form-check label {
        font-size: 0.75rem;
    }
}

/* ============================================
   LANDSCAPE PHONE / TABLET
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 20px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .hero-buttons .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .top-bar,
    .navbar,
    .footer,
    .back-to-top,
    .emergency-banner,
    .hero-buttons,
    .cta-buttons,
    .social-links,
    .partners-section,
    .testimonials-section {
        display: none !important;
    }
    
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .hero-section {
        height: auto !important;
        min-height: auto !important;
        padding: 30px 0 !important;
        background: #ffffff !important;
    }
    
    .hero-content h1 {
        color: #1a1a2e !important;
        font-size: 24pt !important;
    }
    
    .hero-content .highlight {
        color: #1a6a3e !important;
    }
    
    .hero-content p {
        color: #333333 !important;
    }
    
    .stats-section,
    .programs-section,
    .campaigns-section,
    .news-section,
    .cta-section {
        padding: 30px 0 !important;
        page-break-inside: avoid;
    }
    
    .stats-grid,
    .programs-grid,
    .campaigns-grid,
    .news-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }
    
    .stat-item,
    .program-card,
    .campaign-card,
    .news-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
    
    .btn {
        display: none !important;
    }
    
    a {
        text-decoration: underline !important;
        color: #1a6a3e !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
    
    .section-tag {
        background: #f0f0f0 !important;
        color: #333333 !important;
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if needed */
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .animate-on-scroll.visible {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   HIGH DPI / RETINA DISPLAYS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), 
       (min-resolution: 192dpi) {
    .hero-section .slide {
        background-size: cover;
        background-position: center;
    }
    
    .logo,
    .footer-logo,
    .partner-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================
   CUSTOM SCROLLBAR (Desktop only)
   ============================================ */
@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 10px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--light-color);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 5px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }
}

/* ============================================
   FIXES FOR SPECIFIC BROWSERS
   ============================================ */
/* Firefox */
@-moz-document url-prefix() {
    .hero-section .slide {
        background-attachment: scroll;
    }
    
    .program-card,
    .campaign-card,
    .news-card {
        scrollbar-width: thin;
    }
}

/* Safari */
@media not all and (min-resolution: .001dpcm) {
    @supports (-webkit-appearance:none) {
        .hero-section .slide {
            background-attachment: scroll !important;
        }
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px !important;
    }
    
    .stat-number,
    .campaign-content h3,
    .news-content h3,
    .program-card h3 {
        color: #000000 !important;
    }
    
    .hero-content .highlight {
        color: #ffffff !important;
        background: var(--primary-color) !important;
        padding: 0 10px !important;
        border-radius: 4px !important;
    }
}

/* ============================================
   UTILITY CLASSES FOR RESPONSIVE
   ============================================ */
.hide-on-mobile {
    display: block;
}

.hide-on-tablet {
    display: block;
}

.hide-on-desktop {
    display: none;
}

.show-on-mobile {
    display: none;
}

.show-on-tablet {
    display: none;
}

@media (max-width: 767px) {
    .hide-on-mobile {
        display: none !important;
    }
    
    .show-on-mobile {
        display: block !important;
    }
    
    .show-on-tablet {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hide-on-tablet {
        display: none !important;
    }
    
    .show-on-tablet {
        display: block !important;
    }
    
    .show-on-mobile {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .hide-on-desktop {
        display: none !important;
    }
}

/* ============================================
   FLEXBOX & GRID HELPERS
   ============================================ */
@media (max-width: 767px) {
    .flex-column-mobile {
        flex-direction: column !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .gap-mobile {
        gap: 15px !important;
    }
    
    .w-100-mobile {
        width: 100% !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .flex-column-tablet {
        flex-direction: column !important;
    }
    
    .text-center-tablet {
        text-align: center !important;
    }
}

/* ============================================
   FIX FOR iOS SAFARI
   ============================================ */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        min-height: -webkit-fill-available;
    }
    
    .nav-menu {
        -webkit-overflow-scrolling: touch;
    }
}