/* DEGREE SETU - Custom Brand Stylesheet */
:root {
  --color-primary: #0a2258;
  --color-primary-dark: #06153d;
  --color-primary-light: #123380;
  --color-gold: #e59b19;
  --color-gold-dark: #c57f09;
  --color-gold-light: #fef7ec;
  --color-gold-accent: #f8ad2b;
  --color-slate-900: #0f172a;
  --color-slate-600: #475569;
  --color-slate-100: #f1f5f9;
}

html, body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--color-slate-900);
  background-color: #f8fafc;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Brand Theme Utilities */
.bg-navy { background-color: var(--color-primary); }
.bg-navy-dark { background-color: var(--color-primary-dark); }
.bg-navy-light { background-color: var(--color-primary-light); }
.text-navy { color: var(--color-primary); }
.border-navy { border-color: var(--color-primary); }

.bg-gold { background-color: var(--color-gold); }
.bg-gold-light { background-color: var(--color-gold-light); }
.text-gold { color: var(--color-gold); }
.border-gold { border-color: var(--color-gold); }

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #e59b19 50%, #d97706 100%);
  color: #ffffff !important;
  font-weight: 800;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(229, 155, 25, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #c57f09 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 155, 25, 0.55);
  color: #ffffff !important;
}

.btn-navy {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-navy:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 34, 88, 0.3);
}

.btn-outline-gold {
  border: 2px solid var(--color-gold);
  color: var(--color-gold-dark);
  background: #ffffff;
  font-weight: 700;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-outline-gold:hover {
  background-color: var(--color-gold);
  color: #ffffff;
}

.btn-outline-navy {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: #ffffff;
  font-weight: 700;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-outline-navy:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Gradients */
.gradient-navy {
  background: linear-gradient(135deg, #06153d 0%, #0a2258 55%, #153b8f 100%);
}
.gradient-gold {
  background: linear-gradient(135deg, #e59b19 0%, #f6ad2b 100%);
}
.gradient-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

/* Cards & Hover Effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(10, 34, 88, 0.12);
  border-color: rgba(229, 155, 25, 0.5);
}

/* Badge Glow */
.badge-gold {
  background-color: #fef7ec;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-navy {
  background-color: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}

/* Float Glow Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Pulse Animation for WhatsApp */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.pulse-whatsapp {
  animation: pulseGlow 2s infinite;
}

/* Modal styles */
.modal-backdrop {
  backdrop-filter: blur(6px);
  background: rgba(6, 21, 61, 0.7);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Infinite Running Logo Ticker */
@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex !important;
  width: max-content !important;
  animation: marqueeScroll 25s linear infinite !important;
  will-change: transform;
}

.animate-marquee:hover {
  animation-play-state: paused !important;
}

.univ-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(10, 34, 88, 0.06);
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
  cursor: pointer;
}

.univ-marquee-item:hover {
  border-color: #e59b19;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(229, 155, 25, 0.2);
}

/* Infinite Running Logo Ticker - Extra Large & Prominent */
@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex !important;
  width: max-content !important;
  animation: marqueeScroll 40s linear infinite !important;
  will-change: transform;
}

.animate-marquee:hover {
  animation-play-state: paused !important;
}

.univ-marquee-item-lg {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.75rem;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 4px 16px rgba(10, 34, 88, 0.08);
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  cursor: pointer;
}

.univ-marquee-item-lg:hover {
  border-color: #e59b19;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(229, 155, 25, 0.25);
}

/* Mobile Responsive Enhancements */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Hide scrollbar for horizontal tabs on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile responsive marquee item */
.univ-marquee-item-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1.15rem;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 3px 12px rgba(10, 34, 88, 0.06);
  white-space: nowrap;
  transition: all 0.25s ease;
  user-select: none;
  cursor: pointer;
}

@media (min-width: 640px) {
  .univ-marquee-item-lg {
    gap: 1.25rem;
    padding: 0.85rem 1.75rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 16px rgba(10, 34, 88, 0.08);
  }
}

.univ-marquee-item-lg:hover {
  border-color: #e59b19;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 22px rgba(229, 155, 25, 0.22);
}

/* Hero Slider Carousel - 3 Running Student Banners */
.hero-slider-container {
  position: relative;
  min-height: 520px;
}

@media (min-width: 1024px) {
  .hero-slider-container {
    min-height: 540px;
  }
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98) translateY(8px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  position: relative;
  pointer-events: auto;
}

.slider-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.75);
}

.slider-dot.active {
  width: 24px;
  background-color: #e59b19 !important;
  box-shadow: 0 0 10px rgba(229, 155, 25, 0.5);
}


/* ================= MOBILE RESPONSIVE ENHANCEMENTS ================= */
@media (max-width: 640px) {
  /* Safe clearance for fixed bottom app-like navigation bar */
  body {
    padding-bottom: 78px !important;
  }

  /* Prevent iOS Safari unwanted auto-zoom on input focus */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select {
    font-size: 16px !important;
  }

  /* Compact college marquee card on small mobile screens */
  .univ-marquee-item-lg {
    padding: 0.5rem 0.75rem !important;
    gap: 0.5rem !important;
    border-radius: 1rem !important;
  }

  /* Improve button tap ergonomics on mobile touch screens */
  button, a {
    touch-action: manipulation;
  }

  /* Compact hero badge */
  .hero-slide .badge-pill {
    font-size: 10px !important;
  }

  /* Mobile bottom sheet slide up animation */
  #floatingQuickFinderWrapper .relative {
    animation: mobileSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes mobileSlideUp {
    from {
      transform: translateY(100%);
      opacity: 0.8;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

/* Prevent touch highlight flash on mobile */
* {
  -webkit-tap-highlight-color: transparent;
}


/* Running Trending Degrees Ticker Animation */
.animate-marquee-trending {
  display: flex !important;
  width: max-content !important;
  animation: marqueeScroll 24s linear infinite !important;
  will-change: transform;
}

.animate-marquee-trending:hover {
  animation-play-state: paused !important;
}


/* ================= GLOBAL TYPOGRAPHY & TEXT ALIGNMENT POLISH ================= */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
  line-height: 1.62;
}

/* FAQ Accordion Alignment Fix: Keep chevron top-aligned on multi-line questions */
.faq-accordion-btn {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  text-align: left !important;
}

.faq-accordion-btn .faq-icon {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Ensure clean card baseline alignments */
.card-hover {
  text-align: left;
}

/* Responsive heading scaling & line break protection */
@media (max-width: 640px) {
  h1 {
    font-size: 1.875rem !important; /* 30px */
    line-height: 1.25 !important;
  }
  h2 {
    font-size: 1.5rem !important; /* 24px */
    line-height: 1.3 !important;
  }
  p {
    font-size: 0.875rem !important; /* 14px */
    line-height: 1.55 !important;
  }
}

/* Quick Finder Custom Scrollbar & Animations */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #e59b19;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeIn {
  animation: fadeInScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Input Zoom Prevention (iOS Safari) & Fluid Scrolling */
@media (max-width: 640px) {
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }
}

