/* ============================================================
   STUDYMEDIC PREMIUM REDESIGN — style.css
   Brand Colors: 
   - Navy: #2E2A7B (Trust, Wisdom)
   - Pink: #ED1B6C (Compassion, Health)
   - Blue: #00AEEF (Innovation, Clarity)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand Palette - HSL for versatility */
  --brand-navy-h: 243;
  --brand-navy-s: 49%;
  --brand-navy-l: 32%;
  --brand-navy: hsl(var(--brand-navy-h), var(--brand-navy-s), var(--brand-navy-l));
  /* #2E2A7B */
  --brand-navy-dark: hsl(var(--brand-navy-h), var(--brand-navy-s), 20%);
  --brand-navy-light: hsl(var(--brand-navy-h), var(--brand-navy-s), 45%);

  --brand-pink-h: 338;
  --brand-pink-s: 83%;
  --brand-pink-l: 52%;
  --brand-pink: hsl(var(--brand-pink-h), var(--brand-pink-s), var(--brand-pink-l));
  /* #ED1B6C */
  --brand-pink-glow: hsla(var(--brand-pink-h), var(--brand-pink-s), var(--brand-pink-l), 0.3);

  --brand-blue-h: 196;
  --brand-blue-s: 100%;
  --brand-blue-l: 47%;
  --brand-blue: hsl(var(--brand-blue-h), var(--brand-blue-s), var(--brand-blue-l));
  /* #00AEEF */
  --brand-blue-glow: hsla(var(--brand-blue-h), var(--brand-blue-s), var(--brand-blue-l), 0.3);

  /* Functional Palette */
  --white: #ffffff;
  --off-white: #f8fafc;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Typography */
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing & Radii */
  --space-unit: 8px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows - Layered for Premium Feel */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 20px 50px -12px rgba(46, 42, 123, 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--slate-800);
  background-color: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============ UTILITIES ============ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient-pink {
  background: linear-gradient(135deg, var(--brand-pink), #ff4d94);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--brand-blue), #5addff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-padding {
  padding: 100px 0;
}

.glass {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============ COMPONENTS ============ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-normal);
  gap: 8px;
}

.btn-primary {
  background: var(--brand-pink);
  color: white;
  box-shadow: 0 8px 20px var(--brand-pink-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--brand-pink-glow);
  filter: brightness(110%);
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
}

.btn-outline-white:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: hsla(var(--brand-pink-h), var(--brand-pink-s), var(--brand-pink-l), 0.1);
  color: var(--brand-pink);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--brand-navy-dark);
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--slate-600);
}

/* ============ HEADER & NAV ============ */
.header {
  position: fixed;
  top: 40px;
  /* offset for contact bar */
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-normal);
}

.header.scrolled {
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-svg {
  width: 48px;
  height: 48px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-study {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--brand-navy);
}

.logo-medic {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--brand-pink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-pink);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--brand-pink);
}

/* ============ CONTACT BAR ============ */
.contact-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--brand-navy-dark);
  color: white;
  z-index: 1001;
  display: flex;
  align-items: center;
  font-size: 0.8125rem;
}

.contact-bar-inner {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.contact-group {
  display: flex;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-item:hover {
  color: white;
}

.contact-item svg {
  width: 14px;
  height: 14px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: var(--slate-900);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, transparent, var(--slate-900) 80%);
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.hero-stat-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ============ CARDS (COURSES/PROGRAMS) ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--slate-200);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: transparent;
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--slate-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
  transition: var(--transition-normal);
}

.card:hover .card-icon {
  background: var(--brand-navy);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-navy-dark);
  margin-bottom: 12px;
}

.card-description {
  color: var(--slate-600);
  font-size: 1rem;
  margin-bottom: 24px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 0.9375rem;
}

.card-link:hover {
  gap: 12px;
  color: var(--brand-pink);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--brand-navy-dark);
  color: white;
  padding-top: 100px;
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 64px;
  margin-bottom: 100px;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-logo .logo-study {
  color: white;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  margin-bottom: 32px;
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 8px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--brand-pink);
  transform: translateY(-4px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

/* ============ ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms var(--transition-normal), transform 800ms var(--transition-normal);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
/* --- New Utility Classes for Clean HTML --- */
.btn-lms-login {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.bg-slate-50 {
  background-color: var(--slate-50);
}

.card-pink {
  border-top: 4px solid var(--brand-pink);
}

.card-blue {
  border-top: 4px solid var(--brand-blue);
}

.btn-full-width {
  width: 100%;
  border-radius: 8px;
}

.btn-blue {
  background: var(--brand-blue);
  box-shadow: 0 8px 16px var(--brand-blue-glow);
}

/* --- RESTORED SECTIONS STYLING --- */

/* Features Section (Why Choose Us) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-box {
  padding: 32px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  transition: var(--transition-normal);
}

.feature-box:hover {
  border-color: var(--brand-pink);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon-circle {
  width: 56px;
  height: 56px;
  background: hsla(var(--brand-pink-h), var(--brand-pink-s), var(--brand-pink-l), 0.1);
  color: var(--brand-pink);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

/* Accreditations Track */
.accred-wrap {
  background-color: var(--white);
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}

.accred-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.accred-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--slate-400);
  font-size: 1.1rem;
  white-space: nowrap;
}

.accred-item span {
  font-size: 1.5rem;
  filter: grayscale(1);
  opacity: 0.6;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Testimonials Tabs */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.tab-trigger {
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  background: var(--slate-100);
  color: var(--slate-600);
  transition: var(--transition-fast);
}

.tab-trigger.active {
  background: var(--brand-navy);
  color: white;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: grid;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-card {
  background: var(--slate-50);
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
}

.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 16px;
  font-size: 0.875rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--slate-700);
  margin-bottom: 24px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--brand-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Webinar Cards */
.webinar-list {
  display: grid;
  gap: 20px;
}

.webinar-row {
  display: flex;
  align-items: center;
  padding: 24px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  gap: 32px;
  transition: var(--transition-normal);
}

.webinar-row:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.webinar-date-box {
  width: 80px;
  text-align: center;
}

.webinar-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-navy);
}

.webinar-month {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-pink);
  text-transform: uppercase;
}

/* Newsletter Section */
.newsletter-box {
  background: var(--brand-navy-dark);
  padding: 80px 40px;
  border-radius: var(--radius-xl);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(237, 27, 108, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-form {
  display: flex;
  max-width: 600px;
  margin: 40px auto 0;
  gap: 12px;
}

.newsletter-input {
  flex: 1;
  padding: 16px 24px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-8 {
  margin-top: 8px;
}

.my-8 {
  margin: 8px 0;
}

.my-16 {
  margin: 16px 0;
}

.m-0 {
  margin: 0;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

.btn-secondary-outline {
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}

.video-placeholder {
  padding: 0;
  min-height: 200px;
  background: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  font-size: 3rem;
  color: white;
}

.tag-light {
  background: var(--slate-100);
  color: var(--slate-600);
}

.text-small {
  font-size: 0.9rem;
}

.text-large {
  font-size: 2.5rem;
}

.btn-webinar {
  padding: 10px 24px;
}

.tag-newsletter {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
    /* Mobile menu needed */
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-bar {
    display: none;
  }

  .header {
    top: 0;
  }

  .hero-actions {
    flex-direction: column;
  }
}