/* ============================================
   LARGE DESKTOP (1400px+)
   ============================================ */
@media (min-width: 1400px) {
  .container {
    max-width: 140rem;
    margin: 14rem 8% 10rem;
  }

  .section_img {
    margin: 0 8%;
  }
  .section-3 {
    margin: 10rem 8%;
  }
  .section_three {
    margin: 10rem 8%;
  }
  .section_four {
    margin: 10rem 8%;
  }
  .section_5 {
    margin: 10rem 8%;
  }
  .hero_section {
    margin: 10rem 8%;
  }
  .section_7 {
    margin: 10rem 8%;
  }
  .FAQ_container {
    margin: 8rem auto;
    max-width: 90rem;
  }
  .section_9 {
    margin: 8rem 8%;
  }
  .footer_container {
    max-width: 140rem;
    margin: 0 auto;
    padding: 6rem 8% 4rem;
  }
}

/* ============================================
   LAPTOP / DESKTOP (1200px - 1399px)
   ============================================ */
@media (max-width: 1200px) {
  :root {
    --radius-lg: 16px;
    --radius-xl: 24px;
  }

  .container {
    margin: 12rem 4% 6rem;
    gap: 4rem;
  }

  .header {
    font-size: 4.5rem;
  }
  .header_text {
    max-width: 48rem;
  }

  .sec_div {
    grid-template-columns: repeat(2, 1fr);
  }
  .course_carts {
    gap: 2rem;
  }
  .hero_img {
    gap: 2rem;
  }
  .footer_container {
    gap: 3rem;
  }

  .section_four {
    margin: 6rem 4%;
  }
  .study_container {
    gap: 3rem;
  }
}

/* ============================================
   TABLET LANDSCAPE (1024px - 1199px)
   ============================================ */
