/* ===== CSS Custom Properties ===== */
:root {
  --primary: #1A3C8F;
  --primary-light: #2E56C0;
  --primary-dark: #0C1F52;
  --secondary: #01a8ec; /* #CE2029;*/
  --secondary-light: #2bc2ff; /* #E4444B;*/
  --secondary-dark: #0487bd; /* #A21219;*/
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --danger: #dc2626;
  --success: #16a34a;
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --transition: 0.25s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== Typography ===== */
h1,h2,h3,h4,h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p { color: var(--gray-600); line-height: 1.7; }

/* ===== Utilities ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-white { color: var(--white); }
.bg-primary { background: var(--primary); }
.bg-light { background: var(--gray-50); }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; transition: var(--transition); cursor: pointer; }
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-primary:hover { background: var(--secondary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-danger { background: var(--danger); color: var(--white); border-radius: 8px; }
.btn-danger:hover { opacity: 0.85; }
.btn-success { background: var(--success); color: var(--white); border-radius: 8px; }

/* ===== Section Header ===== */
.section-label { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.section-label span { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }
.section-label::before { content: ''; display: inline-block; width: 2rem; height: 2px; background: var(--secondary); }
.section-title { font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 1rem; }
.section-divider { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-200); }

/* ===== Cards ===== */
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: none; overflow: hidden; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body { padding: 1.25rem; }

/* ===== Badge ===== */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.65rem; border-radius: 6px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.badge-primary { background: rgba(26,60,143,0.1); color: var(--primary); }
.badge-secondary { background: rgba(206,32,41,0.15); color: var(--secondary-dark); }
.badge-danger { background: rgba(220,38,38,0.1); color: var(--danger); }
.badge-success { background: rgba(22,163,74,0.1); color: var(--success); }

/* ===== Top Bar ===== */
.top-bar { background: var(--primary-dark); color: var(--gray-200); padding: 0.4rem 0; font-size: 0.82rem; }
.top-bar .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.top-bar a { color: var(--gray-200); transition: color var(--transition); }
.top-bar a:hover { color: var(--secondary); }
.top-bar-phone { display: flex; align-items: center; gap: 0.4rem; justify-self: start; }
.top-bar .top-bar-apply { justify-self: center; }
.top-bar .btn-sm { padding: 0.25rem 1.1rem; font-size: 0.78rem; }
.top-bar-login { display: inline-flex; align-items: center; gap: 0.4rem; justify-self: end; font-weight: 600; padding: 0.25rem 0.9rem; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; transition: var(--transition); }
.top-bar-login:hover { background: var(--secondary); border-color: var(--secondary); color: var(--primary-dark) !important; }
.top-bar-admin { cursor: pointer; }
@media (max-width: 600px) {
  .top-bar { font-size: 0.72rem; }
  .top-bar .container { gap: 0.4rem; }
  .top-bar-phone { font-size: 0.72rem; }
  .top-bar .btn-sm { padding: 0.2rem 0.7rem; font-size: 0.68rem; }
  .top-bar-login { padding: 0.2rem 0.55rem; }
  .top-bar-login svg { display: none; }
}

/* ===== News Ticker Bar ===== */
.news-ticker-bar { display: flex; align-items: stretch; height: 32px; background: linear-gradient(90deg, var(--secondary-dark), var(--secondary)); color: #fff; overflow: hidden; }
.ticker-icon, .ticker-chevron { display: flex; align-items: center; justify-content: center; width: 36px; flex-shrink: 0; background: rgba(0,0,0,0.28); color: var(--white); }
.ticker-chevron { transition: background var(--transition); }
.ticker-chevron:hover { background: rgba(0,0,0,0.42); }
.ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.notice-ticker { white-space: nowrap; animation: ticker 28s linear infinite; display: inline-block; font-weight: 600; font-size: 0.78rem; }
.notice-ticker span { margin-right: 3rem; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== Header / Navbar ===== */
.site-header { background: rgba(255,255,255,0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 16px rgba(0,0,0,0.08); border-bottom: 3px solid var(--secondary); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.logo-icon { width: 58px; height: 58px; /* background: linear-gradient(145deg, var(--primary-light), var(--primary-dark)); border-radius: 14px; border-bottom: 3px solid var(--secondary); */ display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 900; font-size: 1.6rem; flex-shrink: 0; }
.logo-text .school-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.9rem; color: var(--primary); line-height: 1.15; white-space: nowrap; transform:scale(1,1.2); }
.logo-text .school-tag { font-size: 1.2rem; color:#161E2F; text-transform: uppercase; letter-spacing: 0.44em; padding-left: 2px; font: Arial; margin-top:-8px; }
.logo-text .school-sub {padding-left:3px;  font-size: 0.82rem; color:var(--gray-600); text-transform: uppercase; letter-spacing: 0.43em; margin-top:-8px; }
@media (max-width: 992px) { .logo-text .school-name { font-size: 1.45rem; } .logo-icon { width: 50px; height: 50px; font-size: 1.4rem; } .logo-text .school-tag { font-size: 0.9rem; letter-spacing: 0.44em; margin-top: -6px; }
.logo-text .school-sub {font-size: 0.62rem;margin-top: -6px; } }
@media (max-width: 600px) { .logo-text .school-name { font-size: 1.1rem; } .logo-text .school-sub { font-size: 0.68rem; } .logo-icon { width: 42px; height: 42px; font-size: 1.15rem; } 
 .logo-text .school-tag { font-size: 0.9rem; letter-spacing: 0.22em; margin-top: -6px; }
.logo-text .school-sub {font-size: 0.6rem;letter-spacing: 0.23em;margin-top: -6px; }
}
.main-nav { display: flex; align-items: center; gap: 0.35rem; }
.main-nav > a, .nav-dropdown-toggle { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.85rem; font-size: 0.9rem; font-weight: 600; color: var(--gray-800); letter-spacing: 0.01em; transition: color var(--transition); white-space: nowrap; }
.main-nav > a::after, .nav-dropdown-toggle::after { content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.35rem; height: 2px; border-radius: 2px; background: var(--secondary); transform: scaleX(0); transform-origin: center; transition: transform 0.28s ease; }
.main-nav > a:hover, .nav-dropdown:hover > .nav-dropdown-toggle, .main-nav > a.active, .nav-dropdown-toggle.active { color: var(--primary); }
.main-nav > a:hover::after, .nav-dropdown:hover > .nav-dropdown-toggle::after, .main-nav > a.active::after, .nav-dropdown-toggle.active::after { transform: scaleX(1); }
/* Dropdowns */
.nav-dropdown { position: relative; }
.nav-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--transition); margin-top: -3px; opacity: 0.75; }
.nav-dropdown:hover .nav-caret, .nav-dropdown:focus-within .nav-caret, .nav-dropdown.open .nav-caret { transform: rotate(-135deg); margin-top: 2px; }
.nav-dropdown-menu { position: absolute; top: calc(100% - 2px); left: 50%; transform: translate(-50%, 8px); min-width: 190px; background: var(--white); border: 1px solid var(--gray-100); box-shadow: 0 16px 40px rgba(0,0,0,0.14); border-radius: 12px; padding: 0.4rem; opacity: 0; visibility: hidden; transition: opacity 0.22s ease, transform 0.22s ease; z-index: 200; }
.nav-dropdown-menu::before { content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: var(--white); border-left: 1px solid var(--gray-100); border-top: 1px solid var(--gray-100); }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown-menu a { display: block; position: relative; padding: 0.6rem 0.85rem; border-radius: 8px; font-size: 0.88rem; font-weight: 500; color: var(--gray-800); white-space: nowrap; transition: var(--transition); }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active { background: rgba(26,60,143,0.08); color: var(--primary); }
.header-apply { display: none; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); }
.mobile-nav { display: none; background: var(--white); border-top: 1px solid var(--gray-200); padding: 1rem 0; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.6rem 1.5rem; font-weight: 500; color: var(--gray-800); border-bottom: 1px solid var(--gray-100); transition: var(--transition); }
.mobile-nav a:hover { background: var(--gray-50); color: var(--primary); }

/* ===== Auth / Login ===== */
.auth-card { max-width: 440px; margin: 0 auto; background: var(--white); border: 1px solid var(--gray-100); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.08); padding: 2.4rem; }
.auth-head { text-align: center; margin-bottom: 1.6rem; }
.auth-head h2 { margin-bottom: 0.35rem; }
.auth-head p { color: var(--gray-600); font-size: 0.9rem; }
.auth-msg { background: rgba(206,32,41,0.12); border: 1px solid rgba(206,32,41,0.35); color: var(--secondary-dark); padding: 0.8rem 1rem; border-radius: 10px; font-size: 0.88rem; margin-bottom: 1.2rem; }
.auth-msg a { color: var(--primary); font-weight: 600; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; font-size: 0.85rem; }
.auth-remember { display: flex; align-items: center; gap: 0.45rem; color: var(--gray-700); cursor: pointer; }
.auth-forgot { color: var(--primary); font-weight: 600; }
.auth-forgot:hover { color: var(--secondary-dark); }
.auth-foot { text-align: center; margin-top: 1.4rem; font-size: 0.9rem; color: var(--gray-600); }
.auth-foot a { color: var(--primary); font-weight: 600; }

/* ===== Hero Slider ===== */
.hero { position: relative; height: 560px; overflow: hidden; background: var(--primary-dark); }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity 0.7s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-content h1 { color: var(--white); margin-bottom: 1rem; }
.hero-content p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.1rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 10; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: var(--transition); }
.hero-dots button.active { width: 24px; border-radius: 4px; background: var(--secondary); }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.15); border: none; color: var(--white); width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.hero-nav:hover { background: rgba(255,255,255,0.3); }
.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }

