@media (min-width: 1200px) {
    .nav-container {
        max-width: 1400px;
    }

    .nav-menu {
        gap: 2.5rem;
    }

    .nav-link {
        font-size: 1.1rem;
    }
}

/* Large Screens */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    /* counters section */
    .counters-row {
        gap: 100px;
        /* reduce gap on smaller screens */
    }
}
@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: 1; /* info first */
  }

  .contact-form {
    order: 2; /* form below */
  }
}

/* Medium Screens - Tablets */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .nav-container {
        height: 65px;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        gap: 1.5rem;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 1.2rem;
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .cta-button {
        margin-top: 1rem;
        margin-bottom: 2rem;
        border: none;
    }

    .main-content {
        margin-top: 65px;
    }

    /* Hide navbar underline animation on mobile */
    .nav-link::after {
        display: none;
    }

    /* Mobile-specific hover effects */
    .nav-link:hover {
        background: rgba(52, 152, 219, 0.1);
        color: #3498db;
    }

    /* hero banner section */
    
    .hero-banner {
        min-height: 60vh;
        padding: 0 2rem;
        justify-content: center;
        /* ✅ center text */
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content span {
        font-size: 1rem;
    }

    .hero-btn-container {
        justify-content: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
    }

    /* edge section */
    .section-title {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-text {
        font-size: 0.95rem;
    }

    /* about everest */
    .about-content {
        grid-template-columns: 1fr;
        /* ✅ stack on smaller screens */
        text-align: center;
    }

    .about-content p {
        text-align: center;
        font-size: 0.95rem;
    }

    .about-image img {
        margin: 20px auto 0;
        max-width: 90%;
    }

    /* counters */
    .counters-row {
        flex-direction: column;
        /* stack counters vertically */
        gap: 50px;
        align-items: center;
    }

    .count-container {
        font-size: 3.5rem;
        /* slightly smaller on mobile */
    }

    .suffix {
        font-size: 1.5rem;
    }

    .counter p {
        font-size: 1.3rem;
    }

    /* study abroad */
    .section {
        padding: 30px;
    }

    .container {
        flex-direction: column;
        text-align: center;
    }

    .text-section {
        margin-bottom: 20px;
    }

    .country-list {
        padding-left: 0;
        list-style-position: inside;
    }

    /* partners */
    .logo-box {
        height: 140px;
        width: 180px;
        margin: 0 10px;
    }
    .section-title {
    font-size: 1.8rem;
  }
  @media (max-width: 900px) {
  .mega-dropdown {
    display: none;
    min-width: 260px;
  }
  

  .mega-dropdown .has-submenu {
    position: relative;
    background: transparent;
    padding: 6px 0;
  }

  /* make anchors full-width and show chevron on right */
  .mega-dropdown .has-submenu > a {
    padding: 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
  }

  /* place nested list under country (collapsed by default) */
  .sub-dropdown {
    position: static;
    display: none;
    padding-left: 12px;
    margin-top: 8px;
    background: transparent;
    box-shadow: none;
  }

  /* open state controlled by .open class, added via JS */
  .has-submenu.open > .sub-dropdown { display: block; }
}

/* Accessibility: show dropdown when parent has .open (JS toggles this) */
.nav-item.dropdown.open > .dropdown-menu { display: block; }
/* get in touch section */
  .section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .contact-card {
    flex-direction: row; /* keep icon left, text right */
    padding: 15px;
    gap: 10px;
  }

  .contact-title {
    font-size: 14px;
  }

  .contact-text {
    font-size: 14px;
  }

  .contact-form h3 {
    font-size: 20px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
    padding: 10px 12px;
  }

  .submit-btn {
    font-size: 14px;
    padding: 12px;
  }
  /* ielts */
    .container {
                padding: 15px;
            }

            .header {
                padding: 40px 25px;
            }

            .header h1 {
                font-size: 2.5rem;
            }

            .section {
                padding: 30px 25px;
            }

            .section-title {
                font-size: 2rem;
            }

            .immigration-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .immigration-title {
                font-size: 2.2rem;
            }

            .why-accept-grid {
                grid-template-columns: 1fr;
                gap: 25px;
            }

            .test-grid {
                grid-template-columns: 1fr;
            }
}


/* Small Screens - Mobile */
@media (max-width: 480px) {
    .navbar {
        padding: 0 0.5rem;
    }

    .nav-container {
        height: 60px;
    }
     .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }


    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 8px;
    }

    .mobile-toggle {
        padding: 2px;
    }

    .mobile-toggle span {
        width: 22px;
        height: 2px;
    }

    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding-top: 1.5rem;
       
    }

    .nav-link {
        padding: 1rem;
        font-size: 1rem;
    }

    .main-content {
        margin-top: 60px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* hero banner section */
    .hero-banner {
        min-height: 50vh;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content span {
        font-size: 0.9rem;
    }

    .hero-btn {
        font-size: 0.95rem;
        padding: 10px 20px;
    }

    .hero-btn-container {
        flex-direction: column;
        gap: 0.8rem;
    }

    /* edge section */
    .section-title {
        font-size: 1.6rem;
    }

    .edge-card {
        padding: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    /* about everest */
    .section-title {
        font-size: 1.6rem;
    }

    .about-content p {
        font-size: 0.9rem;
    }

    .about-image img {
        max-width: 100%;
    }

    /* counters section */
    .counters {
        padding: 60px 15px;
    }

    .counters-heading {
        font-size: 1.5rem;
    }

    .count-container {
        font-size: 3rem;
    }

    .suffix {
        font-size: 1.3rem;
    }

    .counter p {
        font-size: 1.2rem;
    }
    /* get in touch section */
    .section-title {
    font-size: 1.5rem;
  }

  .contact-content {
    padding: 0 10px;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .icon {
    margin-bottom: 8px;
  }

  .contact-form {
    padding: 15px;
  }

  .form-group label {
    font-size: 13px;
  }

  .submit-btn {
    font-size: 13px;
    padding: 10px;
  }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .navbar {
        padding: 0 0.25rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin-right: 6px;
    }

    .nav-link {
        font-size: 0.95rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        padding-top: 1rem;
        gap: 1rem;
    }

    .nav-link {
        padding: 0.8rem;
    }

    .cta-button {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .navbar {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar.scrolled {
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .navbar,
    .nav-link,
    .logo,
    .mobile-toggle span,
    .nav-menu {
        transition: none;
    }

    .nav-link::after {
        transition: none;
    }
}


 @media (max-width: 768px) {
      .consultation-section {
        padding: 15px;
        margin: 20px;
      }

      .consultation-section h1 {
        font-size: 32px;
      }

      .consultation-section p {
        font-size: 16px;
      }

      .contact-box {
        flex-direction: row;
        align-items: flex-start;
      }

      .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-bottom: 10px;
      }

      .contact-info a {
        font-size: 16px;
      }

      .contact-info span {
        font-size: 14px;
      }
    }

    @media (max-width: 480px) {
      .consultation-section h1 {
        font-size: 26px;
        text-align: center;
      }

      .consultation-section p {
        font-size: 15px;
        text-align: center;
      }

      .contact-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
      }

      .contact-info a, .contact-info span {
        text-align: center;
      }
    }
    /* Responsive */
@media (max-width: 768px) {
  .consultation-section { flex-direction: column; }
}

/* Responsive Design */
@media (max-width: 768px) {
    #consultancyForm {
        grid-template-columns: 1fr;
        padding: 25px 20px;
        margin: 20px;
    }
    
    #consultancyForm .field.span-2 {
        grid-column: 1;
    }
    
    #consultancyForm .actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    #consultancyForm .btn-primary,
    #consultancyForm .btn-outline {
        width: 100%;
        justify-content: center;
    }
    
    #consultancyForm label {
        font-size: 13px;
    }
    
    #consultancyForm input,
    #consultancyForm select,
    #consultancyForm textarea {
        padding: 12px 15px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    #consultancyForm {
        padding: 20px 15px;
        margin: 10px;
    }
    
    #consultancyForm h3 {
        font-size: 1.5rem;
    }
}



