/* ==========================================
   NMIMS CDOE Professional Landing Page Stylesheet
   ========================================== */

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

:root {
  --primary: #B21E27;
  --primary-dark: #861219;
  --primary-light: #D32F2F;
  --primary-bg: #FFF5F5;
  --secondary: #0F172A;
  --secondary-light: #1E293B;
  --accent: #D4AF37;
  --accent-gold: #C59B27;
  --accent-soft: #FFF9E6;
  --surface: #FFFFFF;
  --background: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-light: #E2E8F0;
  --border-brand: #FCA5A5;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(178, 30, 39, 0.15);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
.font-heading { font-family: var(--font-heading); }
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #E63946 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gold {
  color: var(--accent-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(178, 30, 39, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(178, 30, 39, 0.45);
  background: linear-gradient(135deg, #C5222C 0%, #6E0E14 100%);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-bg);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #F39C12 0%, #D35400 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(243, 156, 18, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gold {
  background: var(--accent-soft);
  color: #B8860B;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.badge-red {
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--border-brand);
}

/* Top Accreditation Announcement Bar */
.top-bar {
  background: var(--secondary);
  color: #FFFFFF;
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar__items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.top-bar__item svg {
  color: var(--accent);
}

.top-bar__contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar__link {
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.top-bar__link:hover {
  color: var(--accent);
}

/* Main Navbar */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  padding: 0.65rem 0;
  transition: all 0.3s ease;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar__logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.navbar__brand:hover .navbar__logo {
  transform: scale(1.02);
}

.navbar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex: 1 1 auto;
}

.navbar__link {
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  color: #1E293B;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0%;
  height: 2.5px;
  background: var(--primary);
  transition: all 0.25s ease;
  border-radius: 2px;
  transform: translateX(-50%);
}

.navbar__link:hover {
  color: var(--primary);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__mobile-cta {
  display: none;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.navbar__btn-desktop {
  padding: 0.6rem 1.4rem;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--secondary);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section (Light Theme) */
.hero {
  position: relative;
  background: #E9EAFF;
  color: var(--text-primary);
  padding: 3.5rem 0 0;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 0.78fr 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__title-mark {
  display: inline-block;
  background: linear-gradient(135deg, #2F3AE0 0%, #5B2BC9 55%, #7C3AED 100%);
  color: #FFFFFF;
  padding: 0.12em 0.4em;
  border-radius: 16px;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 32px rgba(79, 46, 209, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.35),
              inset 0 -3px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.hero__title-mark::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: hero-mark-shine 4.5s ease-in-out infinite;
}

@keyframes hero-mark-shine {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.3rem;
  max-width: 95%;
}

.hero__subtitle--strong {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0;
}

/* Hero trust points */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 1.5rem;
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
}

.hero__trust-item svg {
  color: #16A34A;
  flex-shrink: 0;
}

/* Hero mini stats */
.hero__mini-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.hero__mini-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.hero__mini-stat span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero Center Poster Visual */
.hero__visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual-img {
  width: 100%;
  max-width: 620px;
  height: auto;
  animation: hero-float 5s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Hero Enquiry Card */
.enquiry-card {
  background: #FFFFFF;
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(212, 175, 55, 0.6);
  position: relative;
  z-index: 10;
}

.enquiry-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.enquiry-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.enquiry-card__sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Hero form card variant */
.enquiry-card--hero {
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 20px 45px -15px rgba(47, 58, 224, 0.28);
}

.enquiry-card--hero .enquiry-card__header {
  text-align: center;
  margin-bottom: 1.1rem;
}

.enquiry-card--hero .enquiry-card__title {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}

.enquiry-card__call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.enquiry-card__call svg {
  color: #16A34A;
}

.enquiry-card__call strong {
  color: var(--secondary);
}

.enquiry-card--hero .form-group {
  margin-bottom: 0.7rem;
}

.enquiry-card--hero .form-input,
.enquiry-card--hero .form-select {
  padding: 0.72rem 0.95rem;
  font-size: 0.92rem;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
}

.enquiry-card--hero .form-input::placeholder {
  color: #94A3B8;
}

/* Orange submit button (matches reference) */
.btn-hero-submit {
  background: linear-gradient(135deg, #F59E0B 0%, #D35400 100%);
  color: #FFFFFF;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(211, 84, 0, 0.3);
  margin-top: 0.35rem;
}

.btn-hero-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(211, 84, 0, 0.42);
  background: linear-gradient(135deg, #FBAF17 0%, #C0490A 100%);
}

.enquiry-card--hero .form-privacy {
  margin-top: 0.75rem;
}

.form-group {
  margin-bottom: 1.15rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(178, 30, 39, 0.15);
}

.form-error {
  font-size: 0.75rem;
  color: #DC2626;
  margin-top: 0.25rem;
  display: none;
}

.form-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* Feature Section: Elevate Your Career */
.elevate {
  padding: 5rem 0;
  background: #FFFFFF;
}

.elevate__card {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-brand);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.elevate__img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.elevate__img-wrapper img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: var(--transition);
}

.elevate__img-wrapper:hover img {
  transform: scale(1.03);
}

.elevate__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.elevate__content h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.elevate__content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.elevate__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.elevate__highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
}

.elevate__highlight-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Programs & Course Section */
.programs {
  padding: 5rem 0;
  background: var(--background);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
}

.section-header__tag {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-header__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(178, 30, 39, 0.25);
}

/* Course Cards Carousel */
.programs__carousel {
  position: relative;
}

.programs__grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.programs__grid::-webkit-scrollbar {
  display: none;
}

.course-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 0 0 calc((100% - 4rem) / 3);
  scroll-snap-align: start;
}

/* Carousel Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.carousel-arrow:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(178, 30, 39, 0.3);
}

.carousel-arrow--prev {
  left: -20px;
}

.carousel-arrow--next {
  right: -20px;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dots__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-light);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dots__dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: var(--radius-full);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-brand);
}

.course-card__header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-card__header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.course-card:hover .course-card__header img {
  transform: scale(1.05);
}

.course-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #F39C12 0%, #D35400 100%);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.course-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.course-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px dashed var(--border-light);
  border-bottom: 1px dashed var(--border-light);
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.meta-item svg {
  color: var(--primary);
}

.course-card__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

/* Lead the Future Section */
.ltf {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.ltf__carousel {
  position: relative;
}

.ltf__grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ltf__grid::-webkit-scrollbar {
  display: none;
}

@media (max-width: 992px) {
  .ltf__grid {
    gap: 1.5rem;
  }
}

.ltf-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  flex: 0 0 calc((100% - 4rem) / 3);
  scroll-snap-align: start;
}

@media (max-width: 992px) {
  .ltf-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 640px) {
  .ltf-card {
    flex: 0 0 100%;
  }
}

.ltf-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ltf-card:hover {
  transform: translateY(-8px);
  background: #FFFFFF;
  box-shadow: 0 16px 36px rgba(178, 30, 39, 0.12);
  border-color: rgba(178, 30, 39, 0.2);
}

.ltf-card:hover::before {
  opacity: 1;
}

.ltf-card__icon {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, rgba(178, 30, 39, 0.05) 0%, rgba(243, 156, 18, 0.08) 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 10px;
  border: 1.5px solid rgba(178, 30, 39, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ltf-card:hover .ltf-card__icon {
  transform: scale(1.08) translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(178, 30, 39, 0.18);
}

.ltf-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.ltf-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.ltf-card__desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* About NMIMS CDOE & Counters Section */
.about {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.94)), url('images/about_nmims_bg.webp') center/cover no-repeat;
  color: #FFFFFF;
}

.about__content {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 4rem;
}

.about__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.about__p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #CBD5E1;
  margin-bottom: 1rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent);
}

.stat-card__icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-card__label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #E2E8F0;
}

/* Hiring Partners / Marquee Section */
.partners {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.section-header--sm {
  margin-bottom: 2rem;
}

.partners__marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 0.75rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.partners__track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: partnerMarquee 28s linear infinite;
}

.partners__track:hover {
  animation-play-state: paused;
}

@keyframes partnerMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

.partner-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  height: 72px;
  min-width: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.partner-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 24px rgba(178, 30, 39, 0.12);
  border-color: rgba(178, 30, 39, 0.3);
  background: #FFFFFF;
}

.partner-img {
  max-height: 40px;
  max-width: 115px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(15%) opacity(0.9);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-card:hover .partner-img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .partners {
    padding: 3rem 0;
  }
  .partner-card {
    height: 60px;
    padding: 0.6rem 1.1rem;
    min-width: 115px;
  }
  .partner-img {
    max-height: 32px;
    max-width: 90px;
  }
}

/* Campus Section */
.campus {
  padding: 5rem 0;
  background: #FFFFFF;
}

.campus__card {
  background: #F8FAFC;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.campus__info {
  padding: 3.5rem;
}

.campus__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.campus__address {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.campus__image {
  height: 100%;
  min-height: 320px;
}

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

/* FAQ Accordion Section */
.faq {
  padding: 5rem 0;
  background: var(--background);
}

.faq__list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question svg {
  transition: var(--transition);
  color: var(--primary);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  max-height: 250px;
}

/* Footer & Legal */
.footer {
  background: var(--secondary);
  color: #94A3B8;
  padding: 4rem 0 2rem;
  font-size: 0.875rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;

}

.footer__logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.footer__about p {
  margin-top: 1rem;
  line-height: 1.6;
  color: #94A3B8;
}

.footer__title {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__links a {
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--primary-light);
}

.footer__disclaimer {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.775rem;
  line-height: 1.6;
  color: #64748B;
}

/* Sticky Bottom Bar for Mobile */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  gap: 0.75rem;
}

.sticky-bar__info {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
}

.sticky-bar__info span {
  color: var(--primary);
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
}

.sticky-bar__btn {
  flex-shrink: 0;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
}

/* Floating sticky button (desktop / tablet) */
.sticky-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.75rem;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 28px rgba(178, 30, 39, 0.4);
  cursor: pointer;
  transition: var(--transition);
  animation: sticky-pulse 2.5s ease-in-out infinite;
}

