:root {
  --white: #ffffff;
  --black: #000000;
  --dark-gray: #2c3e50;
  /* Darker for better contrast */
  --medium-gray: #7f8c8d;
  /* For secondary text */
  --light-gray: #ecf0f1;
  /* For backgrounds and borders */
  --lighter-gray: #f8f9fa;
  /* Even lighter for subtle backgrounds */
  --primary: #3498db;
  /* Main theme color */
  --primary-dark: #2980b9;
  /* Darker shade of primary */
  --secondary: #2ecc71;
  /* Accent color */
  --secondary-dark: #27ae60;
  /* Darker shade of secondary */
  --accent: #9b59b6;
  /* Another accent */
  --accent-dark: #8e44ad;
  --danger: #DE3163;
  --warning: #f39c12;
  --success: var(--secondary);
  --info: var(--primary);
  /* Added for toast notifications */

  /* RGB versions for consistent rgba() usage */
  --dark-gray-rgb: 44, 62, 80;
  --medium-gray-rgb: 127, 140, 141;
  --primary-rgb: 52, 152, 219;
  /* Was already present */
  --primary-dark-rgb: 41, 128, 185;
  /* Added for hero overlay */
  --secondary-rgb: 46, 204, 113;
  --accent-rgb: 155, 89, 182;
  --danger-rgb: 222, 49, 99;
  --warning-rgb: 243, 156, 18;

  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-dark));

  /* Refined shadows for a softer, more modern look */
  --shadow-sm: 0 2px 6px rgba(var(--dark-gray-rgb), 0.07);
  --shadow: 0 4px 12px rgba(var(--dark-gray-rgb), 0.1);
  --shadow-lg: 0 8px 24px rgba(var(--dark-gray-rgb), 0.12);

  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 16px;

  /* Timeline year colors */
  --year-1-color: #DE3163;
  --year-2-color: #3498db;
  --year-3-color: #9b59b6;
  --year-4-color: #2ecc71;

  /* For GPA Calculator specifically */
  --primary-light-transparent: rgba(var(--primary-rgb), 0.1);
  /* GPA classification bg & focus shadow */
  --primary-dark-gpa: #2980b9;
  /* GPA btn hover */

  /* Primary Font */
  --font-primary: 'Playfair Display', serif;

  /* Global Shimmer Variables */
  --shimmer-bg: #f6f7f8;
  --shimmer-gradient: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
}

/* Global Skeleton & Shimmer Styles */
.skeleton {
  background: var(--shimmer-gradient);
  background-size: 200% 100%;
  animation: shimmer-load 1.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  display: block;
}

.skeleton-btn {
  min-width: 140px;
  height: 48px;
  border-radius: 8px;
  background: var(--shimmer-gradient);
  background-size: 200% 100%;
  animation: shimmer-load 1.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  opacity: 0.8;
}

@keyframes shimmer-load {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Prevent image downloading and copying globally */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--lighter-gray);
  color: var(--dark-gray);
  line-height: 1.65;
  transition: background-color 0.3s ease-out, color 0.3s ease-out;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Apply primary font to logo and all headings */
.logo,
h1,
h2,
h3,
h4,
h5,
h6,
.footer-logo {
  font-family: var(--font-primary);
}


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: padding 0.3s ease-out, box-shadow 0.3s ease-out;
}

header.scrolled {
  padding: 0.6rem 2rem;
  box-shadow: var(--shadow-lg);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.udsm-logo {
  height: 36px;
  width: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: transform 0.3s ease-out;
}

.logo-container:hover .udsm-logo {
  transform: scale(1.05);
}

.logo {
  /* font-family already applied globally */
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-gray);
  pointer-events: none;
  -webkit-user-drag: none;
}

.logo .by,
.footer-logo .by,
.checkout-brand .by,
.bit-title .by {
  font-weight: 600;
  color: var(--danger);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.2rem;
}

.nav-links li a {
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease-out, transform 0.25s ease-out;
  position: relative;
  padding: 0.5rem 0.2rem;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links li a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Coffee nav item: brand pink (matches SGR / tool pages) */
.nav-links li a.coffee-link {
  color: var(--danger);
}

.nav-links li a.coffee-link::after {
  background-color: var(--danger);
}

.nav-links li a.coffee-link:hover {
  color: var(--danger);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1001;
  transition: transform 0.3s ease-out;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--dark-gray);
  margin: 5px auto;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 1px;
  opacity: 1;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/*Hero Split Section */
.hero-split {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 5% 4rem;
  background-color: var(--white);
  border-bottom: 1px solid var(--light-gray);
  overflow: hidden;
  position: relative;
}

.hero-content {
  flex: 0 0 55%;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-primary);
  color: var(--primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  /* Prevent layout shift when typewriter deletes text */
  min-height: calc(clamp(2.5rem, 5vw, 4rem) * 1.1);
}

.blinking-cursor {
  font-weight: 300;
  color: var(--primary, #3498db);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  from,
  to {
    color: transparent;
  }

  50% {
    color: var(--primary, #3498db);
  }
}

.hero-subtitle {
  font-family: var(--font-secondary);
  color: var(--dark-gray);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  /* Prevent layout shift — reserve 2 lines for mobile wrapping */
  min-height: calc(clamp(1.2rem, 2vw, 1.8rem) * 1.5 * 2);
}

.hero-description {
  color: var(--medium-gray);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: var(--year-1-color);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 15px rgba(222, 49, 99, 0.3);
}

#hero-coffee-btn {
  position: relative;
  overflow: visible;
}

/* Burst Heart Animation */
.burst-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 1.2rem;
  color: var(--danger);
  opacity: 0;
  pointer-events: none;
  animation: explodeHeart 0.6s ease-out forwards;
  z-index: 10;
}

@keyframes explodeHeart {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }

  100% {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.2);
    opacity: 0;
  }
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: #c82c59;
  /* Slightly darker shade of --year-1-color for hover */
  box-shadow: 0 8px 25px rgba(222, 49, 99, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--year-1-color);
  border: 2px solid var(--year-1-color);
  text-decoration: none;
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(222, 49, 99, 0.05);
  /* Soft background using --year-1-color RGB */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(222, 49, 99, 0.1);
}

.hero-social {
  display: flex;
  gap: 1rem;
}

.hero-social a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--lighter-gray);
  color: var(--dark-gray);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.hero-social a[title="LinkedIn"]:hover {
  background: #0077b5;
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.hero-image-wrapper {
  flex: 0 0 40%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero-portrait {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  object-fit: contain;
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.hero-portrait:hover {
  transform: translateY(-10px);
}

.hero-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: linear-gradient(135deg, rgba(22, 160, 133, 0.15), rgba(52, 152, 219, 0.1));
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: 0;
  animation: morphBlob 15s ease-in-out infinite alternate;
}

@keyframes morphBlob {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  34% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }

  67% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }

  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
}

@media (max-width: 992px) {
  .hero-split {
    flex-direction: column-reverse;
    text-align: center;
    padding: 7rem 5% 4rem;
    gap: 4rem;
  }

  .hero-content {
    flex: 0 0 100%;
    max-width: 800px;
  }

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

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-image-wrapper {
    flex: 0 0 100%;
    max-width: 400px;
    margin-bottom: 3rem;
  }

  .hero-blob {
    width: 110%;
    height: 110%;
  }
}