@media (max-width: 1024px) {
  .nav_div {
    padding: 1.4rem 4%;
  }
  .nav_bar {
    gap: 1rem;
  }
  .header_list {
    gap: 1.5rem;
  }
  .header_list a {
    font-size: 1.4rem;
  }
  .find_btn {
    padding: 1rem 1.5rem;
    font-size: 1.3rem;
  }

  .container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .testimonial {
    justify-content: center;
  }
  .testimonials {
    max-width: 100%;
  }

  .section-3 {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    padding: 4rem 4%;
    margin: 6rem 4%;
  }

  .works h3 {
    font-size: 4rem;
  }

  .sec_div {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .study_container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .course_carts {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero_img {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .section_7 {
    margin: 6rem 4%;
    padding: 5rem 4%;
  }
  .section_testimonial h2,
  .hero_text {
    padding: 0;
  }
  .FAQ_container {
    margin: 5rem 4%;
  }
  .section_9 {
    margin: 5rem 4%;
  }
  .join_div h2 {
    padding: 0;
  }

  .footer_container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 0;
  }
  .copyright_container {
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
  }
}

/* ============================================
   TABLET PORTRAIT / MOBILE LANDSCAPE (768px - 1023px)
   ============================================ */
@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .nav_div {
    padding: 1rem 3%;
  }
  .label_text {
    font-size: 1.5rem;
  }

  /* Mobile Burger Menu */
  .mobile_btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .mobile_btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  .mobile_btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .mobile_btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile_btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  /* Full Screen Mobile Menu */
  .header_list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
  }

  .header_list.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header_list li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .header_list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    font-size: 2rem;
    font-weight: 600;
    padding: 1.2rem 1.5rem;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .header_list li a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
  }

  .header_list .find_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    font-size: 1.6rem;
    font-weight: 600;
    color: white !important;
    background: var(--primary);
    margin-top: 0.5rem;
    padding: 1.2rem 1.5rem;
  }

  /* Hero Section */
  .header {
    font-size: 3.8rem;
    line-height: 1.2;
  }

  .header_text {
    font-size: 1.6rem;
    max-width: 100%;
    margin-bottom: 2.5rem;
  }

  .header-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .header-link,
  .header-links {
    width: 100%;
    justify-content: center;
  }

  .ideas {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .header_p {
    font-size: 1.4rem;
  }

  .testimonials {
    padding: 2.5rem;
  }
  .testimonial_p {
    font-size: 1.5rem;
  }

  /* Sections */
  .section-3 {
    margin: 5rem 3%;
    padding: 3rem 4%;
  }
  .works h3 {
    font-size: 3.5rem;
  }
  .works p {
    font-size: 1.6rem;
  }

  .section_three {
    margin: 6rem 3%;
  }
  .subheading {
    font-size: 1.2rem;
  }
  .header_three h2 {
    font-size: 2.8rem;
  }
  .header_three {
    margin-bottom: 3rem;
  }

  .sec_div {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .user-container {
    padding: 2.5rem 2rem;
    margin: 0;
  }

  .user-header {
    font-size: 1.8rem;
  }

  .section_four {
    margin: 5rem 3%;
  }
  .study_text h2 {
    font-size: 2.4rem;
  }
  .study_text p {
    font-size: 1.5rem;
  }

  .section_5 {
    margin: 5rem 3%;
  }
  .programs h2 {
    font-size: 2.6rem;
  }
  .programs p {
    font-size: 1.5rem;
  }

  .course_carts {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .course_div {
    margin: 0;
  }
  .course_img {
    height: 20rem;
  }

  .hero_section {
    margin: 5rem 3%;
  }
  .hero_study {
    font-size: 1.5rem;
    padding: 0;
  }

  .hero_img {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 0;
  }

  .section_7 {
    margin: 5rem 3%;
    padding: 4rem 3%;
  }

  .section_testimonial h2 {
    font-size: 2.4rem;
    padding: 0;
  }
  .hero_text {
    font-size: 1.5rem;
    padding: 0;
  }

  .FAQ_container {
    margin: 4rem 3%;
  }
  .FAQ_text li {
    font-size: 1.5rem;
    padding: 1.5rem 2rem;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .section_9 {
    margin: 4rem 3%;
  }
  .join_div {
    padding: 5rem 3%;
  }
  .join_div h2 {
    font-size: 2.4rem;
  }

  /* Footer */
  .footer_container {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }

  .footer_div {
    padding-right: 0;
  }

  .copyright_container {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .footer_links {
    justify-content: center;
  }
}

/* ============================================
   LARGE MOBILE (576px - 767px)
   ============================================ */
@media (max-width: 576px) {
  html {
    font-size: 50%;
  }

  .nav_div {
    padding: 0.8rem 3%;
  }
  .label_text {
    font-size: 1.4rem;
  }
  .label_text svg {
    width: 22px;
    height: 22px;
  }

  .mobile_btn {
    padding: 6px;
  }
  .mobile_btn span {
    width: 20px;
    height: 2px;
    margin: 3px 0;
  }

  /* Smaller mobile menu */
  .header_list li a {
    font-size: 1.8rem;
    padding: 1.1rem 1.3rem;
    max-width: 250px;
  }

  .header_list .find_btn {
    font-size: 1.5rem;
    padding: 1.1rem 1.3rem;
    max-width: 250px;
  }

  .header {
    font-size: 3rem;
    line-height: 1.2;
  }

  .header span {
    display: inline;
  }
  .header_text {
    font-size: 1.5rem;
    line-height: 1.6;
  }

  .header-link {
    font-size: 1.4rem;
    padding: 1.2rem 2rem;
  }
  .header-links {
    font-size: 1.3rem;
    padding: 1rem 1.5rem;
  }

  .testimonials {
    padding: 2rem;
    border-radius: var(--radius-lg);
  }
  .testimonial_p {
    font-size: 1.4rem;
  }
  .testimonia_name img {
    width: 4rem;
    height: 4rem;
  }

  .section-3 {
    margin: 4rem 3%;
    padding: 3rem 4%;
    border-radius: var(--radius-lg);
  }

  .works h3 {
    font-size: 3rem;
  }
  .works p {
    font-size: 1.4rem;
  }
  .image-frame {
    height: 3rem;
  }

  .section_three {
    margin: 4rem 3%;
  }
  .subheading {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
  }
  .header_three h2 {
    font-size: 2.2rem;
  }

  .user-container {
    padding: 2rem 1.5rem;
  }
  .svg_container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .user_svg {
    width: 5rem;
    height: 5rem;
  }
  .user-header {
    font-size: 1.6rem;
  }
  .user_p {
    font-size: 1.4rem;
  }

  .section_four {
    margin: 4rem 3%;
  }
  .study_text {
    padding: 0;
  }
  .study_text h2 {
    font-size: 2rem;
  }
  .study_text p {
    font-size: 1.4rem;
  }
  .study_img {
    border-radius: var(--radius-lg);
  }
  .study_link {
    font-size: 1.3rem;
    padding: 1.2rem 2rem;
  }

  .section_5 {
    margin: 4rem 3%;
  }
  .programs span {
    font-size: 1.2rem;
  }
  .programs h2 {
    font-size: 2rem;
  }
  .programs p {
    font-size: 1.4rem;
  }

  .course_carts {
    gap: 1.5rem;
  }
  .course_img {
    height: 18rem;
    border-radius: 0;
  }

  .price-p {
    padding: 1.5rem 1.5rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .price-p span {
    font-size: 1.2rem;
  }
  .pricing_header {
    font-size: 1.6rem;
    padding: 1.2rem 1.5rem 0.5rem;
  }
  .pricing_text {
    font-size: 1.3rem;
    padding: 0 1.5rem;
  }

  .pricing-name {
    padding: 1.5rem;
    margin-top: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .pricing {
    width: 100%;
    justify-content: space-between;
  }
  .img_avatar {
    width: 4rem;
    height: 4rem;
  }
  .price_tag {
    font-size: 1.6rem;
  }

  .hero_section {
    margin: 4rem 3%;
  }
  .hero_study {
    font-size: 1.4rem;
    margin-bottom: 3rem;
  }
  .hero_img {
    gap: 1.5rem;
  }

  .img_container h3 {
    font-size: 1.4rem;
  }
  .img_container p {
    font-size: 1.2rem;
  }

  .section_7 {
    margin: 4rem 3%;
    padding: 3rem 3%;
    border-radius: var(--radius-lg);
  }

  .section_testimonial h2 {
    font-size: 2rem;
  }
  .hero_text {
    font-size: 1.4rem;
  }

  .testimonial_name {
    padding: 1.2rem 1.8rem;
    flex-direction: column;
  }

  .img_testimonial {
    width: 4rem;
    height: 4rem;
  }

  .FAQ_container {
    margin: 3rem 3%;
  }
  .header_three h2 {
    font-size: 2rem;
  }
  .FAQ_text li {
    font-size: 1.4rem;
    padding: 1.2rem 1.5rem;
    margin: 1rem 0;
    gap: 1rem;
    text-align: left;
  }
  .FAQ_text li .material-symbols-outlined {
    align-self: flex-end;
  }

  .section_9 {
    margin: 3rem 3%;
  }
  .join_div {
    padding: 4rem 3%;
    border-radius: var(--radius-lg);
  }
  .join_div h2 {
    font-size: 2rem;
  }
  .join_link {
    font-size: 1.4rem;
    padding: 1.2rem 2.5rem;
  }

  .footer {
    padding: 3rem 3% 2rem;
  }
  .footer-heading {
    font-size: 1.8rem;
  }
  .footer_div li {
    font-size: 1.4rem;
  }
  .footer_heading {
    font-size: 1.4rem;
  }
  .footer_list li {
    font-size: 1.3rem;
  }
  .copyright_container p {
    font-size: 1.2rem;
  }
  .footer_links a {
    width: 4rem;
    height: 4rem;
  }
}

/* ============================================
   SMALL MOBILE (375px - 575px)
   ============================================ */
@media (max-width: 375px) {
  html {
    font-size: 46%;
  }

  .header {
    font-size: 2.6rem;
  }
  .header_text {
    font-size: 1.4rem;
  }
  .header-buttons {
    gap: 1rem;
  }

  .works h3 {
    font-size: 2.5rem;
  }
  .header_three h2 {
    font-size: 1.8rem;
  }
  .course_img {
    height: 16rem;
  }

  .join_div h2 {
    font-size: 1.8rem;
  }
}

/* ============================================
   EXTRA SMALL DEVICES (< 375px)
   ============================================ */
@media (max-width: 320px) {
  html {
    font-size: 42%;
  }

  .nav_div {
    padding: 0.6rem 2%;
  }
  .label_text {
    font-size: 1.2rem;
  }

  .mobile_btn {
    padding: 4px;
  }
  .mobile_btn span {
    width: 18px;
  }

  .header {
    font-size: 2.2rem;
  }

  .header_list li a {
    font-size: 1.6rem;
    max-width: 220px;
  }
  .header_list .find_btn {
    font-size: 1.4rem;
    max-width: 220px;
  }

  .works h3 {
    font-size: 2rem;
  }
  .course_img {
    height: 14rem;
  }

  .join_div h2 {
    font-size: 1.6rem;
  }
}

/* ============================================
   ORIENTATION - LANDSCAPE MODE
   ============================================ */
@media (orientation: landscape) and (max-height: 500px) {
  .header_list {
    justify-content: center;
    padding-top: 4rem;
    gap: 1rem;
  }

  .header_list li a {
    font-size: 1.6rem;
    padding: 0.8rem 1rem;
  }

  .header {
    font-size: 2.5rem;
  }

  .header_text {
    display: none;
  }
}

/* ============================================
   HIGH RETINA DISPLAYS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ============================================
   TOUCH DEVICES (NO HOVER)
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  .header_list a:hover {
    background: transparent;
  }

  .header_list a:active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
  }

  .find_btn:active {
    background: var(--accent-hover);
  }

  .course_div:hover {
    transform: none;
  }

  .user-container:hover {
    transform: none;
  }

  .img_container:hover {
    transform: none;
  }
}