.sticky-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(178, 30, 39, 0.5);
}

@keyframes sticky-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(178, 30, 39, 0.4); }
  50% { box-shadow: 0 10px 36px rgba(178, 30, 39, 0.65); }
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--secondary);
  z-index: 2;
  transition: var(--transition);
}

.modal-close:hover {
  background: #E2E8F0;
  transform: rotate(90deg);
}

/* Welcome Popup */
.welcome-popup {
  max-width: 480px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-popup .modal-close {
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
}

.welcome-popup .modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.welcome-popup__banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, #5C0A10 100%);
  color: #FFFFFF;
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome-popup__banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.welcome-popup__banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.welcome-popup__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.welcome-popup__logo {
  height: auto;
  max-height: 56px;
  width: auto;
  max-width: min(100%, 320px);
  padding: 0.5rem 0.85rem;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  object-fit: contain;
}

.welcome-popup__badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-gold) 100%);
  color: #1A1200;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
  animation: welcomeBadgePulse 2.5s ease-in-out infinite;
}

.welcome-popup__title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.45rem;
  position: relative;
  z-index: 1;
}

.welcome-popup__subtitle {
  font-size: 0.88rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.welcome-popup__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  position: relative;
  z-index: 1;
}

.welcome-popup__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.welcome-popup__body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.welcome-popup__body .form-group {
  margin-bottom: 0.85rem;
}

