
:root {
  --primary-color: #0d233a;
  --primary-light: #1a365d;
  --secondary-color: #0b1523;
  --accent-color: #e63946;
  --gold-accent: #f59e0b;
  --gold-hover: #d97706;
  --emerald-accent: #10b981;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --gradient-hero: linear-gradient(135deg, rgba(13, 35, 58, 0.93) 0%, rgba(11, 21, 35, 0.97) 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-blue: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --radius-lg: 16px;
  --radius-md: 12px;
}

/* Global Reset & Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--light-bg);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #0b1523;
}
::-webkit-scrollbar-thumb {
  background: var(--gold-accent);
  border-radius: 4px;
}

/* Top Bar & Announcement Ticker */
.top-bar {
  background: var(--secondary-color);
  font-size: 0.86rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: #f8fafc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-bar a:hover {
  color: var(--gold-accent);
}

.ticker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 1.8s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Navbar */
.navbar {
  background-color: var(--primary-color) !important;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.navbar-nav {
  align-items: center;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  color: #e2e8f0 !important;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-accent) !important;
}

/* Ensure navbar fits on medium-to-large laptop screens without breaking words */
@media (min-width: 992px) and (max-width: 1200px) {
  .nav-link {
    padding: 0.45rem 0.55rem !important;
    font-size: 0.9rem;
  }
  .navbar-brand {
    font-size: 1.15rem;
  }
  .navbar .btn {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.88rem;
    white-space: nowrap;
  }
}

.dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  background: #ffffff;
}

.dropdown-item {
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary-color);
  transform: translateX(4px);
}

/* Hero Section */
.hero-header {
  background: var(--gradient-hero), url('../images/hero_banner.jpg') center/cover no-repeat;
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-banner {
  background: var(--gradient-hero), url('../images/hero_banner.jpg') center/cover no-repeat;
  padding: 90px 0;
  color: #fff;
  text-align: center;
  position: relative;
}

.hero-header::before, .page-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Badge Gold */
.badge-gold {
  background: var(--gradient-gold);
  color: #0b1523;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Custom Cards */
.custom-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  background: #ffffff;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.custom-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 158, 11, 0.35);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.custom-card:hover .card-img-top {
  transform: scale(1.03);
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 35, 58, 0.08);
  color: var(--primary-color);
  font-size: 1.7rem;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.custom-card:hover .feature-icon-box {
  background: var(--gold-accent);
  color: #000;
  transform: rotate(6deg) scale(1.05);
}

/* Faculty Avatar & Card */
.faculty-card {
  text-align: center;
  overflow: visible !important;
  margin-top: 55px;
  border-radius: var(--radius-lg);
  padding-top: 0 !important;
}

.faculty-img-wrapper {
  margin-top: -65px;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  z-index: 5;
}

.faculty-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 5px solid #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  background-color: #f8fafc;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.faculty-card:hover .faculty-img {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--gold-accent);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
}

/* Stats Counter Box */
.stat-item {
  padding: 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-accent);
  line-height: 1.1;
}

/* Interactive Filter Buttons */
.filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.filter-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-main);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(13, 35, 58, 0.2);
}

/* Scholarship Calculator Card */
.calculator-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-lg);
  padding: 30px;
}

.calc-result-box {
  background: linear-gradient(135deg, #0d233a 0%, #1a365d 100%);
  border-radius: var(--radius-md);
  padding: 24px;
  color: #ffffff;
  text-align: center;
}

/* Floating Action Widgets */
.floating-widget-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  font-size: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1);
  color: #ffffff;
}

.floating-whatsapp {
  background-color: #25d366;
}

.floating-whatsapp::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  z-index: -1;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.floating-call {
  background-color: #0284c7;
}

.back-to-top {
  background-color: var(--secondary-color);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.back-to-top.show {
  display: flex;
  opacity: 1;
}

/* Mobile Bottom Sticky Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #0d233a;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1040;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.mobile-bottom-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.mobile-bottom-bar a i {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.mobile-bottom-bar a.active, .mobile-bottom-bar a:hover {
  color: var(--gold-accent);
}

.mobile-bottom-bar a.apply-cta {
  background: var(--gold-accent);
  color: #0b1523;
  font-weight: 700;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }
  body {
    padding-bottom: 60px;
  }
  .floating-widget-container {
    bottom: 75px;
    right: 18px;
  }
}

/* Footer */
footer {
  background-color: #08111d;
  color: #94a3b8;
  font-size: 0.93rem;
  position: relative;
}

footer h5 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background: var(--gold-accent);
}

footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

footer a:hover {
  color: var(--gold-accent);
  padding-left: 4px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: all 0.25s ease;
}

.social-links a:hover {
  background: var(--gold-accent);
  color: #0b1523;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
