/* ============================================
   Learn to Grow Academy — Premium Design System
   ============================================ */

/* Google Fonts (Poppins) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ----- Base ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #0F2B5C;
  background: #FFFFFF;
  overflow-x: hidden;
}

/* ----- Container ----- */
.container-premium {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding-left: 72px;
  padding-right: 72px;
}

/* Sections should never overflow horizontally */
section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 1200px) {
  .container-premium { padding-left: 48px; padding-right: 48px; }
}
@media (max-width: 768px) {
  .container-premium { padding-left: 32px; padding-right: 32px; }
}

/* ----- Navbar (Pixel Perfect) ----- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E8ECF2;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: height 250ms ease, box-shadow 250ms ease;
}

/* Compressed navbar on scroll */
.navbar.scrolled {
  height: 60px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.navbar.scrolled .navbar-container {
  height: 60px;
}

.navbar.scrolled .nav-logo-icon {
  width: 36px;
  height: 36px;
}

.navbar.scrolled .nav-logo {
  width: 140px;
  gap: 10px;
}

.navbar.scrolled .nav-logo-main {
  font-size: 19px;
}

.navbar.scrolled .nav-logo-sub {
  font-size: 10px;
}

.navbar.scrolled .nav-link {
  font-size: 13px;
}

.navbar.scrolled .nav-menu {
  gap: 26px;
}

.navbar.scrolled .btn-cta {
  width: 140px;
  height: 42px;
  font-size: 14px;
  border-radius: 12px;
}

.navbar.scrolled .nav-spacer-left {
  min-width: 40px;
}

.navbar.scrolled .nav-spacer-right {
  min-width: 32px;
}

.navbar-container {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 250ms ease;
}

/* ----- Logo (220px) ----- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  width: 160px;
  text-decoration: none;
  transition: width 250ms ease, gap 250ms ease;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: block;
  transition: width 250ms ease, height 250ms ease;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-main {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #0F2B5C;
  line-height: 1;
  white-space: nowrap;
  transition: font-size 250ms ease;
}

.nav-logo-main .two {
  color: #F6B000;
}

.nav-logo-sub {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: #0F2B5C;
  letter-spacing: 0.3px;
  line-height: 1;
  margin-top: 2px;
  transition: font-size 250ms ease;
}

/* ----- Desktop Menu (gap 34px) ----- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: gap 250ms ease;
}

.nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #0F2B5C;
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  transition: color 250ms ease, font-size 250ms ease;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: #0F2B5C;
}

.nav-link.active {
  color: #0F2B5C;
  font-weight: 600;
}

/* Active underline: 28px width, 3px height, gold, centered */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: #F6B000;
  border-radius: 999px;
}

/* Hover underline animates scaleX from center */
.nav-link:not(.active)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 28px;
  height: 3px;
  background: #F6B000;
  border-radius: 999px;
  transition: transform 250ms ease;
}

.nav-link:not(.active):hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Dropdown caret */
.nav-link .caret {
  display: inline-block;
  margin-left: 4px;
  font-size: 9px;
  transition: transform 250ms ease;
}

.nav-item-dropdown:hover .nav-link .caret {
  transform: rotate(180deg);
}

/* ----- Dropdown (250px, radius 16) ----- */
.nav-item-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 250px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  border: 1px solid #E8ECF2;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: all 220ms ease;
}

.nav-item-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #0F2B5C;
  text-decoration: none;
  transition: background 250ms ease;
}

.dropdown-item:hover {
  background: #FFFFFF;
  color: #0F2B5C;
}

.dropdown-item .emoji {
  margin-right: 12px;
  font-size: 16px;
}

/* ----- CTA Button (160x50, radius 14) ----- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 160px;
  height: 50px;
  background: #0F2B5C;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: width 250ms ease, height 250ms ease, font-size 250ms ease, border-radius 250ms ease, background 250ms ease, transform 250ms ease, box-shadow 250ms ease;
  flex-shrink: 0;
}

.btn-cta:hover {
  background: #0F2B5C;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(22, 61, 122, 0.25);
}

.btn-cta .arrow {
  font-size: 18px;
  transition: transform 250ms ease;
}

.btn-cta:hover .arrow {
  transform: translateX(4px);
}

/* ----- Navbar Spacing (logo→nav→cta) ----- */
.nav-spacer-left {
  min-width: 60px;
  flex-shrink: 0;
  transition: min-width 250ms ease;
}

.nav-spacer-right {
  min-width: 48px;
  flex-shrink: 0;
  transition: min-width 250ms ease;
}

/* ----- Mobile Hamburger ----- */
.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #F5F7FA;
  border: none;
  cursor: pointer;
  transition: background 250ms ease;
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background: #E8ECF2;
}

/* ----- Mobile Drawer (320px) ----- */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: white;
  z-index: 999;
  padding: 24px;
  transition: right 300ms ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.mobile-drawer.open {
  right: 0;
}

/* ----- Hero Buttons ----- */
.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 190px;
  height: 58px;
  background: #0F2B5C;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms ease;
}

.btn-primary-lg:hover {
  background: #0F2B5C;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(23, 61, 122, 0.25);
}

.btn-secondary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 190px;
  height: 58px;
  background: transparent;
  color: #0F2B5C;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border-radius: 16px;
  border: 2px solid #E8ECF2;
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms ease;
}

