/* ==========================================================
   RESPONSIVE STYLESHEET  
   Breakpoints Structured:  
   Mobile First → Tablet → Desktop  
   =========================================================== */

/* ==========================================================
   GLOBAL RESPONSIVE (Shared Adjustments)
   =========================================================== */
@media (max-width: 1024px) {
  .uniq-slider-section {
    padding: 22px 14px;
  }

  .card {
    flex: 0 0 50%; /* 2 cards */
  }
}

@media (max-width: 768px) {
  .uniq-slider-section {
    padding: 18px 12px;
  }

  .uniq-next-btn {
    right: 10px;
    width: 44px;
    height: 44px;
  }

  .card {
    flex: 0 0 100%; /* 1 card */
  }

  .course-catalog-text p {
    width: 90%;
    font-size: 16px;
  }

  .course-catalog-text h4 {
    font-size: 20px;
  }

  .prev-btn {
    left: 5px;
  }
  .next-btn {
    right: 5px;
  }
}

/* ==========================================================
   MOBILE & TABLET (≤1163px)
   =========================================================== */
@media (max-width: 1163px) {
  /* Header */
  .top-bar {
    display: none;
  }
  .auth-buttons {
    display: none;
  }

  .mobile-auth {
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
    z-index: 2001;
  }

  /* Navigation */
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px 0;
    text-align: center;
    z-index: 3000;
  }

  .nav-links.active {
    display: flex;
  }

  /* Search */
  .search-desktop {
    display: none;
  }
  .search-mobile {
    display: flex;
  }

  .search-container.active .search-input {
    opacity: 1;
    pointer-events: auto;
  }

  /* Choose Us */
  .choose-us {
    justify-content: center;
  }

  .choose-us img {
    width: 100%;
  }

  .choose-us-text {
    width: 90%;
    text-align: center;
  }

  .choose-us h3 {
    font-size: 18px;
    margin: 0 auto;
  }

  .choose-us p {
    width: 80%;
    text-align: center;
    margin: 0 auto;
    font-size: 14px;
  }
}

/* Search Input Positioning */
@media (min-width: 885px) and (max-width: 1163px) {
  .search-input {
    left: 30%;
    width: 450px;
    top: 11%;
    position: fixed;
  }
}

@media (min-width: 650px) and (max-width: 885px) {
  .search-input {
    left: 20%;
    width: 450px;
    top: 11%;
    position: fixed;
  }
}

@media (min-width: 560px) and (max-width: 650px) {
  .search-input {
    left: 25%;
    width: 350px;
    top: 11%;
    position: fixed;
  }
}

@media (min-width: 395px) and (max-width: 560px) {
  .search-input {
    left: 18%;
    width: 280px;
    top: 11%;
    position: fixed;
  }
}

@media (max-width: 395px) {
  .search-input {
    left: 15%;
    width: 200px;
    top: 11%;
    position: fixed;
  }
}

/* ==========================================================
   GRID LAYOUT ADJUSTMENTS
   =========================================================== */
@media (min-width: 730px) and (max-width: 960px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .awards {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 730px) {
  .services {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* FOOTER GRID */
@media (max-width: 1140px) {
  .footer-5-column .footer-container .footer-navbar-container,
  .footer-5-column .footer-navbar {
    row-gap: 3rem;
  }

  .footer-5-column .footer-company-details,
  .footer-5-column .footer-navbar {
    padding: 0;
    width: 100%;
  }
}

@media (max-width: 992px) {
  .footer-5-column .footer-navbar .footer-navbar-col {
    width: 50%;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: row-reverse;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ==========================================================
   HERO RESPONSIVE
   =========================================================== */
@media (max-width: 930px) {
  .hero {
    flex-direction: column;
    align-items: center;
  }

  .hero-text,
  .hero-text h3,
  .hero-text p,
  .hero img {
    width: 100% !important;
    text-align: left;
  }
}

/* ==========================================================
   EXTRA SMALL MOBILE (≤480px)
   =========================================================== */
@media (max-width: 480px) {
  .btn-login,
  .btn-signup {
    width: 140px;
    height: 40px;
    font-size: 0.9rem;
  }

  .our-values p {
    width: 100%;
    margin-bottom: 0;
  }
  .awards-container {
    width: 100%;
    margin: 10% 0;
  }

  .course-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================
   ULTRA SMALL (≤395px)
   =========================================================== */
@media (max-width: 395px) {
  /* General Layout */
  .container {
    flex-wrap: nowrap;
    gap: 4px;
    padding: 0 5px;
  }

  .medical-text {
    font-size: smaller;
  }

  .awards-container {
    width: 100%;
    margin: 15% auto;
  }

  .site-header {
    padding: 10px 2%;
  }
  .logo-img {
    height: 30px;
  }

  /* Navigation */
  .nav-links {
    gap: 10px;
    font-size: 0.8rem;
  }

  .btn-login,
  .btn-signup {
    width: 100px;
    height: 32px;
    font-size: 0.75rem;
    padding: 6px;
  }

  /* Footer */
  .footer-container {
    padding: 60px 5px 0 5px;
  }

  /* Top Bar */
  .top-bar {
    font-size: 12px;
    padding: 6px 8px;
  }

  .top-bar-content {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Landing Section */
  .landing-image-content h3 {
    font-size: 35px;
    margin-bottom: 5%;
  }

  .landing-image-content button {
    width: 135px;
    height: 48px;
    border-top-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  /* Slider */
  .slider-btn {
    top: 40%;
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  .card {
    height: 300px;
  }

  .choose-us-text {
    flex-wrap: wrap;
  }
}

/* ==========================================================
   MEDICAL JOURNAL SECTION
   =========================================================== */
@media (max-width: 840px) {
  .medical-journal img {
    right: 0;
    top: 15%;
    width: 220px;
  }
}

@media (max-width: 720px) {
  .medical-journal img {
    right: 0;
    top: 26%;
    width: 180px;
  }
}

@media (max-width: 625px) {
  .medical-journal {
    flex-direction: column;
    gap: 12px;
    margin: 8% 0;
    padding: 10% 2%;
  }

  .medical-text {
    gap: 1%;
    text-align: center;
  }

  .medical-text p {
    width: 100%;
  }

  .medical-journal img {
    position: relative;
    width: 180px;
  }
}

/* ==========================================================
   DESKTOP (≥1164px)
   =========================================================== */
@media (min-width: 1164px) {
  .search-desktop {
    display: flex;
  }
  .search-mobile {
    display: none;
  }

  .search-container.active .search-input {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width:1130px){
  .programs-cards{

  grid-template-columns: repeat(2,1fr);
}
}
@media (max-width:730px){
.programs-cards{

  grid-template-columns: repeat(1,1fr);
}
}