/* 
===========================================
Responsive Styles
===========================================
*/

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .header-content {
    height: 70px;
  }
  
  .logo img {
    height: 50px;
  }
  
  .nav-list li {
    margin-left: 20px;
  }
  
  #hero {
    height: 500px;
    margin-top: 70px;
  }
  
  .slide-content h1 {
    font-size: 2.5rem;
  }
  
  #page-banner {
    height: 200px;
    margin-top: 70px;
  }
  
  .section {
    padding: 70px 0;
  }
  
  .process-steps {
    flex-wrap: wrap;
  }
  
  .step {
    flex: 0 0 calc(50% - 20px);
    margin-bottom: 40px;
  }
  
  .step:nth-child(even)::after {
    display: none;
  }
  
  .mission-box, .vision-box, .values-box {
    min-width: 250px;
  }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
  
  .menu-toggle {
    display: flex;
    z-index: 1002;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .nav-list li {
    margin: 0 0 20px;
    width: 100%;
  }
  
  .nav-list a {
    display: block;
    padding: 10px 0;
    width: 100%;
  }
  
  .menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  #hero {
    height: 450px;
  }
  
  .slide-content h1 {
    font-size: 2.2rem;
  }
  
  .slide-content p {
    font-size: 1.1rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image, .about-text {
    flex: 0 0 100%;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .footer-content {
    gap: 30px;
  }
  
  .footer-column {
    flex: 0 0 calc(50% - 15px);
  }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
  
  #hero {
    height: 400px;
  }
  
  .slide-content h1 {
    font-size: 2rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .stats-container {
    justify-content: center;
  }
  
  .stat-box {
    flex: 0 0 calc(50% - 10px);
  }
  
  .mission-vision-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .mission-box, .vision-box, .values-box {
    width: 100%;
  }
  
  .step {
    flex: 0 0 100%;
  }
  
  .step::after {
    display: none;
  }
  
  .category-tabs {
    flex-wrap: wrap;
  }
  
  .category-tab {
    margin-bottom: 10px;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  #statistics .stat-box {
    flex: 0 0 calc(50% - 15px);
    min-width: 150px;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .footer-column {
    flex: 0 0 100%;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-author img {
    margin: 0 auto 10px;
  }
  
  .contact-form-container {
    flex-direction: column;
  }
  
  .form-column, .contact-info-column {
    flex: 0 0 100%;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding: 0 20px;
  }
  
  .hero-slider {
    height: 100%;
  }
  
  #hero {
    height: 350px;
  }
  
  .slide-content h1 {
    font-size: 1.8rem;
  }
  
  .slide-content p {
    font-size: 0.9rem;
  }
  
  .slider-controls {
    bottom: 15px;
  }
  
  .prev-btn, .next-btn {
    width: 35px;
    height: 35px;
    margin: 0 10px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
  
  #page-banner {
    height: 150px;
  }
  
  #page-banner h1 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .testimonial-controls {
    margin-top: 20px;
  }
  
  .prev-testimonial-btn, .next-testimonial-btn {
    width: 35px;
    height: 35px;
  }
  
  .stat-box {
    flex: 0 0 100%;
    margin-bottom: 15px;
  }
  
  #statistics .stat-box {
    flex: 0 0 100%;
    max-width: none;
  }
  
  .whatsapp-popup {
    width: 250px;
  }
  
  .faq-question h3 {
    font-size: 1rem;
  }
  
  .course-category-header {
    flex-direction: column;
    text-align: center;
  }
  
  .category-icon {
    margin: 0 auto 15px;
  }
  
  .course-info {
    flex-direction: column;
    gap: 5px;
  }
}

/* Landscape Orientation Fix for Small Devices */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    height: 300px;
  }
  
  .nav-list {
    padding-top: 60px;
  }
  
  .nav-list li {
    margin-bottom: 10px;
  }
}

/* Height-based Media Queries */
@media (max-height: 700px) {
  .nav-list {
    overflow-y: auto;
  }
}