/* =========================================================

   JIS INSTITUTE OF PHARMACY (JISIP) - MASTER STYLESHEET 2026

   Clean, Responsive, Light & Breathable Architecture

   ========================================================= */



:root {

  /* Core Brand Colors */

  --primary:        #002147;  /* JIS Deep Navy */

  --primary-dark:   #001630;

  --primary-light:  #0a356b;

  --primary-50:     #f0f5fa;

  --primary-100:    #e0ecf7;



  --gold:           #d49b13;  /* Warm Gold */

  --gold-hover:     #b8840a;

  --gold-light:     #fff8e7;

  --gold-border:    #f5d58b;



  --accent-teal:    #0284c7;

  --accent-green:   #16a34a;



  /* Surfaces & Backgrounds */

  --bg-body:        #ffffff;

  --bg-soft:        #f8fafc;

  --bg-muted:       #f1f5f9;

  --surface:        #ffffff;

  --surface-border: #e2e8f0;



  /* Text Colors */

  --text-main:      #0f172a;

  --text-muted:     #475569;

  --text-light:     #64748b;



  /* Radii & Shadows */

  --radius-sm:      6px;

  --radius-md:      12px;

  --radius-lg:      16px;

  --radius-xl:      24px;

  --radius-full:    9999px;



  --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.05);

  --shadow-card:    0 4px 20px -2px rgba(0, 33, 71, 0.06);

  --shadow-hover:   0 12px 32px -4px rgba(0, 33, 71, 0.12);



  --container:      1240px;

}



/* Base Reset */

*, *::before, *::after {

  box-sizing: border-box;

}



html {

  scroll-behavior: smooth;

  font-size: 16px;

}



body {

  margin: 0;

  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  color: var(--text-main);

  background: var(--bg-body);

  line-height: 1.65;

  -webkit-font-smoothing: antialiased;

  -moz-osx-font-smoothing: grayscale;

}



body.nav-open {

  overflow: hidden;

}



h1, h2, h3, h4, h5, h6 {

  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  color: var(--primary);

  line-height: 1.2;

  margin-top: 0;

  font-weight: 700;

}



p {

  margin-top: 0;

  margin-bottom: 1rem;

}



a {

  color: inherit;

  text-decoration: none;

  transition: all 0.2s ease;

}



ul, ol {

  list-style: none;

  margin: 0;

  padding: 0;

}



img {

  max-width: 100%;

  height: auto;

  display: block;

}



button {

  font-family: inherit;

  cursor: pointer;

  border: none;

  background: none;

}



.wrap {

  max-width: var(--container);

  margin-left: auto;

  margin-right: auto;

  padding-left: 24px;

  padding-right: 24px;

}



@media (max-width: 768px) {

  .wrap {

    padding-left: 16px;

    padding-right: 16px;

  }

}



/* Clean Section Headings */

.section-header {

  text-align: center;

  max-width: 720px;

  margin: 0 auto 52px;

}



@media (max-width: 768px) {

  .section-header {

    margin-bottom: 36px;

  }

}



.section-eyebrow {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  font-size: 0.8125rem;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  color: var(--gold);

  margin-bottom: 10px;

}



.section-eyebrow::before,

.section-eyebrow::after {

  content: '';

  width: 20px;

  height: 2px;

  background: var(--gold);

  border-radius: 2px;

}



.section-title {

  font-size: clamp(1.75rem, 3.2vw, 2.45rem);

  font-weight: 800;

  color: var(--primary);

  letter-spacing: -0.02em;

  margin-bottom: 14px;

}



.section-subtitle {

  font-size: 1rem;

  color: var(--text-muted);

  line-height: 1.65;

  margin-bottom: 0;

}



/* Clean Buttons */

.btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  font-weight: 700;

  font-size: 0.9375rem;

  padding: 12px 26px;

  border-radius: var(--radius-full);

  border: 1.5px solid transparent;

  transition: all 0.22s ease;

  white-space: nowrap;

  cursor: pointer;

}



