/* Large tablets and small desktops (≤1200px) */
@media (max-width: 1200px) {
  .stats-container,
  .courses-container,
  .values-container,
  .cta-container,
  .footer-container {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-overlay {
    padding: 6rem 2rem;
  }
  
  .enroll-modal {
    max-width: 85rem;
    padding: 2rem;
  }
  
  .form-grid {
    gap: 3.5rem;
  }
}

/* Tablets (≤992px) */
@media (max-width: 992px) {
  .logo{
    font-size: 50%;
  }
  .footer-logo{
    font-size: 50%;
  }
  .hero h1 {
    font-size: 4.4rem;
  }

  .hero p {
    font-size: 1.7rem;
  }

  .courses-header h2,
  .values-header h2,
  .cta-container h2 {
    font-size: 3.8rem;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .modal-overlay {
    padding: 12rem 1.5rem;
  }

  input,
select,
textarea {
  width: 70%;
  max-width: 60rem;
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.08);
  background: #0b1220;
  color: #ffffff;
  font-size: 1.4rem;
  outline: none;
}
  
  .enroll-modal {
    max-width: 80%;
    padding: 2rem 1.6rem;
  }
  

  .form-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  
  .form-group.full {
    grid-column: span 1;
  }
  
  input,
  select,
  textarea {
    width: 100%;
  }
}

@media(max-width:900px){
  html{
    font-size: 62.5%;
  }
.logo{
  font-size: 50%;
}
.logo>span{
  font-size: 2rem;
}
}
@media(max-width:895px){

  .nav-links{
    display: none;
  }

    .menuClose{
    display: block;
  }


}
@media(max-width:895px){
  input,
select,
textarea {
  width: 70%;
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.08);
  background: #0b1220;
  color: #ffffff;
  font-size: 1.4rem;
  outline: none;
}
}

/* Small tablets and large phones (≤768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .nav-container {
    padding: 0.8rem 1.6rem;
    border-radius: 1.6rem;
  }

  .nav-links{
    display: none;
  }

  .nav-links {
    gap: 1.6rem;
  }

  .nav-links a {
    font-size: 1.4rem;
    padding: 0.6rem 1.2rem;
  }

  .hero {
    padding: 10rem 2rem 6rem;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero p {
    font-size: 1.6rem;
  }

  .badge {
    padding: 0.6rem 1.6rem;
    font-size: 1.3rem;
  }

  .btn,
  .btn-primary,
  .btn-secondary {
    padding: 1.4rem 2.8rem;
    font-size: 1.5rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    flex-direction: column;
    text-align: center;
  }

  .value-icon {
    margin: 0 auto 1.6rem;
  }

  .cta-container {
    padding: 4rem 3rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .menuClose{
    display: block;
  }
    aside{
    right: 50%;
    transform: translate(50%, -1rem);
  }

  aside.active{
    transform: translate(50%, 0);
  }
  .modal-overlay {
    padding: 12rem 1rem;
    align-items: flex-start;
  }
  input,
select,
textarea {
  width: 60%;
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.08);
  background: #0b1220;
  color: #ffffff;
  font-size: 1.4rem;
  outline: none;
}
  
  .enroll-modal {
    margin-top: 1rem;
    max-width: 96%;
    padding: 1.8rem 1.4rem;
    border-radius: 1.2rem;
  }
  
  .modal-header h2 {
    font-size: 1.8rem;
  }
  
  .modal-header p {
    font-size: 1.25rem;
  }
  
  .modal-icon {
    width: 3.6rem;
    height: 3.6rem;
    font-size: 1.8rem;
  }
  
  label {
    font-size: 1.15rem;
  }
  
  input,
  select,
  textarea {
    padding: 1rem 1.2rem;
    font-size: 1.35rem;
  }
  
  .submit-btn {
    padding: 1.3rem;
    font-size: 1.45rem;
  }
}

/* Phones (≤480px) */
@media (max-width: 480px) {
  .logo {
    font-size: 1.6rem;
  }

  .logo-icon {
    width: 2.8rem;
    height: 2.8rem;
  }
.footer-logo{
  font-size: 50%;
width: 90%;
}
  .hero h1 {
    font-size: 3.4rem;
  }

  .hero p {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 18rem;
    justify-content: center;
  }

  .stat-card,
  .course-card,
  .value-card {
    padding: 2.4rem 1.8rem;
  }

  .courses-header h2,
  .values-header h2,
  .cta-container h2 {
    font-size: 3.2rem;
  }

  .courses-header p,
  .values-header p,
  .cta-container p {
    font-size: 1.5rem;
  }

  .nav-links {
    display: none; 
  }
  .modal-overlay {
    padding: 12rem 0.8rem;
  }
  input,
select,
textarea {
  width: 60%;
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.08);
  background: #0b1220;
  color: #ffffff;
  outline: none;
}
  
  .enroll-modal {
    padding: 1.6rem 1.2rem;
    border-radius: 1rem;
  }
  
  .modal-header {
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .close-btn {
    font-size: 1.9rem;
  }
  
  .modal-header h2 {
    font-size: 1.65rem;
  }
  
  .submit-btn {
    padding: 1.2rem;
    font-size: 1.4rem;
  }
}


