@media (max-width: 480px) {
  .courses {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .course-title {
    font-size: 1.1rem;
  }
  .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: 70px 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: 1.5rem;
  }
  .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;
  }

  #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: 30px;
  }

  .contact-info {
    width: 100%;
    max-width: 360px;
  }

  .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .contact-icon {
    font-size: 1.5rem;
    color: #004080;
    margin-bottom: 8px;
  }

  .contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }

  .contact-details p,
  .contact-details a {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .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;
  }
}

/* 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;
  }
}