.btn:hover {

  transform: translateY(-2px);

}



.btn-primary {

  background: var(--primary);

  color: #ffffff;

  box-shadow: 0 4px 14px rgba(0, 33, 71, 0.2);

}

.btn-primary:hover {

  background: var(--primary-light);

  color: #ffffff;

  box-shadow: 0 6px 20px rgba(0, 33, 71, 0.3);

}



.btn-gold {

  background: var(--gold);

  color: #ffffff;

  box-shadow: 0 4px 14px rgba(212, 155, 19, 0.3);

}

.btn-gold:hover {

  background: var(--gold-hover);

  color: #ffffff;

  box-shadow: 0 6px 20px rgba(212, 155, 19, 0.4);

}



.btn-outline-primary {

  border-color: var(--primary);

  color: var(--primary);

  background: transparent;

}

.btn-outline-primary:hover {

  background: var(--primary);

  color: #ffffff;

}



.btn-outline-white {

  border-color: rgba(255, 255, 255, 0.7);

  color: #ffffff;

  background: transparent;

}

.btn-outline-white:hover {

  background: #ffffff;

  color: var(--primary);

  border-color: #ffffff;

}



.btn-sm {

  padding: 8px 18px;

  font-size: 0.8125rem;

}



.btn-lg {

  padding: 14px 30px;

  font-size: 0.95rem;

}



/* =========================================================

   TOPBAR UTILITY (Desktop Only)

   ========================================================= */

.topbar {

  background: var(--primary-dark);

  color: #cbd5e1;

  font-size: 0.8125rem;

  padding: 8px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}



@media (max-width: 991px) {

  .topbar {

    display: none !important;

  }

}



.topbar-inner {

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.topbar-left, .topbar-right {

  display: flex;

  align-items: center;

  gap: 22px;

}



.topbar-item {

  display: inline-flex;

  align-items: center;

  gap: 6px;

}



.topbar-item a:hover {

  color: var(--gold);

}



.topbar-gold {

  color: var(--gold) !important;

  font-weight: 700;

}



/* =========================================================

   MAIN HEADER & NAVIGATION (EQUAL SPACE DISTRIBUTION & BALANCED WINGS)

   ========================================================= */

.site-header {

  position: sticky;

  top: 0;

  left: 0;

  right: 0;

  z-index: 1000;

  background: rgba(255, 255, 255, 0.98);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--surface-border);

  box-shadow: var(--shadow-sm);

  transition: all 0.25s ease;

}



.site-header .wrap {

  max-width: 1400px;

  padding-left: 28px;

  padding-right: 28px;

}



.header-inner {

  display: flex;

  align-items: center;

  justify-content: space-between;

  min-height: 90px;

  padding: 8px 0;

  gap: 16px;

}



/* Symmetrical Left Wing (JISIP brand) */

.brand {

  flex: 0 0 auto;

  display: flex;

  align-items: center;

  justify-content: flex-start;

  min-width: 0;

}



/* Centered Navigation */

.site-header nav[aria-label="Primary Navigation"] {

  flex: 1 1 auto;

  display: flex;

  justify-content: center;

}



/* Both logos equal height and balanced vertical alignment */

.brand-logo-img,

.header-group-logo-img {

  height: 60px;

  width: auto;

  object-fit: contain;

  transition: transform 0.2s ease;

}



.brand-logo-img {

  max-width: 250px;

}



.brand:hover .brand-logo-img {

  transform: scale(1.02);

}



.main-nav {

  display: flex;

  align-items: center;

  gap: 4px; justify-content: center;

}



@media (max-width: 1140px) {

  .main-nav {

    display: none;

  }

}



.nav-item {

  position: relative;

}



.nav-link {

  display: inline-flex;

  align-items: center;

  gap: 4px;

  padding: 8px 10px;

  font-size: 0.875rem;

  font-weight: 600;

  color: var(--primary);

  border-radius: var(--radius-sm);

  transition: all 0.18s ease;

  white-space: nowrap;

}



