:root {
  --primary: #0f2b46;
  --primary-light: #1a3c5e;
  --accent: #d4af37;
  --accent-hover: #b4942b;
  --bg-body: #f8f9fa;
  --bg-card: #ffffff;
  --text-main: #2c3e50;
  --text-muted: #6c757d;
  --border-light: #e9ecef;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  padding-top: 70px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary);
}

.navbar {
  background: linear-gradient(90deg, var(--primary), #2c3e50) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
}

.navbar-brand img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 5px;
  transition: var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

.hero {
  height: 90vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(15, 43, 70, 0.6), rgba(15, 43, 70, 0.5)),
    url('images/inst_6849136172b872.53526253.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
  animation: fadeInDown 1.2s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-hero {
  background: var(--accent);
  color: #0f2b46;
  border: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-hero:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
}

.about-section {
  background: #fff;
  padding: 80px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.overview-section .card {
  border-top: 4px solid var(--accent);
}

.overview-img {
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.course-card {
  border-radius: var(--radius-md);
  padding: 24px 24px 30px;
  text-align: center;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.course-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.course-card.active {
  transform: translateY(-15px) scale(1.04);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.course-card.active .course-img {
  height: 220px;
}

.course-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.course-img-wrap {
  position: relative;
}

.affiliation-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 43, 70, 0.75);
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.course-card i {
  font-size: 3rem;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.course-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
}

.course-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.subjects-list {
  display: none;
  text-align: left;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeIn 0.3s ease;
}

.subjects-list a {
  display: block;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 5px;
}

.subjects-list a:hover {
  background: rgba(255, 255, 255, 0.25);
  padding-left: 18px;
}

.admission-card {
  background: #fff;
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 5px solid var(--accent);
}

.apply-btn {
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(15, 43, 70, 0.2);
}

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

.contact-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.contact-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 43, 70, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-md);
  max-width: 800px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: fadeInDown 0.3s ease-out;
}

.modal-header-custom {
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 15px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body-custom {
  padding: 30px;
}

#resultOutput {
  background: #eefbf3;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 15px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  animation: fadeIn 0.5s ease;
}