/* Responsive Breakpoints */
/* 
  - xs: 0 - 575px (phones)
  - sm: 576px - 767px (landscape phones, small tablets)
  - md: 768px - 991px (tablets)
  - lg: 992px - 1199px (desktops)
  - xl: 1200px - 1399px (large desktops)
  - xxl: 1400px and up (extra large desktops)
*/

/* Extra Small Devices (phones) */
@media (max-width: 575px) {
    /* Typography Adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }

    /* Header & Navigation */
    .main-header {
        padding: var(--spacing-sm) 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .auth-buttons {
        display: none;
    }
    
    /* Mobile Menu (when active) */
    .mobile-menu-open .main-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        z-index: 1000;
    }
    
    .mobile-menu-open .main-nav ul {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
        width: 100%;
    }
    
    .mobile-menu-open .main-nav ul li {
        width: 100%;
    }
    
    .mobile-menu-open .main-nav ul li a {
        display: block;
        text-align: left;
        padding: 0.5rem 0;
        width: 100%;
    }
    
    .mobile-menu-open .auth-buttons {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        margin-top: var(--spacing-md);
        align-items: flex-start;
        width: 100%;
    }
    
    /* Hero Section */
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Features & Subjects */
    .features-grid, .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials */
    .testimonials-slider {
        flex-direction: column;
    }
    
    .testimonial-card {
        min-width: auto;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Timeline */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        display: none;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: -60px;
        width: 80px;
        font-size: 0.75rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 22px;
    }
    
    .profile-section {
        display: none;
    }
    
    .mobile-menu-open .profile-section {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin: 1rem 0;
        order: 3;
    }
    
    .mobile-menu-open .profile-button {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .mobile-menu-open .profile-display {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* Small Devices (landscape phones, small tablets) */
@media (min-width: 576px) and (max-width: 767px) {
    /* Header & Navigation */
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .auth-buttons {
        display: none;
    }
    
    /* Mobile Menu (when active) */
    .mobile-menu-open .main-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        z-index: 1000;
    }
    
    .mobile-menu-open .main-nav ul {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
        width: 100%;
    }
    
    .mobile-menu-open .main-nav ul li {
        width: 100%;
    }
    
    .mobile-menu-open .main-nav ul li a {
        display: block;
        text-align: left;
        padding: 0.5rem 0;
        width: 100%;
    }
    
    .mobile-menu-open .auth-buttons {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        margin-top: var(--spacing-md);
        align-items: flex-start;
        width: 100%;
    }
    
    /* Hero Section */
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Features & Subjects */
    .features-grid, .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Timeline */
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        display: none;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: -50px;
        width: 80px;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 31px;
    }
    
    .profile-section {
        flex-direction: column;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .profile-display {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* Medium Devices (tablets) */
@media (min-width: 768px) and (max-width: 991px) {
    /* Header & Navigation */
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile Menu (when active) */
    .mobile-menu-open .main-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        z-index: 1000;
    }
    
    .mobile-menu-open .main-nav ul {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
        width: 100%;
    }
    
    .mobile-menu-open .main-nav ul li {
        width: 100%;
    }
    
    .mobile-menu-open .main-nav ul li a {
        display: block;
        text-align: left;
        padding: 0.5rem 0;
        width: 100%;
    }
    
    /* Hero Section */
    .hero-section .container {
        gap: var(--spacing-lg);
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    /* Features & Subjects */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-logo {
        grid-column: 1 / -1;
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Devices (desktops) */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 2fr 1fr;
    }
}

/* Extra Large Devices (large desktops) */
@media (min-width: 1200px) {
    /* Container */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 3rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Extra Large Devices (extra large desktops) */
@media (min-width: 1400px) {
    /* Container */
    .container {
        max-width: 1320px;
    }
}

/* Print Styles */
@media print {
    /* Hide elements not necessary for print */
    .main-header, .main-footer, .cta-section, .hero-image {
        display: none !important;
    }
    
    /* Adjust typography for print */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background-color: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    p, blockquote, ul, ol, dl, table {
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    /* Ensure links show their URL in print */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 90%;
        color: #666;
    }
    
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }
    
    /* Create sections for print */
    .section-header {
        margin-top: 1cm;
    }
}

/* About Section Responsive */
@media (max-width: 1200px) {
  .about-cards {
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .about-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 50px 0;
  }
  
  .about-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 30px;
  }
  
  .about-card-icon {
    width: 50px;
    height: 50px;
  }
  
  .about-card-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 576px) {
  .about-cards {
    grid-template-columns: 1fr;
  }
  
  .about-card {
    padding: 20px;
  }
  
  .about-card h3 {
    font-size: 1.2rem;
  }
  
  .about-card p,
  .about-list li {
    font-size: 0.95rem;
  }
}

/* Subject Grid Responsive */
@media (max-width: 1200px) {
    .subjects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .subjects-grid {
        grid-template-columns: 1fr;
    }
} 