.nav-link:hover, .nav-link.is-active {

  color: var(--gold);

  background: var(--primary-50);

}



.nav-link .caret {

  transition: transform 0.2s ease;

}

.nav-item:hover > .nav-link .caret {

  transform: rotate(180deg);

}



.submenu {

  position: absolute;

  top: 100%;

  left: 0;

  min-width: 250px;

  background: #ffffff;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-hover);

  border: 1px solid var(--surface-border);

  padding: 10px 0;

  opacity: 0;

  visibility: hidden;

  transform: translateY(8px);

  transition: all 0.2s ease;

  z-index: 1020;

  pointer-events: none;

}



.nav-item:hover > .submenu {

  opacity: 1;

  visibility: visible;

  transform: translateY(0);

  pointer-events: auto;

}



.submenu li a {

  display: block;

  padding: 9px 20px;

  font-size: 0.88rem;

  font-weight: 500;

  color: var(--text-muted);

}



.submenu li a:hover {

  color: var(--primary);

  background: var(--primary-50);

  padding-left: 24px;

}



/* Symmetrical Right Wing (Apply Now + Mother Organization JIS Group) */

.header-actions {

  flex: 0 0 auto;

  display: flex;

  align-items: center;

  justify-content: flex-end;

  gap: 14px;

  min-width: 0;

}



/* JIS Group Mother Organization branding in header */

.header-group-divider {

  width: 1px;

  height: 38px;

  background: rgba(0, 33, 71, 0.12);

  margin: 0 4px;

  flex-shrink: 0;

}



.header-group-brand {

  display: inline-flex;

  align-items: center;

  gap: 9px;

  text-decoration: none;

  padding: 2px 2px;

  border-radius: var(--radius-sm);

  transition: transform 0.2s ease, opacity 0.2s ease;

  flex-shrink: 0;

}



.header-group-brand:hover {

  transform: translateY(-1px);

}



.header-group-text {

  display: flex;

  flex-direction: column;

  text-align: right;

  line-height: 1.15;

}