@media (max-width: 576px) {
  .hero-split {
    padding: 6rem 5% 3rem;
    gap: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}



@keyframes animatedGradientOverlay {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Journey Section */
.journey {
  padding: 3rem 2rem;
  background-color: var(--lighter-gray);
}

.journey-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* .journey-intro h2 font-family already applied globally */
.journey-intro p {
  color: var(--medium-gray);
  font-size: 1.1rem;
}

/* Programme selector (index.html) */
.journey-programme-selector {
  margin: 1.25rem auto 2rem;
  padding: 1.2rem 1.35rem;
  max-width: 980px;
}

.journey-programme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.journey-programme-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.journey-programme-title {
  font-weight: 700;
  color: var(--dark-gray);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.journey-programme-subtitle {
  color: var(--medium-gray);
  font-size: 0.95rem;
}

.journey-programme-badge {
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid rgba(var(--primary-rgb), 0.25);
  background: rgba(var(--primary-rgb), 0.07);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: normal;
  overflow: hidden;
  /* Keep the badge readable on mobile without overflowing the layout */
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.journey-programme-pill-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.journey-programme-pill {
  border-radius: var(--border-radius);
  padding: 0.65rem 1.1rem;
  border: 1.5px solid var(--pill-color, var(--primary));
  background: rgba(248, 249, 250, 0.7);
  color: var(--pill-color, var(--primary));
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.journey-programme-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: var(--pill-color, var(--primary));
  color: #fff;
}

.journey-programme-pill.active {
  background: var(--pill-color, var(--primary));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.journey-programme-pill:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
}

.journey-programme-pill[data-programme="bit"] {
  --pill-color: var(--year-1-color);
}

.journey-programme-pill[data-programme="cs"] {
  --pill-color: var(--year-2-color);
}

.journey-programme-pill[data-programme="ceit"] {
  --pill-color: var(--year-4-color);
}

/* Utility: hide select but keep it in DOM for JS */
.programme-select-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 576px) {
  .journey-programme-header {
    align-items: flex-start;
  }
  .journey-programme-badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }
  .journey-programme-pill {
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
  }
}

.year-1 {
  --current-year-color: var(--year-1-color);
}

.year-2 {
  --current-year-color: var(--year-2-color);
}

.year-3 {
  --current-year-color: var(--year-3-color);
}

.year-4 {
  --current-year-color: var(--year-4-color);
}

.interactive-roadmap {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}

.interactive-roadmap::before {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--year-1-color), var(--year-2-color), var(--year-3-color), var(--year-4-color));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 20px;
}

.year-container {
  padding: 1.5rem 0;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.year-title {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 3;
}

.year-title h3 {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border-radius: var(--border-radius-lg);
  background: var(--current-year-color);
  color: white;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.semester {
  position: relative;
  width: 50%;
  padding: 0 40px;
  box-sizing: border-box;
}

.semester.left {
  left: 0;
}

.semester.right {
  left: 50%;
}

.timeline-node {
  position: absolute;
  top: 35px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 4px solid var(--current-year-color);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8), 0 0 10px var(--current-year-color);
  transition: transform 0.3s ease;
}

.semester:hover .timeline-node {
  transform: scale(1.3);
}

.semester.left .timeline-node {
  right: -10px;
}

.semester.right .timeline-node {
  left: -10px;
}

.semester-content.glass-card {
  padding: 2.2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.semester-content.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.semester-content h4 {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  border-bottom: 2px solid transparent;
  display: inline-block;
  padding-bottom: 0.3rem;
  transition: border-bottom-color 0.3s ease;
}

.semester-content.glass-card:hover h4 {
  border-bottom-color: var(--current-year-color);
}

.course-pills {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.course-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(248, 249, 250, 0.6);
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--dark-gray);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.course-pill:hover {
  transform: translateX(8px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  color: var(--current-year-color);
  background: var(--white);
  border-color: rgba(0, 0, 0, 0.06);
}

.icon-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(100, 100, 100, 0.08);
  color: var(--current-year-color);
  margin-right: 1rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.course-pill:hover .icon-badge {
  background: var(--current-year-color);
  color: var(--white);
  transform: rotate(10deg) scale(1.1);
}

.course-pill .course-count {
  font-size: 0.72rem;
  color: var(--text-muted, #7f8c8d);
  margin-left: auto;
  padding-left: 0.5rem;
  white-space: nowrap;
}

.pills-loading,
.pills-empty {
  display: block;
  text-align: center;
  padding: 1.2rem 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted, #7f8c8d);
}
.pills-loading i,
.pills-empty i {
  margin-right: 0.3rem;
}
.pills-empty {
  color: #95a5a6;
}

@media (max-width: 992px) {
  .interactive-roadmap::before {
    left: 20px;
  }

  .semester {
    width: 100%;
    padding: 0 0 20px 50px;
    margin-bottom: 2rem;
  }

  .semester.right,
  .semester.left {
    left: 0;
  }

  .semester.left .timeline-node,
  .semester.right .timeline-node {
    left: 10px;
    right: auto;
  }

  .year-title {
    text-align: left;
    margin-left: 20px;
  }
}

@media (max-width: 576px) {
  .semester {
    padding: 0 0 15px 40px;
  }

  .semester-content.glass-card {
    padding: 1.5rem;
  }

  .interactive-roadmap::before {
    left: 15px;
  }

  .semester.left .timeline-node,
  .semester.right .timeline-node {
    left: 5px;
    top: 25px;
  }

  .year-title {
    margin-left: 15px;
  }

  .course-pill {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .icon-badge {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    margin-right: 0.7rem;
  }
}

/* GPA Calculator Styles - Modern Version */
.gpa-section {
  padding: 3rem 2rem;
  background: var(--white);
  margin-bottom: 0;
  margin-top: -35px;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header .udsm-logo {
  height: 60px;
  margin-bottom: 1rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-header .udsm-logo:hover {
  transform: scale(1.1) rotate(-3deg);
}

/* .section-header h2 font-family applied globally */
.section-header p {
  color: var(--medium-gray);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1rem;
}

.section-header.align-left {
  text-align: left;
  margin-bottom: 0.8rem;
}

.section-header.align-left p {
  margin: 0.25rem 0 0 0;
  max-width: none;
  font-size: 0.9rem;
}

.calculator-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.calculator-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(var(--dark-gray-rgb), 0.15);
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--light-gray);
  background: #fdfdfd;
}

.tab-btn {
  flex: 1;
  padding: 1rem 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--medium-gray);
  transition: color 0.25s ease-out, background-color 0.25s ease-out, border-bottom-color 0.25s ease-out;
  position: relative;
  font-size: 1rem;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  color: var(--primary);
  background: var(--lighter-gray);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  padding: 2rem;
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInContent 0.4s ease-out;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.calculator-form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label:not(.radio-group label) {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-gray);
  font-size: 0.95rem;
}

.form-control,
.course-row select,
.course-row input,
.gpa-row input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #dde2e7;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  transition: border-color 0.25s ease-out, box-shadow 0.25s ease-out;
  background-color: var(--white);
  color: var(--dark-gray);
}

.form-control:focus,
.course-row select:focus,
.course-row input:focus,
.gpa-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light-transparent);
  outline: none;
}

select.form-control,
select.course-credits,
select.course-grade {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237f8c8d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}

.form-text {
  font-size: 0.8rem;
  color: var(--medium-gray);
  display: block;
  margin-top: 0.3rem;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color 0.2s ease-out;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--dark-gray);
}

.radio-group label:hover {
  color: var(--primary);
}

.radio-group input[type="radio"] {
  accent-color: var(--primary);
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s ease-out;
}

.courses-container,
.gpas-container {
  margin: 1.5rem 0;
  padding: 1.2rem;
  border-radius: var(--border-radius);
  background: var(--lighter-gray);
  border: 1px solid var(--light-gray);
}

.course-row {
  display: grid;
  grid-template-columns: auto 1.5fr 1fr 1fr;
  align-items: center;
  gap: 0.55rem;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--light-gray);
  transition: box-shadow 0.25s ease-out;
}

.course-number {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
}

.course-inputs {
  display: contents;
}

.select-group {
  display: flex;
  flex-direction: column;
}

.select-group .select-label {
  font-size: 0.75rem;
  color: var(--medium-gray);
  margin-bottom: 0.25rem;
}

.course-credits,
.course-grade {
  width: 100%;
}

.gpa-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gpa-row label {
  font-weight: 500;
  font-size: 0.9rem;
}


.btn-calculate,
.btn-reset {
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease-out;
  font-size: 1rem;
  border: 1px solid transparent;
}

.btn-calculate {
  background: var(--primary);
  color: white;
  margin-right: 1rem;
  box-shadow: 0 3px 8px var(--primary-light-transparent);
}

.btn-calculate:hover {
  background: var(--primary-dark-gpa);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 5px 12px rgba(var(--primary-rgb), 0.35);
}

.btn-reset {
  background: var(--light-gray);
  border-color: #dde2e7;
  color: var(--dark-gray);
}

.btn-reset:hover {
  background: #e2e6ea;
  border-color: #ced4da;
  transform: translateY(-1px);
}

.result-container {
  background: linear-gradient(145deg, var(--primary-light-transparent), rgba(var(--primary-rgb), 0.03));
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}

/* .result-container h3 font-family applied globally */
.result-box {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 1rem 0;
}

.gpa-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 1px 1px 3px rgba(var(--primary-rgb), 0.1);
}

.gpa-classification {
  padding: 0.4rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(var(--primary-rgb), 0.2);
}

