/* Responsive Design for EduBlock Demo */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1024px - 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 250px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Mobile (480px - 767px) */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #ffffff;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .main-navigation .nav-menu {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid #ececec;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .programs-section,
    .features-section,
    .news-section,
    .teachers-section,
    .research-section {
        padding: 60px 0;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .program-card {
        border-radius: 15px;
    }
    
    .program-content {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card {
        border-radius: 15px;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .teacher-card {
        border-radius: 15px;
    }
    
    .teacher-content {
        padding: 1.5rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .research-center {
        padding: 1.5rem;
    }
    
    .research-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-actions .btn {
        width: 200px;
    }
    
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-section {
        padding: 70px 0 30px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .programs-section,
    .features-section,
    .news-section,
    .teachers-section,
    .research-section {
        padding: 40px 0;
    }
    
    .program-content,
    .news-content,
    .teacher-content {
        padding: 1rem;
    }
    
    .feature-item,
    .research-center {
        padding: 1rem;
    }
    
    .feature-icon,
    .research-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .program-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .site-footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
    }
    
    .footer-logo img {
        height: 35px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        padding: 60px 0 30px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section::before {
        display: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .site-header {
        background: #2d2d2d;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .nav-link {
        color: #ffffff;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: #ee771d;
    }
    
    .hero-section {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    }
    
    .hero-title {
        color: #ffffff;
    }
    
    .hero-subtitle {
        color: #b0b0b0;
    }
    
    .section-title {
        color: #ffffff;
    }
    
    .section-subtitle {
        color: #b0b0b0;
    }
    
    .program-card,
    .news-card,
    .teacher-card {
        background: #2d2d2d;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .feature-item,
    .research-center {
        background: #2d2d2d;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .research-center {
        border-color: #444444;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .mobile-menu-toggle,
    .header-actions,
    .back-to-top,
    .cta-section,
    .footer-social,
    .newsletter-form {
        display: none !important;
    }
    
    .hero-section {
        padding: 20px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        color: #000000;
    }
    
    .programs-section,
    .features-section,
    .news-section,
    .teachers-section,
    .research-section {
        padding: 20px 0;
    }
    
    .programs-grid,
    .features-grid,
    .news-grid,
    .teachers-grid,
    .research-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .program-card,
    .news-card,
    .teacher-card,
    .feature-item,
    .research-center {
        box-shadow: none;
        border: 1px solid #cccccc;
        break-inside: avoid;
    }
    
    .site-footer {
        background: #ffffff;
        color: #000000;
        padding: 20px 0;
    }
    
    .footer-section h4 {
        color: #000000;
    }
    
    .footer-section a {
        color: #000000;
    }
}
