/* =============================================
   ST. JOHN'S COLLEGE OF EDUCATION
   Theme: Maroon & Gold – Clean & Professional
   ============================================= */

:root {
  --maroon: #7b1c2c;
  --maroon-dark: #5c1320;
  --maroon-light: #9c2a3d;
  --gold: #c9a227;
  --gold-light: #e0b84a;
  --gold-pale: #fdf3d8;
  --cream: #faf7f2;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-muted: #666;
  --border: #e0d6c8;
  --font-heading: "Merriweather", Georgia, serif;
  --font-body: "Open Sans", sans-serif;
}

html {
  overflow-x: hidden; /* must be on html too to truly prevent horizontal scroll */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}
p {
  margin-bottom: 0.6rem;
}
a {
  text-decoration: none;
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--maroon-dark);
  color: #e8c97a;
  font-size: 12px;
  padding: 5px 0;
}
.topbar a {
  color: #e8c97a;
}
.topbar a:hover {
  color: #fff;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--maroon);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
/* Real logo image – desktop header */
.site-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.college-name {
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.3;
}
.college-sub {
  font-size: 11px;
  color: #ddd;
}
.motto-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--maroon-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  letter-spacing: 0.3px;
}
.text-gold {
  color: var(--gold-light);
  font-size: 11px;
}

/* ===== OFFCANVAS – Mobile Side Menu ===== */
.site-offcanvas {
  background: var(--maroon-dark);
  color: #f0e6c8;
  width: 290px !important;
  border-right: 3px solid var(--gold);
}

/* Offcanvas header */
.site-offcanvas .offcanvas-header {
  background: var(--maroon);
  border-bottom: 2px solid var(--gold);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.oc-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.oc-college-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.oc-college-sub {
  font-size: 10.5px;
  color: var(--gold-light);
}
.oc-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.oc-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Offcanvas body */
.site-offcanvas .offcanvas-body {
  padding: 0;
  overflow-y: auto;
}

/* Nav list */
.oc-nav-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.oc-nav-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  color: #f0e6c8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.oc-nav-list li a i {
  width: 18px;
  text-align: center;
  color: var(--gold-light);
  font-size: 14px;
}
.oc-nav-list li a:hover,
.oc-nav-list li a:active {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--gold);
  color: #fff;
}

/* Divider */
.oc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 4px 16px;
}

/* Contact section */
.oc-contact-section {
  padding: 14px 20px 10px;
}
.oc-contact-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}
.oc-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 11px;
}
.oc-contact-item i {
  color: var(--gold-light);
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}
.oc-contact-item span,
.oc-contact-item a {
  font-size: 12.5px;
  color: #ddd;
  line-height: 1.5;
  text-decoration: none;
}
.oc-contact-item a:hover {
  color: var(--gold-light);
}

/* Motto */
.oc-motto {
  margin: 4px 16px 16px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 12px;
  font-style: italic;
  color: var(--gold-light);
  text-align: center;
  line-height: 1.5;
}

/* ===== NAVBAR ===== */
.main-nav {
  background: var(--maroon-dark);
  padding: 0;
}
.main-nav .navbar-nav {
  gap: 0;
}
.main-nav .nav-link {
  color: #f0e6c8 !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px !important;
  letter-spacing: 0.3px;
  transition:
    color 0.2s,
    background 0.2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  background: var(--gold);
  color: var(--maroon-dark) !important;
}
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 8px;
  flex-shrink: 0;
}

/* ===== MOBILE NAVBAR BRAND ===== */
@media (max-width: 991.98px) {
  /* Hide the big desktop header on mobile */
  .site-header {
    display: none;
  }

  /* Navbar container: simple flex row, brand left, toggler right */
  .mobile-nav-container {
    display: flex;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  /* Brand: left-aligned, normal document flow */
  .mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    flex: 1; /* take available space, pushes toggler to right */
    min-width: 0; /* allow text truncation */
  }

  /* Logo image inside mobile navbar */
  .mobile-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
  }

  .mobile-brand-text {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Toggler: stays at far right naturally */
  .main-nav .navbar-toggler {
    flex-shrink: 0;
    margin-left: 8px;
  }
}