.header-group-kicker {

  font-size: 0.64rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.05em;

  color: var(--gold-dark, #b48316);

}



.header-group-sub {

  font-size: 0.74rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.03em;

  color: var(--primary);

}



.header-group-logo-img {

  max-width: 60px;

}



.header-group-brand:hover .header-group-logo-img {

  transform: scale(1.04);

}



/* Responsive Scaling: Keep both logos and wings strictly equal */

@media (max-width: 1280px) {

  .site-header .wrap {

    padding-left: 24px;

    padding-right: 24px;

  }

  .brand-logo-img,

  .header-group-logo-img {

    height: 52px;

  }

  .brand-logo-img {

    max-width: 210px;

  }

  .header-group-logo-img {

    max-width: 52px;

  }

  .header-group-text {

    display: none;

  }

}



@media (max-width: 1140px) {

  .brand {

    flex: 0 0 auto;

  }

  .header-actions {

    flex: 0 0 auto;

    gap: 12px;

  }

  .brand-logo-img,

  .header-group-logo-img {

    height: 48px;

  }

  .brand-logo-img {

    max-width: 195px;

  }

  .header-group-logo-img {

    max-width: 48px;

  }

}



@media (max-width: 991px) {

  .site-header .wrap {

    padding-left: 20px;

    padding-right: 20px;

  }

  .header-inner {

    min-height: 74px;

    padding: 6px 0;

  }

  .header-actions .btn-gold {

    display: none !important;

  }

  .header-group-divider {

    display: none;

  }

}



@media (max-width: 768px) {

  .site-header .wrap {

    padding-left: 16px;

    padding-right: 16px;

  }

  .brand-logo-img,

  .header-group-logo-img {

    height: 42px;

  }

  .brand-logo-img {

    max-width: 175px;

  }

  .header-group-logo-img {

    max-width: 42px;

  }

}



@media (max-width: 480px) {

  .brand-logo-img,

  .header-group-logo-img {

    height: 38px;

  }

  .brand-logo-img {

    max-width: 155px;

  }

  .header-group-logo-img {

    max-width: 38px;

  }

}



.hamburger-btn {

  display: none;

  align-items: center;

  justify-content: center;

  width: 42px;

  height: 42px;

  border-radius: var(--radius-sm);

  background: var(--primary-50);

  color: var(--primary);

  transition: background 0.2s;

}



.hamburger-btn:hover {

  background: var(--primary-100);

}



@media (max-width: 1140px) {

  .hamburger-btn {

    display: inline-flex;

  }

}



/* =========================================================

   ACCESSIBLE MOBILE OFFCANVAS DRAWER (MIRRORING GNIPST)

   ========================================================= */

.offcanvas-overlay {

  position: fixed;

  inset: 0;

  background: rgba(0, 18, 40, 0.72);

  backdrop-filter: blur(4px);

  -webkit-backdrop-filter: blur(4px);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition: opacity 0.3s ease, visibility 0.3s ease;

  z-index: 1900;

}



body.nav-open .offcanvas-overlay {

  opacity: 1;

  visibility: visible;

  pointer-events: auto;

}



.offcanvas {

  position: fixed;

  top: 0;

  right: 0;

  height: 100%;

  width: min(90vw, 375px);

  background: linear-gradient(180deg, #001228 0%, #001f42 100%);

  color: #ffffff;

  z-index: 2000;

  transform: translateX(100%);

  visibility: hidden;

  pointer-events: none;

  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;

  display: flex;

  flex-direction: column;

  box-shadow: -12px 0 45px rgba(0, 0, 0, 0.45);

}



body.nav-open .offcanvas {

  transform: translateX(0);

  visibility: visible;

  pointer-events: auto;

}



.offcanvas-head {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  padding: 16px 20px;

  background: rgba(0, 12, 28, 0.95);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  position: relative;

}



.offcanvas-brand-card {

  display: flex;

  align-items: center;

  background: #ffffff;

  padding: 7px 14px;

  border-radius: 10px;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);

  border: 1px solid rgba(212, 155, 19, 0.25);

  transition: transform 0.2s ease;

}



.offcanvas-brand-card:hover {

  transform: scale(1.02);

}



.offcanvas-brand-link {

  display: flex;

  align-items: center;

}



.offcanvas-logo-img {

  height: 52px;

  max-width: 220px;

  width: auto;

  object-fit: contain;

  display: block;

}



.offcanvas-close-btn {

  width: 40px;

  height: 40px;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.18);

  background: rgba(255, 255, 255, 0.08);

  color: #f1f5f9;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  flex-shrink: 0;

  transition: all 0.22s ease;

}



.offcanvas-close-btn:hover {

  background: #dc2626;

  border-color: #dc2626;

  color: #ffffff;

  transform: rotate(90deg);

  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);

}



.offcanvas-close-btn:focus-visible {

  outline: 2px solid var(--gold);

  outline-offset: 2px;

}



/* Offcanvas Integrated Topbar Services */

.offcanvas-quick-services {

  padding: 16px 20px;

  background: rgba(255, 255, 255, 0.04);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}



.offcanvas-contact-item {

  display: flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 8px;

  font-size: 0.8125rem;

  color: #cbd5e1;

}



.offcanvas-contact-item a {

  color: #cbd5e1;

}

.offcanvas-contact-item a:hover {

  color: var(--gold);

}



.offcanvas-service-actions {

  display: flex;

  gap: 8px;

  margin-top: 12px;

}



.offcanvas-service-actions .btn {

  flex: 1;

  padding: 8px 10px;

  font-size: 0.78rem;

  border-radius: var(--radius-sm);

}