/* ===== Stats ===== */
.stats-bar { background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 70%, var(--primary-light) 100%); border-top: 4px solid var(--secondary); padding: 2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.stat-item { text-align: center; border-right: 1px solid rgba(255,255,255,0.15); padding-right: 1.5rem; }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: #fff; text-shadow: 0 3px 0 rgba(206,32,41,0.55); }
.stat-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.75); margin-top: 0.25rem; }

/* ===== Notices Grid ===== */
.notice-item { padding: 1rem 1.25rem; border-left: 3px solid var(--gray-200); margin-bottom: 1rem; background: var(--white); border-radius: 0 8px 8px 0; box-shadow: var(--shadow-sm); transition: var(--transition); }
.notice-item:hover { border-left-color: var(--primary); }
.notice-item.important { border-left-color: var(--secondary); }
.notice-title { font-weight: 600; color: var(--gray-900); font-size: 0.95rem; margin-bottom: 0.25rem; }
.notice-meta { font-size: 0.78rem; color: var(--gray-400); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* ===== Events ===== */
.event-card { display: flex; gap: 1rem; padding: 1rem; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin-bottom: 0.75rem; transition: var(--transition); }
.event-card:hover { box-shadow: var(--shadow); }
.event-date-box { flex-shrink: 0; width: 52px; height: 56px; background: var(--primary); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--white); }
.event-date-box .day { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.event-date-box .mon { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }
.event-info h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.event-info .meta { font-size: 0.8rem; color: var(--gray-400); }

/* ===== Gallery Section ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.gallery-card { border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(26,60,143,0.12); box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer; }
.gallery-card:hover { border-color: rgba(26,60,143,0.35); box-shadow: var(--shadow); transform: translateY(-2px); }
.gallery-img-wrap { height: 200px; overflow: hidden; position: relative; }
.gallery-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-card:hover .gallery-img-wrap img { transform: scale(1.05); }
.gallery-caption { padding: 0.85rem 1rem; background: var(--white); }
.gallery-caption h4 { font-size: 0.88rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-caption .gc-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 0.5rem; border-top: 1px solid var(--gray-100); }
.gc-tag { display: flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; color: var(--primary); }
.gc-date { font-size: 0.72rem; color: var(--gray-400); }

/* ===== Gallery Page Tabs ===== */
.tab-bar { display: flex; gap: 0.75rem; margin-bottom: 2rem; }
.tab-btn { padding: 0.55rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: 2px solid var(--gray-200); color: var(--gray-600); transition: var(--transition); cursor: pointer; background: var(--white); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.gallery-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }

/* ===== Video Card ===== */
.video-card { border-radius: var(--radius); overflow: hidden; background: var(--gray-900); border: 2px solid rgba(206,32,41,0.25); box-shadow: var(--shadow); transition: var(--transition); }
.video-card:hover { border-color: rgba(206,32,41,0.5); }
.video-thumb { position: relative; cursor: pointer; }
.video-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: 0.85; transition: opacity var(--transition); }
.video-thumb:hover img { opacity: 0.7; }
.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play-btn svg { width: 56px; height: 56px; filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5)); transition: transform var(--transition); }
.video-thumb:hover .play-btn svg { transform: scale(1.1); }
.video-info { padding: 0.85rem 1rem; }
.video-info h4 { color: var(--white); font-size: 0.92rem; }
.video-info p { color: var(--gray-400); font-size: 0.8rem; margin-top: 0.25rem; }