.welcome-popup__submit {
  margin-top: 0.25rem;
  animation: welcomeBtnGlow 2s ease-in-out infinite;
}

.welcome-popup__privacy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.modal-overlay.open .welcome-popup {
  animation: welcomePopupIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes welcomePopupIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes welcomeBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(212, 175, 55, 0); }
}

@keyframes welcomeBtnGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(178, 30, 39, 0.35); }
  50% { box-shadow: 0 6px 22px rgba(178, 30, 39, 0.55); }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .course-card {
    flex: 0 0 calc((100% - 2rem) / 2);
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__trust,
  .hero__mini-stats {
    justify-content: center;
  }
  .hero__mini-stats {
    display: inline-flex;
  }
  .hero__content {
    order: 1;
  }
  .hero__visual {
    order: 2;
  }
  .enquiry-card--hero {
    order: 3;
    text-align: left;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }
  .elevate__card {
    grid-template-columns: 1fr;
  }
  .stats__grid {
    grid-template-columns: 1fr;
  }
  .campus__card {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .navbar__nav {
    gap: 1.25rem;
  }
  .navbar__link {
    font-size: 0.875rem;
  }
}

@media (max-width: 992px) {
  .top-bar {
    display: none;
  }

  .navbar__nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 0.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
    border-radius: var(--radius-lg);
    border: 1px solid #E2E8F0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1005;
  }

  .navbar__nav.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .navbar__link {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    color: var(--secondary);
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
  }

  .navbar__link:hover,
  .navbar__link.active {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--border-brand);
  }

  .navbar__link::after {
    display: none;
  }

  .navbar__mobile-cta {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #E2E8F0;
  }

  .navbar__btn-desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: var(--primary);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: var(--primary);
  }

  .hero__title {
    font-size: 2.1rem;
  }
  .course-card {
    flex: 0 0 100%;
  }
  .carousel-arrow--prev {
    left: 4px;
  }
  .carousel-arrow--next {
    right: 4px;
  }
  .sticky-bar {
    display: flex;
  }
  .sticky-float {
    display: none;
  }
  body {
    padding-bottom: 70px;
  }
}