.offcanvas-body {

  flex: 1;

  overflow-y: auto;

  padding: 12px 16px 30px;

}



.offcanvas-nav li {

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}



.offcanvas-nav > li > a,

.accordion-toggle {

  display: flex;

  align-items: center;

  justify-content: space-between;

  width: 100%;

  padding: 14px 8px;

  font-size: 0.95rem;

  font-weight: 600;

  color: #ffffff;

  background: transparent;

  border: none;

  cursor: pointer;

  font-family: inherit;

  border-radius: var(--radius-sm);

  transition: all 0.15s ease;

  text-align: left;

}



.offcanvas-nav > li > a:hover,

.accordion-toggle:hover {

  color: var(--gold);

  background: rgba(255, 255, 255, 0.06);

}



.accordion-toggle svg {

  opacity: 0.7;

  transition: transform 0.24s ease;

}



.accordion-toggle[aria-expanded="true"] svg {

  transform: rotate(180deg);

}



.accordion-panel {

  max-height: 0;

  overflow: hidden;

  transition: max-height 0.28s ease;

  background: rgba(0, 0, 0, 0.2);

  border-radius: var(--radius-sm);

}



.accordion-panel ul {

  padding: 6px 8px 10px;

}



.accordion-panel a {

  display: block;

  padding: 9px 12px;

  font-size: 0.88rem;

  font-weight: 500;

  color: #cbd5e1;

  border-radius: 4px;

}



.accordion-panel a:hover {

  color: #ffffff;

  background: rgba(255, 255, 255, 0.08);

}



.offcanvas-group-badge {

  margin-top: 24px;

  padding: 12px 14px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: var(--radius-md);

  transition: background 0.2s ease;

}



.offcanvas-group-badge:hover {

  background: rgba(255, 255, 255, 0.08);

}



.offcanvas-group-link {

  display: flex;

  align-items: center;

  gap: 12px;

  text-decoration: none;

}



.offcanvas-group-logo {

  height: 40px;

  width: auto;

  max-width: 40px;

  object-fit: contain;

  background: #ffffff;

  padding: 3px;

  border-radius: 6px;

  flex-shrink: 0;

}



.offcanvas-group-info {

  display: flex;

  flex-direction: column;

}



.offcanvas-group-kicker {

  font-size: 0.74rem;

  font-weight: 700;

  color: #f1f5f9;

  line-height: 1.25;

}



.offcanvas-group-sub {

  font-size: 0.7rem;

  color: var(--gold);

  font-weight: 600;

  letter-spacing: 0.02em;

}



/* =========================================================

   FOOTER CTA STRIP

   ========================================================= */

.footer-cta {

  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);

  color: #ffffff;

  padding: 56px 0;

  border-top: 3px solid var(--gold);

}



.footer-cta-inner {

  display: flex;

  align-items: center;

  justify-content: space-between;

  flex-wrap: wrap;

  gap: 24px;

}



@media (max-width: 768px) {

  .footer-cta-inner {

    flex-direction: column;

    align-items: flex-start;

  }

}



.footer-cta-text h2 {

  color: #ffffff;

  font-size: clamp(1.4rem, 2.5vw, 1.95rem);

  margin-bottom: 6px;

}



.footer-cta-text p {

  color: #cbd5e1;

  font-size: 0.95rem;

  margin-bottom: 0;

}



.footer-cta-actions {

  display: flex;

  gap: 12px;

  flex-wrap: wrap;

}



/* =========================================================

   MAIN SITE FOOTER

   ========================================================= */

.site-footer {

  background: #020c18;

  color: #94a3b8;

  padding: 64px 0 0;

  font-size: 0.88rem;

}



.footer-grid {

  display: grid;

  grid-template-columns: 2fr 1.1fr 1.1fr 1.8fr;

  gap: 40px;

  margin-bottom: 48px;

}



@media (max-width: 1024px) {

  .footer-grid {

    grid-template-columns: 1fr 1fr;

    gap: 32px;

  }

}