/* ===== Slider (gallery + video) ===== */
.gallery-card { display: block; text-decoration: none; }
.slider-wrap { position: relative; }
.slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.slider-dot { width: 8px; height: 8px; border-radius: 50px; background: var(--gray-300); border: none; cursor: pointer; padding: 0; transition: var(--transition); }
.slider-dot:hover { background: rgba(26,60,143,0.5); }
.slider-dot.active { width: 24px; background: var(--primary); }
.slider-dot-gold { background: rgba(255,255,255,0.3); }
.slider-dot-gold:hover { background: rgba(255,255,255,0.6); }
.slider-dot-gold.active { background: var(--secondary); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: 2px solid rgba(26,60,143,0.2); color: var(--primary); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: var(--transition); z-index: 5; }
.slider-arrow svg { width: 20px; height: 20px; }
.slider-arrow:hover { background: var(--primary); color: var(--white); box-shadow: var(--shadow); }
.slider-arrow.slider-prev { left: -20px; }
.slider-arrow.slider-next { right: -20px; }
.slider-arrow-dark { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: var(--white); }
.slider-arrow-dark:hover { background: rgba(255,255,255,0.25); color: var(--white); }

/* ===== Carousel (Photo Gallery + Featured Videos) ===== */
.carousel { position: relative; padding: 0 0.5rem; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.55s cubic-bezier(0.22,1,0.36,1); will-change: transform; }
.carousel-track > .slide { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 0.625rem; box-sizing: border-box; }
@media (max-width: 992px) { .carousel-track > .slide { flex-basis: 50%; max-width: 50%; } }
@media (max-width: 768px) { .carousel-track > .slide { flex-basis: 100%; max-width: 100%; } }
.carousel .slider-arrow.slider-prev { left: -18px; }
.carousel .slider-arrow.slider-next { right: -18px; }
@media (max-width: 900px) { .carousel .slider-arrow.slider-prev { left: 2px; } .carousel .slider-arrow.slider-next { right: 2px; } }

/* ===== Featured Videos Section ===== */
.video-section { background: var(--gray-900); position: relative; overflow: hidden; }
.video-section::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 30px 30px; }
.video-section .container { position: relative; z-index: 1; }
.video-divider { border-bottom-color: rgba(255,255,255,0.12); }
.video-label span { color: var(--secondary); }
.video-slider { position: relative; max-width: 760px; margin: 0 auto; }
.video-slider .video-card { background: rgba(255,255,255,0.05); border: 2px solid rgba(206,32,41,0.3); box-shadow: 0 4px 32px rgba(0,0,0,0.4); }
.video-frame { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-thumb-btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: none; cursor: pointer; background: #000; }
.video-thumb-btn img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--transition); }
.video-thumb-btn:hover img { opacity: 0.85; }
.video-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); }
.video-noimg svg { width: 56px; height: 56px; }
.video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.15); transition: var(--transition); }
.video-thumb-btn:hover .video-overlay { background: rgba(0,0,0,0.05); }
.video-play-circle { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.4); transition: transform var(--transition); }
.video-thumb-btn:hover .video-play-circle { transform: scale(1.1); }
.video-play-circle svg { width: 40px; height: 40px; color: var(--primary); }
.video-slider .video-info { padding: 1.1rem 1.25rem; }
.video-slider .video-info h3 { color: var(--white); font-size: 1.15rem; line-height: 1.35; font-family: var(--font-heading); }
.video-slider .video-info p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-top: 0.4rem; }
.video-info-foot { display: flex; justify-content: flex-end; margin-top: 0.9rem; }
.video-more { font-size: 0.8rem; font-weight: 600; color: var(--secondary); text-decoration: none; }
.video-more:hover { color: #A21219; }

/* ===== Buttons: ghost + outline-light ===== */
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: rgba(26,60,143,0.06); }
.btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,0.3); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--gray-900); }