/* Desktop: hide mobile-only brand, show full header */
@media (min-width: 992px) {
  .mobile-nav-brand {
    display: none !important;
  }
  .site-header {
    display: block;
  }
}

/* ===== HERO SLIDER ===== */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--maroon) 0%,
    var(--maroon-dark) 100%
  );
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-slider-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  overflow: hidden;
}
/* All slides occupy the same grid cell — stacked on top of each other */
.hero-slide {
  grid-area: 1 / 1;
  padding: 40px 0 60px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(80px);
  transition:
    opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0s linear 0.65s;
  will-change: transform, opacity;
}
/* Active slide — fully visible, interactive */
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(0);
  transition:
    opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}

/* Dot indicators */
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px;
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

/* Hero text */
.badge-estd {
  display: inline-block;
  background: var(--gold);
  color: var(--maroon-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.hero-title span {
  color: var(--gold-light);
}
.hero-subtitle {
  font-size: 14px;
  color: #ddd;
  max-width: 540px;
}

/* Buttons */
.btn-gold {
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border: none;
  transition: background 0.2s;
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--maroon-dark);
}
.btn-outline-light {
  font-size: 13px;
  padding: 8px 18px;
}

/* Stat cards (slide 1) */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px;
  text-align: center;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: var(--font-heading);
  line-height: 1.1;
}
.stat-label {
  font-size: 11px;
  color: #ddd;
}

/* Feature cards (slide 2) */
.hero-feature-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-feat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 14px;
  border-radius: 4px;
  transition: background 0.25s;
}
.hero-feat-card:hover {
  background: rgba(255, 255, 255, 0.18);
}
.hero-feat-card > i {
  font-size: 18px;
  color: var(--gold-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.hero-feat-card strong {
  display: block;
  font-size: 13px;
  color: #fff;
}
.hero-feat-card small {
  font-size: 11px;
  color: #ccc;
}

/* Specialization grid (slide 3) */
.hero-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 11px 13px;
  border-radius: 4px;
  transition: background 0.25s;
}
.hero-spec-item:hover {
  background: rgba(255, 255, 255, 0.18);
}
.hero-spec-item i {
  color: var(--gold-light);
  font-size: 16px;
  flex-shrink: 0;
}
.hero-spec-item span {
  font-size: 12.5px;
  color: #fff;
  line-height: 1.3;
}

/* ===== SCROLL-REVEAL ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
[data-animate="from-left"] {
  transform: translateX(-50px);
}
[data-animate="from-right"] {
  transform: translateX(50px);
}
[data-animate="from-top"] {
  transform: translateY(-40px);
}
[data-animate="from-bottom"] {
  transform: translateY(40px);
}

[data-animate].anim-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== SECTION COMMON ===== */
.page-section {
  padding: 36px 0;
}
.bg-light-cream {
  background: var(--cream);
}

.section-header {
  margin-bottom: 18px;
}
.section-header h2 {
  font-size: 1.3rem;
  color: var(--maroon);
  margin-bottom: 6px;
}
.section-header h4 {
  font-size: 1.1rem;
  color: var(--maroon);
  margin-bottom: 6px;
}
.section-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
}

/* ===== ABOUT ===== */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: #fff;
}
.info-card i {
  color: var(--maroon);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.info-card strong {
  font-size: 13px;
  display: block;
  color: var(--maroon-dark);
}
.info-card small {
  font-size: 11px;
  color: var(--text-muted);
}

.vision-mission-card {
  background: #fff;
  border-left: 3px solid var(--gold);
  border: 1px solid var(--border);
  border-left-width: 3px;
  padding: 12px 14px;
}
.vision-mission-card h5 {
  font-size: 14px;
  color: var(--maroon);
  margin-bottom: 8px;
}
.vision-mission-card ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}
.vision-mission-card ul li {
  font-size: 12.5px;
  padding: 3px 0;
  color: var(--text);
}
.vision-mission-card ul li::before {
  content: "›";
  color: var(--gold);
  font-weight: 700;
  margin-right: 6px;
}

