/* ==========================================================================
   PrepLingo Academy - Master Responsive Stylesheet (responsive.css)
   Consolidates: All Mobile, Tablet, and Desktop Breakpoint Media Queries
   ========================================================================== */

/* =========================================================
   MEDIA QUERIES FROM: homepage.css
   ========================================================= */
@media (max-width: 1080px) {
  .brand-logo {
    width: 145px;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-container {
    min-height: 74px;
  }

  .brand-logo {
    width: 132px;
  }

  .mobile-courses {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    padding-top: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1050px) {
  #sec-hero .hero-page {
    align-items: flex-start;
  }

  #sec-hero .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 32px;
  }

  #sec-hero .hero-left {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }

  #sec-hero h1,
  #sec-hero .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  #sec-hero .typing-area {
    justify-content: center;
  }

  #sec-hero .lead-form {
    margin: 0 auto;
  }

  #sec-hero .hero-right {
    justify-content: center;
  }

  #sec-hero .visual-stage {
    width: min(100%, 760px);
  }
}

@media (max-width: 620px) {
  #sec-hero .hero-page {
    padding: 24px 14px;
  }

  #sec-hero .hero {
    width: 100%;
  }

  #sec-hero .mini-tag {
    font-size: 12px;
    margin-bottom: 16px;
  }

  #sec-hero .hero-desc {
    font-size: 14px;
  }

  #sec-hero .lead-form {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  #sec-hero .submit-btn {
    width: 100%;
  }

  #sec-hero .visual-stage {
    width: 100%;
  }

  #sec-hero .layer {
    animation-name: layerIn_sec_hero;
  }

  #sec-hero .main-anim {
    display: none;
  }

  #sec-hero .pulse_sec_hero-dot {
    display: none;
  }
}

@media (max-width: 760px) {
  #sec-logo-slider .logo-card img[alt="British Council logo"] {
    width: 80%;
    height: 80%;
  }

  #sec-logo-slider .logo-card img[alt="IDP logo"] {
    width: 78%;
    height: 78%;
  }

  #sec-logo-slider .logo-card img[alt="AEO logo"] {
    width: 76%;
    height: 76%;
  }
}

@media (max-width: 760px) {
  #sec-logo-slider .logo-section {
    padding: 54px 0 60px;
  }

  #sec-logo-slider .logo-heading {
    margin-bottom: 22px;
  }

  #sec-logo-slider .logo-heading p {
    font-size: 13.5px;
  }

  #sec-logo-slider .logo-track {
    gap: 16px;
    animation-duration: 34s;
  }

  #sec-logo-slider .logo-card {
    width: 180px;
    height: 92px;
    border-radius: 14px;
    padding: 12px 14px;
  }
}

@media (max-width: 1020px) {
  #sec-courses .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  #sec-courses .courses-section {
    padding: 56px 0 64px;
  }

  #sec-courses .courses-title {
    text-align: center;
    margin-bottom: 28px;
  }

  #sec-courses .courses-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #sec-courses .course-card {
    height: 164px;
    border-radius: 24px;
  }

  #sec-courses .course-name {
    font-size: 23px;
  }

  #sec-courses .course-name.small {
    font-size: 21px;
  }

  #sec-courses .course-emoji {
    width: 58px;
    height: 58px;
    font-size: 31px;
    border-radius: 18px;
  }
}

@media (max-width: 980px) {
  #sec-night .night-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 46px 34px 36px;
  }

  #sec-night .night-copy {
    max-width: 760px;
  }

  #sec-night .night-art-area {
    min-height: 310px;
  }

  #sec-night .art-backdrop {
    width: 380px;
    height: 274px;
    right: 50%;
    transform: translateX(50%);
  }

  #sec-night .art-glow {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 560px) {
  #sec-night .night-section {
    padding: 54px 0;
  }

  #sec-night .night-container {
    width: min(100% - 24px, 560px);
  }

  #sec-night .night-panel {
    padding: 34px 20px 28px;
  }

  #sec-night .night-copy h2 {
    font-size: 32px;
  }

  #sec-night .night-copy p {
    font-size: 14px;
    line-height: 1.75;
  }

  #sec-night .night-cta {
    width: 100%;
  }

  #sec-night .night-art-area {
    min-height: 240px;
  }

  #sec-night .art-backdrop {
    width: 280px;
    height: 204px;
  }

  #sec-night .art-glow {
    width: 250px;
    height: 170px;
  }

  #sec-night .night-art {
    width: 100%;
    max-width: 390px;
  }
}

@media (max-width: 760px) {
  #sec-results .results-section {
    padding: 60px 0 68px;
  }

  #sec-results .results-heading {
    margin-bottom: 30px;
  }

  #sec-results .results-heading p {
    font-size: 13.5px;
  }

  #sec-results .report-track {
    gap: 16px;
  }

  #sec-results .report-card {
    width: 205px;
    height: 290px;
    border-radius: 15px;
  }

  #sec-results .report-img-wrap {
    height: 246px;
  }

  #sec-results .report-caption {
    height: 44px;
    font-size: 12px;
  }

  #sec-results .track-left {
    animation-duration: 36s;
  }

  #sec-results .track-right {
    animation-duration: 40s;
  }
}

@media (max-width: 980px) {
  #sec-stats .stats-stage::before {
    display: none;
  }

  #sec-stats .stats-grid {
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  #sec-stats .stats-grid::-webkit-scrollbar {
    display: none;
  }

  #sec-stats .stat-card {
    flex: 0 0 250px;
  }

  #sec-stats .stat-card,
  #sec-stats .stat-card:nth-child(2),
  #sec-stats .stat-card:nth-child(3),
  #sec-stats .stat-card:nth-child(4) {
    transform: none;
  }
}