/* ---- Tablets & Large Phones ---- */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  /* Section rhythm */
  .elevate,
  .programs,
  .campus,
  .faq {
    padding: 3.5rem 0;
  }
  .ltf {
    padding: 3.5rem 0;
  }
  .about {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }
  .section-header__title {
    font-size: 1.9rem;
  }
  .section-header__subtitle {
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    padding: 2.5rem 0 0;
  }
  .hero__eyebrow {
    font-size: 0.95rem;
  }
  .hero__title {
    font-size: 1.85rem;
    margin-bottom: 1rem;
  }
  .hero__subtitle {
    font-size: 1rem;
    max-width: 100%;
  }
  .hero__visual-img {
    max-width: 500px;
  }

  /* Enquiry card */
  .enquiry-card {
    padding: 1.75rem;
  }

  /* Elevate */
  .elevate__card {
    padding: 1.75rem;
    gap: 1.75rem;
  }
  .elevate__content h2 {
    font-size: 1.7rem;
  }
  .elevate__content p {
    font-size: 1rem;
  }
  .elevate__img-wrapper img {
    height: 240px;
  }

  /* About */
  .about__content {
    margin-bottom: 2.5rem;
  }
  .about__title {
    font-size: 1.9rem;
  }
  .about__p {
    font-size: 1rem;
    line-height: 1.7;
  }
  .stat-card {
    padding: 2rem 1.5rem;
  }
  .stat-card__number {
    font-size: 2.2rem;
  }

  /* Campus */
  .campus__info {
    padding: 2rem;
  }
  .campus__title {
    font-size: 1.6rem;
  }
  .campus__address {
    font-size: 1rem;
  }
  .campus__image {
    min-height: 220px;
  }

  /* Tabs */
  .tabs {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  .tab-btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
  }

  /* FAQ */
  .faq-question {
    font-size: 0.98rem;
    padding: 1rem 1.15rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

/* ---- Small Phones ---- */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 1rem;
  }

  /* Hero */
  .hero__title {
    font-size: 1.6rem;
  }
  .hero__subtitle {
    font-size: 0.96rem;
  }
  .hero__visual-img {
    max-width: 360px;
  }
  .hero__mini-stats {
    gap: 1.1rem;
  }
  .hero__mini-stat strong {
    font-size: 1.3rem;
  }
  .hero__mini-stat span {
    font-size: 0.75rem;
  }
  .hero__trust {
    gap: 0.5rem 1rem;
  }

  /* Enquiry card & forms */
  .enquiry-card {
    padding: 1.35rem;
  }
  .enquiry-card__title {
    font-size: 1.3rem;
  }
  .btn-lg {
    padding: 0.95rem 1.5rem;
    font-size: 0.98rem;
  }

  /* Section headings */
  .section-header__title {
    font-size: 1.6rem;
  }
  .about__title {
    font-size: 1.6rem;
  }
  .elevate__content h2 {
    font-size: 1.5rem;
  }

  /* Elevate highlights stack for readability */
  .elevate__highlights {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  /* Course cards */
  .course-card__body {
    padding: 1.35rem;
  }
  .course-card__meta {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .course-card__actions {
    flex-direction: column;
  }

  /* About stats */
  .stats__grid {
    gap: 1rem;
  }
  .stat-card__number {
    font-size: 2rem;
  }

  /* Campus */
  .campus__info {
    padding: 1.5rem;
  }
  .campus__title {
    font-size: 1.45rem;
  }

  /* Footer single column */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }
  .footer__logo {
    margin: 0 auto;
  }
  .footer__links {
    align-items: center;
  }

  /* Sticky bar */
  .sticky-bar {
    padding: 0.6rem 0.85rem;
  }
  .sticky-bar .btn {
    padding: 0.7rem 1.1rem;
    font-size: 0.85rem;
  }

  /* Modal */
  .modal-content {
    padding: 1.5rem;
  }

  .welcome-popup {
    max-width: 95%;
  }

  .welcome-popup__banner {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .welcome-popup__title {
    font-size: 1.25rem;
  }

  .welcome-popup__body {
    padding: 1.25rem;
  }
}

/* Thank You Page */
.thankyou-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(178, 30, 39, 0.12), transparent 55%),
    linear-gradient(180deg, #FFF8F8 0%, var(--background) 45%, #FFFFFF 100%);
}

