:root {
  /* Colors */
  --primary: #0A327B;
  /* Deep Blue from Logo */
  --primary-light: #1A56C4;
  --secondary: #F39C12;
  /* Gold/Orange */
  --accent: #E67E22;
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #f1f5f9;
  --text-muted: #64748b;
  --danger: #ef4444;
  --success: #10b981;
  --white: #ffffff;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

  /* Layout */
  --container-max: 1200px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 2rem;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(10, 50, 123, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 50, 123, 0.4);
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
  color: var(--white);
}

/* Header/Navbar */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  /*padding: 1rem 0;*/
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-brand img {
  height: 90px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-dark);
}

.nav-links a:hover {
  color: var(--primary);
}

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius);
  background-color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 50, 123, 0.1);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .navbar .container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
    animation: slideMenu 0.3s forwards ease-in-out;
  }

  @keyframes slideMenu {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

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

  .nav-links a {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
  }

  .nav-links a:hover {
    background: rgba(10, 50, 123, 0.05);
    color: var(--primary) !important;
    padding-left: 1.5rem;
  }

  .nav-links .dropdown {
    width: 100%;
  }

  .nav-links .dropdown>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: rgba(10, 50, 123, 0.02);
    border-left: 2px solid var(--primary-light);
    margin: 0.25rem 0 0.5rem 1rem;
    border-radius: 0;
  }

  .nav-links .dropdown-content a {
    padding: 0.6rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
  }

  .nav-links .dropdown-content a:hover {
    padding-left: 1.5rem;
    background: transparent;
  }

  .nav-links .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 0.75rem;
    padding: 0.8rem 1.5rem;
  }

  .mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 13px 7px;
    z-index: 1001;
    outline: none;
    box-shadow: none;
  }

  .mobile-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
  }

  .mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .hide-desktop {
    display: flex;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.p-2 {
  padding: 2rem;
}

.d-flex {
  display: flex;
}

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

.justify-between {
  justify-content: space-between;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-success {
  background: #d1fae5;
  color: var(--success);
}

.badge-warning {
  background: #fef3c7;
  color: var(--secondary);
}

.badge-danger {
  background: #fee2e2;
  color: var(--danger);
}

/* Page Header Overrides */
.page-header h1,
.page-header h2,
.page-header h3 {
  color: var(--white);
}

/* Top Bar */
.top-bar {
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--white);
  opacity: 0.9;
  margin-left: 1rem;
}

.top-bar a:hover {
  opacity: 1;
}

/* Marquee */
.marquee-container {
  overflow: hidden;
  background: var(--white);
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
  gap: 3rem;
  align-items: center;
}

.marquee-content span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 220px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
  top: 100%;
  left: 0;
  overflow: hidden;
}

.dropdown-content a {
  color: var(--text-dark);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: 400;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f8fafc;
  color: var(--primary);
  padding-left: 20px;
  /* Slight indent animation */
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    display: none;
    /* In real mobile menu, needs JS toggle, but for hover on mobile we let it flow if hovered/tapped */
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: transparent;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .top-bar a {
    margin: 0 0.5rem;
  }
}

/* --- Dynamic Notice Ticker --- */
.notice-ticker-bar {
  background: #fff;
  border-bottom: 2px solid #e2e8f0;
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.notice-label {
  background: var(--danger);
  color: var(--white);
  padding: 0.25rem 1rem;
  font-weight: 700;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-right: 1.5rem;
  white-space: nowrap;
  animation: pulseNotice 2s infinite;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}
@keyframes pulseNotice {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.notice-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.notice-marquee p {
  display: inline-block;
  padding-left: 100%;
  animation: noticeScroll 30s linear infinite;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}
.notice-marquee p a {
  color: var(--primary-light);
  text-decoration: underline;
  margin-left: 0.5rem;
}
@keyframes noticeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Premium Stats Grid --- */
.stats-accent-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,250,252,0.95));
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(10, 50, 123, 0.03);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stats-accent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}
.stats-accent-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 50, 123, 0.08);
}
.stats-accent-card:hover::before {
  opacity: 1;
}
.stats-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

/* --- Testimonials Card Grid --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  border: 1px solid #f1f5f9;
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(10, 50, 123, 0.06);
}
.testimonial-quote {
  font-size: 1.8rem;
  color: rgba(243, 156, 18, 0.2);
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: serif;
}
.testimonial-stars {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  border: 2px solid var(--primary-light);
  font-size: 1.2rem;
}
.author-info h5 {
  color: var(--text-dark);
  font-size: 1rem;
  margin: 0;
}
.author-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* --- Interactive Accordion FAQs --- */
.faq-accordion {
  max-width: 800px;
  margin: 2rem auto 0 auto;
}
.faq-item {
  background: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item input[type="checkbox"] {
  display: none;
}
.faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}
.faq-trigger::after {
  content: '▼';
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item input[type="checkbox"]:checked ~ .faq-content {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid #f1f5f9;
}
.faq-item input[type="checkbox"]:checked ~ .faq-trigger {
  background: #f8fafc;
}
.faq-item input[type="checkbox"]:checked ~ .faq-trigger::after {
  transform: rotate(180deg);
  color: var(--secondary);
}

/* --- Course Curriculums Accordion --- */
.curriculum-accordion {
  margin-top: 2rem;
}
.sem-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.sem-trigger {
  padding: 1rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.sem-trigger::after {
  content: '➕';
  font-size: 0.9rem;
}
.sem-content {
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.sem-content span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.sem-content span::before {
  content: '📖';
}