.credits-summary p,
.degree-classification p,
.prediction-summary p,
.current-performance p {
  color: var(--dark-gray);
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

#credits-warning.hidden {
  display: none !important;
}

#credits-warning {
  color: var(--danger);
  font-weight: 500;
  margin-top: 0.5rem;
}

.prediction-summary {
  margin-bottom: 1rem;
}

.required-gpas .semester-prediction {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--light-gray);
  font-size: 0.9rem;
}

.required-gpas .semester-prediction:last-child {
  border-bottom: none;
}

.required-gpas .warning {
  color: var(--danger);
  font-weight: 500;
}


.hidden {
  display: none;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--dark-gray-rgb), 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1010;
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0s 0.3s linear;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-out, visibility 0s 0s linear;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease-out;
  opacity: 0;
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 1.3rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lighter-gray);
  color: var(--medium-gray);
  transition: all 0.25s ease-out;
}

.close-modal:hover {
  background: var(--light-gray);
  color: var(--dark-gray);
  transform: rotate(90deg) scale(1.1);
}

/* #modal-title (typically an h tag) font-family applied globally */
#modal-body ul {
  list-style-position: inside;
  padding-left: 0.5rem;
}

#modal-body li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

/* Toast Styles */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--dark-gray);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 1020;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2), opacity 0.4s ease-out;
  max-width: 320px;
  text-align: center;
  opacity: 0;
  font-size: 0.9rem;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  background-color: var(--success);
  color: white;
}

.toast.warning {
  background-color: var(--warning);
  color: white;
}

.toast.error {
  background-color: var(--danger);
  color: white;
}

.toast.info {
  background-color: var(--info);
  color: white;
}

.form-control.form-control-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(var(--danger-rgb), 0.2) !important;
}

/******************************/

/* Cycle by Isaiah Section - cycle.css matched (Horizontal Cards) */
.cycle-section {
  padding: 5rem 2rem;
  background: #f8f9fa;
  /* var(--body-bg) from cycle.css */
  position: relative;
  overflow: hidden;
  margin: 0.5rem 0 3rem;
  color: #333333;
  /* var(--text-color) */
}

.cycle-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('img/banner-bg.jpg') center/cover no-repeat;
  opacity: 0.05;
  z-index: 0;
}

.cycle-container {
  width: 100%;
  /* Same width constraint as nav - spans to edge with section padding */
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cycle-logo-container {
  margin-bottom: 2rem;
  animation: float 6s ease-in-out infinite;
}

.cycle-logo {
  height: 85px;
  width: auto;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 15px rgba(255, 143, 171, 0.4));
}

.cycle-logo:hover {
  transform: scale(1.1) rotate(5deg);
}

.cycle-section h2 {
  font-size: 2rem;
  color: #5d4157;
  /* var(--heading-color) */
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.cycle-section h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #ff8fab, #f25d8e);
  /* var(--primary-accent) to var(--primary-accent-dark) */
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
  transition: width 0.3s ease-out;
}

.cycle-description {
  max-width: 650px;
  margin: 0 auto 3.5rem;
  font-size: 1.1rem;
  color: #333333;
  line-height: 1.6;
}

/* HORIZONTAL CARDS ONLY - NO BENTO BOX */
.cycle-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 0 auto 4rem;
  max-width: 1000px;
  /* Constrain width to keep cards from stretching too wide, but enough for 3 inline */
}

.feature-card {
  background: #ffffff;
  /* var(--card-bg) */
  padding: 1.5rem 1.2rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  /* var(--border-color) */
  box-shadow: 0 5px 20px rgba(93, 65, 87, 0.05);
  /* var(--shadow-light) reduced */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(93, 65, 87, 0.1);
  /* var(--shadow-medium) */
  border-color: #ff8fab;
  /* var(--primary-accent) */
  background: #ffffff;
}

.feature-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffc2d1, #ff8fab);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(10deg);
  background: linear-gradient(135deg, #ff8fab, #f25d8e);
  color: white;
  box-shadow: 0 6px 15px rgba(242, 93, 142, 0.2);
}

.feature-card h3 {
  font-family: var(--font-primary);
  color: #5d4157;
  /* var(--heading-color) */
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.feature-card p {
  color: #333333;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  text-align: center;
}

.cycle-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  /* matched to coffee-button */
  padding: 0.9rem 1.8rem;
  /* matched to coffee-button */
  background: linear-gradient(135deg, #ff8fab, #f25d8e);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  /* matched to coffee-button */
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(242, 93, 142, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cycle-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f25d8e, #ff8fab);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.cycle-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(242, 93, 142, 0.4);
  color: white;
}

.cycle-cta:hover::before {
  opacity: 1;
}

.cycle-cta i {
  transition: transform 0.3s ease;
}

.cycle-cta:hover i {
  transform: translateX(3px);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .cycle-features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .cycle-section {
    padding: 4rem 1.5rem;
  }

  .cycle-logo {
    height: 70px;
  }

  .cycle-section h2 {
    font-size: 2rem;
  }

  .cycle-features {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .cycle-section {
    padding: 3rem 1rem;
  }

  .cycle-logo {
    height: 60px;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .cycle-cta {
    padding: 1rem 2rem;
    font-size: 1.05rem;
  }
}


/* Enhanced Buy Me a Coffee Section */
.coffee-section {
  padding: 3rem 2rem;
  background: var(--lighter-gray);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  border-top: 1px solid #dde2e7;
}

.coffee-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.coffee-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

/* .coffee-section h2 font-family already applied globally */
.coffee-section p {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.coffee-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background-color: #FFDD00;
  color: var(--black);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 221, 0, 0.3);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  font-size: 1rem;
}

.coffee-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 221, 0, 0.45);
}

.coffee-button i {
  font-size: 1.2rem;
  transition: transform 0.3s ease-out;
}

.coffee-button:hover i {
  transform: rotate(-10deg);
}

.floating-coffee-cup {
  position: relative;
  font-size: 1.8rem;
  color: #A0522D;
  animation: float 3.5s ease-in-out infinite;
}

.steam {
  position: absolute;
  height: 12px;
  width: 6px;
  background: rgba(220, 220, 220, 0.7);
  border-radius: 8px;
  top: -18px;
  animation: steamAnimation 3s ease-out infinite;
}

.steam:nth-child(1) {
  left: 20%;
}

.steam:nth-child(2) {
  left: 50%;
  animation-delay: 0.5s;
}

.steam:nth-child(3) {
  left: 80%;
  animation-delay: 1s;
}

.hearts-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.heart-float {
  position: absolute;
  opacity: 0;
  font-size: 1.2rem;
  color: #ff6b6b;
  animation: heartFloat 6s ease-in-out infinite;
}

.heart-float::before {
  content: '\f004';
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.heart-float:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.heart-float:nth-child(2) {
  left: 50%;
  animation-delay: 2s;
}

.heart-float:nth-child(3) {
  left: 85%;
  animation-delay: 4s;
}

@keyframes steamAnimation {
  0% {
    transform: translateY(0) scale(1) translateX(0);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-15px) scale(1.1) translateX(3px);
    opacity: 0.3;
  }

  100% {
    transform: translateY(-30px) scale(1.3) translateX(-3px);
    opacity: 0;
  }
}

@keyframes heartFloat {
  0% {
    transform: translateY(20px) rotate(0deg) scale(0.8);
    opacity: 0;
  }

  20% {
    opacity: 0.9;
    transform: translateY(0px) rotate(-10deg) scale(1);
  }

  80% {
    opacity: 0.9;
    transform: translateY(-70px) rotate(300deg) scale(1.1);
  }

  100% {
    transform: translateY(-90px) rotate(360deg) scale(0.8);
    opacity: 0;
  }
}

/* Modern Footer Styles */
footer {
  background: var(--dark-gray);
  color: rgba(255, 255, 255, 0.8);
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: -49px;
  left: 0;
  width: 100%;
  height: 50px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%232c3e50" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%232c3e50" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%232c3e50"/></svg>');
  background-size: cover;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: left;
  position: relative;
}

/* .footer-brand .footer-logo (typically an h-tag or styled div) font-family applied globally */
.footer-brand .footer-logo {
  font-size: 1.6rem;
  color: var(--white);
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  background: none;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.footer-tagline {
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.25s ease-out, transform 0.25s ease-out;
  padding: 0.2rem 0;
  position: relative;
  width: fit-content;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1.5px;
  bottom: -1px;
  left: 0;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-link.highlight {
  color: var(--secondary);
  font-weight: 500;
}

.footer-link.highlight:hover {
  color: var(--secondary-dark);
}

.footer-link.highlight::after {
  background: var(--secondary);
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.25s ease-out;
  font-size: 1rem;
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px) scale(1.12);
  color: var(--white);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.25);
  padding: 1.2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0.4rem 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.footer-credits {
  margin-top: 0.8rem;
}

.footer-credits p {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.fa-heart.pulse {
  color: #ff6b6b;
  animation: pulseHeart 1.5s infinite cubic-bezier(0.215, 0.610, 0.355, 1);
}

@keyframes pulseHeart {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }
}
 
.bit-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .5);
  z-index: 99999;
}
.bit-modal.active { display: flex; }
.bit-modal-card {
  background: #fff;
  border-radius: 16px;
  max-width: 520px;
  width: 92%;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  overflow: hidden;
  position: relative; /* Needed for absolutely-positioned controls like the modal dismiss button */
}