@media (max-width: 640px) {

  .footer-grid {

    grid-template-columns: 1fr;

    gap: 28px;

  }

}



.footer-col h4 {

  font-size: 1.05rem;

  color: #ffffff;

  margin-bottom: 18px;

  position: relative;

  padding-bottom: 10px;

}



.footer-col h4::after {

  content: '';

  position: absolute;

  bottom: 0;

  left: 0;

  width: 28px;

  height: 2px;

  background: var(--gold);

}



.footer-links li {

  margin-bottom: 10px;

}



.footer-links a {

  color: #cbd5e1;

}

.footer-links a:hover {

  color: var(--gold);

  padding-left: 4px;

}



.footer-contact-item {

  display: flex;

  gap: 10px;

  margin-bottom: 12px;

  color: #cbd5e1;

}



.footer-contact-item svg {

  color: var(--gold);

  flex-shrink: 0;

  margin-top: 3px;

}



.footer-bottom {

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  padding: 22px 0;

  font-size: 0.8125rem;

}



.footer-bottom-inner {

  display: flex;

  align-items: center;

  justify-content: space-between;

  flex-wrap: wrap;

  gap: 14px;

}



.footer-bottom-links {

  display: flex;

  gap: 20px;

}



.footer-bottom-links a:hover {

  color: var(--gold);

}



/* Back to Top */

.back-to-top {

  position: fixed;

  bottom: 24px;

  right: 24px;

  width: 44px;

  height: 44px;

  border-radius: 50%;

  background: var(--primary);

  color: #ffffff;

  display: flex;

  align-items: center;

  justify-content: center;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);

  border: 1px solid rgba(255, 255, 255, 0.2);

  opacity: 0;

  visibility: hidden;

  transition: all 0.25s ease;

  z-index: 999;

}



.back-to-top.is-visible {

  opacity: 1;

  visibility: visible;

}



.back-to-top:hover {

  background: var(--gold);

  transform: translateY(-3px);

}



/* Dropdown sub-headings & dividers */

.submenu-divider {

  height: 1px;

  background: var(--surface-border);

  margin: 6px 0;

  list-style: none;

}



.submenu-heading {

  padding: 6px 20px 2px;

  font-size: 0.72rem;

  font-weight: 800;

  text-transform: uppercase;

  color: var(--gold);

  letter-spacing: 0.05em;

  list-style: none;

}



/* =========================================================
   HOMEPAGE RECOGNITION & APPROVALS (SIDE-BY-SIDE COLUMNS)
   ========================================================= */
.approvals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
  margin: 0 auto;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 640px) {
  .approvals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* ============ ADMISSION COUNSELLING 2026 MODAL ============ */
.admission-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 14, 28, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  transition: opacity 0.25s ease;
  animation: modalOverlayFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admission-modal-overlay.is-closing {
  opacity: 0;
  pointer-events: none;
}

.admission-modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  max-width: 460px;
  width: 100%;
  max-height: 94vh;
  overflow: hidden;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  animation: modalPopupZoom 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admission-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 33, 71, 0.88);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.65);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.admission-modal-close:hover {
  background: var(--gold, #ffb300);
  color: var(--primary, #002147);
  transform: scale(1.08) rotate(90deg);
  border-color: #ffffff;
}

.admission-modal-link {
  display: block;
  overflow: hidden;
  background: #f8fafc;
  text-align: center;
  line-height: 0;
}

.admission-modal-img {
  width: 100%;
  height: auto;
  max-height: calc(86vh - 65px);
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.admission-modal-link:hover .admission-modal-img {
  transform: scale(1.015);
}

.admission-modal-footer {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 33, 71, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admission-modal-footer .btn-modal-apply {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 20px;
  box-shadow: 0 4px 14px rgba(230, 161, 0, 0.35);
}

@keyframes modalOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPopupZoom {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

body.modal-open {
  overflow: hidden;
}