.btn-secondary-lg:hover {
  border-color: #0F2B5C;
  background: rgba(23, 61, 122, 0.04);
  transform: translateY(-2px);
}

/* ----- Section Styles ----- */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #0F2B5C;
  margin-bottom: 16px;
}

.section-label .line {
  width: 56px;
  height: 3px;
  background: #F6B000;
  border-radius: 999px;
}

.section-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1.15;
  color: #0F2B5C;
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.8;
  color: #0F2B5C;
}

/* ----- Course Card (Modern) ----- */
.course-card-modern {
  background: #FFFFFF;
  border: 1px solid #E8ECF2;
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: all 300ms ease;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(15,23,42,0.05);
  overflow: hidden;
}

.course-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(15,23,42,0.12);
}

.course-card-modern .card-top {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.course-card-modern .card-top .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1;
}

.course-card-modern .card-top .deco-dots {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  gap: 4px;
}

.course-card-modern .card-top .deco-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.3;
}

.course-card-modern .card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card-modern .card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  width: fit-content;
}

.course-card-modern h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #0F2B5C;
  margin-bottom: 8px;
  line-height: 1.3;
}

.course-card-modern p {
  font-size: 14px;
  color: #0F2B5C;
  line-height: 1.6;
  flex: 1;
  opacity: 0.7;
}

.course-card-modern .card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #0F2B5C;
  text-decoration: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #E8ECF2;
  transition: gap 300ms ease;
}

.course-card-modern:hover .card-footer {
  gap: 12px;
}
  font-size: 21px;
  color: #0F2B5C;
  margin-bottom: 8px;
}

.course-card-premium p {
  font-size: 15px;
  color: #0F2B5C;
  line-height: 1.5;
  flex: 1;
}

.course-card-premium .course-features {
  margin-top: 16px;
  margin-bottom: 16px;
}

.course-card-premium .course-features li {
  font-size: 15px;
  color: #0F2B5C;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
  flex: 1;
}

.course-card-premium .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: #0F2B5C;
  text-decoration: none;
  margin-top: auto;
  transition: gap 300ms ease;
}

.course-card-premium .card-link:hover {
  gap: 14px;
}

/* ----- Stats Bar ----- */

/* (stat-item refactored to use border-right inline) */

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: white;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}



/* ----- Floating Badge ----- */
.floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 220px;
  height: 90px;
  background: #0F2B5C;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 20px 50px rgba(18, 58, 120, 0.25);
}

/* ----- CTA Section ----- */
.cta-section {
  background: linear-gradient(135deg, #0F2B5C 0%, #0F2B5C 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 400px;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='100' r='40' fill='white' opacity='0.05'/%3E%3Ccircle cx='150' cy='50' r='60' fill='white' opacity='0.04'/%3E%3C/svg%3E") repeat;
  opacity: 0.1;
  pointer-events: none;
}

/* ----- Footer ----- */
.footer {
  background: #0F2B5C;
  padding-top: 70px;
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 30% 17% 17% 18% 18%;
    gap: 16px;
  }
}

.footer a {
  transition: color 250ms ease;
}

.footer a:hover {
  color: #F6B000;
}

/* ----- Mobile Drawer ----- */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: white;
  z-index: 999;
  padding: 24px;
  transition: right 300ms ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

/* ----- Keyframe Animations ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-up  { animation: fadeUp 0.7s ease forwards; }
.animate-slide-down { animation: slideDown 0.4s ease forwards; }
.animate-scale-in { animation: scaleIn 0.5s ease forwards; }

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 100ms; }
.stagger-children > *:nth-child(3) { animation-delay: 200ms; }
.stagger-children > *:nth-child(4) { animation-delay: 300ms; }
.stagger-children > *:nth-child(5) { animation-delay: 400ms; }

/* Image Zoom on Hover */
.img-zoom {
  overflow: hidden;
  border-radius: 24px;
}

.img-zoom img {
  transition: transform 300ms ease;
}

.img-zoom:hover img {
  transform: scale(1.04);
}

/* Rotate Icon on Hover */
.icon-rotate {
  transition: transform 200ms ease;
}

.group:hover .icon-rotate {
  transform: rotate(5deg);
}

/* Button scale interaction */
.btn-scale {
  transition: all 200ms ease;
}

.btn-scale:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 40px rgba(23, 61, 122, 0.25);
}

/* ----- Responsive ----- */
@media (max-width: 1200px) {
  .navbar-container { padding-left: 48px; padding-right: 48px; }
  .section-heading { font-size: 42px; }
}

/* Hide desktop nav at <1024px, show hamburger instead */
@media (max-width: 1023px) {
  .nav-menu { display: none; }
  .btn-cta-desktop { display: none; }
  .nav-spacer-left,
  .nav-spacer-right { display: none; }
  .hamburger-btn { display: flex; }
  .navbar { height: 64px; }
  .navbar-container { height: 64px; }
  .section-heading { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Below 768px: mobile adjustments */
@media (max-width: 767px) {
  .section-heading { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav-logo-icon { width: 38px; height: 38px; }
  .nav-logo-main { font-size: 19px; }
  .nav-logo-sub { font-size: 10px; }
  .nav-logo { width: auto; gap: 10px; }
  .navbar-container { padding: 0 32px; }
}

/* Selection */
::selection {
  background: #0F2B5C;
  color: white;
}