@media (max-width: 560px) {
  #sec-stats .stats-section {
    padding: 22px 0 28px;
  }

  #sec-stats .stats-container {
    width: min(100% - 24px, 560px);
  }

  #sec-stats .stats-stage {
    padding: 14px;
    border-radius: 26px;
  }

  #sec-stats .stats-grid {
    gap: 12px;
  }

  #sec-stats .stat-card {
    flex: 0 0 225px;
    min-height: 126px;
    border-radius: 24px;
    padding: 15px 15px 14px;
  }

  #sec-stats .icon-bubble {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 19px;
  }

  #sec-stats .stat-number {
    font-size: 34px;
    margin-bottom: 8px;
  }

  #sec-stats .stat-label {
    max-width: 100%;
    font-size: 13.5px;
  }
}

@media (max-width: 900px) {
  #sec-quality .quality-panel {
    padding: 42px 24px 36px;
  }

  #sec-quality .quality-icons {
    grid-template-columns: repeat(5, 150px);
    overflow-x: auto;
    gap: 18px;
    padding: 0 6px 10px;
    scrollbar-width: none;
  }

  #sec-quality .quality-icons::-webkit-scrollbar {
    display: none;
  }

  #sec-quality .quality-icons::before {
    left: 70px;
    right: auto;
    width: 710px;
  }

  #sec-quality .icon-circle {
    width: 94px;
    height: 94px;
  }

  #sec-quality .quality-item h3 {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  #sec-quality .quality-section {
    padding: 54px 0;
  }

  #sec-quality .quality-panel {
    width: min(100% - 24px, 560px);
    border-radius: 28px;
    padding: 34px 18px 28px;
  }

  #sec-quality .quality-head {
    margin-bottom: 30px;
  }

  #sec-quality .quality-head p {
    font-size: 13.5px;
  }

  #sec-quality .quality-icons {
    grid-template-columns: repeat(5, 132px);
  }

  #sec-quality .quality-icons::before {
    top: 46px;
    left: 62px;
    width: 625px;
  }

  #sec-quality .icon-circle {
    width: 86px;
    height: 86px;
    margin-bottom: 13px;
  }

  #sec-quality .icon-circle svg {
    width: 40px;
    height: 40px;
  }

  #sec-quality .quality-item h3 {
    font-size: 17px;
  }
}

@media (max-width:980px) {
  #sec-fun-learning .fun-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #sec-fun-learning .fun-copy {
    max-width: 760px;
  }

  #sec-fun-learning .art-stage {
    min-height: 400px;
  }
}

@media (max-width:560px) {
  #sec-fun-learning .fun-section {
    padding: 58px 0 68px;
  }

  #sec-fun-learning .fun-container {
    width: min(100% - 24px, 560px);
  }

  #sec-fun-learning .fun-copy h2 {
    font-size: 34px;
  }

  #sec-fun-learning .fun-copy p {
    font-size: 14px;
    line-height: 1.78;
  }

  #sec-fun-learning .art-stage {
    min-height: 320px;
    transform: scale(.82);
    transform-origin: center top;
  }
}

@media (max-width:980px) {
  #sec-options .options-wrap {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  #sec-options .options-copy {
    max-width: 760px;
    order: 2;
  }

  #sec-options .art-zone {
    min-height: 420px;
    order: 1;
  }
}

@media (max-width:560px) {
  #sec-options .options-section {
    padding: 58px 0 68px;
  }

  #sec-options .options-container {
    width: min(100% - 24px, 560px);
  }

  #sec-options .options-copy h2 {
    font-size: 34px;
  }

  #sec-options .options-copy p,
  #sec-options .plan-list li {
    font-size: 14px;
    line-height: 1.78;
  }

  #sec-options .art-zone {
    min-height: 330px;
    transform: scale(.84);
    transform-origin: center top;
  }
}

@media (max-width: 900px) {
  #sec-world .world-panel {
    min-height: 560px;
    padding: 28px 18px 0;
  }

  #sec-world .world-head p {
    font-size: 14px;
    line-height: 1.78;
  }

  #sec-world .globe-area {
    height: 305px;
  }

  #sec-world .soft-shadow {
    width: 420px;
  }
}

@media (max-width: 560px) {
  #sec-world .world-section {
    padding: 58px 0;
  }

  #sec-world .world-container {
    width: min(100% - 24px, 560px);
  }

  #sec-world .world-panel {
    min-height: 450px;
    padding: 24px 14px 0;
  }

  #sec-world .world-head h2 {
    font-size: 34px;
  }

  #sec-world .world-head p {
    font-size: 13.5px;
    line-height: 1.72;
  }

  #sec-world .globe-area {
    height: 220px;
  }

  #sec-world .soft-shadow {
    width: 280px;
    bottom: 2px;
  }
}

@media (max-width: 980px) {
  #sec-testimonials .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  #sec-testimonials .testimonials-copy {
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
  }

  #sec-testimonials .mini-stats {
    justify-content: center;
  }

  #sec-testimonials .student-photo-wrap {
    max-width: 580px;
    margin: 0 auto;
  }

  #sec-testimonials .testimonial-stage {
    min-height: 430px;
  }
}

@media (max-width: 560px) {
  #sec-testimonials .testimonials-section {
    padding: 58px 0 68px;
  }

  #sec-testimonials .testimonials-container {
    width: min(100% - 24px, 560px);
  }

  #sec-testimonials .testimonials-copy h2 {
    font-size: 34px;
  }

  #sec-testimonials .testimonials-copy p {
    font-size: 14px;
    line-height: 1.78;
  }

  #sec-testimonials .student-photo-wrap {
    border-radius: 24px;
  }

  #sec-testimonials .testimonial-stage {
    min-height: 520px;
  }

  #sec-testimonials .stage-bg {
    width: 100%;
    height: 430px;
    border-radius: 30px;
  }

  #sec-testimonials .testimonial-card {
    min-height: 420px;
    padding: 24px 20px 22px;
    border-radius: 24px;
  }

  #sec-testimonials .testimonial-card.prev,
  #sec-testimonials .testimonial-card.next {
    display: none;
  }

  #sec-testimonials .student-row h3 {
    font-size: 22px;
  }

  #sec-testimonials .testimonial-card p {
    font-size: 13.5px;
    line-height: 1.7;
  }

  #sec-testimonials .float-icon {
    display: none;
  }
}