/* ===== TABLE ===== */
.table-responsive {
  overflow-x: auto;
}
.college-table {
  font-size: 12.5px;
  width: 100%;
  border-collapse: collapse;
}
.college-table thead tr {
  background: var(--maroon);
  color: #fff;
}
.college-table thead th {
  padding: 8px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid var(--maroon-dark);
}
.college-table tbody tr:nth-child(even) {
  background: var(--gold-pale);
}
.college-table tbody td {
  padding: 7px 10px;
  text-align: center;
  border: 1px solid var(--border);
}
.college-table tbody tr:hover {
  background: #f5e8c0;
}

/* ===== COURSES ===== */
.course-main-card {
  background: var(--maroon);
  color: #fff;
  padding: 20px;
  height: 100%;
}
.course-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--maroon-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 2px 10px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.course-main-card h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.course-main-card p {
  font-size: 13px;
  color: #ddd;
}
.course-main-card hr {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 10px 0;
}
.detail-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  display: inline-block;
}

.sub-heading {
  font-size: 14px;
  color: var(--maroon);
  font-family: var(--font-heading);
  margin-bottom: 10px;
}

.subject-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.subject-list li {
  padding: 7px 10px;
  border-left: 3px solid var(--gold);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  background: #fff;
  margin-bottom: 4px;
}
.subject-list li i {
  color: var(--maroon);
}

.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.content-list li {
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--border);
}
.content-list li i {
  color: var(--gold);
}

/* ===== ADMISSION ===== */
.adm-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 16px;
  height: 100%;
}
.adm-card h5 {
  font-size: 14px;
  color: var(--maroon);
  margin-bottom: 6px;
}
.adm-card .college-table thead tr {
  background: var(--maroon);
}

.doc-list,
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.doc-list li,
.info-list li {
  font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
}
.doc-list li i {
  color: var(--maroon);
}
.info-list li i {
  color: var(--gold);
}

.alert-note {
  background: #fff4e5;
  border-left: 3px solid var(--gold);
  padding: 8px 10px;
  font-size: 12px;
  color: var(--maroon-dark);
}
.alert-note i {
  color: var(--gold);
}

.rule-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--maroon);
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  height: 100%;
}
.rule-num {
  background: var(--maroon);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rule-card p {
  font-size: 12.5px;
  margin: 0;
}

/* ===== COMMITTEES ===== */
.committee-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  height: 100%;
}
.committee-title {
  background: var(--maroon);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
}
.committee-card .table {
  font-size: 12px;
  margin: 0;
}
.committee-card .table thead th {
  background: var(--gold-pale);
  color: var(--maroon-dark);
  font-size: 11px;
  padding: 5px 8px;
  font-weight: 700;
  border: 1px solid var(--border);
}
.committee-card .table tbody td {
  padding: 5px 8px;
  border: 1px solid var(--border);
  vertical-align: middle;
}
.committee-card .table tbody tr:nth-child(even) {
  background: #fafafa;
}
.badge-convener {
  background: var(--gold);
  color: var(--maroon-dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  display: inline-block;
}

/* ===== INFRASTRUCTURE ===== */
.infra-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  height: 100%;
}
.infra-icon {
  width: 44px;
  height: 44px;
  background: var(--maroon);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.infra-card h6 {
  font-size: 13px;
  color: var(--maroon);
  margin-bottom: 6px;
}
.infra-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.lib-rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lib-rules-list li {
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.lib-rules-list li i {
  color: var(--maroon);
}

/* ===== CONTACT ===== */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
}
.contact-item i {
  color: var(--maroon);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}
.contact-item strong {
  font-size: 13px;
  display: block;
  color: var(--maroon);
}
.contact-item p {
  font-size: 13px;
  margin: 3px 0 0;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.site-footer-main {
  background: var(--maroon-dark);
  color: #ccc;
  padding: 28px 0 16px;
  font-size: 12.5px;
}
.footer-logo {
  width: 34px;
  height: 34px;
  background: var(--gold);
  color: var(--maroon-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.site-footer-main strong {
  color: #fff;
  font-size: 13px;
}
.site-footer-main h6 {
  color: var(--gold-light);
  font-size: 13px;
  margin-bottom: 8px;
}
.site-footer-main p {
  color: #bbb;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 4px;
}
.footer-links a {
  color: #bbb;
  font-size: 12.5px;
}
.footer-links a:hover {
  color: var(--gold-light);
}
.footer-aff {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-aff li {
  font-size: 12px;
  color: #bbb;
  padding: 2px 0;
}
.footer-aff i {
  color: var(--gold);
}
.footer-hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 16px 0 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .college-name {
    font-size: 1rem;
  }
  .hero-title {
    font-size: 1.3rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat-num {
    font-size: 1.4rem;
  }
  .page-section {
    padding: 24px 0;
  }
  .hero-spec-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-slider-wrapper {
    min-height: auto;
  }
}
@media (max-width: 576px) {
  .topbar-links {
    display: none;
  }
  .hero-slide {
    padding: 24px 0 60px;
  }
  .hero-spec-grid {
    grid-template-columns: 1fr;
  }
  .hero-feature-cards {
    gap: 8px;
  }
}

/* =============================================
   ADMISSION POPUP MODAL
   ============================================= */
.adm-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.adm-popup-overlay.adm-popup-visible {
  opacity: 1;
  pointer-events: auto;
}
.adm-popup-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  position: relative;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(201, 162, 39, 0.3);
  transform: translateY(40px) scale(0.95);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden; /* clips glow orbs only, no scroll */
}
.adm-popup-overlay.adm-popup-visible .adm-popup-box {
  transform: translateY(0) scale(1);
}

/* Decorative glow orbs */
.adm-popup-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.adm-popup-glow.g1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(201, 162, 39, 0.35) 0%,
    transparent 70%
  );
  top: -60px;
  right: -60px;
}
.adm-popup-glow.g2 {
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(123, 28, 44, 0.3) 0%,
    transparent 70%
  );
  bottom: 40px;
  left: -40px;
}

/* Close button */
.adm-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 12px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.adm-popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Header */
.adm-popup-header {
  background: linear-gradient(145deg, var(--maroon) 0%, #3d0011 100%);
  padding: 16px 22px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.adm-popup-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.03) 20px,
    rgba(255, 255, 255, 0.03) 40px
  );
}
.adm-popup-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--maroon-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  animation: pulse-badge 2.5s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(201, 162, 39, 0);
  }
}
.adm-popup-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.adm-popup-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 3px;
  position: relative;
  z-index: 1;
}
.adm-popup-title span {
  color: var(--gold-light);
}
.adm-popup-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Body */
.adm-popup-body {
  padding: 14px 20px;
}

