/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--secondary-bg);
        transition: var(--transition);
        padding: 2rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
}


@media (max-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .exam-card,
    .material-card,
    .service-card,
    .course-card,
    .quiz-category,
    .material-category,
    .paper-category {
        padding: 1.5rem;
    }
    
    .stat-card,
    .team-member,
    .value-card,
    .resource-card {
        padding: 1.5rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 2rem;
    }
    
    .hero-stats .stat h3 {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .quiz-stats {
        grid-template-columns: 1fr;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .feature-icon,
    .service-icon {
        font-size: 2.5rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta,
    .nav-actions,
    .theme-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        padding: 20px 0;
        break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
    }
    
    .light-mode {
        --border-color: #000000;
        --text-secondary: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .syllabus-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .syllabus-sidebar {
        position: static;
    }
    
    .sidebar-sticky {
        display: flex;
        flex-direction: column;
    }
    
    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.5rem;
    }
    
    .sidebar-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        text-align: center;
    }
    
    .sidebar-link:hover, .sidebar-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary);
    }
}

@media (max-width: 768px) {
    .syllabus-title {
        font-size: 2rem;
    }
    
    .syllabus-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pattern-grid {
        grid-template-columns: 1fr;
    }
    
    .topic-grid, .aptitude-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header, .table-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .table-cell {
        justify-content: center;
        padding: 0.75rem;
    }
    
    .table-cell:first-child {
        font-weight: 600;
        background-color: rgba(240, 185, 11, 0.1);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .btn-login, .btn-signup {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .syllabus-hero {
        padding: 2rem 0;
    }
    
    .syllabus-title {
        font-size: 1.75rem;
    }
    
    .syllabus-section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .sidebar-cta, .syllabus-cta {
        display: none;
    }
    
    .syllabus-layout {
        grid-template-columns: 1fr;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .syllabus-section {
        background: white;
        border: 1px solid #ddd;
    }
    
    .section-title {
        color: black;
    }
    
    .section-title::before {
        background-color: black;
    }
}