/* ===== Page Hero ===== */
.page-hero { background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%); border-bottom: 4px solid var(--secondary); padding: 4rem 0; text-align: center; color: var(--white); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.page-hero-icon { width: 64px; height: 64px; background: rgba(255,255,255,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; position: relative; }
.page-hero-icon svg { color: var(--secondary); }
.page-hero h1 { font-size: clamp(2rem,4vw,3rem); margin-bottom: 0.75rem; position: relative; color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 500px; margin: 0 auto; position: relative; }

/* ===== Student Corner ===== */
.sc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.sc-card { background: var(--white); border: 1px solid var(--gray-200); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition); }
.sc-card:hover { box-shadow: var(--shadow-lg); }
.sc-card h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; color: var(--gray-900); margin-bottom: 0.85rem; }
.sc-card > p { font-size: 0.88rem; color: var(--gray-600); margin-bottom: 1rem; }
.sc-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sc-card ul a { font-size: 0.88rem; color: var(--primary); transition: var(--transition); }
.sc-card ul a:hover { text-decoration: underline; }
.sc-note { background: var(--gray-50); padding: 0.75rem; border-radius: 8px; font-size: 0.85rem; color: var(--gray-500); font-style: italic; }
.sc-schedule li { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); padding-bottom: 0.35rem; }
@media (max-width: 992px) { .sc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sc-grid { grid-template-columns: 1fr; } }

/* ===== Principal Section ===== */
.principal-card { display: flex; gap: 3rem; align-items: center; }
.principal-img { flex-shrink: 0; width: 280px; height: 320px; border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-lg); }
.principal-img img { width: 100%; height: 100%; object-fit: cover; }
.principal-img-placeholder { width: 100%; height: 100%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 5rem; color: rgba(255,255,255,0.3); }
.principal-badge { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; background: rgba(26,60,143,0.9); backdrop-filter: blur(8px); color: var(--white); padding: 0.75rem 1rem; border-radius: 10px; }
.principal-badge strong { display: block; font-size: 0.92rem; }
.principal-badge small { font-size: 0.76rem; opacity: 0.8; }
.principal-content blockquote { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.5; color: var(--primary); border-left: 4px solid var(--secondary); padding-left: 1.5rem; margin-bottom: 1.5rem; font-style: italic; }

/* ===== Staff Grid ===== */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.staff-card { text-align: center; padding: 1.5rem 1rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); transition: var(--transition); }
.staff-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.staff-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem; background: var(--primary); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.8rem; font-weight: 700; font-family: var(--font-heading); }
.staff-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.staff-role { font-size: 0.82rem; color: var(--secondary-dark); font-weight: 600; margin-bottom: 0.25rem; }
.staff-dept { font-size: 0.78rem; color: var(--gray-400); }

/* ===== Table ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th { background: var(--primary); color: var(--white); padding: 0.75rem 1rem; text-align: left; font-size: 0.85rem; font-weight: 600; }
table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; }
table tr:hover td { background: var(--gray-50); }

/* ===== Forms ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem; color: var(--gray-800); }
.form-group input,
.form-group textarea,
.form-group select { width: 100%; padding: 0.65rem 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 0.95rem; transition: border-color var(--transition); outline: none; background: var(--white); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Admission Form */
#apply { scroll-margin-top: 100px; }
.admission-form-wrap { max-width: 820px; margin: 0 auto; background: var(--white); border: 1px solid var(--gray-100); border-radius: 18px; box-shadow: 0 24px 60px rgba(15,23,42,0.10); overflow: hidden; }
.admission-form-header { background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 55%, #2563eb 100%); color: #fff; padding: 2.4rem 2.6rem; text-align: center; position: relative; }
.admission-form-header::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.18), transparent 45%); pointer-events: none; }
.admission-form-badge { display: inline-block; background: rgba(255,255,255,0.18); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 0.9rem; }
.admission-form-header h2 { color: #fff; margin: 0 0 0.4rem; font-size: 1.9rem; }
.admission-form-header p { color: rgba(255,255,255,0.88); margin: 0; font-size: 0.95rem; }
.admission-form-body { padding: 2.4rem; }
.form-section-title { font-size: 1.05rem; color: var(--primary); margin: 0.5rem 0 1.1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--gray-100); }
.form-section-title:not(:first-child) { margin-top: 2rem; }
.upload-hint { font-size: 0.82rem; color: var(--gray-600); margin: -0.4rem 0 1rem; }
.upload-group input[type="file"] { padding: 0.55rem; background: var(--gray-50); cursor: pointer; }
.upload-group input[type="file"]::file-selector-button { border: 0; background: var(--primary); color: #fff; padding: 0.5rem 0.9rem; border-radius: 6px; font-weight: 600; margin-right: 0.8rem; cursor: pointer; }
.upload-preview { display: block; margin-top: 0.7rem; max-height: 120px; max-width: 100%; border: 1px solid var(--gray-200); border-radius: 8px; padding: 4px; background: #fff; object-fit: contain; }
.admission-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--gray-700); margin: 0.5rem 0 1.4rem; cursor: pointer; }
.admission-consent input { margin-top: 0.2rem; flex-shrink: 0; }
.admission-banner { display: flex; align-items: flex-start; gap: 0.7rem; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.6rem; }
.admission-banner strong { display: block; margin-bottom: 0.2rem; }
@media (max-width: 600px) { .admission-form-header { padding: 1.8rem 1.4rem; } .admission-form-header h2 { font-size: 1.5rem; } .admission-form-body { padding: 1.5rem; } }
.alert { padding: 0.85rem 1.25rem; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 1rem; }
.alert-success { background: rgba(22,163,74,0.1); color: var(--success); border: 1px solid rgba(22,163,74,0.2); }
.alert-error { background: rgba(220,38,38,0.1); color: var(--danger); border: 1px solid rgba(220,38,38,0.2); }