/* Remove floating labels on mobile for better UX */
@media (max-width: 768px) {
    .field label {
        position: static;
        transform: none;
        background: transparent;
        padding: 0;
        margin-bottom: 8px;
    }
}
/* aboutus ceo */
/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  .ceo-section {
    flex-direction: column;
    text-align: center;
  }
  .ceo-content,
  .ceo-img {
    flex: 1 1 100%;
  }

  .ceo-img {
    margin-top: 5px;
  }
}
/* aboutus */

@media (max-width: 768px) {
    .aboutus-container {
        flex-direction: column;
        text-align: center;
    }

    .aboutus-image img {
        max-width: 80%;
        margin: 0 auto 20px auto;
    }

    .aboutus-content {
        margin-left: 0;
        text-align: left;
    }

    .aboutus-content h1 {
        font-size: 2rem;
    }

    .aboutus-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .aboutus-content h1 {
        font-size: 1.5rem;
    }

    .aboutus-content p {
        font-size: 0.85rem;
    }
}
/* studyabroad */

@media (max-width: 768px) {
    .responsive-image {
        max-height: 600px;
    }
}

@media (max-width: 480px) {
    .responsive-image {
        max-height: 400px;
    }
}
 @media (max-width: 768px) {
    .college-slide {
      min-width: 250px;
      height: 160px;
    }
    .overlay h3 { font-size: 16px; }
    .overlay p { font-size: 12px; }
  }

   @media (max-width: 768px) {
    .container {
      flex-direction: column;
      text-align: center;
    }
    .text-section {
      margin-bottom: 20px;
    }
    .country-list {
      padding-left: 0;
      list-style-position: inside;
    }
  }

  
/* Responsive Adjustments */
@media (max-width: 767px) {
    .section h2 {
        font-size: 1.8rem;
    }
    .section h3 {
        font-size: 1.3rem;
    }
    .section p {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .section {
        padding: 30px;
    }
}

/* footer */
@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        gap: 40px; /* Reduced gap for mobile */
    }
    
    .footer-left,
    .footer-middle,
    .footer-right {
        width: 100%;
        max-width: none;
    }
    
    .footer-middle {
        margin-left: 0;
    }}

     @media (max-width: 1024px) {
  .footer-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) {
  .footer-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .footer-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
  

        /* studyabroad php */
@media (max-width: 1024px) {
  .hero-section-malta {
    height: 60vh;
    padding: 0 20px;
  }

  .hero-section-malta h1 {
    font-size: 2.5rem;
  }

  .hero-section-malta p {
    font-size: 1.1rem;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .hero-section-malta {
    height: 50vh;
    padding: 0 15px;
  }

  .hero-section-malta h1 {
    font-size: 2rem;
  }

  .hero-section-malta p {
    font-size: 1rem;
  }

  .btn-primary-studyabroad {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .card-studyabroad {
    margin-bottom: 20px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-section-malta {
    height: 45vh;
  }

  .hero-section-malta h1 {
    font-size: 1.5rem;
  }

  .hero-section-malta p {
    font-size: 0.9rem;
  }

  .btn-primary-studyabroad {
    width: 100%;
    font-size: 0.85rem;
  }
}