/* Upsell / BIT modal: close matches header gradient brand (not generic .close-modal gray pill) */
.bit-modal-dismiss {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.bit-modal-dismiss:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}
.bit-modal-dismiss:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.bit-modal-header {
  background: linear-gradient(135deg,#DE3163,#c0264e);
  color: #fff;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.bit-modal-header .bit-title .by {
  color: #fff; /* override global .bit-title .by (brand pink) for modal readability */
}
.bit-logo { height: 28px; }
.bit-title { font-weight: 700; letter-spacing: .3px; }
.bit-modal-body { padding: 1.2rem; color: #2c3e50; line-height: 1.6; }
.bit-modal-actions { display: flex; gap: .6rem; justify-content: flex-end; padding: 0 1.2rem 1.2rem; }
.bit-btn {
  padding: .6rem 1rem;
  border-radius: 10px;
  border: 1px solid #ecf0f1;
  cursor: pointer;
  font-weight: 600;
  background: #fff;
}
.bit-btn-primary {
  background: #DE3163;
  color: #fff;
  border: none;
}
/* ui.js ephemeral message only — do not use .bit-toast alone (connectivity-toast uses .bit-toast.online/.offline + toast.css) */
#bit2025-toast.bit-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2c3e50;
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  z-index: 99999;
  display: none;
}
#bit2025-toast.bit-toast.show { display: block; }
/* ===== Upsell V2 — Premium Bundle Modal ===== */

/* -- Modal-level scroll fix for short viewports -- */
.bit-modal-large .bit-modal-card {
  max-width: 820px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.bit-modal-large .bit-modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(222,49,99,.25) transparent;
}
.bit-modal-large .bit-modal-body::-webkit-scrollbar { width: 5px; }
.bit-modal-large .bit-modal-body::-webkit-scrollbar-thumb { background: rgba(222,49,99,.25); border-radius: 8px; }

/* Hide Tawk.to when modal is open */
.bit-modal.active ~ iframe[title*="chat"],
body.bit-modal-open .tawk-min-container,
body.bit-modal-open #tidio-chat,
body.bit-modal-open iframe[src*="tawk"] { display: none !important; opacity: 0 !important; pointer-events: none !important; }

.upsell-v2 { font-size: .92rem; }

/* ── Hero ── */
.upsell-hero {
  background: linear-gradient(270deg, #1a1a2e, #16213e, #0f3460, #16213e, #1a1a2e);
  background-size: 400% 400%;
  animation: upsellGradientShift 8s ease infinite;
  color: #fff;
  padding: 2rem 1.5rem 1.6rem;
  text-align: center;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  margin: -.2rem -.2rem 0;
}
@keyframes upsellGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glow orbs */
.upsell-hero-glow {
  position: absolute;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(222,49,99,.35), transparent 70%);
  top: -70px; right: -50px;
  border-radius: 50%;
  pointer-events: none;
  animation: upsellGlowPulse 4s ease-in-out infinite alternate;
}
.upsell-hero::before {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(243,156,18,.2), transparent 70%);
  bottom: -60px; left: -40px;
  border-radius: 50%;
  pointer-events: none;
  animation: upsellGlowPulse 5s ease-in-out infinite alternate-reverse;
}
@keyframes upsellGlowPulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* Floating sparkle particles in hero */
.upsell-hero .upsell-sparkle {
  position: absolute;
  width: 4px; height: 4px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: upsellSparkle 3s ease-in-out infinite;
}
.upsell-hero .upsell-sparkle:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.upsell-hero .upsell-sparkle:nth-child(2) { top: 30%; right: 15%; animation-delay: .8s; width: 3px; height: 3px; }
.upsell-hero .upsell-sparkle:nth-child(3) { bottom: 25%; left: 25%; animation-delay: 1.5s; width: 5px; height: 5px; }
.upsell-hero .upsell-sparkle:nth-child(4) { top: 40%; right: 30%; animation-delay: 2.2s; }
.upsell-hero .upsell-sparkle:nth-child(5) { bottom: 15%; right: 10%; animation-delay: .4s; width: 3px; height: 3px; }
.upsell-hero .upsell-sparkle:nth-child(6) { top: 15%; left: 40%; animation-delay: 1.8s; width: 3px; height: 3px; }
.upsell-hero .upsell-sparkle:nth-child(7) { bottom: 35%; right: 45%; animation-delay: 2.6s; }
.upsell-hero .upsell-sparkle:nth-child(8) { top: 50%; left: 8%; animation-delay: 1.2s; width: 5px; height: 5px; }

@keyframes upsellSparkle {
  0%, 100% { opacity: 0; transform: scale(0) translateY(0); }
  50% { opacity: .9; transform: scale(1) translateY(-8px); }
}

/* Crown icon */
.upsell-hero-icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, #f9d423, #f39c12, #e67e22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .8rem;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 22px rgba(243,156,18,.5), 0 0 40px rgba(243,156,18,.2);
  animation: upsellCrown 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
@keyframes upsellCrown {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-8deg); }
  50% { transform: scale(1.05) rotate(0deg); }
  75% { transform: scale(1.1) rotate(8deg); }
}

/* Title + subtitle entrance */
.upsell-hero-title {
  font-size: 1.45rem; font-weight: 800; margin: 0 0 .5rem; letter-spacing: -.01em;
  position: relative; z-index: 2;
  animation: upsellSlideUp .6s cubic-bezier(.16,1,.3,1) both;
}
.upsell-hero-sub {
  font-size: .88rem; opacity: .75; margin: 0 auto; line-height: 1.55; max-width: 420px;
  position: relative; z-index: 2;
  animation: upsellSlideUp .6s cubic-bezier(.16,1,.3,1) .15s both;
}
.upsell-programme-name {
  display: block;
  font-weight: 700;
  opacity: 0.95;
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

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

/* ── Limited-time urgency badge ── */
.upsell-urgency {
  display: inline-flex; align-items: center; gap: .4rem;
  background: linear-gradient(135deg, rgba(231,76,60,.15), rgba(243,156,18,.1));
  border: 1px solid rgba(231,76,60,.3);
  color: #e74c3c;
  font-size: .72rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 20px;
  margin-top: .7rem;
  animation: upsellSlideUp .6s cubic-bezier(.16,1,.3,1) .3s both;
  position: relative; z-index: 2;
  letter-spacing: .02em;
}
.upsell-urgency i { animation: upsellPulseIcon 1.5s ease-in-out infinite; }
@keyframes upsellPulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* ── Content area ── */
.upsell-content { padding: 1.2rem 0 0; }

/* ── Row: features + pricing ── */
.upsell-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1.4rem;
  align-items: start;
}
@media (max-width: 600px) { .upsell-row { grid-template-columns: 1fr; } }

/* ── Features checklist with staggered entrance ── */
.upsell-features { display: flex; flex-direction: column; gap: .6rem; padding-top: .2rem; }
.upsell-feat {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; color: #2c3e50;
  opacity: 0;
  animation: upsellFeatIn .45s cubic-bezier(.16,1,.3,1) both;
}
.upsell-feat:nth-child(1) { animation-delay: .2s; }
.upsell-feat:nth-child(2) { animation-delay: .3s; }
.upsell-feat:nth-child(3) { animation-delay: .4s; }
.upsell-feat:nth-child(4) { animation-delay: .5s; }
.upsell-feat:nth-child(5) { animation-delay: .6s; }

@keyframes upsellFeatIn {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}