/* ===== Fee Payment ===== */
.fee-table-wrap { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 2rem; }
.fee-table-wrap table th:first-child { background: var(--primary); }
.fee-highlight { color: var(--primary); font-weight: 700; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact-info-card { background: var(--primary); color: var(--white); padding: 2.5rem; border-radius: var(--radius-lg); }
.contact-info-card h3 { color: var(--white); margin-bottom: 1.5rem; }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-detail strong { color: var(--secondary); display: block; font-size: 0.8rem; margin-bottom: 0.2rem; }
.contact-detail span { font-size: 0.92rem; opacity: 0.9; }

/* ===== Downloads ===== */
.download-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin-bottom: 0.75rem; border-left: 3px solid var(--primary); transition: var(--transition); }
.download-item:hover { box-shadow: var(--shadow); }
.dl-icon { width: 44px; height: 44px; background: rgba(26,60,143,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dl-info { flex: 1; }
.dl-info strong { font-size: 0.95rem; display: block; }
.dl-info small { font-size: 0.78rem; color: var(--gray-400); }

/* ===== Footer ===== */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 1rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; font-family: var(--font-body); }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--secondary); }
.footer-bottom { text-align: center; padding: 1.25rem 0; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ===== About Page ===== */
.about-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mission-card { padding: 2rem; border-radius: var(--radius); border-top: 4px solid var(--secondary); background: var(--white); box-shadow: var(--shadow-sm); }
.mission-card h3 { margin-bottom: 0.75rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.value-card { text-align: center; padding: 1.75rem 1.25rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border-bottom: 3px solid var(--primary); }
.value-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.value-card h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.value-card p { font-size: 0.85rem; }

/* ===== Admission ===== */
.process-steps { counter-reset: step; }
.process-step { display: flex; gap: 1.5rem; margin-bottom: 2rem; position: relative; }
.process-step::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.process-step-content h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.process-step-content p { font-size: 0.88rem; }

/* ===== Admin Panel ===== */
.admin-body { font-family: var(--font-body); background: var(--gray-50); min-height: 100vh; }
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.admin-login-card { background: var(--white); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; }
.admin-login-card h2 { color: var(--primary); margin-bottom: 0.5rem; }
.admin-login-card p { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 2rem; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--primary-dark); color: var(--white); flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar-header { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-header h3 { color: var(--white); font-size: 1rem; }
.sidebar-header small { color: rgba(255,255,255,0.5); font-size: 0.75rem; }
.sidebar-nav { padding: 1rem 0; flex: 1; }
.sidebar-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1.25rem; color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: var(--transition); }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.1); color: var(--white); box-shadow: inset 3px 0 0 var(--secondary); }
.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.1); }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-topbar { background: var(--white); padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h2 { font-size: 1.15rem; color: var(--primary); }
.admin-content { flex: 1; padding: 1.5rem; overflow-y: auto; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; margin-bottom: 2rem; }
.admin-stat { background: var(--white); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 1rem; }
.admin-stat-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.admin-stat-icon svg { width: 26px; height: 26px; }
.admin-stat-num { font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1; }
.admin-stat-label { font-size: 0.78rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; }
.admin-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 1.5rem; }
.admin-card-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h3 { font-size: 1rem; color: var(--primary); }
.admin-card-body { padding: 1.25rem 1.5rem; }
.admin-form-actions { display: flex; gap: 0.75rem; justify-content: flex-end; padding-top: 1rem; border-top: 1px solid var(--gray-100); }

/* ===== Loading / Skeleton ===== */
.loading { text-align: center; padding: 3rem; color: var(--gray-400); }
.spinner { display: inline-block; width: 36px; height: 36px; border: 3px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-stat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .main-nav, .header-apply { display: none; }
  .menu-toggle { display: flex; }
  .hero { height: 420px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 1rem; }
  .principal-card { flex-direction: column; }
  .principal-img { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-mission-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.75rem; }
}

