:root {
  --nios-blue: #5b0fa8;
  --nios-purple: #5b0fa8;
  --nios-purple-dark: #3d0a70;
  --nios-purple-mid: #7b2fd4;
  --nios-purple-light: #9b59e8;
  --nios-orange: #e8500a;
  --nios-gold: #FFB300;
  --nios-white: #ffffff;
  --nios-gray: #f7f5ff;
  --nios-text: #333333;
  --nios-border: #e0d6f5;
  --nios-green: #28a745;
  --nios-red: #dc3545;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--nios-text); background: #fff; overflow-x: hidden; }
a { text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* TOP BAR */
.top-bar { background: var(--nios-purple-dark); color: white; padding: 5px 0; font-size: 11px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px; }
.top-bar-left a { color: #ddd5ff; margin-right: 12px; font-size: 11px; }
.top-bar-left a:hover { color: white; }
.top-bar-right { display: flex; align-items: center; gap: 10px; }
.font-size-ctrl button { background: var(--nios-orange); border: none; color: white; width: 20px; height: 20px; border-radius: 2px; cursor: pointer; font-weight: bold; font-size: 10px; }
.top-bar-right a { color: #ddd5ff; font-size: 11px; }
.top-bar-right a:hover { color: white; }

/* HEADER */
.site-header { background: white; border-bottom: 3px solid var(--nios-orange); padding: 8px 0; box-shadow: 0 2px 8px rgba(91,15,168,0.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.header-logo { display: flex; align-items: center; gap: 12px; }
.header-logo img { height: 78px; }
.header-logo .nios-text h1 { font-size: 1.05rem; color: var(--nios-purple); font-weight: 700; }
.header-logo .nios-text p { font-size: 11px; color: #555; font-style: italic; }
.header-logo .nios-text .tagline { color: var(--nios-orange); font-size: 10px; font-style: italic; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.helpline-badge { background: var(--nios-purple); color: white; padding: 4px 12px; border-radius: 3px; font-size: 11px; font-weight: bold; }
.search-wrap { display: flex; border: 2px solid var(--nios-purple-light); border-radius: 3px; overflow: hidden; }
.search-wrap input { padding: 5px 10px; border: none; outline: none; font-size: 12px; width: 200px; }
.search-wrap button { background: var(--nios-purple); border: none; color: white; padding: 5px 12px; cursor: pointer; font-size: 12px; }
.search-wrap button:hover { background: var(--nios-orange); }

/* NAV */
.main-nav { background: var(--nios-purple); position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 10px rgba(61,10,112,0.4); }
.main-nav .container { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-item > a { color: white; padding: 13px 13px; display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; border-right: 1px solid rgba(255,255,255,0.12); transition: background 0.2s; }
.nav-item > a:hover, .nav-item.active > a { background: var(--nios-orange); }
.nav-item.highlight > a { background: var(--nios-orange); }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: white; min-width: 230px; box-shadow: 0 5px 20px rgba(91,15,168,0.15); border-top: 3px solid var(--nios-orange); z-index: 9999; }
.nav-item:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 15px 9px 22px; color: #333; font-size: 12px; border-bottom: 1px solid #eee; transition: all 0.2s; position: relative; }
.dropdown a::before { content: '▸'; position: absolute; left: 8px; color: var(--nios-orange); font-size: 10px; }
.dropdown a:hover { background: #f5f0ff; color: var(--nios-purple); padding-left: 28px; }

/* TICKER */
.news-ticker { background: #fff8e1; border-bottom: 2px solid var(--nios-gold); padding: 6px 0; }
.news-ticker .container { display: flex; align-items: center; gap: 12px; }
.ticker-tag { background: var(--nios-red); color: white; padding: 2px 10px; font-size: 10px; font-weight: bold; border-radius: 2px; white-space: nowrap; letter-spacing: 0.5px; }
.ticker-inner { overflow: hidden; flex: 1; font-size: 12.5px; }
.ticker-inner marquee a { color: var(--nios-purple); margin-right: 50px; font-weight: 500; }
.ticker-inner marquee a:hover { text-decoration: underline; }
.new-tag { background: red; color: white; font-size: 8px; padding: 1px 3px; border-radius: 2px; margin-left: 4px; font-weight: bold; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* HERO SLIDER */
.hero-slider { position: relative; height: 420px; overflow: hidden; background: var(--nios-purple-dark); }
.slide { display: none; position: absolute; inset: 0; }
.slide.active { display: block; }
.slide > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.slide-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-content { position: absolute; top: 50%; left: 60px; transform: translateY(-50%); color: white; max-width: 520px; z-index: 3; }
.slide-content .slide-tag { background: var(--nios-orange); color: white; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 2px; letter-spacing: 1px; text-transform: uppercase; display: inline-block; margin-bottom: 14px; }
.slide-content h2 { font-size: 2.1rem; font-weight: 800; line-height: 1.25; text-shadow: 1px 2px 8px rgba(0,0,0,0.3); margin-bottom: 12px; }
.slide-content p { font-size: 1rem; opacity: 0.9; margin-bottom: 22px; line-height: 1.6; }
.slide-content .hero-btn { background: var(--nios-orange); color: white; padding: 12px 30px; border-radius: 4px; font-weight: 700; font-size: 13px; display: inline-block; transition: all 0.3s; }
.slide-content .hero-btn:hover { background: white; color: var(--nios-orange); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.slide-content .hero-btn2 { background: rgba(255,255,255,0.15); border: 2px solid white; color: white; padding: 10px 24px; border-radius: 4px; font-weight: 600; font-size: 13px; display: inline-block; margin-left: 12px; transition: all 0.3s; }
.slide-content .hero-btn2:hover { background: white; color: var(--nios-purple); }
.slider-dots { position: absolute; bottom: 18px; left: 60px; display: flex; gap: 8px; z-index: 5; }
.dot { width: 28px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.dot.active { background: var(--nios-orange); width: 40px; }
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); color: white; border: 2px solid rgba(255,255,255,0.4); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 18px; z-index: 5; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.slider-prev:hover, .slider-next:hover { background: var(--nios-orange); border-color: var(--nios-orange); }
.slider-prev { left: 15px; }
.slider-next { right: 15px; }

/* SLIDE THUMBNAIL NAV */
.slide-thumbs { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.slide-thumb { width: 60px; height: 40px; border-radius: 4px; overflow: hidden; cursor: pointer; border: 2px solid rgba(255,255,255,0.2); transition: all 0.2s; opacity: 0.55; }
.slide-thumb.active { border-color: var(--nios-orange); opacity: 1; }
.slide-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* QUICK LINKS */
.quick-links { background: linear-gradient(135deg, var(--nios-purple-dark) 0%, var(--nios-purple) 100%); padding: 20px 0; }
.quick-links .container { display: flex; flex-direction: column; gap: 10px; }
.ql-title { color: rgba(255,255,255,0.65); font-size: 10px; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; text-align: center; }
.ql-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.ql-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 14px 8px; text-align: center; color: white; cursor: pointer; transition: all 0.3s; display: block; }
.ql-card:hover { background: var(--nios-orange); border-color: var(--nios-orange); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.ql-card .qi { font-size: 1.9rem; display: block; margin-bottom: 6px; }
.ql-card span { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; display: block; line-height: 1.3; }

/* MARQUEE GALLERY STRIP */
.gallery-strip { background: #fff; border-top: 3px solid var(--nios-purple-light); border-bottom: 3px solid var(--nios-purple-light); padding: 0; overflow: hidden; height: 120px; }
.gallery-strip .strip-track { display: flex; gap: 0; animation: stripScroll 30s linear infinite; }
.gallery-strip .strip-track:hover { animation-play-state: paused; }
.strip-img { height: 120px; min-width: 200px; object-fit: cover; cursor: pointer; transition: opacity 0.2s; }
.strip-img:hover { opacity: 0.85; }
@keyframes stripScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* MAIN 2-COL */
.content-area { padding: 25px 0; background: #fdfcff; }
.content-area .container { display: grid; grid-template-columns: 1fr 310px; gap: 22px; }

/* SECTION BOXES */
.sec-box { border: 1px solid var(--nios-border); margin-bottom: 20px; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 8px rgba(91,15,168,0.05); }
.sec-head { background: var(--nios-purple); color: white; padding: 10px 14px; font-size: 12.5px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.sec-head::before { content: ''; width: 3px; height: 16px; background: var(--nios-orange); border-radius: 2px; flex-shrink: 0; }
.sec-head a { color: var(--nios-gold); font-size: 11px; margin-left: auto; }
.news-scroll { max-height: 290px; overflow-y: auto; }
.news-scroll::-webkit-scrollbar { width: 4px; }
.news-scroll::-webkit-scrollbar-track { background: #f1f1f1; }
.news-scroll::-webkit-scrollbar-thumb { background: var(--nios-purple-light); border-radius: 2px; }
.ni { display: flex; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #eee; transition: background 0.15s; }
.ni:hover { background: #f8f5ff; }
.ni-date { background: var(--nios-purple); color: white; padding: 4px 7px; font-size: 9px; text-align: center; border-radius: 3px; min-width: 44px; line-height: 1.4; flex-shrink: 0; }
.ni-text { font-size: 12px; color: #333; line-height: 1.5; }
.ni-text a { color: var(--nios-purple-dark); }
.ni-text a:hover { text-decoration: underline; color: var(--nios-orange); }

/* SIDEBAR */
.sidebar-list { list-style: none; }
.sidebar-list li { border-bottom: 1px solid #eee; }
.sidebar-list li a { display: block; padding: 9px 14px 9px 24px; font-size: 12px; color: #333; position: relative; transition: all 0.2s; }
.sidebar-list li a::before { content: '▶'; position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--nios-orange); font-size: 8px; }
.sidebar-list li a:hover { background: #f5f0ff; color: var(--nios-purple); padding-left: 28px; }

/* STATS */
.stats-section { background: linear-gradient(135deg, var(--nios-purple-dark) 0%, var(--nios-purple) 100%); padding: 35px 0; color: white; }
.stats-section .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.stat-item { padding: 10px; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--nios-gold); }
.stat-lbl { font-size: 12px; opacity: 0.85; margin-top: 4px; }

/* PROGRAMS */
.programs-sec { padding: 35px 0; background: #faf8ff; }
.programs-sec .container { display: flex; flex-direction: column; }
.programs-sec h2 { text-align: center; color: var(--nios-purple); font-size: 1.4rem; margin-bottom: 5px; }
.programs-sec .sub { text-align: center; color: #888; font-size: 13px; margin-bottom: 25px; }
.prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prog-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 15px rgba(91,15,168,0.1); transition: all 0.3s; border: 1px solid var(--nios-border); }
.prog-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(91,15,168,0.2); }
.prog-head { padding: 22px; text-align: center; color: white; position: relative; overflow: hidden; }
.prog-head .icon { font-size: 2.8rem; position: relative; z-index: 2; }
.prog-head::after { content: ''; position: absolute; bottom: -20px; right: -20px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.prog-body { padding: 16px; }
.prog-body h3 { font-size: 13.5px; color: var(--nios-purple); margin-bottom: 8px; font-weight: 700; }
.prog-body p { font-size: 11.5px; color: #666; line-height: 1.6; }
.prog-body .apply-btn { display: block; background: var(--nios-purple); color: white; text-align: center; padding: 9px; margin-top: 14px; border-radius: 5px; font-size: 12px; font-weight: bold; transition: background 0.2s; }
.prog-body .apply-btn:hover { background: var(--nios-orange); }

/* PHOTO GALLERY SECTION */
.gallery-sec { padding: 30px 0; background: white; }
.gallery-sec h2 { text-align: center; color: var(--nios-purple); font-size: 1.3rem; margin-bottom: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { border-radius: 8px; overflow: hidden; position: relative; height: 160px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gal-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(61,10,112,0.7) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; padding: 10px; }
.gallery-item:hover .gal-overlay { opacity: 1; }
.gallery-item .gal-overlay span { color: white; font-size: 11px; font-weight: 600; }
.gallery-item.wide { grid-column: span 2; height: 160px; }

/* ACHIEVEMENT BANNER */
.achievement-banner { background: linear-gradient(135deg, var(--nios-purple-dark), #6b1fa8, var(--nios-purple)); padding: 28px 0; color: white; text-align: center; }
.achievement-banner h3 { font-size: 1.4rem; margin-bottom: 8px; }
.achievement-banner p { font-size: 13px; opacity: 0.85; max-width: 700px; margin: 0 auto 18px; line-height: 1.7; }
.achievement-banner .ach-btn { background: white; color: var(--nios-purple); padding: 10px 28px; border-radius: 4px; font-weight: 700; font-size: 13px; display: inline-block; transition: all 0.3s; }
.achievement-banner .ach-btn:hover { background: var(--nios-orange); color: white; }

/* FOOTER */
.pre-footer { background: #1a0a2e; padding: 38px 0; color: white; }
.pre-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.fc h4 { color: var(--nios-orange); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.fc p { font-size: 12px; opacity: 0.72; line-height: 1.8; }
.fc ul { list-style: none; }
.fc ul li { margin-bottom: 6px; }
.fc ul li a { color: rgba(255,255,255,0.62); font-size: 12px; transition: color 0.2s; }
.fc ul li a::before { content: '» '; color: var(--nios-orange); }
.fc ul li a:hover { color: var(--nios-orange); }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 13px; font-weight: bold; transition: transform 0.2s; }
.socials a:hover { transform: scale(1.15); }
.fb{background:#3b5998}.tw{background:#1da1f2}.yt{background:#ff0000}.ig{background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888)}
.footer-bar { background: var(--nios-purple-dark); padding: 13px 0; text-align: center; font-size: 11.5px; color: rgba(255,255,255,0.7); }
.footer-bar a { color: var(--nios-gold); }

/* RESULT PORTAL PAGE */
.portal-page { min-height: 65vh; background: linear-gradient(135deg, #f0eaff 0%, #ece4ff 100%); padding: 40px 0; }
.portal-page .container { max-width: 700px; }
.portal-card { background: white; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 40px rgba(91,15,168,0.18); }
.portal-head { background: linear-gradient(135deg, var(--nios-purple-dark) 0%, var(--nios-purple) 100%); padding: 30px; text-align: center; color: white; }
.portal-head img { height: 58px; margin-bottom: 14px; display: block; margin-left: auto; margin-right: auto; }
.portal-head h2 { font-size: 1.35rem; margin-bottom: 5px; }
.portal-head p { font-size: 12px; opacity: 0.8; }
.portal-body { padding: 35px; }
.fgrp { margin-bottom: 18px; }
.fgrp label { display: block; font-size: 12.5px; font-weight: 600; color: var(--nios-purple); margin-bottom: 6px; }
.fgrp input, .fgrp select { width: 100%; padding: 11px 14px; border: 2px solid #e0d6f5; border-radius: 6px; font-size: 14px; outline: none; transition: border 0.3s; }
.fgrp input:focus, .fgrp select:focus { border-color: var(--nios-purple); }
.fgrp .hint { font-size: 11px; color: #888; margin-top: 4px; }
.search-btn { width: 100%; background: var(--nios-purple); color: white; border: none; padding: 13px; border-radius: 6px; font-size: 14px; font-weight: bold; cursor: pointer; margin-top: 5px; transition: all 0.3s; }
.search-btn:hover { background: var(--nios-orange); }
.result-msg { padding: 14px; border-radius: 6px; margin-top: 14px; font-size: 13px; text-align: center; display: none; }
.result-msg.err { background: #fff0f0; color: #c00; border: 1px solid #fbb; }
.result-msg.ok { background: #f5f0ff; color: var(--nios-purple-dark); border: 1px solid #c9b8f0; }
.portal-notice { background: #fffde7; border: 1px solid var(--nios-gold); border-radius: 6px; padding: 14px; margin-top: 20px; font-size: 12px; color: #555; line-height: 1.6; }

/* ADMIN PANEL */
.admin-body { background: #f0ebff; }
.admin-login-wrap { min-height: 100vh; background: linear-gradient(135deg, var(--nios-purple-dark) 0%, var(--nios-purple) 100%); display: flex; align-items: center; justify-content: center; }
.login-box { background: white; border-radius: 14px; padding: 40px; width: 390px; box-shadow: 0 12px 50px rgba(0,0,0,0.3); text-align: center; }
.login-box h2 { color: var(--nios-purple); font-size: 1.15rem; margin-bottom: 5px; }
.login-box p { color: #888; font-size: 12px; margin-bottom: 22px; }
.login-box .fgrp { text-align: left; }
.admin-sidebar { width: 242px; background: var(--nios-purple-dark); min-height: 100vh; position: fixed; top: 0; left: 0; z-index: 100; overflow-y: auto; }
.sidebar-brand { background: #250540; padding: 18px 15px; text-align: center; border-bottom: 3px solid var(--nios-orange); }
.sidebar-brand img { height: 42px; margin-bottom: 8px; }
.sidebar-brand h3 { color: white; font-size: 11px; opacity: 0.85; }
.admin-nav-link { display: flex; align-items: center; gap: 10px; padding: 11px 18px; color: rgba(255,255,255,0.72); font-size: 12.5px; border-left: 3px solid transparent; transition: all 0.2s; }
.admin-nav-link:hover, .admin-nav-link.active { background: rgba(255,255,255,0.1); color: white; border-left-color: var(--nios-orange); }
.admin-nav-link .nav-icon { font-size: 1rem; width: 18px; text-align: center; }
.nav-divider { color: rgba(255,255,255,0.3); font-size: 10px; padding: 14px 18px 5px; text-transform: uppercase; letter-spacing: 1px; }
.admin-main { margin-left: 242px; }
.admin-topbar { background: white; padding: 13px 22px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 5px rgba(91,15,168,0.1); position: sticky; top: 0; z-index: 50; }
.admin-topbar .page-title { font-size: 1rem; color: var(--nios-purple); font-weight: 700; }
.admin-topbar .user-badge { background: #f0ebff; padding: 5px 14px; border-radius: 20px; font-size: 12px; color: var(--nios-purple); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.admin-content { padding: 22px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 22px; }
.stat-card { background: white; border-radius: 10px; padding: 20px; box-shadow: 0 2px 12px rgba(91,15,168,0.08); border-left: 4px solid var(--nios-purple); display: flex; justify-content: space-between; align-items: center; }
.stat-card:nth-child(2){border-left-color:var(--nios-orange);}
.stat-card:nth-child(3){border-left-color:var(--nios-green);}
.stat-card:nth-child(4){border-left-color:var(--nios-gold);}
.sc-num { font-size: 1.8rem; font-weight: 800; color: var(--nios-purple); }
.sc-lbl { font-size: 11px; color: #888; margin-top: 2px; }
.sc-icon { font-size: 2rem; opacity: 0.3; }
.admin-card { background: white; border-radius: 10px; padding: 22px; box-shadow: 0 2px 12px rgba(91,15,168,0.07); margin-bottom: 22px; }
.admin-card h3 { font-size: 14px; color: var(--nios-purple); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid #f0ebff; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.upload-zone { border: 2px dashed #c4a8f0; border-radius: 8px; padding: 35px; text-align: center; background: #faf8ff; cursor: pointer; transition: all 0.3s; }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--nios-orange); background: #fff8f2; }
.upload-zone .uz-icon { font-size: 3rem; margin-bottom: 12px; }
.upload-zone p { color: #666; font-size: 13px; line-height: 1.6; }
.upload-zone input[type=file] { display: none; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.btn { padding: 9px 20px; border-radius: 6px; border: none; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.btn-primary { background: var(--nios-purple); color: white; }
.btn-primary:hover { background: var(--nios-purple-dark); }
.btn-success { background: var(--nios-green); color: white; }
.btn-success:hover { background: #1e7e34; }
.btn-danger { background: var(--nios-red); color: white; padding: 5px 12px; font-size: 12px; }
.btn-danger:hover { background: #c82333; }
.btn-warning { background: var(--nios-gold); color: #333; padding: 5px 12px; font-size: 12px; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
thead th { background: var(--nios-purple); color: white; padding: 10px 12px; text-align: left; }
tbody td { padding: 9px 12px; border-bottom: 1px solid #eee; vertical-align: middle; }
tbody tr:hover td { background: #faf7ff; }
.badge { padding: 3px 9px; border-radius: 20px; font-size: 10.5px; font-weight: 700; }
.badge-ok { background: #d4edda; color: #155724; }
.badge-warn { background: #fff3cd; color: #856404; }
.badge-err { background: #f8d7da; color: #721c24; }
.progress-bar-outer { background: #eee; border-radius: 8px; height: 8px; margin-top: 12px; overflow: hidden; display: none; }
.progress-bar-inner { height: 100%; background: var(--nios-green); border-radius: 8px; width: 0; transition: width 0.3s; }
.toast { position: fixed; top: 18px; right: 18px; background: var(--nios-green); color: white; padding: 12px 20px; border-radius: 8px; font-size: 13px; z-index: 99999; display: none; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.search-filter { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.search-filter input, .search-filter select { padding: 8px 12px; border: 1px solid #c4a8f0; border-radius: 5px; font-size: 12.5px; outline: none; }
.search-filter input { flex: 1; min-width: 200px; }
.search-filter input:focus, .search-filter select:focus { border-color: var(--nios-purple); }
.logout-btn { display: flex; align-items: center; padding: 11px 18px; color: rgba(255,255,255,0.72); font-size: 12.5px; margin-top: 10px; transition: all 0.2s; cursor: pointer; background: none; border: none; width: 100%; gap: 10px; }
.logout-btn:hover { background: rgba(220,53,69,0.2); color: #ff8080; }

/* SESSION CUSTOM YEAR INPUT */
.session-custom-wrap { display: flex; gap: 8px; align-items: center; }
.session-custom-wrap input[type=text] { flex: 1; }
.session-custom-wrap select { flex: 1; }

@media(max-width:992px){
  .ql-grid{grid-template-columns:repeat(4,1fr);}
  .content-area .container{grid-template-columns:1fr;}
  .prog-grid{grid-template-columns:repeat(2,1fr);}
  .stats-section .container{grid-template-columns:repeat(2,1fr);}
  .pre-footer .container{grid-template-columns:1fr 1fr;}
  .stats-row{grid-template-columns:repeat(2,1fr);}
  .gallery-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:768px){
  .hero-slider{height:280px;}
  .slide-content{left:20px;max-width:300px;}
  .slide-content h2{font-size:1.3rem;}
  .ql-grid{grid-template-columns:repeat(3,1fr);}
  .main-nav .container{overflow-x:auto;}
  .nav-item>a{padding:10px 8px;font-size:11px;}
  .admin-sidebar{display:none;}
  .admin-main{margin-left:0;}
  .upload-grid{grid-template-columns:1fr;}
  .slide-thumbs{display:none;}
}