/* Highlights row */
.adm-popup-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.adm-hi-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.adm-hi-item i {
  font-size: 16px;
  color: var(--maroon);
}
.adm-hi-item strong {
  display: block;
  font-size: 12.5px;
  color: var(--maroon-dark);
  line-height: 1.2;
}
.adm-hi-item small {
  font-size: 10px;
  color: var(--text-muted);
}

/* Eligibility */
.adm-popup-eligibility {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
.adm-elig-title {
  background: var(--maroon);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
}
.adm-elig-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 12px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.adm-elig-row:last-child {
  border-bottom: none;
}
.adm-elig-row span:first-child {
  color: var(--text);
  font-weight: 600;
}
.adm-elig-row span:last-child {
  color: var(--maroon);
  font-weight: 700;
}

/* Action buttons */
.adm-popup-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.adm-btn-primary {
  flex: 1;
  background: linear-gradient(
    135deg,
    var(--maroon) 0%,
    var(--maroon-dark) 100%
  );
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 7px;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(123, 28, 44, 0.4);
  color: #fff;
}
.adm-btn-secondary {
  flex: 1;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-btn-secondary:hover {
  border-color: var(--maroon);
  color: var(--maroon);
  background: var(--cream);
}

/* Note */
.adm-popup-note {
  font-size: 10.5px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}
.adm-popup-note i {
  color: var(--gold);
}

/* Mobile adjustments */
@media (max-width: 520px) {
  .adm-popup-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .adm-popup-title {
    font-size: 1rem;
  }
  .adm-popup-body {
    padding: 12px 14px;
  }
}

/* =============================================
   SCROLL TO TOP BUTTON
   ============================================= */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--maroon) 0%,
    var(--maroon-dark) 100%
  );
  color: #fff;
  border: 2px solid var(--gold);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
  transition:
    opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.2s;
}
.scroll-top-btn.stt-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: linear-gradient(
    135deg,
    var(--maroon-light) 0%,
    var(--maroon) 100%
  );
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
