:root {
  --primary: #F7941D;
  --secondary: #FFB627;
  --accent: #c0392b;
  --light-bg: #FBF1E6;
  --text-dark: #222;
  --text-muted: #666;
  --border: #ecdcc9;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
}

/* TOP BAR */
.top-bar {
  background: #FFB84D;
  color: #FFEACC;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* SITE HEADER */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--secondary);
  padding: 8px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
}

.site-header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.site-header-title {
  font-size: 30px;
}

@media (max-width: 700px) {
  .site-header-grid {
    grid-template-columns: auto 1fr;
    gap: 8px;
  }
  .site-header-logo {
    width: 60px !important;
    height: 60px !important;
  }
  .site-header-title {
    font-size: 18px;
  }
  .site-header-admission-gif {
    display: none;
  }
}

/* NAVBAR */
.navbar {
  background: linear-gradient(90deg, #FFA94D 0%, #F7941D 60%, #FFB05C 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.28);
  border-bottom: 3px solid var(--secondary);
}

.navbar ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow: visible;
}

.navbar ul::-webkit-scrollbar {
  display: none;
}

.navbar a {
  color: rgba(255,255,255,0.93);
  text-decoration: none;
  padding: 13px 12px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}

.navbar a:hover,
.navbar a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.navbar li:hover > a,
.navbar li.dropdown:hover > a {
  background: var(--secondary);
  color: #fff;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 230px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  z-index: 9999;
  border-radius: 0 0 8px 8px;
  border-top: 3px solid var(--secondary);
  overflow: hidden;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  color: #A85D00 !important;
  padding: 10px 18px;
  border-bottom: 1px solid #f5ece0;
  font-size: 13px;
  transition: background 0.15s, padding-left 0.15s;
  background: none;
}

.dropdown-menu a:hover {
  background: #FFF3E6 !important;
  color: var(--primary) !important;
  padding-left: 24px;
}

.dropdown-menu .dropdown-header {
  padding: 6px 14px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #eee;
}

/* MARQUEE BAR */
.marquee-bar {
  background: var(--secondary);
  color: #fff;
  padding: 8px 0;
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
}

/* SECTION */
.section {
  padding: 50px 0;
}

.mgmt-card:hover {
  box-shadow: 0 8px 24px rgba(247,148,29,0.14);
  transform: translateY(-3px);
}

.section-alt {
  background: var(--light-bg);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary);
}

.section-title.center {
  text-align: center;
}

.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* CARDS */
.course-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  background: #fff;
  height: 100%;
}

.course-card:hover {
  box-shadow: 0 8px 24px rgba(247,148,29,0.18);
  transform: translateY(-4px);
}

.course-card-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
}

.course-card-body {
  padding: 16px 18px;
  font-size: 14px;
}