@media (max-width: 980px) {
  #sec-faq .faq-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #sec-faq .faq-intro {
    position: relative;
    top: auto;
    min-height: auto;
  }

  #sec-faq .faq-intro h2,
  #sec-faq .faq-intro p {
    max-width: 760px;
  }

  #sec-faq .faq-visual {
    max-width: 460px;
    margin: 34px auto 0;
  }
}

@media (max-width: 560px) {
  #sec-faq .faq-section {
    padding: 58px 0 68px;
  }

  #sec-faq .faq-container {
    width: min(100% - 24px, 560px);
  }

  #sec-faq .faq-intro {
    border-radius: 30px;
    padding: 30px 20px;
  }

  #sec-faq .faq-intro h2 {
    font-size: 34px;
  }

  #sec-faq .faq-intro p {
    font-size: 14px;
    line-height: 1.76;
  }

  #sec-faq .faq-visual {
    height: 210px;
  }

  #sec-faq .big-bubble {
    width: 178px;
    height: 132px;
    border-radius: 34px;
  }

  #sec-faq .big-bubble span {
    font-size: 56px;
  }

  #sec-faq .mini-bubble {
    font-size: 11px;
  }

  #sec-faq .faq-list::before {
    display: none;
  }

  #sec-faq .faq-question {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 15px 14px;
  }

  #sec-faq .faq-number {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    font-size: 14px;
  }

  #sec-faq .question-text {
    font-size: 14.5px;
  }

  #sec-faq .faq-plus {
    width: 30px;
    height: 30px;
  }

  #sec-faq .faq-answer p {
    padding: 0 16px 18px 62px;
    font-size: 13.5px;
    line-height: 1.72;
  }
}

@media (max-width: 980px) {
  #sec-blog .blog-head {
    align-items: start;
    flex-direction: column;
  }

  #sec-blog .blog-grid {
    grid-template-columns: 1fr;
  }

  #sec-blog .blog-info h3 {
    min-height: auto;
  }

  #sec-blog .blog-card {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 560px) {
  #sec-blog .blog-section {
    padding: 58px 0 68px;
  }

  #sec-blog .blog-container {
    width: min(100% - 24px, 560px);
  }

  #sec-blog .blog-title h2 {
    font-size: 34px;
  }

  #sec-blog .blog-title p {
    font-size: 14px;
    line-height: 1.76;
  }

  #sec-blog .blog-board {
    border-radius: 30px;
    padding: 16px;
  }

  #sec-blog .blog-card {
    border-radius: 24px;
  }

  #sec-blog .blog-info {
    padding: 18px;
  }

  #sec-blog .blog-info h3 {
    font-size: 21px;
  }

  #sec-blog .floating-note {
    display: none;
  }
}

@media (max-width: 900px) {
  #sec-contact .contact-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  #sec-contact .contact-art {
    order: -1;
  }

  #sec-contact .contact-copy {
    max-width: 760px;
  }
}

@media (max-width: 560px) {
  #sec-contact .contact-section {
    padding: 52px 0 62px;
  }

  #sec-contact .contact-container {
    width: min(100% - 24px, 560px);
  }

  #sec-contact .contact-copy h2 {
    font-size: 34px;
  }

  #sec-contact .contact-copy p {
    font-size: 14px;
    line-height: 1.72;
  }

  #sec-contact .contact-form {
    grid-template-columns: 1fr;
  }

  #sec-contact .contact-art img {
    width: min(100%, 360px);
  }
}

@media (max-width: 1080px) {
  .site-header .brand-logo {
    width: 136px !important;
  }
}

@media (max-width: 640px) {
  .site-header .brand-logo {
    width: 122px !important;
  }
}

@media (max-width: 768px) {

  #sec-logo-slider h2,
  #sec-courses h2,
  #sec-night h2,
  #sec-results h2,
  #sec-stats h2,
  #sec-quality h2,
  #sec-fun-learning h2,
  #sec-options h2,
  #sec-world h2,
  #sec-testimonials h2,
  #sec-faq h2,
  #sec-blog h2,
  #sec-contact h2 {
    font-size: 32px !important;
  }

  #sec-hero h1 {
    font-size: 34px !important;
  }

  #sec-night .night-panel {
    padding: 34px 24px !important;
  }
}

@media screen and (min-width: 1051px) {
  html body #sec-hero#sec-hero .hero-page {
    min-height: auto !important;
    height: auto !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 12px !important;
    padding-bottom: 32px !important;
    margin-top: 0 !important;
  }

  html body #sec-hero#sec-hero .hero {
    min-height: auto !important;
    height: auto !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    align-items: center !important;
  }

  html body #sec-hero#sec-hero .hero-left,
  html body #sec-hero#sec-hero .hero-right {
    margin-top: 0 !important;
  }
}

/* =========================================================
   MEDIA QUERIES FROM: preplingo-contact-footer.css
   ========================================================= */
@media (max-width: 980px) {
  .preplingo-header-whatsapp { min-height: 40px; padding: 0 12px; font-size: 13px; }
}