/* ===== Success Stories ===== */
.success-section { background: rgba(26,60,143,0.05); overflow: hidden; }
.section-head-center { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-label-center { justify-content: center; }
.section-label-center::before { content: ''; }
.section-label-center::after { content: ''; display: inline-block; width: 2rem; height: 2px; background: var(--secondary); }
.section-head-center h2 { margin: 0.25rem 0 0.75rem; }
.section-sub { color: var(--gray-500); font-size: 1rem; }
.story-slider { position: relative; max-width: 860px; margin: 0 auto; }
.story-card { display: flex; background: var(--white); border-radius: 1rem; box-shadow: 0 20px 40px rgba(0,0,0,0.08); overflow: hidden; border: 1px solid var(--gray-100); }
.story-side { flex: 0 0 18rem; padding: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--white); }
.story-grad-blue { background: linear-gradient(135deg, #2563eb, var(--primary)); }
.story-grad-amber { background: linear-gradient(135deg, #E4444B, #A21219); }
.story-grad-green { background: linear-gradient(135deg, #16a34a, #0d9488); }
.story-avatar { width: 7rem; height: 7rem; border-radius: 50%; border: 4px solid rgba(255,255,255,0.4); overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.15); margin-bottom: 1rem; }
.story-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.story-side h3 { color: var(--white); font-size: 1.25rem; line-height: 1.2; margin: 0; }
.story-cls { color: rgba(255,255,255,0.85); font-size: 0.85rem; margin: 0.35rem 0 0; }
.story-badge { display: inline-block; margin-top: 0.75rem; background: rgba(255,255,255,0.2); color: var(--white); font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 999px; }
.story-body { flex: 1; padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.story-quote { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.story-quote-mark { font-size: 3rem; line-height: 1; color: var(--secondary); font-family: Georgia, serif; }
.story-quote p { color: var(--gray-700); font-size: 1.05rem; line-height: 1.6; font-style: italic; margin: 0.5rem 0 0; }
.story-achievement { margin-top: 1rem; background: rgba(26,60,143,0.05); border-left: 4px solid var(--primary); border-radius: 0 0.5rem 0.5rem 0; padding: 0.75rem 1rem; }
.story-ach-label { font-size: 0.85rem; font-weight: 700; color: var(--primary); margin: 0 0 0.15rem; }
.story-achievement p:last-child { font-size: 0.85rem; color: var(--gray-600); margin: 0; }
.story-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--white); border: 1px solid var(--gray-200); box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--primary); z-index: 2; transition: background 0.2s; }
.story-arrow:hover { background: var(--gray-50); }
.story-arrow svg { width: 1.15rem; height: 1.15rem; }
.story-prev { left: -1.25rem; }
.story-next { right: -1.25rem; }

/* ===== Fee Payment (redesigned) ===== */
.fee-info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.fee-info-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--gray-100); border-radius: 0.75rem; padding: 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.fee-info-icon { flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 0.75rem; background: var(--gray-50); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.fee-info-card h4 { font-size: 1rem; margin: 0 0 0.25rem; color: var(--gray-800); }
.fee-info-card p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }
.fee-struct-card { background: rgba(26,60,143,0.05); border: 1px solid rgba(26,60,143,0.2); border-radius: 0.75rem; padding: 1.5rem; margin-bottom: 2.5rem; }
.fee-struct-card h2 { font-size: 1.15rem; color: var(--primary); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.5rem; }
.fee-struct-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.fee-struct-item { background: var(--white); border: 1px solid rgba(26,60,143,0.1); border-radius: 0.75rem; padding: 1rem; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.fee-struct-item .fs-label { font-size: 0.72rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.35rem; }
.fee-struct-item .fs-amount { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 0; }
.fee-struct-item .fs-note { font-size: 0.72rem; color: var(--gray-400); margin: 0.25rem 0 0; }
.fee-struct-foot { font-size: 0.78rem; color: var(--gray-500); margin: 1rem 0 0; }
.fee-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap; }
.fee-section-head h2 { margin: 0; font-size: 1.5rem; }
.fee-banner { display: flex; align-items: center; gap: 0.75rem; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 0.75rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); font-weight: 500; }
.fee-form-card { border: 1px solid var(--gray-200); border-radius: 0.75rem; box-shadow: 0 6px 16px rgba(0,0,0,0.06); padding: 1.5rem; background: var(--white); }
.fee-form-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.fee-form-card-head h3 { margin: 0; font-size: 1.1rem; color: var(--gray-800); }
.fee-close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--gray-400); cursor: pointer; }
.fee-close:hover { color: var(--gray-600); }
.fee-form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.fee-form-grid .form-group { margin-bottom: 0; }
.fee-form-grid .col-span-2 { grid-column: 1 / -1; }
.fee-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-100); }
.fee-history-filter { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.fee-history-filter input { flex: 1; min-width: 200px; }
.fee-history-filter select { width: 12rem; }
.fee-empty { text-align: center; padding: 3rem 1rem; background: var(--gray-50); border: 1px dashed var(--gray-200); border-radius: 1rem; }
.fee-empty-icon { font-size: 2.5rem; margin-bottom: 0.5rem; opacity: 0.4; }
.fee-empty p { margin: 0.25rem 0; color: var(--gray-500); font-weight: 500; }
.fee-empty p.sub { font-size: 0.85rem; color: var(--gray-400); font-weight: 400; }
.fee-record { border: 1px solid var(--gray-100); border-radius: 0.75rem; padding: 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); background: var(--white); margin-bottom: 1rem; }
.fee-record-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fee-record-name { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.fee-record-name .name { font-weight: 700; color: var(--gray-900); }
.fee-record-name .cls { font-size: 0.72rem; background: rgba(26,60,143,0.1); color: var(--primary); padding: 0.1rem 0.5rem; border-radius: 0.35rem; font-weight: 600; }
.fee-record-name .roll { font-size: 0.78rem; color: var(--gray-500); }
.fee-record-meta { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.5rem 1.5rem; font-size: 0.85rem; color: var(--gray-600); }
.fee-record-meta .lbl { display: block; font-size: 0.68rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; }
.fee-record-remark { font-size: 0.78rem; color: var(--gray-400); margin: 0.5rem 0 0; }
.fee-record-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; flex-shrink: 0; }
.fee-status { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid; }
.fee-status-pending { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.fee-status-verified { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.fee-status-rejected { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.fee-record-date { font-size: 0.72rem; color: var(--gray-400); }
.fee-record-id { font-size: 0.72rem; color: var(--gray-300); font-family: monospace; }
@media (max-width: 768px) {
  .story-card { flex-direction: column; }
  .story-side { flex-basis: auto; }
  .story-prev { left: 0.25rem; }
  .story-next { right: 0.25rem; }
  .fee-info-grid { grid-template-columns: 1fr; }
  .fee-struct-grid { grid-template-columns: 1fr; }
  .fee-form-grid { grid-template-columns: 1fr; }
  .fee-record-meta { grid-template-columns: 1fr 1fr; }
}

/* ===== Radio pills (gender / BPL) ===== */
.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 1.1rem; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 0.92rem; color: var(--gray-800); cursor: pointer; background: var(--white); transition: var(--transition); }
.radio-pill:hover { border-color: var(--primary-light); }
.radio-pill input { accent-color: var(--primary); width: 16px; height: 16px; margin: 0; cursor: pointer; }
.radio-pill:has(input:checked) { border-color: var(--primary); background: rgba(26,60,143,0.06); font-weight: 600; }

/* ===== IFSC search ===== */
.ifsc-wrap { display: flex; gap: 0.5rem; }
.ifsc-wrap input { flex: 1; min-width: 0; }
.ifsc-search-btn { border-radius: 8px; white-space: nowrap; padding: 0.5rem 1rem; font-size: 0.88rem; }
.ifsc-result { margin-top: 0.5rem; font-size: 0.85rem; padding: 0.6rem 0.8rem; border-radius: 8px; background: var(--gray-50); border: 1px solid var(--gray-200); color: var(--gray-600); }
.ifsc-result.ifsc-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.ifsc-result.ifsc-error { background: #fef2f2; border-color: #fecaca; color: var(--danger); }

/* ===== Passport crop modal ===== */
.upload-preview-passport { width: 105px; height: 135px; object-fit: cover; border: 2px solid var(--primary); border-radius: 6px; }
.crop-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(15,32,64,0.7); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.crop-modal[hidden] { display: none; }
.crop-dialog { background: var(--white); border-radius: var(--radius); padding: 1.25rem; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); }
.crop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; }
.crop-head h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
.crop-close { font-size: 1.1rem; color: var(--gray-600); line-height: 1; padding: 0.25rem; }
.crop-hint { font-size: 0.82rem; margin-bottom: 0.75rem; }
.crop-stage { position: relative; width: 280px; height: 360px; margin: 0 auto; border-radius: 8px; overflow: hidden; touch-action: none; }
.crop-stage canvas { display: block; cursor: grab; }
.crop-stage canvas:active { cursor: grabbing; }
.crop-frame { position: absolute; inset: 0; border: 2px dashed rgba(206,32,41,0.95); border-radius: 6px; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35); }
.crop-zoom { display: flex; align-items: center; gap: 0.6rem; margin: 0.9rem 0; font-size: 1.1rem; color: var(--gray-600); }
.crop-zoom input[type="range"] { flex: 1; accent-color: var(--primary); }
.crop-actions { display: flex; gap: 0.6rem; justify-content: flex-end; }
.crop-actions .btn { border-radius: 8px; }
@media (max-width: 420px) { .crop-stage { width: 240px; height: 308px; } .crop-stage canvas { width: 240px; height: 308px; } }