.course-card-desc {
  margin-bottom: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* FEE TABLE */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.fee-table th {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
}

.fee-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.fee-table tr:nth-child(even) td {
  background: var(--light-bg);
}

.fee-table tr.total-row td {
  font-weight: 700;
  background: #fff3cd;
}

/* FACULTY TABLE */
.faculty-table {
  width: 100%;
  border-collapse: collapse;
}

.faculty-table th {
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
}

.faculty-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.faculty-table tr:nth-child(even) td {
  background: var(--light-bg);
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.gallery-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.gallery-img:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

/* PAGE BANNER */
.page-banner {
  background: linear-gradient(135deg, #F7941D 0%, #FFB05C 100%);
  color: #fff;
  padding: 40px 0;
  margin-bottom: 40px;
}

.page-banner h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}

.breadcrumb-nav {
  font-size: 14px;
  opacity: 0.85;
}

.breadcrumb-nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

/* FOOTER */
.site-footer {
  background: var(--primary);
  color: #FFEACC;
  padding: 50px 0 0;
}

.footer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
}

.footer-link {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #4A2600;
}

.footer-bottom {
  background: #D9740A;
  color: #FFEBD6;
  text-align: center;
  padding: 14px;
  margin-top: 40px;
  font-size: 13px;
}

/* CONTACT */
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  background: var(--secondary);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

/* ADMISSION BADGE */
.admission-open {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes admBlink {
  50% { opacity: 0.4; }
}

/* UTILITIES */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-primary:hover {
  background: #FFA94D;
  color: #fff;
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-secondary:hover {
  background: #B37700;
  color: #fff;
}

/* INFO BOX */
.info-box {
  background: var(--light-bg);
  border-left: 4px solid var(--secondary);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin: 20px 0;
}

/* HIGHLIGHT BOX */
.highlight-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 14px;
  margin: 16px 0;
}

/* RICH CONTENT (CKEditor output) */
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 {
  color: var(--primary);
  font-weight: 700;
  margin: 24px 0 12px;
}
.rich-content h1:first-child, .rich-content h2:first-child, .rich-content h3:first-child {
  margin-top: 0;
}
.rich-content p {
  margin: 0 0 14px;
}
.rich-content ul, .rich-content ol {
  margin: 0 0 14px;
  padding-left: 24px;
}
.rich-content ul { list-style: disc; }
.rich-content ol { list-style: decimal; }
.rich-content li {
  margin-bottom: 6px;
}
.rich-content a {
  color: var(--primary);
  text-decoration: underline;
}
.rich-content strong { color: var(--text-dark); }
.rich-content blockquote {
  border-left: 3px solid var(--secondary);
  padding: 8px 16px;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-style: italic;
}
.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 12px 0;
}
.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
}
.rich-content table td, .rich-content table th {
  border: 1px solid var(--border);
  padding: 8px 12px;
}

/* HERO SLIDER */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 480px;
  background: #FFB84D;
}

.hero-slide {
  position: absolute;
  inset: 0;
  transition: opacity 0.9s ease;
  opacity: 0;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
}

.hero-arrow:hover {
  background: rgba(255,164,0,0.85);
  border-color: var(--secondary);
}

.hero-arrow-left { left: 20px; }
.hero-arrow-right { right: 20px; }

.hero-left-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, transparent 100%);
  z-index: 5;
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  z-index: 10;
  padding: 0 60px;
  max-width: 580px;
  color: #fff;
}

.hero-text-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-text-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
  margin-bottom: 12px;
}

.hero-text-subtitle {
  font-size: 15px;
  opacity: 0.88;
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta-primary {
  background: var(--secondary);
  color: #fff;
  padding: 11px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.hero-cta-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 11px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(4px);
}

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
  padding: 0;
}

.hero-dot.active {
  width: 30px;
  background: var(--secondary);
}

.hero-counter {
  position: absolute;
  bottom: 22px;
  right: 24px;
  z-index: 20;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
}

/* ADMISSION POPUP */
.admission-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admission-popup-backdrop.open {
  display: flex;
}

.admission-popup {
  position: relative;
  max-width: 720px;
  width: 100%;
  max-height: 94vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.admission-popup img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 94vh;
  object-fit: contain;
}

.admission-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admission-popup-close:hover {
  background: var(--primary);
}

/* PDF VIEWER MODAL */
.pdf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pdf-modal-backdrop.open {
  display: flex;
}

.pdf-modal {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 900px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.pdf-modal-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}

.pdf-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.pdf-modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background: #f4f6f9;
  padding: 16px;
}

.pdf-modal-body img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* LIGHTBOX */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-backdrop img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-prev, .lightbox-next, .lightbox-close {
  position: absolute;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  padding: 10px 20px;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-close {
  top: 12px;
  right: 16px;
  font-size: 22px;
  padding: 6px 14px;
}

.lightbox-counter {
  position: absolute;
  bottom: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}

/* MOBILE NAV */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  margin: 8px 0;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .mobile-menu-btn { display: block !important; }
  .navbar ul { flex-direction: column !important; display: none !important; }
  .navbar ul.menu-open { display: flex !important; }
  .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border-top: none !important;
    padding-left: 16px;
    display: block !important;
  }
}

@media (max-width: 768px) {
  .section-title { font-size: 22px; }
  .page-banner h1 { font-size: 24px; }
  .navbar ul { flex-direction: column; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
