/* Responsive Design */

/* Tablet and Desktop - 1024px and below */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  /* Fix Job Oriented Courses alignment for 1024px - 2x2 grid */
  .job-courses-centered {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    justify-content: center !important;
  }
  
  .job-courses-centered .course-card {
    flex: none !important;
    max-width: none !important;
    width: 100% !important;
  }
  
  .job-courses-centered .course-card:last-child {
    flex: none !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

@media (max-width: 768px) {
    .bilingual-content {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .content-block {
      padding: 30px 20px;
    }
    
    .section-title {
      font-size: 2rem;
    }
    
    .gallery-container {
      height: 300px;
    }
    
    .image-card {
      width: 120px;
      height: 90px;
    }
    
    .features-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    /* Stats section - one row for 768px */
    .stats-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
    
    /* Contact section - better alignment for 768px */
    .contact-content {
      grid-template-columns: 1fr;
      gap: 30px;
    }
    
    .contact-info {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }
    
    .contact-item {
      margin-bottom: 0;
    }
    
    
    .map-container {
      height: 300px;
      min-width: auto;
    }
    
    /* Footer - center location and call info for 768px */
    .footer-content {
      flex-direction: column;
      text-align: center;
      gap: 20px;
    }
    
    .footer-info {
      min-width: auto;
      width: 100%;
      text-align: center;
    }
    
    .footer-details p {
      justify-content: center;
      text-align: center;
    }
    
    .footer-social {
      justify-content: center;
    }
     .courses-grid {
          grid-template-columns: 1fr;
          gap: 20px;
      }
      
      .section-title {
          font-size: 2rem;
      }
      
      .course-card {
          margin: 0 10px;
      }
  
       .container {
      padding: 0 0.75rem;
      max-width: 100%;
    }
  
    .header {
      padding: 0.75rem 0;
    }
  
    .nav-menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      height: 100vh;
      background-color: var(--bg-primary);
      flex-direction: column;
      justify-content: center;
      transition: all 0.3s ease;
      z-index: 1000;
    }
  
    .nav-menu.show-menu {
      right: 0;
    }
  
    .nav-list {
      flex-direction: column;
      gap: 2rem;
      text-align: center;
    }
  
    .nav-link {
      font-size: 1.2rem;
      padding: 1rem 2rem;
    }
  
    .nav-close {
      display: block;
      position: absolute;
      top: 2rem;
      right: 2rem;
    }
  
    .nav-toggle {
      display: block;
    }
  
    .hero {
      padding: 80px 0 40px;
      min-height: auto;
      overflow-x: hidden;
    }
  
    .hero-content {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      text-align: center;
      padding: 0 1rem;
      max-width: 100%;
      overflow-x: hidden;
      margin-top: 2rem;
      justify-items: center;
    }
  
    .hero h1 {
      font-size: 2.2rem;
      line-height: 1.2;
      margin-bottom: 1rem;
      word-wrap: break-word;
    }
  
    .hero p {
      font-size: 1rem;
      line-height: 1.5;
      margin-bottom: 1.5rem;
    }
  
    .hero-buttons {
      flex-direction: column;
      gap: 0.75rem;
      align-items: center;
      width: 100%;
    }
  
    .btn {
      width: 100%;
      max-width: 280px;
      justify-content: center;
      padding: 0.8rem 1.5rem;
      font-size: 1rem;
    }
  
    .certifications {
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
      margin-top: 2.5rem;
    }
  
    .cert-badge {
      font-size: 0.7rem;
      padding: 0.3rem 0.6rem;
      white-space: nowrap;
    }
  
    .floating-card {
      position: relative;
      margin: 1rem auto;
      animation: none;
      max-width: 180px;
      width: 100%;
    }
  
    .floating-card:nth-child(1),
    .floating-card:nth-child(2) {
      position: relative;
      top: auto;
      right: auto;
      bottom: auto;
      left: auto;
    }
  
    .hero-image {
      max-width: 100%;
      height: auto;
      border-radius: 15px;
    }

    .hero-form {
      width: 100%;
      max-width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      
    }

    .hero-form .modern-form {
      max-width: 100%;
      margin: 0 auto;
      width: 100%;
    }

    .hero-form .floating-elements {
      flex-direction: column;
      gap: 1rem;
      margin-top: 1.5rem;
    }
  
    .guarantee-badge {
      padding: 0.5rem 1rem;
      font-size: 0.8rem;
      margin: 1rem auto;
    }
  
    /* Course cards responsive */
    .courses-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    .course-card {
      padding: 1.5rem;
    }
  
    /* Admission form responsive */
  
    .admission-content {
          display: flex !important;
          flex-direction: column !important;
          gap: 2rem;
      }
      
      .why-choose, .admission-form {
          width: 100% !important;
          max-width: none !important;
      }
      
      .admission-form {
          padding: 1.5rem;
          margin: 0;
      }
    .admission-form {
      padding: 1.5rem;
      margin: 0 1rem;
    }
  
    .form-group {
      margin-bottom: 1rem;
    }
  
    .form-row {
      flex-direction: column;
      gap: 1rem;
    }
  
    /* About section responsive */
    .about-content {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
    }
  
    /* Testimonials responsive */
    .testimonials-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    /* Contact section responsive */
    .contact-content {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  
    .contact-info {
      text-align: center;
    }
  
    /* Footer responsive */
    .footer-content {
      flex-direction: column;
      text-align: center;
      gap: 20px;
    }

    .footer-info {
      min-width: auto;
      width: 100%;
    }

    .footer-social {
      justify-content: center;
    }
  
    
  
    .logo-img {
      width: 50px;
      height: 50px;
    }
  
    .logo-text-main {
      font-size: 1.4rem;
    }
  
    .logo-text-sub {
      font-size: 0.7rem;
    }
  
    .footer-logo-img {
      width: 30px;
      height: 30px;
    }
  }


  @media (max-width: 480px) {
    .courses {
      padding: 60px 0;
    }
  
    .section-title {
      font-size: 1.8rem;
    }
  
    .course-title {
      font-size: 1.1rem;
    }
    
    /* Contact form - center for small screens */
    .contact-content {
      grid-template-columns: 1fr;
      gap: 20px;
      justify-items: center;
      padding: 0 15px;
    }
    
    .contact-info {
      width: 100%;
      max-width: 100%;
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    
    .contact-item {
      justify-content: center;
      text-align: center;
      padding: 20px 15px;
      margin-bottom: 0;
      width: 100%;
      max-width: 320px;
      background: var(--bg-secondary);
      border-radius: 12px;
      border: 1px solid var(--border-color);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      margin-left: auto;
      margin-right: auto;
      min-height: 180px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .map-container {
      width: 100%;
      max-width: 400px;
      height: 250px;
      margin: 0 auto;
    }
    
    /* Admission form - center for small screens */
    .hero-form {
      width: 100%;
      max-width: 100%;
      margin: 0 auto;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    .modern-form {
      width: 100%;
      max-width: 320px;
      margin: 0 auto;
      padding: 1rem;
    }
    
    .form-header {
      text-align: center;
    }
    
    .form-row {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    
    .modern-input {
      width: 100%;
    }
    
    .modern-form .modern-input input,
    .modern-form .modern-input select,
    .modern-form .modern-input textarea {
      width: 100% !important;
      margin: 0 auto !important;
    }
    
    /* Fix course dropdown for medium screens */
    .modern-form .modern-input select {
      padding: 12px 35px 12px 60px !important;
      background-position: right 12px center !important;
      background-size: 16px !important;
    }
    
    /* Fix course dropdown text overlap on small screens */
    .modern-form .modern-input select {
      padding: 12px 40px 12px 60px !important;
      font-size: 0.9rem !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      background-position: right 12px center !important;
      background-size: 16px !important;
    }
    
    .modern-form .modern-input select option {
      padding: 8px 12px !important;
      font-size: 0.9rem !important;
    }
    
    /* Stats section - make more compact for small screens */
    .stats {
      padding: 40px 0;
    }
    
    .stats-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
      max-width: 100%;
    }
    
    .stat-item {
      padding: 15px 10px;
    }
    
    .stat-icon {
      width: 50px;
      height: 50px;
      margin-bottom: 10px;
    }
    
    .stat-icon i {
      font-size: 20px;
    }
    
    .stat-item h3 {
      font-size: 1.5rem;
      margin-bottom: 5px;
    }
    
    .stat-item p {
      font-size: 0.8rem;
    }
    
    /* Job Oriented Courses - stack in column for small screens */
    .job-courses-centered {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 20px !important;
      justify-content: center !important;
      justify-items: center !important;
    }
    
    .job-courses-centered .course-card {
      flex: none !important;
      max-width: none !important;
      width: 100% !important;
      justify-self: center !important;
    }
    .container {
      padding: 0 0.5rem;
      max-width: 100vw;
    }
  
    .header {
      padding: 0.5rem 0;
    }
  
    .nav-logo {
      gap: 0.5rem;
    }
  
    .logo-img {
      width: 45px;
      height: 45px;
    }
  
    .logo-text-main {
      font-size: 1.3rem;
    }
  
    .logo-text-sub {
      font-size: 0.65rem;
    }
  
    .hero {
      padding: 80px 0 30px;
      overflow-x: hidden;
    }
  
    .hero h1 {
      font-size: 1.9rem;
      line-height: 1.1;
      margin-bottom: 1rem;
    }
  
    .hero p {
      font-size: 0.9rem;
      line-height: 1.5;
      margin-bottom: 1.5rem;
    }
  
    .hero-buttons {
      flex-direction: column;
      gap: 0.75rem;
      align-items: center;
      width: 100%;
    }
  
    .btn {
      max-width: 250px;
      font-size: 0.95rem;
    }
    .certifications {
      margin-top: 2rem;
    }
    .cert-badge {
      font-size: 0.65rem;
      padding: 0.25rem 0.5rem;
      white-space: nowrap;
    }
  
    #admission .container > div {
      flex-direction: column !important;
    }
  
    .floating-card {
      max-width: 160px;
      margin: 0.75rem auto;
    }
  
    .floating-card h3 {
      font-size: 1.1rem;
    }
  
    .floating-card p {
      font-size: 0.8rem;
    }
  
    .floating-elements {
      display: none;
    }

    .hero-form .floating-elements {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      margin-top: 1rem;
    }

    .hero-form .floating-card {
      max-width: 160px;
      margin: 0 auto;
    }
  
    #admission-form {
      margin-left: 0px; /* You can tweak this value */
    }
  
    .about-section {
      padding: 20px 15px;
    }
  
    .section-header {
      text-align: center;
    }
  
    .section-title {
      font-size: 1.4rem;
    }
  
    .title-underline {
      width: 60px;
      height: 3px;
      background-color: #004080;
      margin: 10px auto;
    }
  
    .bilingual-content {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
  
    .content-block {
      padding: 10px;
    }
  
    .content-title {
      font-size: 1.2rem;
      margin-bottom: 8px;
    }
  
    .content-text {
      font-size: 0.95rem;
      line-height: 1.5;
    }
  
    .about-gallery {
      margin: 10px 0;
      overflow-x: auto;
      margin-bottom: 50px;
    }
  
    .marquee-track {
      display: flex;
      gap: 10px;
    }
  
    .marquee-group {
      display: flex;
      gap: 10px;
    }
  
    .marquee-group img {
      width: 300px;
      height: 300px;
      border-radius: 6px;
    }
  
    .features-grid {
      display: flex;
      flex-direction: column;
      gap: 15px;
      margin-top: 20px;
    }
  
    .feature-card {
      padding: 15px;
      text-align: center;
      border: 1px solid #ddd;
      border-radius: 8px;
    }
  
    .feature-icon i {
      font-size: 1.5rem;
      color: #004080;
      margin-bottom: 8px;
    }
  
    .feature-card h4 {
      font-size: 1.1rem;
      margin-bottom: 6px;
    }
  
    .feature-card p {
      font-size: 0.9rem;
      line-height: 1.4;
    }
  
  
  .contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 0 15px;
  }

  .contact-info {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    padding: 20px 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    min-height: 180px;
    justify-content: center;
  }

  .contact-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
  }

  .contact-details p,
  .contact-details a {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
  }

  .contact-details a {
    color: var(--primary-color);
    text-decoration: none;
  }

  .contact-details a:hover {
    text-decoration: underline;
  }
  
    .map-container {
      width: 100%;
      max-width: 360px;
      height: 250px;
      border-radius: 10px;
      overflow: hidden;
    }
  
    .section-header {
      text-align: center;
      padding: 0 15px;
    }
  
    .section-title {
      font-size: 1.4rem;
    }
  
    .section-subtitle {
      font-size: 1rem;
      margin-top: 5px;
    }
  
  
    .footer-section {
      padding: 20px;
      text-align: center; /* or center if you prefer */
    }
  
    .footer-title {
      font-size: 1.2rem;
      margin-bottom: 10px;
    }
  
    .footer-contact p {
      font-size: 0.95rem;
      line-height: 1.4;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
  
    .footer-contact i {
      font-size: 1rem;
      color: #004080; /* optional: match your theme */
    }
    .footer-contact{
      text-align: center;
    }

    .footer-brand h3 {
      font-size: 1.3rem;
    }

    .footer-brand p {
      font-size: 0.8rem;
    }

    .footer-details p {
      font-size: 0.8rem;
      flex-direction: column;
      text-align: center;
      gap: 4px;
    }

    .footer-social a {
      width: 32px;
      height: 32px;
      font-size: 0.8rem;
    }
  }
  
  /* Extra small screens (375px and below) */
  @media (max-width: 375px) {
    .container {
      padding: 0 0.4rem;
    }
  
    .logo-text-sub {
      display: none;
    }
  
    .hero h1 {
      font-size: 1.7rem;
    }
  
    .cert-badge {
      font-size: 0.6rem;
      padding: 0.2rem 0.4rem;
    }
  
    .btn {
      max-width: 220px;
      font-size: 0.9rem;
    }
    
    /* Fix course dropdown for very small screens */
    .modern-form .modern-input select {
      padding: 10px 35px 10px 55px !important;
      font-size: 0.85rem !important;
      background-position: right 10px center !important;
      background-size: 14px !important;
    }
    
    .input-icon {
      left: 12px !important;
      font-size: 0.8rem !important;
    }
  }
  