.thankyou {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 0 5rem;
}

.thankyou__inner {
  max-width: 640px;
  text-align: center;
}

.thankyou__check {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  color: #FFFFFF;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.35);
  animation: thankyouPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.thankyou__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
  animation: thankyouFadeUp 0.5s ease 0.15s both;
}

.thankyou__title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: thankyouFadeUp 0.5s ease 0.25s both;
}

.thankyou__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  animation: thankyouFadeUp 0.5s ease 0.35s both;
}

.thankyou__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: thankyouFadeUp 0.5s ease 0.45s both;
}

.thankyou__note {
  font-size: 0.95rem;
  color: var(--text-muted);
  animation: thankyouFadeUp 0.5s ease 0.55s both;
}

.thankyou__note a {
  color: var(--primary);
  font-weight: 600;
}

.thankyou__note a:hover {
  text-decoration: underline;
}

@keyframes thankyouPop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes thankyouFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .thankyou {
    padding: 3.5rem 0 4rem;
  }

  .thankyou__title {
    font-size: 1.75rem;
  }

  .thankyou__actions {
    flex-direction: column;
  }

  .thankyou__actions .btn {
    width: 100%;
  }
}

/* Legal / Policy Pages */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(178, 30, 39, 0.08), transparent 55%),
    linear-gradient(180deg, #FFF8F8 0%, var(--background) 30%, #FFFFFF 100%);
}

.legal {
  flex: 1;
  padding: 3rem 0 4.5rem;
}

.legal__inner {
  max-width: 820px;
}

.legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.legal__nav-link {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.legal__nav-link:hover {
  color: var(--primary);
  border-color: rgba(178, 30, 39, 0.35);
}

.legal__nav-link--active {
  color: #FFFFFF;
  background: var(--primary);
  border-color: var(--primary);
}

.legal__header {
  margin-bottom: 2rem;
}

.legal__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.legal__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.legal__updated {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal__content {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 2rem 2.25rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  color: var(--text-secondary);
  line-height: 1.75;
}

.legal__content > p:first-child {
  margin-top: 0;
}

.legal__content h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 2rem 0 0.75rem;
}

.legal__content h2:first-of-type {
  margin-top: 1.25rem;
}

.legal__content p {
  margin: 0 0 1rem;
}

.legal__content ul,
.legal__content ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.legal__content li {
  margin-bottom: 0.4rem;
}

.legal__content a {
  color: var(--primary);
  font-weight: 600;
}

.legal__content a:hover {
  text-decoration: underline;
}

.legal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.footer__legal-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal-links a:hover {
  color: #FFFFFF;
}

@media (max-width: 640px) {
  .legal {
    padding: 2rem 0 3.5rem;
  }

  .legal__content {
    padding: 1.35rem 1.25rem;
  }

  .legal__actions {
    flex-direction: column;
  }

  .legal__actions .btn {
    width: 100%;
  }
}