.upsell-feat i {
  color: #2ecc71; font-size: 1.05rem; flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(46,204,113,.4));
}
.upsell-feat span { line-height: 1.4; }

/* ── Pricing card with shimmer ── */
.upsell-pricing {
  background: linear-gradient(135deg, #fdf2f7 0%, #fff 60%, #fdf2f7 100%);
  border: 2px solid #f9d7e2;
  border-radius: 16px;
  padding: 1.3rem 1rem 1.1rem;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 28px rgba(222,49,99,.1), 0 0 0 1px rgba(222,49,99,.05) inset;
  overflow: hidden;
  animation: upsellCardIn .5s cubic-bezier(.16,1,.3,1) .35s both;
}
@keyframes upsellCardIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Shimmer sweep */
.upsell-pricing::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-25deg);
  animation: upsellShimmer 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes upsellShimmer {
  0% { left: -75%; }
  30% { left: 125%; }
  100% { left: 125%; }
}

/* Ribbon */
.upsell-pricing-ribbon {
  position: absolute;
  top: 10px; right: -6px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .25rem .75rem .25rem .55rem;
  border-radius: 4px 0 0 4px;
  letter-spacing: .03em;
  box-shadow: 0 2px 8px rgba(231,76,60,.35);
  z-index: 2;
  animation: upsellRibbonPop .4s cubic-bezier(.16,1,.3,1) .6s both;
}
@keyframes upsellRibbonPop {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
.upsell-pricing-ribbon::after {
  content: '';
  position: absolute;
  right: 0; bottom: -6px;
  border: 3px solid transparent;
  border-top-color: #962d22;
  border-right-color: #962d22;
}
.upsell-pricing-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  color: #c0264e; margin-bottom: .3rem;
  position: relative; z-index: 2;
}
.upsell-pricing-amount {
  font-size: 1.8rem; font-weight: 800; color: #DE3163; line-height: 1.1;
  position: relative; z-index: 2;
  text-shadow: 0 2px 8px rgba(222,49,99,.15);
}
.upsell-pricing-period {
  font-size: .78rem; color: #95a5a6; font-weight: 600; margin-bottom: .6rem;
  position: relative; z-index: 2;
}
.upsell-pricing-range {
  font-size: .78rem; color: #7f8c8d;
  background: rgba(222,49,99,.06);
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .28rem .75rem; border-radius: 20px; margin-bottom: .4rem;
  position: relative; z-index: 2;
}
.upsell-pricing-range i { font-size: .7rem; color: #DE3163; }
.upsell-pricing-per {
  font-size: .76rem; color: #27ae60; font-weight: 700;
  margin-top: .2rem;
  position: relative; z-index: 2;
}

/* ── Comparison table ── */
.upsell-compare {
  margin-top: 1.1rem;
  border: 1px solid #f0e6f0;
  border-radius: 14px;
  overflow: hidden;
  animation: upsellSlideUp .5s cubic-bezier(.16,1,.3,1) .5s both;
}
.upsell-compare-title {
  font-size: .82rem; font-weight: 700; color: #2c3e50;
  padding: .65rem 1rem;
  background: linear-gradient(90deg, #fafafa, #f5f0f5);
  border-bottom: 1px solid #f0e6f0;
  display: flex; align-items: center; gap: .4rem;
}
.upsell-compare-title i { color: #9b59b6; font-size: .85rem; }
.upsell-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.upsell-table thead tr { background: linear-gradient(90deg, #fdf2f7, #fce9f0); }
.upsell-table th, .upsell-table td { text-align: left; padding: .55rem .8rem; }
.upsell-table .tc { text-align: center; }
.upsell-th-single { text-align: center !important; color: #7f8c8d; font-weight: 600; }
.upsell-th-bundle { text-align: center !important; color: #DE3163; font-weight: 700; }
.upsell-th-bundle i { font-size: .65rem; color: #f39c12; }
.upsell-table tbody tr { border-bottom: 1px solid #f5f5f5; transition: background .2s; }
.upsell-table tbody tr:last-child { border-bottom: none; }
.upsell-table tbody tr:hover { background: rgba(222,49,99,.02); }
.upsell-highlight {
  background: rgba(222,49,99,.04);
  font-weight: 600;
}
.upsell-table td:first-child { color: #5a6c7d; font-weight: 500; }

/* ── Trust badge ── */
.upsell-trust {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 1rem;
  padding: .65rem;
  background: linear-gradient(90deg, rgba(46,204,113,.06), rgba(39,174,96,.1));
  border: 1px solid rgba(46,204,113,.15);
  border-radius: 10px;
  font-size: .82rem;
  color: #27ae60;
  font-weight: 600;
  animation: upsellSlideUp .5s cubic-bezier(.16,1,.3,1) .65s both;
}
.upsell-trust i { font-size: .9rem; }

/* ── Guarantee badge ── */
.upsell-guarantee {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  margin-top: .5rem;
  font-size: .72rem;
  color: #7f8c8d;
  animation: upsellSlideUp .5s cubic-bezier(.16,1,.3,1) .75s both;
}
.upsell-guarantee i { color: #3498db; font-size: .8rem; }

/* ── CTA Buttons ── */
.bit-modal-large .bit-modal-actions {
  flex-direction: column;
  align-items: center;
  padding: .8rem 1.5rem 1.2rem;
  gap: .5rem;
  border-top: 1px solid #f5f0f5;
  background: linear-gradient(180deg, #fff, #fefbfd);
  flex-shrink: 0;
}

.upsell-btn-skip {
  background: #fff !important;
  border: 1.5px solid #dce1e6 !important;
  color: #5a6c7d !important;
  font-size: .88rem !important;
  font-weight: 500 !important;
  padding: .65rem 1.5rem !important;
  border-radius: 10px !important;
  cursor: pointer;
  transition: all .2s;
  order: 2;
  width: 100%;
  max-width: 400px;
  text-align: center;
  justify-content: center;
  display: inline-flex !important;
}
.upsell-btn-skip:hover {
  background: #f8f9fa !important;
  border-color: #bdc3c7 !important;
  color: #2c3e50 !important;
  text-decoration: none;
}

.upsell-btn-go {
  background: linear-gradient(135deg, #DE3163, #c0264e) !important;
  color: #fff !important;
  border: none !important;
  padding: .75rem 2.2rem !important;
  border-radius: 12px !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  display: inline-flex !important;
  align-items: center;
  gap: .5rem;
  order: 1;
  width: 100%;
  max-width: 400px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: upsellCTAPulse 2s ease-in-out infinite;
  box-shadow: 0 4px 18px rgba(222,49,99,.3);
}
@keyframes upsellCTAPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(222,49,99,.3); }
  50% { box-shadow: 0 6px 30px rgba(222,49,99,.5), 0 0 60px rgba(222,49,99,.15); }
}
.upsell-btn-go:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(222,49,99,.45) !important;
  animation: none;
}
.upsell-btn-go:active {
  transform: translateY(0) scale(.98);
}
.upsell-btn-go i { font-size: .9rem; }

/* Shine sweep on CTA */
.upsell-btn-go::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-25deg);
  animation: upsellBtnShine 2.5s ease-in-out infinite;
}
@keyframes upsellBtnShine {
  0% { left: -100%; }
  40% { left: 150%; }
  100% { left: 150%; }
}

/* ── Confetti canvas ── */
.upsell-confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 100000;
}

/* ── Mobile tweaks ── */
@media (max-width: 600px) {
  .upsell-hero { padding: 1.5rem 1rem 1.2rem; border-radius: 10px; }
  .upsell-hero-title { font-size: 1.2rem; }
  .upsell-hero-icon { width: 48px; height: 48px; font-size: 1.2rem; }
  .upsell-pricing { padding: 1rem .8rem; }
  .upsell-pricing-amount { font-size: 1.5rem; }
  .upsell-btn-go { padding: .7rem 1.2rem !important; font-size: .92rem !important; }
  .bit-modal-large .bit-modal-card { max-height: 95vh; }
}
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99998;
}
.checkout-overlay.active { display: flex; }
.checkout-card {
  width: 92%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  border: 1px solid #f0e6f0;
  overflow: hidden;
  text-align: center;
}
.checkout-card .hd {
  background: linear-gradient(135deg,#DE3163,#c0264e);
  color: #fff;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  justify-content: center;
}
.checkout-card .hd img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
}
/* Checkout overlay header must keep branding readable on gradient background */
.checkout-overlay .checkout-brand,
.checkout-overlay .checkout-brand .by {
  color: #fff;
}
.checkout-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid #fde6ee;
  border-top-color: #DE3163;
  animation: spin 1s linear infinite;
  margin: 1rem auto;
}
.checkout-steps { display: flex; gap: .4rem; justify-content: center; margin: .6rem 0 1rem; }
.checkout-steps .dot { width: 8px; height: 8px; border-radius: 50%; background: #eee; }
.checkout-steps .dot.active { background: #DE3163; }
.checkout-hints { font-size: .8rem; color: #7f8c8d; }
 
.profile-footer {
  background: var(--dark-gray);
  color: #e5e7eb;
  padding: 1.2rem 1rem;
}
.profile-footer .footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0.9rem;
}
.profile-footer .footer-center {
  text-align: center;
}
@media (max-width: 768px) {
  .profile-footer .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }
}


/* Responsive Styles */
@media (max-width: 992px) {
  .timeline::before {
    left: 20px;
    margin-left: -2px;
  }

  .semester {
    width: 100%;
    padding-left: 50px;
    padding-right: 15px;
  }

  .semester:nth-child(odd),
  .semester:nth-child(even) {
    left: 0;
    text-align: left;
  }

  /* .semester:nth-child(odd) h4, .semester:nth-child(even) h4 already font changed, text-align ok */
  .semester:nth-child(odd) .course-link {
    justify-content: flex-start;
    flex-direction: row;
  }

  .semester:nth-child(odd) .course-link:hover {
    transform: translateX(4px) scale(1.01);
  }

  .semester:nth-child(odd) .course-link .link-icon {
    margin-left: auto;
    margin-right: 0;
  }

  .semester::after {
    left: 20px;
    transform: translateX(-50%);
    right: auto;
    width: 18px;
    height: 18px;
    border-width: 3px;
  }

  .calculator-container {
    max-width: 95%;
  }

  .tab-content {
    padding: 1.5rem;
  }

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

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  header {
    padding: 0.7rem 1.5rem;
  }

  /* .logo font-size already defined, font-family applied globally */
  .udsm-logo {
    height: 32px;
  }

  /* Mobile drawer flush edges: see second @media (max-width: 768px) block after
     `header.floating-nav` base rule — that one clears header blur (cascade fix). */

  .hamburger {
    display: block;
    position: fixed;
    top: max(1rem, env(safe-area-inset-top, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 100%);
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    background-color: rgba(var(--white-rgb, 255, 255, 255), 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding-top: max(5rem, calc(env(safe-area-inset-top, 0px) + 4rem));
    padding-right: max(0.8rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
    padding-left: max(0.8rem, env(safe-area-inset-left, 0px));
    box-shadow: -6px 0 30px rgba(var(--dark-gray-rgb), 0.1);
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.68, -0.6, 0.265, 1.6);
    z-index: 1000;
    overflow-y: auto;
    border-left: 1px solid var(--light-gray);
    border-radius: 0;
    margin: 0;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-links.active li:nth-child(2) {
    transition-delay: 0.15s;
  }

  .nav-links.active li:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav-links.active li:nth-child(4) {
    transition-delay: 0.25s;
  }

  .nav-links.active li:nth-child(5) {
    transition-delay: 0.3s;
  }

  .nav-links.active li:nth-child(6) {
    transition-delay: 0.35s;
  }


  .nav-links li a {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    display: block;
    border-radius: 0;
    border-bottom: 1px solid var(--light-gray);
    transition: background-color 0.25s ease-out, color 0.25s ease-out, padding-left 0.25s ease-out;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links li a:hover {
    background-color: var(--primary-light-transparent);
    padding-left: 2.2rem;
    color: var(--primary);
  }

  .nav-links li a.coffee-link {
    color: var(--danger);
  }

  .nav-links li a.coffee-link:hover {
    background-color: rgba(var(--danger-rgb), 0.12);
    color: var(--danger);
  }

  /* Profile (avatar + name): keep horizontal row, vertically centered (block link would misalign) */
  .nav-links li a.nav-profile-link {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .nav-links li a.nav-profile-link:hover {
    padding-left: 2rem;
  }

  .nav-links li a::after {
    display: none;
  }


  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--dark-gray-rgb), 0.3);
    z-index: 999;
    opacity: 0;
    animation: fadeInOverlay 0.4s forwards ease-out;
  }

  @keyframes fadeInOverlay {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  /* Hero text sizes adjusted in .hero specific rules already for this breakpoint if needed */
  .hero h1 {
    font-size: 2rem;
  }

  /* Slightly larger for full screen hero */
  .hero h2 {
    font-size: 1.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .profile-image {
    width: 130px;
    height: 130px;
  }

  .gpa-section {
    padding: 2.5rem 1.5rem;
  }

  /* .section-header h2 font already global */
  .tab-btn {
    padding: 0.8rem 0.5rem;
    font-size: 0.9rem;
  }

  .course-row,
  .gpa-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .course-number {
    text-align: left;
  }

  .select-group .select-label {
    text-align: left;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .result-box {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .btn-calculate,
  .btn-reset {
    width: 100%;
    margin: 0.4rem 0;
  }

  .btn-calculate {
    margin-right: 0;
  }

  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-brand,
  .footer-links,
  .footer-social {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .footer-link {
    margin: 0.2rem 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero h2 {
    font-size: 1.1rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  /* journey-intro h2, section-header h2 fonts applied globally */
  .tab-content {
    padding: 1rem;
  }

  .gpa-value {
    font-size: 2rem;
  }

  /* coffee-section h2 font applied globally */
  .coffee-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* =========================================
   Redesign Additions (Glassmorphism & New Components)
   ========================================= */

/* Floating Nav Redesign */
header.floating-nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.6rem 2rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.floating-nav.scrolled {
  top: 10px;
  width: 95%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 40px rgba(31, 38, 135, 0.15);
}

.floating-nav .logo-container img {
  height: 30px;
}

.floating-nav .logo {
  font-size: 1.2rem;
}

.floating-nav .logo .by {
  font-weight: 600;
  color: var(--danger);
}

/* Features Section (Calculators & SGR) */
.features-section {
  padding: 4rem 2rem 1rem;
  background-color: var(--white);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Glass Card Global Class */
.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Feature Card Base (isolating from Cycle cards) */
.features-grid .feature-card {
  padding: 2.5rem 2rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  /* Distinct solid border */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
  /* Faint ambient shadow */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Base glow effect hidden initially */
.features-grid .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% -20%, rgba(52, 152, 219, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
}

/* Hover Interaction Strategy */
.features-grid .feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(52, 152, 219, 0.15);
  /* Soft primary shadow */
  border-color: var(--primary);
  /* Glowing accent border */
}

.features-grid .feature-card:hover::before {
  opacity: 1;
  /* Show the soft beam background light */
}

.features-grid .feature-card>* {
  position: relative;
  z-index: 1;
}

/* Inner Text & Icon Overrides and Restyling */
.features-grid .feature-card .feature-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), var(--year-2-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.features-grid .feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(10deg);
  background: linear-gradient(135deg, var(--year-2-color), #2980b9);
  color: white;
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}

/* The 'Learn More' Button Affordance */
.features-grid .feature-card .learn-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--medium-gray);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.features-grid .feature-card .learn-more i {
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.features-grid .feature-card:hover .learn-more {
  color: var(--primary);
}

.features-grid .feature-card:hover .learn-more i {
  opacity: 1;
  transform: translateX(0);
  /* Slide Arrow Into View */
}

/* Specific highlight logic for SGR Card to maintain brand green */
.features-grid .sgr-card {
  background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.05), rgba(var(--primary-rgb), 0.05));
  border: 1px solid rgba(var(--secondary-rgb), 0.2);
}

.features-grid .sgr-card::before {
  background: radial-gradient(circle at 50% -20%, rgba(46, 204, 113, 0.1), transparent 50%);
}

.features-grid .sgr-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 15px 45px rgba(46, 204, 113, 0.15);
  /* Soft secondary shadow */
}

.features-grid .sgr-card:hover .learn-more {
  color: var(--secondary);
}

.features-grid .sgr-card .feature-icon {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), var(--secondary));
}

.features-grid .sgr-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--secondary), #27ae60);
  box-shadow: 0 6px 15px rgba(46, 204, 113, 0.3);
}


/* Calculator Pages layout */
.calculator-page-container {
  max-width: 1000px;
  margin: 100px auto 4rem;
  padding: 0 2rem;
}

.calc-header {
  text-align: center;
  margin-bottom: 3rem;
}

.calc-header h1 {
  font-size: 2.5rem;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.calc-header p {
  color: var(--medium-gray);
  font-size: 1.1rem;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }

  /* Must come AFTER base `header.floating-nav` (glass blur) so blur is not re-applied on mobile.
     Blur on the header traps `position:fixed` .nav-links inside the pill (top/right gaps). */
  header.floating-nav {
    top: 10px;
    width: 95%;
    border-radius: 20px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .floating-nav .nav-links {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.calc-form,
.calc-results {
  padding: 2rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Salary calculator deductions: checkbox pills styled like contact form options */
.deduction-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.deduction-pill {
  position: relative;
}
.deduction-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.deduction-pill label {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--medium-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--lighter-gray);
  user-select: none;
}
.deduction-pill label:hover {
  border-color: rgba(222, 49, 99, 0.4);
  color: #DE3163;
}
.deduction-pill input[type="checkbox"]:checked + label {
  background: #DE3163;
  border-color: #DE3163;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(222, 49, 99, 0.3);
}

.action-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.calc-results.show {
  animation: slideUpFade 0.4s ease forwards;
}

.placeholder-text {
  color: var(--medium-gray);
  font-style: italic;
  text-align: center;
  margin-top: 3rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.result-item h4 {
  font-weight: 500;
  font-size: 0.95rem;
}

.result-item .amount {
  font-weight: 600;
  color: var(--primary-dark);
}

.result-item.net-salary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--primary);
  border-bottom: none;
}

.result-item.net-salary h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.result-item.net-salary .amount {
  font-size: 1.3rem;
  color: var(--primary);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Thank You Page */
.thank-you-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  overflow: hidden;
}

.thank-you-container {
  text-align: center;
  background: white;
  padding: 4rem 3rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.thank-you-container .icon-container {
  font-size: 4rem;
  color: var(--danger);
  margin-bottom: 1.5rem;
}

.thank-you-container h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.thank-you-container p {
  color: var(--medium-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.thank-you-signature {
  height: 80px;
  width: auto;
  opacity: 0.85;
  margin: 0 auto 2.5rem auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.3s ease;
}

.thank-you-signature:hover {
  transform: scale(1.05) rotate(-2deg);
}

.minimal-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  text-align: center;
  padding: 1rem 1.5rem;
  background-color: var(--heading-color);
  color: var(--body-bg);
  font-size: 0.9rem;
  z-index: 1000;
}

.minimal-footer p {
  margin: 0;
  font-weight: 500;
}

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  /* Higher than thank-you-container (10) */
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 20px;
  top: -20px;
  opacity: 0;
  border-radius: 4px;
  animation: confettiFall 3s linear infinite;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* SGR Trip Finder Base Styles */
.sgr-search-container {
  max-width: 1200px;
  margin: 100px auto 4rem;
  padding: 0 2rem;
}

.date-navigator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.date-list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem;
}

.date-list::-webkit-scrollbar {
  display: none;
}

.date-btn {
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--light-gray);
  background: white;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  min-width: 80px;
}

.date-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
  border-color: var(--primary);
}

.nav-arr-btn {
  background: var(--year-1-color, #DE3163);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-arr-btn:hover:not(:disabled) {
  opacity: 0.85;
}

.nav-arr-btn:disabled {
  background: var(--medium-gray, #7f8c8d);
  cursor: not-allowed;
  opacity: 0.6;
}

.nav-text {
  display: none;
}

.mobile-date-indicator {
  display: none;
}

@media (max-width: 576px) {
  .date-navigator #date-list {
    display: none;
  }

  .mobile-date-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--year-2-color, #3498db);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    width: 65px;
    height: 65px;
    min-width: 65px;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    text-align: center;
    line-height: 1.15;
    white-space: normal;
  }

  .nav-arr-btn {
    width: calc(50% - 10px);
    border-radius: 12px;
    height: 45px;
  }

  .nav-text {
    display: inline;
    font-size: 0.9rem;
    font-weight: 500;
  }
}

/* SGR TICKET PREMIUM REDESIGN */
.airline-ticket-card {
  display: flex;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  /* crisp border */
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
  /* soft ambient shadow */
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.airline-ticket-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(52, 152, 219, 0.15);
  /* primary shadow */
  border-color: rgba(var(--primary-rgb), 0.5);
  /* subtle primary border on hover */
}

/* Base glowing effect behind the card content */
.airline-ticket-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(var(--primary-rgb), 0.05), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
}

.airline-ticket-card:hover::before {
  opacity: 1;
}

.ticket-main,
.ticket-stub {
  position: relative;
  z-index: 1;
}

.ticket-main {
  flex: 3;
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-stub {
  flex: 1;
  padding: 2.5rem 2rem;
  background: rgba(var(--primary-rgb), 0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-left: 2px dashed rgba(0, 0, 0, 0.1);
}

/* Circular cutouts for the ticket tear line */
.ticket-stub::before,
.ticket-stub::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: #f9fbfd;
  /* Match body background */
  border-radius: 50%;
  left: -13px;
  /* half width to overlap border */
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.ticket-stub::before {
  top: -12px;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-45deg);
}

.ticket-stub::after {
  bottom: -12px;
  border-bottom-color: transparent;
  border-right-color: transparent;
  transform: rotate(135deg);
}

.station-info {
  text-align: center;
  min-width: 100px;
}

.station-time {
  font-size: 2.5rem;
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.2rem;
}

.station-code {
  font-size: 1.2rem;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.station-name {
  font-size: 0.8rem;
  color: #888;
}

.journey-line {
  flex: 1;
  margin: 0 3vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.journey-line .duration {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-weight: 600;
  background: #f1f5f9;
  padding: 0.3rem 1rem;
  border-radius: 20px;
}

.journey-line .line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.3) 20%, rgba(var(--primary-rgb), 0.3) 80%, transparent);
  position: relative;
}

.journey-line .line i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 10px;
  font-size: 1.4rem;
}

.ticket-stub .price {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-primary);
  color: var(--black);
  margin-bottom: 0.5rem;
}

.ticket-stub .seats {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.btn-book {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 250px;
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-book:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-book:disabled {
  background: var(--medium-gray);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-cancel {
  background: transparent;
  color: var(--medium-gray);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 0.8rem;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-cancel:hover {
  color: var(--danger);
}

/* Fully Responsive Redesign */
@media (max-width: 850px) {
  .ticket-main {
    padding: 1.5rem;
    gap: 0.5rem;
  }

  .station-time {
    font-size: 1.8rem;
  }

  .journey-line {
    margin: 0 1rem;
  }
}

@media (max-width: 650px) {
  .airline-ticket-card {
    flex-direction: column;
    border-radius: 20px;
  }

  .ticket-stub {
    border-left: none;
    border-top: 2px dashed rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
  }

  .ticket-stub::before,
  .ticket-stub::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .ticket-stub::before {
    top: -13px;
    transform: translateX(-50%) rotate(45deg);
  }

  .ticket-stub::after {
    bottom: -13px;
    display: none;
  }

  .station-time {
    font-size: 1.25rem;
  }

  .station-code {
    font-size: 0.85rem;
  }

  .station-name {
    font-size: 0.65rem;
  }

  .journey-line .duration {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
    text-align: center;
    line-height: 1.2;
  }
}

/* Inline Extraction - Global Utilities & Footer Layouts */
footer#about {
  padding-top: 4rem;
}

.footer-social {
  justify-content: flex-start;
  margin-top: 1.5rem;
  gap: 1rem;
  flex-direction: row;
}

.social-icon,
.footer-social a,
.footer-social a i {
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
}

.footer-links {
  align-items: flex-start;
}

.footer-links h4.footer-heading {
  color: var(--white);
  margin-bottom: 0.6rem;
  font-family: var(--font-primary);
  font-size: 1.1rem;
}

.coffee-link {
  color: #DE3163;
}

/* 404 & 403 Error Page Layouts */
.error-page-container {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.error-page-icon {
  font-size: 5rem;
  margin-bottom: 2rem;
}

.icon-404 {
  color: var(--primary);
}

.icon-403 {
  color: var(--danger);
}

.icon-500 {
  color: var(--warning);
}

.error-page-title {
  font-size: 4rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.error-page-subtitle {
  font-size: 2rem;
  color: var(--medium-gray);
  margin-bottom: 2rem;
}

.error-page-text {
  font-size: 1.1rem;
  color: var(--medium-gray);
  max-width: 600px;
  margin-bottom: 2rem;
}

.error-return-btn {
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  display: inline-block;
}

/* Elegant Google AdSense Container */
.ad-container {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px dashed rgba(var(--primary-rgb), 0.3);
  padding: 1rem;
  margin: 1.5rem auto;
  display: block;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
}

.ad-container.mt-4 {
  margin-top: 2rem;
}

.ad-container.mb-4 {
  margin-bottom: 2rem;
}

/* Base Performance Fixes to Prevent Mobile Scroll Flash */
html,
body {
  -webkit-overflow-scrolling: touch;
}

.hero-split,
.glass-card,
.semester-content,
.airline-ticket-card,
.feature-card {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

/* ========================================
   Contact Form Section
   ======================================== */
.contact-section {
  padding: 4rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-section .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.contact-section .section-header p {
  color: var(--medium-gray);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-card {
  width: 100%;
  max-width: 1200px;
  display: flex;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  min-height: 580px;
}

/* Left Info Panel */
.contact-info {
  flex: 0 0 38%;
  background: linear-gradient(135deg, #DE3163, #c0264e);
  color: var(--white);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-info-heading {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.contact-info-sub {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.contact-detail i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  opacity: 0.9;
}

.contact-detail a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-detail a:hover {
  opacity: 0.75;
}

.contact-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.contact-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-social-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Floating Bubbles on Left Panel */
.contact-bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  z-index: 1;
  animation: contactBubbleFloat 12s ease-in-out infinite alternate;
}

.contact-bubble-1 {
  width: 120px;
  height: 120px;
  background: #9b59b6;
  top: -30px;
  right: -30px;
}

.contact-bubble-2 {
  width: 80px;
  height: 80px;
  background: #3498db;
  bottom: 40px;
  left: -20px;
  animation-delay: -4s;
}

.contact-bubble-3 {
  width: 55px;
  height: 55px;
  background: #9b59b6;
  bottom: -15px;
  right: 40px;
  animation-delay: -8s;
}

.contact-bubble-4 {
  width: 35px;
  height: 35px;
  background: #3498db;
  top: 30%;
  right: 15%;
  animation-delay: -2s;
}

@keyframes contactBubbleFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(10px, -15px) scale(1.08);
  }

  100% {
    transform: translate(-5px, 10px) scale(0.95);
  }
}

/* Right Form Panel */
.contact-form {
  flex: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.contact-form-header-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #DE3163, #c0264e);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(222, 49, 99, 0.3);
}

.contact-form-title {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  color: var(--dark-gray);
  margin-bottom: 0.2rem;
}

.contact-form-subtitle {
  color: var(--medium-gray);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.contact-form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-input-group {
  flex: 1;
  position: relative;
}

.contact-input-group i.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--medium-gray);
  font-size: 0.9rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.contact-input-group input,
.contact-input-group textarea,
.contact-input-group select {
  width: 100%;
  padding: 0.85rem 0.85rem 0.85rem 2.6rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark-gray);
  background: var(--lighter-gray);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.contact-input-group textarea {
  resize: vertical;
  min-height: 110px;
  padding-top: 0.85rem;
}

.contact-input-group textarea~i.input-icon {
  top: 1rem;
  transform: none;
}

.contact-input-group input:focus,
.contact-input-group textarea:focus {
  border-color: #DE3163;
  box-shadow: 0 0 0 3px rgba(222, 49, 99, 0.1);
  background: var(--white);
}

.contact-input-group input:focus~i.input-icon,
.contact-input-group textarea:focus~i.input-icon {
  color: #DE3163;
}

/* Radio Group */
.contact-radio-group {
  margin-bottom: 1rem;
}

.contact-radio-label {
  font-size: 0.9rem;
  color: var(--dark-gray);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-radio-label i {
  color: #DE3163;
  font-size: 0.85rem;
}

.contact-radio-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-radio-option {
  position: relative;
}

.contact-radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.contact-radio-option label {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--medium-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--lighter-gray);
  user-select: none;
}

.contact-radio-option label:hover {
  border-color: rgba(222, 49, 99, 0.4);
  color: #DE3163;
}

.contact-radio-option input[type="radio"]:checked+label {
  background: #DE3163;
  border-color: #DE3163;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(222, 49, 99, 0.3);
}

/* Submit Button */
.contact-submit-btn {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, #DE3163, #c0264e);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  margin-top: 0.5rem;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(222, 49, 99, 0.35);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-submit-btn.is-submitting {
  opacity: 0.7;
  pointer-events: none;
}

.contact-submit-btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: contactSpin 0.6s linear infinite;
}

.contact-submit-btn.is-submitting .spinner {
  display: block;
}

.contact-submit-btn.is-submitting .btn-text {
  display: none;
}

/* Button Row */
.contact-btn-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.contact-btn-row .contact-submit-btn {
  flex: 1;
  margin-top: 0;
}

/* Clear Button */
.contact-clear-btn {
  padding: 0.95rem 1.5rem;
  background: transparent;
  color: var(--medium-gray);
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.contact-clear-btn:hover {
  border-color: #DE3163;
  color: #DE3163;
  background: rgba(222, 49, 99, 0.05);
}

@keyframes contactSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Contact Form Responsive */
@media (max-width: 992px) {
  .contact-card {
    flex-direction: column;
  }

  .contact-info {
    flex: none;
    padding: 2.5rem 2rem;
    text-align: center;
    align-items: center;
  }

  .contact-detail {
    justify-content: center;
  }

  .contact-socials {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .contact-section {
    padding: 2rem 4%;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .contact-form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-input-group {
    margin-bottom: 1rem;
  }

  .contact-radio-options {
    flex-direction: column;
  }
}

/* ========================================
   Nav Auth Styles
   ======================================== */
.nav-login-btn,
.nav-links li a.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.6rem !important;
  background: linear-gradient(135deg, #DE3163, #c0264e);
  color: #fff !important;
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  font-size: 0.9rem !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(222, 49, 99, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(222, 49, 99, 0.3);
}

/* Remove the underline effect on auth nav items */
.auth-nav-item a::after {
  display: none !important;
}

.nav-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--dark-gray) !important;
  white-space: nowrap;
}

.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #DE3163;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1.5px solid #DE3163;
  box-shadow: 0 2px 5px rgba(222, 49, 99, 0.2);
  object-fit: cover;
}

/* Tighten nav gap when auth item is present */
.nav-links:has(.auth-nav-item) {
  gap: 0.8rem;
}

.nav-links:has(.auth-nav-item) li a {
  font-size: 0.88rem;
  padding: 0.4rem 0.1rem;
}

/* ========================================
   Semester Lock Overlay
   ======================================== */
/* Hide course pills until subscription.js processes them */
.semester-content .course-pills {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.semester-content.sub-ready .course-pills {
  opacity: 1;
}

.semester-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

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

.lock-icon {
  font-size: 1.6rem;
  color: #DE3163;
  margin-bottom: 0.4rem;
  display: block;
  animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.lock-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.lock-btn,
a.lock-btn,
button.lock-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, #DE3163, #c0264e);
  color: #fff;
  border: none;
  border-radius: var(--border-radius) !important;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(222, 49, 99, 0.3);
}

.unlocked-badge {
  color: #2ecc71;
  font-size: 0.85rem;
  margin-left: 0.3rem;
}

/* ========================================
   Bundle Promo Banner
   ======================================== */
.bundle-promo-banner {
  max-width: 800px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #DE3163, #9b59b6);
  border-radius: 16px;
  padding: 1.2rem 2rem;
  box-shadow: 0 6px 20px rgba(222, 49, 99, 0.25);
}

.bundle-promo-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bundle-promo-text {
  color: #fff;
}

.bundle-promo-text h4 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: #fff;
}

.bundle-promo-text p {
  font-size: 0.9rem;
  margin: 0;
}

.original-price {
  text-decoration: line-through;
  opacity: 0.7;
}

.bundle-price {
  font-size: 1.2rem;
}

.bundle-save {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.bundle-promo-btn {
  padding: 0.6rem 1.5rem;
  background: #fff;
  color: #DE3163;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.bundle-promo-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .bundle-promo-content {
    flex-direction: column;
    text-align: center;
  }

  .bundle-promo-banner {
    padding: 1rem 1.2rem;
  }
}