@media (max-width: 720px) {
  .preplingo-header-whatsapp { width: 100%; margin-top: 8px; }
  .header-wrap .preplingo-header-whatsapp,
  .header-row .preplingo-header-whatsapp,
  .header-container .preplingo-header-whatsapp { width: auto; }
  .preplingo-footer-contact p { font-size: 13.5px; }
}

/* =========================================================
   MEDIA QUERIES FROM: homepage-seo.css
   ========================================================= */
@media(max-width:760px){.pl-seo-links{grid-template-columns:1fr}.pl-seo-cluster{padding:44px 0}.pl-seo-cluster .pl-seo-wrap{padding:22px}}

/* =========================================================
   MEDIA QUERIES FROM: preplingo-seo-enhancements.css
   ========================================================= */
@media (max-width: 640px) {
  .preplingo-seo-cluster { padding: 34px 14px; }
  .preplingo-seo-cluster__inner { border-radius: 24px; padding: 22px; }
  .preplingo-seo-cluster__links { display: grid; grid-template-columns: 1fr; }
  .preplingo-seo-cluster__links a { width: 100%; }
}

/* =========================================================
   MEDIA QUERIES FROM: preplingo-global-updates.css
   ========================================================= */
@media (max-width: 1120px) {
  .pl-main-nav { display:none; }
  .pl-mobile-toggle { display:block; }
  .pl-header-container { min-height: 74px; }
  .pl-brand img { width: 126px !important; max-width:126px !important; }
}

@media (max-width: 720px) {
  .pl-header-actions .pl-demo-btn { display:none; }
  .pl-header-whatsapp { width:42px; min-height:42px; }
  .pl-mobile-panel { grid-template-columns: 1fr; }
  #sec-hero .hero-page { padding-top: 40px !important; padding-bottom: 36px !important; }
  body .duo-panel,
  body .mission-board { overflow: hidden !important; min-height: 720px !important; }
}

/* =========================================================
   RESPONSIVE LAYER: homepage-mobile.css
   ========================================================= */
/* PrepLingo homepage mobile stability layer. Desktop styles are untouched. */

@media (max-width: 1050px) {
  #sec-hero .hero-page {
    min-height: auto !important;
    padding-top: 20px !important;
    padding-bottom: 30px !important;
    align-items: flex-start !important;
  }
  #sec-hero .hero {
    min-height: auto !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  #sec-hero .layer {
    opacity: 1 !important;
    transform: none !important;
    translate: 0 0 !important;
    animation: none !important;
    will-change: auto !important;
  }
  #sec-hero .main-anim,
  #sec-hero .pulse-dot,
  #sec-hero .pulse_sec_hero-dot {
    display: none !important;
  }
}

@media (max-width: 767px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }
  .homepage-block {
    width: 100%;
    max-width: 100%;
    overflow: hidden !important;
  }

  #sec-hero .hero-page {
    padding: 12px 12px 24px !important;
  }
  #sec-hero .hero {
    width: 100% !important;
    gap: 18px !important;
  }
  #sec-hero .hero-left {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  #sec-hero .mini-tag {
    margin-bottom: 14px !important;
    padding: 8px 12px !important;
    font-size: 11.5px !important;
    animation: none !important;
  }
  #sec-hero h1 {
    max-width: 100% !important;
    margin: 0 auto 10px !important;
    font-size: clamp(30px, 8.8vw, 38px) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.7px !important;
    animation: none !important;
  }
  #sec-hero .typing-area {
    width: 100% !important;
    min-height: 64px !important;
    margin-bottom: 14px !important;
    justify-content: center !important;
    align-items: flex-start !important;
    overflow: hidden !important;
    animation: none !important;
  }
  #sec-hero .typing-course {
    max-width: calc(100% - 14px) !important;
    min-width: 0 !important;
    font-size: clamp(24px, 7.2vw, 32px) !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
  }
  #sec-hero .cursor {
    flex: 0 0 3px;
    width: 3px !important;
    height: 31px !important;
  }
  #sec-hero .lead-form {
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    padding: 12px !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    border-radius: 14px !important;
    animation: none !important;
  }
  #sec-hero .lead-form .field,
  #sec-hero .lead-form .field.full,
  #sec-hero .other-field,
  #sec-hero .submit-btn,
  #sec-hero .form-msg {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
  #sec-hero .hero-right {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
  }
  #sec-hero .visual-stage {
    width: min(100%, 520px) !important;
    max-width: 100% !important;
    aspect-ratio: 1498 / 1050 !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    contain: layout paint;
  }
  #sec-hero .layer {
    max-width: none !important;
    filter: none !important;
  }

  /* Decorative movement is reduced on phones to stop loading-time collisions. */
  #sec-night .night-art,
  #sec-night .mini-stars span,
  #sec-stats .floating-shape,
  #sec-stats .mini-spark,
  #sec-quality .icon-circle,
  #sec-quality .spark,
  #sec-fun-learning .backdrop,
  #sec-fun-learning .plant,
  #sec-fun-learning .leaf,
  #sec-fun-learning .arm-left,
  #sec-fun-learning .arm-right,
  #sec-fun-learning .laptop,
  #sec-fun-learning .badge,
  #sec-fun-learning .floater,
  #sec-options .art-blob,
  #sec-options .schedule-board,
  #sec-options .sun,
  #sec-options .moon,
  #sec-options .day-row,
  #sec-options .fill,
  #sec-options .option-pill,
  #sec-options .spark,
  #sec-world .globe-figure,
  #sec-world .globe-inner,
  #sec-testimonials .float-icon,
  #sec-faq .big-bubble,
  #sec-faq .mini-bubble,
  #sec-faq .spark,
  #sec-blog .floating-note {
    animation: none !important;
  }

  #sec-fun-learning .art-stage,
  #sec-options .art-zone,
  #sec-world .globe-area,
  #sec-testimonials .testimonial-stage,
  #sec-results .results-board,
  #sec-quality .quality-panel {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* More compact mobile section rhythm. */
  #sec-logo-slider .logo-section,
  #sec-courses .courses-section,
  #sec-night .night-section,
  #sec-results .results-section,
  #sec-quality .quality-section,
  #sec-fun-learning .fun-section,
  #sec-options .options-section,
  #sec-world .world-section,
  #sec-testimonials .testimonials-section,
  #sec-faq .faq-section,
  #sec-blog .blog-section,
  #sec-contact .contact-section {
    padding-top: 44px !important;
    padding-bottom: 48px !important;
  }
  #sec-stats .stats-section {
    padding-top: 20px !important;
    padding-bottom: 24px !important;
  }
}