/* ================= COMMUNITY POPUP RESPONSIVE ================= */

/* Large tablets & small desktops (≤1200px) */
@media (max-width: 1200px) {
  .community-box {
    max-width: 42rem;
    padding: 2.8rem;
  }

  .community-box h2 {
    font-size: 2rem;
  }
}


/* Tablets (≤992px) */
@media (max-width: 992px) {
  .community-box {
    max-width: 38rem;
    padding: 2.5rem;
  }

  .community-box h2 {
    font-size: 1.9rem;
  }

  .community-links a {
    font-size: 1.25rem;
  }
}


/* Small tablets & large phones (≤768px) */
@media (max-width: 768px) {
  .community-box {
    width: 95%;
    max-width: 34rem;
    padding: 2.2rem;
    border-radius: 1.2rem;
  }

  .community-box h2 {
    font-size: 1.7rem;
  }

  .community-box p {
    font-size: 1.25rem;
  }

  .community-links a {
    padding: 0.9rem;
    font-size: 1.2rem;
  }

  #closeCommunityPopup {
    width: 100%;
  }
}


/* Phones (≤480px) */
@media (max-width: 480px) {
  .community-box {
    width: 96%;
    max-width: 30rem;
    padding: 1.8rem;
    border-radius: 1rem;
  }

  .community-box h2 {
    font-size: 1.5rem;
  }

  .community-box p {
    font-size: 1.15rem;
  }

  .community-links {
    gap: 0.9rem;
  }

  .community-links a {
    padding: 0.8rem;
    font-size: 1.1rem;
  }

  #closeCommunityPopup {
    padding: 0.9rem;
    font-size: 1.3rem;
  }
}


/* ================= TESTIMONIALS RESPONSIVE ================= */

/* Large desktops (≤1400px) */
@media (max-width: 1400px) {
  .testimonial {
    max-width: 900px;
    padding: 4.5rem 3.5rem;
  }

  .testimonial p {
    font-size: 1.9rem;
  }
}


/* Small desktops & laptops (≤1200px) */
@media (max-width: 1200px) {
  .testimonials {
    padding: 8rem 2rem;
  }

  .testimonial {
    max-width: 800px;
    padding: 4rem 3rem;
  }

  .testimonial img {
    width: 150px;
    height: 150px;
  }

  .testimonial p {
    font-size: 1.8rem;
  }
}


/* Tablets (≤992px) */
@media (max-width: 992px) {
  .testimonials-header h2 {
    font-size: 3.2rem;
  }

  .testimonials-header p {
    font-size: 1.8rem;
    margin-bottom: 4rem;
  }

  .testimonial {
    max-width: 700px;
    padding: 3.5rem 2.8rem;
  }

  .testimonial img {
    width: 135px;
    height: 135px;
  }

  .stars {
    font-size: 2.2rem;
  }

  .testimonial p {
    font-size: 1.7rem;
  }

  .testimonial h4 {
    font-size: 2.1rem;
  }
}


/* Small tablets & large phones (≤768px) */
@media (max-width: 768px) {
  .testimonials {
    padding: 7rem 1.5rem;
  }

  .testimonials-header h2 {
    font-size: 2.8rem;
  }

  .testimonials-header p {
    font-size: 1.6rem;
  }

  .testimonial-slider {
    min-height: 480px;
  }

  .testimonial {
    max-width: 90%;
    padding: 3rem 2.2rem;
    border-radius: 2rem;
  }

  .testimonial img {
    width: 120px;
    height: 120px;
    border-width: 5px;
  }

  .stars {
    font-size: 2rem;
  }

  .testimonial p {
    font-size: 1.6rem;
    line-height: 1.7;
  }

  .testimonial h4 {
    font-size: 1.9rem;
  }

  .testimonial span {
    font-size: 1.4rem;
  }

  .testimonial-dots span {
    width: 14px;
    height: 14px;
  }
}


/* Phones (≤480px) */
@media (max-width: 480px) {
  .testimonials {
    padding: 6rem 1.2rem;
  }

  .testimonials-header h2 {
    font-size: 2.4rem;
  }

  .testimonials-header p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
  }

  .testimonial-slider {
    min-height: 420px;
  }

  .testimonial {
    max-width: 85%;
    padding: 3rem 2.2rem;
    border-radius: 2rem;
  }

  .testimonial img {
    width: 105px;
    height: 105px;
    border-width: 4px;
  }

  .stars {
    font-size: 1.8rem;
    letter-spacing: 0.3rem;
  }

  .testimonial p {
    font-size: 1.45rem;
  }

  .testimonial h4 {
    font-size: 1.7rem;
  }

  .testimonial span {
    font-size: 1.3rem;
  }

  .testimonial-dots {
    margin-top: 3rem;
  }

  .testimonial-dots span {
    width: 12px;
    height: 12px;
  }
}


/* Very small phones (≤360px) */
@media (max-width: 360px) {
  .testimonials-header h2 {
    font-size: 2.1rem;
  }

  .testimonial {
    padding: 2.2rem 1.5rem;
  }

  .testimonial img {
    width: 95px;
    height: 95px;
  }

  .testimonial p {
    font-size: 1.35rem;
  }

  .testimonial h4 {
    font-size: 1.6rem;
  }
}
