
/* PrepLingo requested header, course dropdown, spacing, footer icon and visual fixes */
.pl-global-header,
.pl-global-header * { box-sizing: border-box; }
.pl-global-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 5000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220,235,246,.9);
  font-family: "Poppins", sans-serif;
}
.pl-header-container {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.pl-brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.pl-brand img {
  display: block !important;
  width: 132px !important;
  max-width: 132px !important;
  height: auto !important;
  max-height: 56px !important;
  object-fit: contain !important;
}
.pl-main-nav { display: flex; align-items: center; justify-content: center; gap: 7px; margin-left: auto; }
.pl-nav-link,
.pl-dropdown-button {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #2d4157;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 700 14px/1 "Poppins", sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.pl-nav-link:hover,
.pl-dropdown-button:hover,
.pl-nav-link.active,
.pl-dropdown-button.active {
  background: #eef7ff;
  color: #00577d;
  transform: translateY(-1px);
}
.pl-courses-dropdown { position: relative; }
.pl-chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.pl-courses-dropdown:hover .pl-chevron,
.pl-courses-dropdown.open .pl-chevron { transform: rotate(225deg) translateY(-1px); }
.pl-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(760px, calc(100vw - 28px));
  padding: 16px;
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(220,235,246,.95);
  box-shadow: 0 24px 54px rgba(0,44,92,.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.pl-courses-dropdown:hover .pl-dropdown-menu,
.pl-courses-dropdown.open .pl-dropdown-menu,
.pl-courses-dropdown:focus-within .pl-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.pl-dropdown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.pl-course-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 17px;
  background: #fff;
  border: 1px solid rgba(220,235,246,.82);
  color: #17324d;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.pl-course-link:hover { transform: translateY(-2px); background: #f7fbff; border-color: rgba(88,160,255,.3); }
.pl-course-link span { width: 32px; height: 32px; border-radius: 12px; background:#eef7ff; display:grid; place-items:center; flex:0 0 auto; }
.pl-course-link b { font-size: 13px; line-height: 1.25; font-weight: 750; }
.pl-course-link.pl-child b { font-weight: 650; }
.pl-course-link.pl-child span { background:#fff7df; }
.pl-header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.pl-header-whatsapp,
.pl-demo-btn {
  min-height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  font: 800 14px/1 "Poppins", sans-serif;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.pl-header-whatsapp {
  width: 44px;
  background: #f4faff;
  color: #00577d;
  border: 1px solid rgba(220,235,246,.95);
  box-shadow: 0 10px 22px rgba(0,87,125,.07);
}
.pl-demo-btn { padding: 0 20px; background: #00577d; color: #fff; box-shadow: 0 16px 32px rgba(0,87,125,.18); }
.pl-header-whatsapp:hover,
.pl-demo-btn:hover { transform: translateY(-2px); }
.pl-demo-btn:hover { background:#58a0ff; }
.pl-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 15px;
  background: #eef7ff;
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
}
.pl-mobile-toggle span { position:absolute; left:12px; width:20px; height:2px; border-radius:999px; background:#00577d; transition:.2s ease; }
.pl-mobile-toggle span:nth-child(1){top:14px}
.pl-mobile-toggle span:nth-child(2){top:21px}
.pl-mobile-toggle span:nth-child(3){top:28px}
.pl-mobile-toggle.active span:nth-child(1){top:21px; transform:rotate(45deg)}
.pl-mobile-toggle.active span:nth-child(2){opacity:0}
.pl-mobile-toggle.active span:nth-child(3){top:21px; transform:rotate(-45deg)}
.pl-mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(220,235,246,.95);
  box-shadow: 0 18px 40px rgba(0,44,92,.08);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pl-mobile-panel.open { display: grid; }
.pl-mobile-panel a { display:flex; align-items:center; min-height:40px; padding:10px 12px; border-radius:14px; background:#f7fbff; color:#17324d; text-decoration:none; font:700 13px/1.25 "Poppins",sans-serif; }
/* Homepage hero top spacing requested */
#sec-hero .hero-page {
  min-height: auto !important;
  align-items: flex-start !important;
  padding-top: 64px !important;
  padding-bottom: 46px !important;
}
/* Homepage course cards converted to links */
#sec-courses a.course-card,
a.course-card { text-decoration: none; color: inherit; display: block; }
#sec-courses a.more-courses,
a.more-courses,
a.night-cta { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
/* Footer icon request */
.preplingo-footer-socials a svg,
.footer-socials a svg { display:block; width:18px; height:18px; }
.preplingo-footer-socials a,
.footer-socials a { font-size:0 !important; }
/* Duolingo and TOEFL hero visual overlap/cropping fixes only */
body .duo-panel { overflow: visible !important; min-height: 560px !important; }
body .duo-score-card { right: 16px !important; top: 92px !important; }
body .duo-lesson-card { right: 18px !important; top: 280px !important; }
body .duo-mock-card { left: 220px !important; top: 74px !important; max-width: 200px !important; white-space: normal !important; text-align: center; }
body .duo-speak-card { left: 74px !important; bottom: 38px !important; }
body .mission-board { overflow: visible !important; min-height: 570px !important; }
body .format-pill { left: 280px !important; top: 48px !important; max-width: 210px !important; white-space: normal !important; text-align:center; }
body .score-card { right: 16px !important; top: 102px !important; }
body .speaking-card { right: 20px !important; top: 284px !important; }
body .writing-card { left: 56px !important; bottom: 44px !important; }
@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; }
}
