/*
Theme Name: CentralUniversity Portal Theme
Theme URI: https://centraluniversity.in/
Author: ChatGPT
Description: Directory-style theme for universities/programs/exams/states. Includes safe demo seed (no deletions).
Version: 3.1.0
License: GPLv2 or later
Text Domain: cup-portal
*/

:root{
  --cup-bg:#f5f7fb;
  --cup-card:#ffffff;
  --cup-text:#0f172a;
  --cup-muted:#64748b;
  --cup-border:#e2e8f0;
  --cup-primary:#2563eb;
  --cup-shadow:0 10px 25px rgba(2,6,23,.08);
  --cup-radius:16px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background:var(--cup-bg); color:var(--cup-text)}
a{color:var(--cup-primary); text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; height:auto}

.cup-container{width:min(1120px, 100% - 24px); margin:0 auto}
.cup-topbar{background:#fff; border-bottom:1px solid var(--cup-border); position:sticky; top:0; z-index:50}
.cup-topbar-inner{display:flex; align-items:center; gap:12px; padding:10px 0}
.cup-logo{display:flex; align-items:center; gap:10px; min-width:0}
.cup-logo-badge{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#60a5fa,#22c55e); display:grid; place-items:center; color:#fff; font-weight:800}
.cup-logo-title{font-weight:800; line-height:1.2; font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.cup-nav{margin-left:auto; display:flex; gap:10px; align-items:center}
.cup-nav a{padding:8px 10px; border-radius:999px; font-weight:700; color:var(--cup-text)}
.cup-nav a:hover{background:rgba(37,99,235,.08); text-decoration:none}
.cup-menu-btn{display:none; padding:10px 14px; border:1px solid var(--cup-border); border-radius:999px; font-weight:800; background:#fff}

.cup-hero{padding:14px 0 10px}
.cup-h1{font-size:42px; margin:10px 0 8px}
.cup-sub{color:var(--cup-muted); margin:0 0 10px}

.cup-searchbar{display:grid; grid-template-columns: 120px 1fr 88px; gap:10px; align-items:center; margin:10px 0 16px}
.cup-searchbar .cup-pill{background:#fff; border:1px solid var(--cup-border); border-radius:14px; padding:12px 14px; font-weight:800; color:var(--cup-text)}
.cup-searchbar input{width:100%; border:1px solid var(--cup-border); border-radius:14px; padding:12px 14px; font-size:16px; outline:none}
.cup-searchbar button{border:none; border-radius:14px; background:var(--cup-primary); color:#fff; font-weight:900; padding:12px 14px; font-size:16px}

.cup-grid{display:grid; grid-template-columns: 1fr; gap:14px; padding:10px 0 70px}
.cup-section{background:var(--cup-card); border:1px solid var(--cup-border); border-radius:var(--cup-radius); box-shadow:var(--cup-shadow); overflow:hidden}
.cup-section-hd{padding:14px 14px 10px; display:flex; align-items:center; justify-content:space-between; gap:10px}
.cup-section-hd h2{margin:0; font-size:20px}
.cup-section-hd .cup-cta{border:1px solid var(--cup-border); background:#fff; padding:8px 12px; border-radius:12px; font-weight:800; color:var(--cup-text)}
.cup-section-hd .cup-cta:hover{background:rgba(2,6,23,.03); text-decoration:none}

.cup-chips{display:flex; gap:10px; padding:0 14px 14px; overflow-x:auto; -webkit-overflow-scrolling:touch}
.cup-chips::-webkit-scrollbar{height:6px}
.cup-chip{flex:0 0 auto; border:1px solid rgba(37,99,235,.25); background:rgba(37,99,235,.08); padding:10px 14px; border-radius:999px; font-weight:800; color:var(--cup-text); white-space:nowrap; max-width:100%}
.cup-chip.small{padding:8px 12px; font-weight:700}
.cup-chip.gray{border:1px solid var(--cup-border); background:#f8fafc}
.cup-chip:active{transform:translateY(1px)}

.cup-cards{display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; padding:0 14px 14px}
.cup-card{background:#fff; border:1px solid var(--cup-border); border-radius:18px; padding:14px; min-width:0}
.cup-card .meta{color:var(--cup-muted); font-size:14px; margin-bottom:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.cup-card h3{margin:0 0 6px; font-size:20px; line-height:1.2}
.cup-card p{margin:0 0 10px; color:var(--cup-muted); line-height:1.45}
.cup-badges{display:flex; gap:10px; flex-wrap:wrap}
.cup-badges .cup-chip{background:#fff; border:1px solid var(--cup-border); padding:8px 12px}

.cup-footer-nav{position:fixed; left:0; right:0; bottom:0; background:#fff; border-top:1px solid var(--cup-border); z-index:60}
.cup-footer-nav .cup-container{display:flex; justify-content:space-between; gap:10px; padding:10px 12px}
.cup-footer-nav a{flex:1; text-align:center; padding:10px 8px; border-radius:12px; font-weight:900; color:var(--cup-muted); white-space:nowrap}
.cup-footer-nav a.active{color:var(--cup-text); background:rgba(37,99,235,.08)}

.cup-page{padding:10px 0 90px}
.cup-empty{padding:14px; border:1px dashed var(--cup-border); border-radius:16px; color:var(--cup-muted); background:#fafafa; margin:0 14px 14px; overflow:hidden}
.cup-empty ol{margin:10px 0 0 18px}
.cup-empty li{margin:6px 0}

.cup-table{width:100%; border-collapse:collapse}
.cup-table th,.cup-table td{border-top:1px solid var(--cup-border); padding:10px 14px; text-align:left; vertical-align:top}
.cup-table th{background:#f8fafc; font-weight:900}

@media (max-width: 860px){
  .cup-nav{display:none}
  .cup-menu-btn{display:inline-flex}
  .cup-h1{font-size:40px}
  .cup-cards{grid-template-columns:1fr}
}
@media (max-width: 420px){
  .cup-searchbar{grid-template-columns: 96px 1fr 72px}
  .cup-h1{font-size:44px} /* big heading like your screenshots */
  .cup-logo-title{font-size:15px}
}
