
/* Responsive Design - Boxing Template Style */

/* Large Desktop */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 70px;
        line-height: 80px;
    }
    
    .page-hero h1 {
        font-size: 56px;
        line-height: 66px;
    }
    
    h2 {
        font-size: 48px;
        line-height: 58px;
    }
}

/* Desktop */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 50px;
        line-height: 60px;
    }
    
    .hero-content h2 {
        font-size: 20px;
        line-height: 28px;
    }
    
    .page-hero h1 {
        font-size: 40px;
        line-height: 48px;
    }
    
    h2 {
        font-size: 36px;
        line-height: 44px;
    }
    
    h3 {
        font-size: 28px;
        line-height: 36px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 30px 0;
        border-top: 1px solid var(--borderColor);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero */
    .hero {
        padding: 140px 0 80px;
        background-attachment: scroll;
    }
    
    .hero-content h1 {
        font-size: 40px;
        line-height: 48px;
    }
    
    .hero-content h2 {
        font-size: 18px;
        line-height: 26px;
    }
    
    .hero-content p {
        font-size: 16px;
        line-height: 24px;
    }
    
    .page-hero {
        padding: 140px 0 80px;
    }
    
    .page-hero h1 {
        font-size: 32px;
        line-height: 40px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Typography */
    h2 {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 20px;
    }
    
    h3 {
        font-size: 24px;
        line-height: 30px;
    }
    
    /* Sections */
    .features,
    .services,
    .contact-section,
    .program-section,
    .team-section,
    .gallery-section,
    .testimonials-section,
    .about-intro,
    .what-sets-us-apart,
    .mission-vision,
    .ikmf-affiliation,
    .facilities,
    .locations,
    .success-stories {
        padding: 60px 0;
    }
    
    .mission,
    .team-cta,
    .testimonials-cta {
        padding: 60px 0;
    }
    
    .features-grid,
    .services-grid,
    .civilian-programs,
    .facilities-grid,
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card,
    .service-card {
        padding: 30px 20px;
    }

    /* Programs */
    .program-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .program-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .program-header h3 {
        font-size: 24px;
        line-height: 30px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    /* Team */
    .team-member {
        padding: 40px 25px;
    }
    
    .member-header h2 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .position {
        font-size: 16px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 75%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        bottom: 10px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonials-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 40px 25px;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    /* About */
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .mission-card,
    .vision-card {
        padding: 40px 25px;
    }
    
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
        height: 70px;
    }
    
    .logo img {
        height: 45px;
    }
    
    /* Hero */
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 32px;
        line-height: 38px;
        letter-spacing: 1px;
    }
    
    .hero-content h2 {
        font-size: 16px;
        line-height: 24px;
    }
    
    .hero-content p {
        font-size: 15px;
        line-height: 22px;
    }
    
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .page-hero h1 {
        font-size: 28px;
        line-height: 34px;
    }
    
    .page-hero p {
        font-size: 15px;
        line-height: 22px;
    }
    
    /* Typography */
    h2 {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 16px;
    }
    
    h3 {
        font-size: 20px;
        line-height: 26px;
    }
    
    h4 {
        font-size: 18px;
        line-height: 24px;
    }
    
    /* Buttons */
    .btn, .theme_button {
        padding: 12px 25px;
        font-size: 13px;
    }
    
    /* Sections */
    .features,
    .services,
    .contact-section,
    .program-section,
    .team-section,
    .gallery-section,
    .testimonials-section,
    .about-intro,
    .what-sets-us-apart,
    .mission-vision,
    .ikmf-affiliation,
    .facilities,
    .locations,
    .success-stories {
        padding: 50px 0;
    }
    
    .mission,
    .team-cta,
    .testimonials-cta {
        padding: 50px 0;
    }
    
    .feature-card,
    .service-card,
    .program-card,
    .testimonial-card,
    .facility-item,
    .story-card {
        padding: 25px 20px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 40px 25px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    /* Programs */
    .program-header h3 {
        font-size: 20px;
        line-height: 26px;
    }
    
    .risk-level {
        font-size: 11px;
        padding: 6px 15px;
    }
    
    .program-contact {
        padding: 25px 20px;
    }
    
    /* Team */
    .team-member {
        padding: 30px 20px;
    }
    
    .member-header h2 {
        font-size: 24px;
        line-height: 30px;
    }
    
    .position {
        font-size: 15px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-image {
        height: 220px;
    }
    
    .gallery-filters {
        flex-direction: column;
        align-items: center;
    }
    
    /* Testimonials */
    .testimonials-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .quote-icon {
        font-size: 40px;
    }
    
    /* About */
    .about-content h2,
    .mission-card h2,
    .vision-card h2,
    .ikmf-affiliation h2 {
        font-size: 24px;
        line-height: 30px;
    }
    
    .about-content p,
    .ikmf-affiliation p {
        font-size: 15px;
        line-height: 23px;
    }
    
    .mission-card,
    .vision-card {
        padding: 30px 20px;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .location-card {
        padding: 30px 20px;
    }
    
    .location-card h3 {
        font-size: 18px;
    }
    
    /* Footer */
    footer {
        padding: 60px 0 20px;
    }
    
    .footer-container {
        gap: 30px;
    }
    
    .footer-logo {
        width: 120px;
    }
    
    .footer-contact h3,
    .footer-nav h3,
    .footer-info h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .office h4 {
        font-size: 15px;
    }
    
    .office p,
    .contact-info p,
    .footer-nav a,
    .footer-info p {
        font-size: 14px;
    }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 28px;
        line-height: 34px;
    }
    
    .page-hero h1 {
        font-size: 24px;
        line-height: 30px;
    }
    
    h2 {
        font-size: 24px;
        line-height: 30px;
    }
    
    .btn, .theme_button {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .program-header h3 {
        font-size: 18px;
        line-height: 24px;
    }
    
    .member-header h2 {
        font-size: 20px;
        line-height: 26px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .lightbox-modal,
    .gallery-filters,
    .contact-form,
    .cta-buttons,
    .program-contact {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
        font-family: 'Poppins', sans-serif;
    }
    
    .hero,
    .page-hero,
    .mission,
    .team-cta,
    .testimonials-cta {
        background: #fff !important;
        color: #000 !important;
    }
    
    .feature-card,
    .service-card,
    .program-card,
    .testimonial-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-image {
        height: 150px;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
        font-family: 'Oswald', sans-serif;
    }
    
    .team-member,
    .program-card,
    .testimonial-card {
        page-break-inside: avoid;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero,
    .page-hero {
        background-size: cover;
    }
}

/* Landscape Orientation - Tablets */
@media (orientation: landscape) and (max-height: 768px) and (min-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 36px;
        line-height: 44px;
    }
    
    .page-hero h1 {
        font-size: 28px;
        line-height: 36px;
    }
}

/* Hover Effects Enhancement for Desktop */
@media (hover: hover) {
    .feature-card:hover,
    .service-card:hover,
    .program-card:hover,
    .testimonial-card:hover,
    .story-card:hover,
    .facility-item:hover {
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }
    
    .gallery-item:hover {
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    }
}

/* Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
