/* 
==================================================
VisionWay IELTS Premium Ecosystem Styles
==================================================
*/

:root {
  /* Brand Colors */
  --vw-red: #DE2626;
  --vw-red-hover: #b81c1c;
  --vw-red-glow: rgba(222, 38, 38, 0.2);
  --vw-dark: #15171c;
  --vw-navy: #10243f;
  --vw-deep-navy: #0a1a2f;
  --vw-soft-bg: #f6f7f9;
  --vw-gold: #d99a2b;
  --vw-white: #ffffff;
  --vw-text-muted: #6b7280;

  /* Typography */
  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows - Premium */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 0 40px var(--vw-red-glow);
  --shadow-float: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles within IELTS Ecosystem */
.vw-ielts-ecosystem {
  font-family: var(--font-body);
  color: var(--vw-dark);
  background-color: var(--vw-soft-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.vw-ielts-ecosystem h1,
.vw-ielts-ecosystem h2,
.vw-ielts-ecosystem h3,
.vw-ielts-ecosystem h4,
.vw-ielts-ecosystem h5,
.vw-ielts-ecosystem h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--vw-deep-navy);
  margin-top: 0;
  line-height: 1.2;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.glass-panel-dark {
  background: rgba(10, 26, 47, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--vw-white);
}

/* Gradient Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--vw-red), #ff5e5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-radial-glow {
  position: relative;
}
.bg-radial-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--vw-red-glow) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(12, 1fr);
}

.bento-item {
  background: var(--vw-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid rgba(0,0,0,0.03);
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Col spans */
.col-span-12 { grid-column: span 12; }
.col-span-8 { grid-column: span 8; }
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }
.col-span-3 { grid-column: span 3; }

@media (max-width: 991px) {
  .col-span-8, .col-span-6, .col-span-4, .col-span-3 { grid-column: span 12; }
}

/* Buttons */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--vw-red);
  color: var(--vw-white);
  box-shadow: 0 4px 14px 0 rgba(222, 38, 38, 0.39);
}

.btn-primary:hover {
  background-color: var(--vw-red-hover);
  box-shadow: 0 6px 20px rgba(222, 38, 38, 0.23);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--vw-deep-navy);
  border: 2px solid var(--vw-deep-navy);
}

.btn-outline:hover {
  background-color: var(--vw-deep-navy);
  color: var(--vw-white);
}