@media (max-width: 420px) {
  #sec-hero .hero-page {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  #sec-hero h1 {
    font-size: clamp(28px, 8.5vw, 34px) !important;
  }
  #sec-hero .typing-course {
    font-size: clamp(22px, 6.8vw, 29px) !important;
  }
  #sec-hero .typing-area {
    min-height: 60px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #sec-hero *, .homepage-block * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   RESPONSIVE LAYER: preplingo-responsive-v2.css
   ========================================================= */
/* ===== merged from preplingo-mobile-fixes.css ===== */
/* =========================================================
   PrepLingo mobile safety layer
   Added after page CSS so every standalone page stays usable
   on phones, even though pages were designed separately.
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

iframe {
  border: 0;
}

table {
  width: 100%;
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

h1,
h2,
h3,
h4,
p,
a,
span,
li,
strong,
small {
  overflow-wrap: break-word;
}

/* Keep embedded data-image logos/cards from forcing horizontal scroll. */
.brand img,
.brand-logo,
.hero img,
.hero-card img,
.hero-photo-card img,
.footer-brand img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .container,
  .about-container,
  .footer-container,
  .pl-seo-cluster .pl-seo-wrap {
    width: min(100% - 28px, 1180px) !important;
  }

  .header-container,
  .header-wrap,
  .header-row,
  .header {
    min-height: auto !important;
    gap: 12px !important;
  }

  .header-wrap,
  .header-row,
  .header {
    flex-wrap: wrap !important;
  }

  .brand,
  .brand a {
    min-width: 0 !important;
  }

  .brand img,
  .brand-logo {
    width: min(132px, 42vw) !important;
    max-width: 132px !important;
  }

  /* Pages with the advanced header already have a proper mobile panel. */
  .header-container .nav-area {
    display: none !important;
  }

  .header-container .mobile-toggle {
    display: block !important;
    flex: 0 0 auto !important;
  }

  .mobile-panel.open {
    display: block !important;
  }

  .mobile-courses,
  .dropdown-grid,
  .pl-seo-links {
    grid-template-columns: 1fr !important;
  }

  /* Pages with the simpler header had the nav hidden on mobile;
     show it as swipeable chips instead of losing navigation. */
  .site-header .nav {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding: 4px 0 8px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-header .nav::-webkit-scrollbar {
    display: none;
  }

  .site-header .nav a,
  .site-header .nav button {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    padding: 9px 12px !important;
  }

  .header-btn,
  .header-btn.btn,
  .btn,
  .demo-btn,
  .btn-primary,
  .btn-secondary,
  .header-actions a {
    white-space: nowrap;
  }

  .hero-grid,
  .about-hero-grid,
  .contact-hero-grid,
  .contact-grid,
  .terms-grid,
  .footer-grid,
  .testimonials-shell,
  .intro-grid,
  .two-col,
  .score-showcase,
  .cta-box,
  .result-card,
  .hero-proof,
  .quick-strip,
  .quick-facts,
  .facts,
  .facts-grid,
  .focus-grid,
  .inside-grid,
  .benefit-grid,
  .skills-grid,
  .skill-grid,
  .result-grid,
  .cards-grid,
  .modules-grid,
  .task-grid,
  .journey-grid,
  .path-grid,
  .compare-grid,
  .course-grid,
  .courses-grid,
  .service-grid,
  .faq-layout,
  .reports-grid,
  .story-grid,
  .value-grid,
  .map-grid,
  .office-grid,
  .form-grid,
  .newsletter-row,
  .footer-main-grid {
    grid-template-columns: 1fr !important;
  }

  .hero,
  .about-hero,
  .contact-hero,
  .terms-hero,
  .section,
  .section-pad,
  .testimonials-section,
  .intro-section,
  .focus-section,
  .choose-section,
  .skills-section,
  .journey-section,
  .modules-section,
  .path-section,
  .compare-section,
  .exam-section,
  .problems-section,
  .why-section,
  .task-section,
  .result-section,
  .pl-seo-cluster {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .dropdown-menu {
    max-width: calc(100vw - 28px) !important;
  }
}

@media (max-width: 760px) {
  .container,
  .about-container,
  .footer-container,
  .pl-seo-cluster .pl-seo-wrap {
    width: min(100% - 24px, 760px) !important;
  }

  h1 {
    font-size: clamp(34px, 10vw, 46px) !important;
    line-height: 1.04 !important;
  }

  h2,
  .section-head h2,
  .section-title h2,
  .cta-panel h2,
  .cta h2 {
    font-size: clamp(27px, 8vw, 38px) !important;
    line-height: 1.12 !important;
  }

  h3 {
    font-size: clamp(21px, 6vw, 30px) !important;
    line-height: 1.18 !important;
  }

  p,
  li {
    font-size: 14.5px;
  }

  .hero,
  .about-hero,
  .contact-hero,
  .terms-hero {
    padding-top: 42px !important;
    padding-bottom: 52px !important;
  }

  .section,
  .section-pad,
  .testimonials-section,
  .intro-section,
  .focus-section,
  .choose-section,
  .skills-section,
  .journey-section,
  .modules-section,
  .path-section,
  .compare-section,
  .exam-section,
  .problems-section,
  .why-section,
  .task-section,
  .result-section,
  .pl-seo-cluster {
    padding-top: 46px !important;
    padding-bottom: 46px !important;
  }

  .card,
  .course-card,
  .stat-box,
  .fact-card,
  .module-card,
  .skill-card,
  .benefit-card,
  .result-card,
  .review-card,
  .testimonial-slide,
  .left-story-panel,
  .slider-panel,
  .reports-panel,
  .cta-panel,
  .cta-box,
  .dark-board,
  .big-copy,
  .pl-seo-cluster .pl-seo-wrap {
    border-radius: 24px !important;
    padding: 22px 18px !important;
  }

  .btn-row,
  .hero-actions,
  .cta-actions,
  .button-row,
  .actions,
  .header-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .btn-row a,
  .hero-actions a,
  .cta-actions a,
  .button-row a,
  .actions a {
    flex: 1 1 220px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Convert decorative floating elements into normal flow on very small screens
     so text and score badges do not overlap. */
  .floating-stars,
  .floating-note,
  .floating-card,
  .floating-proof,
  .floating-proof-label,
  .hero-badge,
  .score-badge,
  .mini-card,
  .mock-card,
  .proof-card {
    max-width: 100% !important;
  }

  .mobile-panel {
    width: min(100% - 24px, 760px) !important;
  }

  .mobile-courses {
    grid-template-columns: 1fr !important;
  }

  .footer-grid {
    gap: 24px !important;
  }
}

@media (max-width: 520px) {
  .container,
  .about-container,
  .footer-container,
  .pl-seo-cluster .pl-seo-wrap {
    width: min(100% - 20px, 520px) !important;
  }

  .site-header .nav a,
  .site-header .nav button {
    font-size: 12.5px !important;
    padding: 8px 11px !important;
  }

  .header-btn,
  .btn,
  .demo-btn,
  .btn-primary,
  .btn-secondary {
    min-height: 42px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  .brand img,
  .brand-logo {
    width: min(122px, 46vw) !important;
  }

  .hero,
  .about-hero,
  .contact-hero,
  .terms-hero {
    padding-top: 34px !important;
    padding-bottom: 44px !important;
  }

  .section,
  .section-pad,
  .testimonials-section,
  .intro-section,
  .focus-section,
  .choose-section,
  .skills-section,
  .journey-section,
  .modules-section,
  .path-section,
  .compare-section,
  .exam-section,
  .problems-section,
  .why-section,
  .task-section,
  .result-section,
  .pl-seo-cluster {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }

  .hero-proof,
  .quick-strip,
  .quick-facts,
  .facts,
  .facts-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .pl-seo-links a {
    padding: 13px 14px !important;
  }
}

@media (max-width: 640px) {
  body * {
    max-width: 100%;
  }

  body *::before,
  body *::after {
    max-width: 100vw !important;
  }

  .score-card,
  .duo-score-card,
  .duo-lesson-card,
  .duo-speak-card,
  .lecture-card,
  .speaking-card,
  .writing-card,
  .format-pill,
  .mission-card,
  .visual-card,
  .phone-card,
  .result-card,
  .hero-card {
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-visual,
  .toefl-visual,
  .pte-visual,
  .ielts-visual,
  .duo-panel,
  .mission-board,
  .phone-mockup,
  .globe-inner,
  .stage-bg {
    max-width: calc(100vw - 24px) !important;
    overflow: hidden;
  }
}


/* ===== merged from preplingo-mobile-polish.css ===== */
/* =========================================================
   PrepLingo mobile polish + performance layer
   Scope: mobile/tablet stability only. Desktop layout untouched.
   ========================================================= */

html, body { overflow-x: hidden !important; }

/* Keep footer logos/contact blocks from stretching on course pages with different CSS systems. */
.site-footer .footer-brand,
.site-footer .footer-brand p,
.site-footer .footer-brand .preplingo-footer-contact,
.site-footer .footer-brand .preplingo-footer-socials {
  max-width: 100% !important;
}
.site-footer .footer-brand img,
.footer-brand img {
  width: 132px !important;
  max-width: 132px !important;
  height: auto !important;
  max-height: 52px !important;
  object-fit: contain !important;
}


@media (max-width: 980px) {
  .pl-header-container { min-height: 70px !important; }
  .pl-brand img { width: 120px !important; max-width: 120px !important; max-height: 48px !important; }
  .pl-mobile-panel { max-height: 72vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

  /* Horizontal course journeys looked like broken overflow on phones. Stack only on mobile/tablet. */
  .journey-line,
  .path-track {
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
    gap: 14px !important;
    padding: 0 !important;
  }
  .journey-step,
  .path-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    transform: none !important;
  }
  .journey-step::after,
  .journey-step:not(:last-child)::after { display: none !important; }

  /* Decorative blobs/bubbles should not create perceived overlap or side overflow on mobile. */
  .blob,
  .blob.two,
  .blob-one,
  .blob-two,
  .duo-bubble,
  .stat-bubble {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .pl-header-container {
    width: min(100% - 24px, 760px) !important;
    min-height: 66px !important;
    gap: 10px !important;
  }
  .pl-brand img { width: 112px !important; max-width: 112px !important; }
  .pl-header-whatsapp { width: 40px !important; min-height: 40px !important; }
  .pl-mobile-toggle { width: 40px !important; height: 40px !important; }

  /* Duolingo hero: keep all score/map cards visible and separated on phones. */
  body .duo-hero { min-height: auto !important; }
  body .duo-panel {
    min-height: 735px !important;
    overflow: hidden !important;
    padding: 18px !important;
    border-radius: 30px !important;
  }
  body .duo-topbars { left: 44px !important; right: 22px !important; gap: 10px !important; }
  body .duo-owl {
    left: 50% !important;
    top: 78px !important;
    transform: translateX(-50%) scale(.86) !important;
  }
  body .duo-mock-card {
    left: 50% !important;
    top: 34px !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    max-width: calc(100% - 38px) !important;
    white-space: normal !important;
  }
  body .duo-score-card {
    left: 18px !important;
    right: 18px !important;
    top: 314px !important;
    width: auto !important;
  }
  body .duo-lesson-card {
    left: 18px !important;
    right: 18px !important;
    top: 458px !important;
    width: auto !important;
  }
  body .duo-speak-card {
    left: 18px !important;
    right: 18px !important;
    bottom: 26px !important;
    width: auto !important;
  }

  /* TOEFL hero: separate mission board floating cards on phones. */
  body .mission-board {
    min-height: 840px !important;
    overflow: hidden !important;
    border-radius: 30px !important;
    padding: 18px !important;
  }
  body .format-pill {
    left: 50% !important;
    right: auto !important;
    top: 42px !important;
    transform: translateX(-50%) !important;
    max-width: calc(100% - 38px) !important;
    white-space: normal !important;
  }
  body .main-task-card {
    left: 18px !important;
    right: 18px !important;
    top: 112px !important;
    width: auto !important;
  }
  body .score-card {
    left: 24px !important;
    right: 24px !important;
    top: 438px !important;
    width: auto !important;
  }
  body .speaking-card {
    left: 24px !important;
    right: 24px !important;
    top: 594px !important;
    width: auto !important;
  }
  body .writing-card {
    left: 24px !important;
    right: 24px !important;
    bottom: 32px !important;
    width: auto !important;
  }

  /* Footer columns should never sit side-by-side on phones. */
  .site-footer .footer-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
}

@media (max-width: 520px) {
  .pl-brand img { width: 106px !important; max-width: 106px !important; }
  body .duo-panel { min-height: 760px !important; }
  body .mission-board { min-height: 870px !important; }
  .lesson-item { grid-template-columns: 58px 1fr 30px !important; }
}

/* =========================================================
   PrepLingo mobile header/menu v2
   Desktop is intentionally untouched: every rule below is mobile/tablet only.
   ========================================================= */
@media (max-width: 760px) {
  .pl-global-header {
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid rgba(220,235,246,.82) !important;
    box-shadow: 0 8px 22px rgba(0,44,92,.045) !important;
  }

  .pl-header-container {
    width: calc(100% - 28px) !important;
    min-height: 64px !important;
    padding: 0 !important;
    gap: 8px !important;
  }

  .pl-brand {
    min-width: 0 !important;
  }

  .pl-brand img {
    width: 106px !important;
    max-width: 106px !important;
    max-height: 44px !important;
  }

  /* Clean mobile header: logo + menu only. Phone/demo actions stay inside the menu. */
  .pl-header-actions {
    display: none !important;
  }

  .pl-mobile-toggle {
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    margin-left: auto !important;
    border-radius: 15px !important;
    background: #eef7ff !important;
    border: 1px solid rgba(220,235,246,.96) !important;
    box-shadow: 0 10px 22px rgba(0,87,125,.08) !important;
    z-index: 99999 !important;
  }

  .pl-mobile-toggle:active {
    transform: scale(.96) !important;
  }

  .pl-mobile-toggle span {
    left: 11px !important;
    width: 20px !important;
    height: 2.2px !important;
    background: #00577d !important;
  }

  .pl-mobile-toggle span:nth-child(1) { top: 13px !important; }
  .pl-mobile-toggle span:nth-child(2) { top: 20px !important; }
  .pl-mobile-toggle span:nth-child(3) { top: 27px !important; }
  .pl-mobile-toggle.active span:nth-child(1) { top: 20px !important; transform: rotate(45deg) !important; }
  .pl-mobile-toggle.active span:nth-child(2) { opacity: 0 !important; }
  .pl-mobile-toggle.active span:nth-child(3) { top: 20px !important; transform: rotate(-45deg) !important; }

  /* Premium off-canvas mobile menu */
  .pl-mobile-panel {
    position: fixed !important;
    top: 76px !important;
    right: 12px !important;
    left: auto !important;
    width: min(86vw, 340px) !important;
    max-height: calc(100vh - 94px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 0 !important;
    padding: 14px !important;
    border-radius: 26px !important;
    background: rgba(255,255,255,.98) !important;
    border: 1px solid rgba(220,235,246,.96) !important;
    box-shadow: 0 28px 70px rgba(0,44,92,.18) !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(18px) translateY(-4px) scale(.98) !important;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
    z-index: 99998 !important;
  }

  .pl-mobile-panel.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) translateY(0) scale(1) !important;
  }

  .pl-mobile-panel a {
    min-height: 44px !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
    background: #f7fbff !important;
    border: 1px solid rgba(220,235,246,.82) !important;
    color: #17324d !important;
    font-size: 13.5px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
  }

  .pl-mobile-panel a:active {
    transform: scale(.985) !important;
    background: #eef7ff !important;
  }

  /* Make the contact actions inside the menu look intentional. */
  .pl-mobile-panel a[href*="wa.me"] {
    margin-top: 6px !important;
    background: #eafaf1 !important;
    border-color: rgba(20,160,90,.22) !important;
    color: #087a45 !important;
  }

  .pl-mobile-panel a[href="/contact/"],
  .pl-mobile-panel a[href$="/contact/"] {
    background: #00577d !important;
    border-color: #00577d !important;
    color: #fff !important;
    justify-content: center !important;
    box-shadow: 0 14px 26px rgba(0,87,125,.16) !important;
  }

  /* Mobile readability and friendlier first screen, without changing desktop. */
  .hero,
  .hero-page,
  .course-hero,
  .service-hero,
  .ielts-hero {
    padding-top: 28px !important;
  }

  h1,
  .hero h1,
  .hero-title,
  .course-hero h1,
  .service-hero h1 {
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
  }

  p,
  .hero p,
  .hero-subtitle,
  .course-hero p,
  .service-hero p {
    line-height: 1.72 !important;
  }

  .btn,
  .button,
  .primary-btn,
  .hero-cta,
  .cta-button,
  a[class*="btn"] {
    min-height: 46px !important;
    border-radius: 999px !important;
    touch-action: manipulation !important;
  }
}

@media (max-width: 420px) {
  .pl-header-container {
    min-height: 62px !important;
  }

  .pl-brand img {
    width: 100px !important;
    max-width: 100px !important;
  }

  .pl-mobile-toggle {
    width: 40px !important;
    height: 40px !important;
  }

  .pl-mobile-panel {
    top: 72px !important;
    right: 10px !important;
    width: min(88vw, 330px) !important;
    border-radius: 24px !important;
  }

  .pl-mobile-panel a {
    min-height: 43px !important;
    font-size: 13px !important;
  }
}


/* =========================================================
   FINAL MASTER OVERRIDES — 2026-07-20
   This block is authoritative and intentionally loaded last.
   ========================================================= */
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* Consistent logo dimensions. */
.pl-brand { display:flex !important; align-items:center !important; flex:0 0 auto !important; }
.pl-brand img,
header img[alt*="PrepLingo" i] {
  display:block !important;
  width:150px !important;
  max-width:150px !important;
  height:auto !important;
  max-height:60px !important;
  object-fit:contain !important;
}

/* First content must never depend on animation/observer execution. */
main,
main > section:first-child,
main > div:first-child,
main > section:first-child *,
main > div:first-child * {
  visibility:visible !important;
}

@media (max-width: 760px) {
  body { min-width:0 !important; }
  .pl-global-header { position:relative !important; top:auto !important; }
  .pl-header-container {
    min-height:68px !important;
    width:calc(100% - 24px) !important;
    padding:8px 0 !important;
  }
  .pl-brand img,
  header img[alt*="PrepLingo" i] {
    width:126px !important;
    max-width:126px !important;
    max-height:50px !important;
  }

  /* Never allow the opening section to become an empty viewport. */
  main { display:block !important; padding-top:0 !important; margin-top:0 !important; }
  main > section:first-child,
  main > div:first-child,
  section.hero:first-of-type,
  #sec-hero,
  #sec-hero .hero-page,
  #sec-hero .hero {
    min-height:0 !important;
    height:auto !important;
    margin-top:0 !important;
    padding-top:22px !important;
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
  }
  main > section:first-child *,
  main > div:first-child * {
    animation-delay:0s !important;
  }

  /* Every course page: copy first, visual second. */
  .hero-grid,
  .course-hero-grid,
  .hero .container.hero-grid {
    display:flex !important;
    flex-direction:column !important;
    grid-template-columns:1fr !important;
    min-height:0 !important;
    height:auto !important;
    gap:24px !important;
  }
  .hero-copy,
  .hero-left,
  .hero-content,
  .hero-grid > div:first-child {
    order:1 !important;
    min-height:0 !important;
    height:auto !important;
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
  }
  .hero-visual,
  .hero-ui-wrap,
  .academic-art,
  .core-art,
  .conversation-visual,
  .cert-visual,
  .toefl-visual,
  .duo-hero,
  .visual,
  .hero-grid > div:last-child {
    order:2 !important;
    min-height:0 !important;
    height:auto !important;
    margin-top:4px !important;
  }

  /* Complex absolutely-positioned dashboards were the source of the 700–900px blank area.
     Keep them on desktop, but hide them on narrow screens so content appears immediately. */
  .duo-panel,
  .mission-board,
  .talk-stage,
  .cert-board,
  .university-board,
  .core-board,
  .hero-ui-board,
  .mockup-stage,
  .visual-card {
    display:none !important;
  }

  .duo-hero,
  .toefl-visual,
  .conversation-visual,
  .cert-visual,
  .academic-art,
  .core-art,
  .hero-ui-wrap,
  .hero-visual,
  .visual {
    min-height:0 !important;
    height:auto !important;
  }

  /* Homepage keeps its illustration but removes false full-screen spacing. */
  #sec-hero .hero { display:flex !important; flex-direction:column !important; gap:28px !important; }
  #sec-hero .hero-left { order:1 !important; }
  #sec-hero .hero-right { order:2 !important; min-height:0 !important; height:auto !important; }
  #sec-hero .visual-stage { min-height:360px !important; height:360px !important; transform:none !important; }

  .lead-form { width:100% !important; max-width:100% !important; }
  .pl-mobile-panel { max-height:calc(100vh - 78px) !important; overflow-y:auto !important; }
}

@media (max-width: 480px) {
  .pl-brand img,
  header img[alt*="PrepLingo" i] { width:116px !important; max-width:116px !important; }
  #sec-hero .visual-stage { min-height:300px !important; height:300px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* =========================================================
   HOMEPAGE DESKTOP HERO TOP-GAP FIX
   Homepage only; tablet and mobile remain unchanged.
   This file is loaded last, so this is the final authority.
   ========================================================= */
@media (min-width: 1121px) {
  body main #sec-hero .hero-page {
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
    padding: 18px 20px 34px !important;
    margin: 0 !important;
  }

  body main #sec-hero .hero {
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    align-items: center !important;
  }

  body main #sec-hero .hero-left,
  body main #sec-hero .hero-right,
  body main #sec-hero .visual-stage {
    margin-top: 0 !important;
  }
}