/* ===== Footer social links ===== */
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-social a svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.85); }
.footer-social a:hover { transform: translateY(-2px); }
.footer-social a.fs-fb:hover { background: #1877F2; }
.footer-social a.fs-yt:hover { background: #FF0000; }
.footer-social a.fs-tw:hover { background: #000; }
.footer-social a.fs-ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

/* hidden attribute must always win (img reset sets display:block) */
[hidden] { display: none !important; }

/* ===== Video gallery: embedded player cards ===== */
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #0d1b3e; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Mobile layout adjustments (mobile view only) ===== */
@media (max-width: 768px) {
  /* One column: video gallery (1 video per row), Latest Notices above Upcoming Events,
     Academic CBSE / WBBSE stacked, Admission Process above Key Dates */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  /* Learning Facilities: 2 per row */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* About Us — Our Story: image on top, full width; text below */
  .about-story-grid { gap: 1.5rem !important; }
  .about-story-img { order: -1; }
  .about-story-img img { width: 100%; display: block; }
}

/* ===== BMGM overrides (kept after base rules so they win) ===== */
.hero-content .badge-secondary { background: var(--secondary); color: #fff; }
.page-hero .badge-secondary { background: var(--secondary); color: #fff; }

/* ===== Admission Portal (Registration Form) ===== */
.admission-portal { padding: 2rem 0; background: #f1f5f9; min-height: 100vh; }
.portal-container { max-width: 1300px; margin: 0 auto; padding: 0 1rem; }
.portal-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 992px) { .portal-layout { grid-template-columns: 1fr; } }

/* Sidebar Widgets */
.portal-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.portal-widget { background: var(--white); border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.widget-steps { border-top: 4px solid var(--primary); }
.widget-header { padding: 0.75rem 1rem; font-weight: 700; font-size: 0.95rem; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 0.5rem; }
.widget-header-clean { background: transparent; color: var(--gray-900); }

.widget-body { padding: 1rem; }
.step-list { display: flex; flex-direction: column; gap: 0.5rem; }
.step-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem; border-radius: 6px; font-size: 0.85rem; font-weight: 600; color: #64748b; background: transparent; transition: 0.2s; }
.step-item.active { background: #eff6ff; color: var(--primary); }
.step-item.completed { color: #16a34a; }
.step-icon { width: 24px; height: 24px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #64748b; }
.step-item.active .step-icon { background: var(--primary); color: #fff; }
.step-item.completed .step-icon { background: #16a34a; color: #fff; }

.date-row { display: flex; flex-direction: column; margin-bottom: 0.85rem; }
.date-row:last-child { margin-bottom: 0; }
.date-title { font-size: 0.75rem; color: #64748b; font-weight: 600; text-transform: uppercase; margin-bottom: 0.2rem; }
.date-val { font-size: 0.9rem; font-weight: 700; color: var(--gray-900); }

.help-desc { font-size: 0.8rem; color: #64748b; margin-bottom: 1rem; line-height: 1.5; }
.help-contact { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.5rem; }
.help-contact:last-child { margin-bottom: 0; }

/* Main Area */
.portal-main { background: var(--white); border: 1px solid #e2e8f0; border-top: 4px solid var(--primary); border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.portal-main-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; gap: 1rem; }
.pm-title-group { display: flex; align-items: center; gap: 0.75rem; }
.pm-title-group h2 { font-size: 1.2rem; margin: 0; font-family: var(--font-body); color: var(--gray-900); font-weight: 700; }
.pm-appid { background: #ecfdf5; border: 1px solid #a7f3d0; padding: 0.4rem 0.75rem; border-radius: 6px; display: flex; align-items: center; gap: 0.5rem; }
.appid-label { font-size: 0.75rem; color: #065f46; font-weight: 600; }
.appid-val { font-size: 0.85rem; color: #047857; font-weight: 700; }

.pm-mandatory { font-size: 0.75rem; color: var(--secondary); font-weight: 600; padding: 0.75rem 1.5rem 0; margin: 0; }
.req { color: var(--secondary); }

.portal-form { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }

.portal-section { border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; }
.portal-section[hidden] { display: none; }
.ps-header { background: var(--primary); color: #fff; padding: 0.6rem 1rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.ps-body { padding: 1.25rem; background: #fafaf9; }

.portal-section-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.portal-section-row.step-single { grid-template-columns: 1fr; }
@media (max-width: 768px) { .portal-section-row { grid-template-columns: 1fr; } }

.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.25rem; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.25rem; }
@media (max-width: 900px) { .form-grid-3, .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .form-grid-3, .form-grid-2 { grid-template-columns: 1fr; } }

.form-control { display: flex; flex-direction: column; gap: 0.4rem; }
.form-control-span2 { grid-column: span 2; }
@media (max-width: 600px) { .form-control-span2 { grid-column: span 1; } }

.form-control label { font-size: 0.75rem; font-weight: 600; color: #334155; }
.form-control input[type="text"],
.form-control input[type="date"],
.form-control input[type="email"],
.form-control input[type="tel"],
.form-control input[type="number"],
.form-control select,
.form-control textarea {
  width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 0.85rem; color: #0f172a; background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,60,143,0.1);
}
.form-control input[readonly] { background: #f1f5f9; color: #64748b; cursor: not-allowed; }
.form-control.has-error input,
.form-control.has-error select,
.form-control.has-error textarea,
.form-control.has-error .input-with-prefix { border-color: #dc2626; }
.portal-field-error { color: #b91c1c; font-size: 0.73rem; font-weight: 600; }

.radio-group { display: flex; align-items: center; gap: 1rem; height: 38px; }
.radio-item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: #334155; cursor: pointer; }
.radio-item input[type="radio"] { width: 14px; height: 14px; accent-color: var(--primary); margin: 0; cursor: pointer; }

.input-with-prefix { display: flex; align-items: stretch; border: 1px solid #cbd5e1; border-radius: 4px; overflow: hidden; background: #fff; }
.input-with-prefix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,60,143,0.1); }
.input-prefix { background: #f8fafc; padding: 0 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; color: #475569; border-right: 1px solid #cbd5e1; }
.input-with-prefix input { border: none !important; border-radius: 0 !important; box-shadow: none !important; }

/* Declaration */
.dec-text { font-size: 0.85rem; color: #334155; margin-bottom: 1rem; }
.dec-checkbox { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: #0f172a; cursor: pointer; }
.dec-checkbox input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; margin: 0; }
.admission-preview { margin-bottom: 1.25rem; }
.admission-preview h3 { font-size: 0.92rem; color: var(--primary); margin: 1rem 0 0.55rem; }
.admission-preview h3:first-child { margin-top: 0; }
.admission-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.admission-preview-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 0.65rem; min-width: 0; }
.admission-preview-item dt { color: #64748b; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.admission-preview-item dd { color: #0f172a; font-size: 0.84rem; font-weight: 600; margin: 0.15rem 0 0; overflow-wrap: anywhere; }
.upload-intro { font-size: 0.86rem; margin-bottom: 1rem; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.upload-card { padding: 1rem; border: 1px dashed #94a3b8; border-radius: 8px; background: #f8fafc; }
.upload-card label { display: block; font-weight: 700; color: #0f172a; }
.upload-card small { display: block; color: #64748b; margin: 0.2rem 0 0.75rem; }
.upload-card input[type="file"] { width: 100%; background: #fff; padding: 0.55rem; }
.upload-status { min-height: 1.4rem; margin-top: 0.65rem; font-size: 0.8rem; overflow-wrap: anywhere; }
.upload-progress { height: 7px; margin-top: 0.7rem; background: #dbeafe; border-radius: 999px; overflow: hidden; }
.upload-progress span { display: block; width: 0; height: 100%; background: var(--primary); transition: width 0.2s; }
.upload-retry { margin-top: 0.5rem; }
.admission-banner { margin: 0.75rem 1.5rem 0; }
.admission-banner.is-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.admission-banner.is-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.admission-banner.is-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.portal-complete { padding: 2.5rem 1.5rem; text-align: center; }
.portal-complete h3 { color: var(--primary); margin-bottom: 0.5rem; }
.portal-complete-number { display: inline-block; margin: 1rem 0; padding: 0.7rem 1rem; border-radius: 8px; background: #ecfdf5; color: #047857; font-weight: 800; letter-spacing: 0.04em; }

/* Actions */
.portal-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid #e2e8f0; flex-wrap: wrap; gap: 1rem; }
.portal-actions-right { display: flex; align-items: center; gap: 0.75rem; }

.btn-p { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 1.25rem; border-radius: 6px; font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; transition: 0.2s; }
.btn-p-blue { background: var(--primary); color: #fff; }
.btn-p-blue:hover { background: var(--primary-dark); }
.btn-p-outline { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.btn-p-outline:hover { background: #e2e8f0; color: #0f172a; }
.btn-p-green { background: #16a34a; color: #fff; }
.btn-p-green:hover { background: #15803d; }
.btn-p:disabled { opacity: 0.62; cursor: not-allowed; }

@media (max-width: 700px) {
  .upload-grid { grid-template-columns: 1fr; }
  .admission-preview-grid { grid-template-columns: 1fr 1fr; }
  .portal-actions, .portal-actions-right { align-items: stretch; }
  .portal-actions-right { width: 100%; flex-wrap: wrap; }
  .portal-actions-right .btn-p { flex: 1; }
}
@media (max-width: 440px) {
  .admission-preview-grid { grid-template-columns: 1fr; }
  .portal-main-header { align-items: flex-start; }
  .pm-appid { align-items: flex-start; flex-direction: column; }
  .portal-form { padding: 1rem; }
}