/* Section Spacing */
.section-premium {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.container-premium {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Sticky Nav */
.header-premium {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.header-premium .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Premium Glassmorphism Header */
.glassmorphism-header {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.glassmorphism-header.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Premium Dropdowns */
.premium-dropdown {
  position: relative;
}

.premium-dropdown .premium-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  padding: 12px;
  list-style: none;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
  pointer-events: none;
  z-index: 100;
  display: block !important;
}

.premium-dropdown:hover > .premium-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.premium-dropdown-menu li {
  margin-bottom: 4px;
}

.premium-dropdown-menu li:last-child {
  margin-bottom: 0;
}

.premium-dropdown-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--vw-dark);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 15px;
}

.premium-dropdown-menu li a .dropdown-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.premium-dropdown-menu li a .dropdown-icon {
  width: 18px;
  height: 18px;
  color: var(--vw-text-muted);
  transition: color 0.2s ease;
}

.premium-dropdown-menu li a .arrow-icon {
  width: 16px;
  height: 16px;
  color: var(--vw-text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.premium-dropdown-menu li a:hover {
  background: var(--vw-soft-bg);
  color: var(--vw-red);
}

.premium-dropdown-menu li a:hover .dropdown-icon,
.premium-dropdown-menu li a:hover .arrow-icon {
  color: var(--vw-red);
}

.premium-dropdown-menu li a:hover .arrow-icon {
  opacity: 1;
  transform: translateX(0);
}

/* Nested Premium Dropdowns */
.premium-dropdown-nested > .premium-dropdown-menu {
  top: -12px !important;
  left: 100% !important;
  margin-left: 8px !important;
  transform: translateX(10px) scale(0.98) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: all 0.3s ease;
}
.premium-dropdown-nested:hover > .premium-dropdown-menu,
.premium-dropdown-nested.open > .premium-dropdown-menu {
  transform: translateX(0) scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Floating Cards Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card.delay-1 { animation-delay: 1s; }
.floating-card.delay-2 { animation-delay: 2s; }

/* Timeline */
.timeline-modern {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-modern::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: rgba(0,0,0,0.05);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--vw-red);
  border: 4px solid var(--vw-white);
  box-shadow: var(--shadow-sm);
}

/* Footer Premium */
.footer-premium {
  background: var(--vw-deep-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px;
}

.footer-premium h4 {
  color: var(--vw-white);
  margin-bottom: 24px;
}

.footer-premium a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-premium a:hover {
  color: var(--vw-white);
}

/* ==================================================
   Header Navigation Base (Desktop & Mobile)
================================================== */

/* Desktop Navigation Container */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--vw-deep-navy);
  text-decoration: none;
  background: none;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.nav-menu > li > a:hover,
.nav-dropdown-toggle:hover {
  color: var(--vw-red);
}

/* Base Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 100;
  display: block !important;
}

/* Ensure nested dropdowns appear to the side */
.nav-dropdown-menu .nav-dropdown {
  position: relative;
}
.nav-dropdown-menu .nav-dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 8px;
  margin-top: -8px;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown.open > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-dropdown-menu > li > a,
.nav-dropdown-menu > li > .nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 20px;
  color: var(--vw-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.nav-dropdown-menu > li > a:hover,
.nav-dropdown-menu > li > .nav-dropdown-toggle:hover {
  background: var(--vw-soft-bg);
  color: var(--vw-red);
}

/* Icons */
.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-xs {
  width: 12px;
  height: 12px;
}

/* Header layout fixes */
.header-premium .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-img {
  max-height: 40px;
}

/* Desktop CTA */
.header-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile defaults (hide mobile elements on desktop) */
.mobile-menu-btn,
.mobile-nav-backdrop,
.mobile-nav {
  display: none;
}

/* ==================================================
   Mobile Navigation (Below 1024px)
================================================== */
@media (max-width: 1024px) {
  /* Hide Desktop Nav Elements */
  .desktop-nav,
  .header-cta-group {
    display: none;
  }

  /* Hamburger Button */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
  }
  
  .mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--vw-deep-navy);
    border-radius: 2px;
    transition: 0.3s ease;
  }

  /* Mobile Backdrop */
  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  /* Mobile Nav Sidebar */
  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0; 
    width: 320px;
    max-width: 85vw;
    height: 100%;
    height: 100dvh;
    background: #ffffff;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  }

  /* Toggle Checkbox Logic */
  #mobile-menu-toggle:checked ~ .mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
  }
  
  #mobile-menu-toggle:checked ~ .mobile-nav {
    transform: translateX(0);
  }
  
  /* Mobile Header */
  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .close-mobile-menu {
    font-size: 24px;
    cursor: pointer;
    color: var(--vw-deep-navy);
    line-height: 1;
    transition: color 0.2s;
  }
  
  .close-mobile-menu:hover {
    color: var(--vw-red);
  }

  /* Mobile Menu List */
  .mobile-menu {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    flex-grow: 1;
    overflow-y: auto;
  }
  
  .mobile-menu > li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .mobile-menu > li > a,
  .mobile-menu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    color: var(--vw-deep-navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    font-family: var(--font-heading);
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
  }
  
  .mobile-nav-link {
    display: block;
    width: 100%;
  }

  /* Details/Summary Accordions */
  .mobile-dropdown summary::-webkit-details-marker,
  .mobile-nested-dropdown summary::-webkit-details-marker {
    display: none;
  }
  
  .mobile-dropdown summary i,
  .mobile-nested-dropdown summary i {
    transition: transform 0.3s ease;
  }
  
  .mobile-dropdown[open] > summary i,
  .mobile-nested-dropdown[open] > summary i {
    transform: rotate(180deg);
    color: var(--vw-red);
  }
  
  .mobile-submenu, .mobile-nested-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--vw-soft-bg);
    border-top: 1px solid rgba(0,0,0,0.03);
  }
  
  .mobile-submenu > li > label > a,
  .mobile-nested-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px 14px 32px;
    color: var(--vw-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
  }
  
  .mobile-submenu > li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }
  
  .mobile-submenu > li:last-child {
    border-bottom: none;
  }
  
  .mobile-nested-menu > li > label > a {
    display: block;
    padding: 12px 24px 12px 48px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
  }
  
  .mobile-nested-menu > li > label > a:hover,
  .mobile-submenu > li > label > a:hover {
    color: var(--vw-red);
  }
  
  /* Buttons */
  .btn-cta-primary,
  .btn-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-heading);
    transition: all 0.2s;
  }
  
  .btn-cta-primary {
    background: var(--vw-red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(222, 38, 38, 0.3);
  }
  
  .btn-cta-secondary {
    background: transparent;
    color: var(--vw-deep-navy);
    border: 2px solid var(--vw-deep-navy);
  }
}
