/* Kuleshwor Awas Campus Professional Website
   Static HTML/CSS/JS version for cPanel hosting
*/
:root {
  --primary: #123c7c;
  --primary-2: #0b5ed7;
  --secondary: #f2b705;
  --accent: #0f766e;
  --dark: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.2rem; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: 76px 0; }
.section--light { background: var(--light); }
.section--blue { background: linear-gradient(135deg, #0f2f63, #123c7c); color: var(--white); }
.section-head { max-width: 780px; margin-bottom: 34px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; margin-bottom: 14px;
  color: var(--primary); background: #e8f1ff; border-radius: 999px;
  font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.section--blue .section-eyebrow { background: rgba(255,255,255,.14); color: var(--white); }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.2; }
.section--blue h1, .section--blue h2, .section--blue h3, .section--blue h4 { color: var(--white); }
h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); letter-spacing: -0.06em; }
h2 { font-size: clamp(1.9rem, 3vw, 3rem); letter-spacing: -0.04em; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
p { margin-bottom: 12px; }
.lead { font-size: 1.12rem; color: #475569; }
.section--blue .lead { color: rgba(255,255,255,.84); }

/* Top bar and header */
.topbar { background: var(--dark); color: #e2e8f0; font-size: .9rem; }
.topbar__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar__links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar a { color: #e2e8f0; }
.topbar a:hover { color: var(--secondary); }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header__row { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 255px; }
.brand__logo {
  width: 54px; height: 54px; border-radius: 14px;
  background: #edf4ff; border: 1px solid #d7e6ff; object-fit: cover;
}
.brand__name { display: block; color: var(--dark); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.brand__tag { display: block; color: var(--muted); font-size: .84rem; margin-top: 3px; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.nav a {
  color: #26364a; font-size: .95rem; font-weight: 700;
  padding: 12px 11px; border-radius: 12px;
}
.nav a:hover, .nav a.active { color: var(--primary-2); background: #eaf2ff; }
.navToggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.navToggle span { display:block; width:26px; height:2px; background:var(--dark); margin:5px 0; border-radius: 20px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; min-height: 680px;
  background: linear-gradient(110deg, rgba(8, 32, 71, .92), rgba(18, 60, 124, .80)), url("../../images/campus-building.jpg") center/cover no-repeat;
  color: var(--white);
}
.hero:after {
  content: ""; position: absolute; inset: auto -10% -30% 45%; height: 470px;
  background: radial-gradient(circle, rgba(242,183,5,.24), transparent 65%);
}
.hero__inner { position: relative; z-index: 2; padding: 110px 0 70px; display: grid; grid-template-columns: 1.16fr .84fr; gap: 48px; align-items: center; }
.hero h1, .hero h2, .hero h3 { color: var(--white); }
.hero__subtitle { max-width: 720px; font-size: 1.18rem; color: rgba(255,255,255,.86); margin: 24px 0; }
.hero__actions { display:flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; max-width: 680px; }
.stat { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); }
.stat strong { display:block; color: var(--white); font-size: 1.7rem; line-height:1; }
.stat span { color: rgba(255,255,255,.76); font-size:.9rem; }
.heroCard { background: rgba(255,255,255,.96); color: var(--text); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.heroCard h3 { color: var(--dark); }
.heroCard__item { display:flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.heroCard__item:last-child { border-bottom: 0; }
.iconBox { min-width: 42px; height: 42px; display:grid; place-items:center; border-radius: 12px; background:#e8f1ff; color: var(--primary); font-weight: 900; }

/* Buttons and cards */
.btn { display: inline-flex; align-items:center; justify-content:center; gap: 8px; padding: 13px 20px; border-radius: 999px; font-weight: 850; border: 1px solid transparent; transition: .2s; cursor: pointer; }
.btn--primary { background: var(--secondary); color: #1f2937; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(242,183,5,.24); }
.btn--blue { background: var(--primary-2); color: var(--white); }
.btn--blue:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(11,94,215,.22); }
.btn--outline { border-color: rgba(255,255,255,.42); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.14); }
.btn--light { border-color: var(--border); color: var(--primary); background: var(--white); }
.btn--light:hover { border-color: var(--primary-2); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.card--accent { border-top: 5px solid var(--primary-2); }
.card--yellow { border-top: 5px solid var(--secondary); }
.card--green { border-top: 5px solid var(--accent); }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.card__icon { width: 52px; height:52px; border-radius: 15px; display:grid; place-items:center; background:#e8f1ff; color:var(--primary); font-weight:900; margin-bottom:16px; }

/* Notice */
.notice-strip { background: #fff8db; border-bottom: 1px solid #ffe99b; }
.notice-strip__row { display:flex; align-items:center; gap:16px; min-height:54px; }
.notice-strip__label { background: var(--secondary); color: #1f2937; padding: 7px 12px; border-radius: 999px; font-weight:900; white-space: nowrap; }
.notice-strip__text { flex:1; color:#4b5563; font-weight: 650; }
.notice-card { display:grid; grid-template-columns: 86px 1fr; gap: 18px; align-items:start; }
.notice-date { background:#e8f1ff; border-radius: 16px; text-align:center; padding: 12px 8px; color: var(--primary); font-weight: 900; }
.notice-date span { display:block; font-size: .78rem; text-transform:uppercase; color: #64748b; }
.notice-meta { display:flex; gap: 12px; align-items:center; flex-wrap:wrap; color: var(--muted); font-size: .92rem; margin-bottom: 7px; }
.badge { display:inline-flex; align-items:center; padding: 5px 10px; background:#e8f1ff; color: var(--primary); border-radius:999px; font-weight:800; font-size:.78rem; }
.badge--yellow { background:#fff3bf; color:#7c5800; }
.badge--green { background:#dffbf3; color:#0f766e; }
.badge--red { background:#fee2e2; color:#b91c1c; }

/* Page title */
.pageHero {
  background: linear-gradient(110deg, rgba(8, 32, 71, .94), rgba(18, 60, 124, .86)), url("../../images/campus-building.jpg") center/cover no-repeat;
  padding: 86px 0; color: var(--white);
}
.pageHero h1 { color: var(--white); font-size: clamp(2.3rem, 4vw, 4rem); }
.breadcrumb { color: rgba(255,255,255,.78); font-weight: 700; margin-bottom: 12px; }
.breadcrumb a { color: var(--secondary); }

/* Program tables */
.tableWrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
table { width:100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 14px 16px; text-align:left; border-bottom: 1px solid var(--border); }
th { background:#f1f5f9; color: var(--dark); font-size:.9rem; text-transform: uppercase; letter-spacing:.04em; }
tr:last-child td { border-bottom:0; }
.tabs { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:22px; }
.tabBtn { border:1px solid var(--border); background:var(--white); padding:10px 14px; border-radius:999px; font-weight:800; color: var(--text); cursor:pointer; }
.tabBtn.active { background: var(--primary-2); border-color:var(--primary-2); color:var(--white); }
.tabPanel { display:none; }
.tabPanel.active { display:block; }

/* Recognition */
.document-card { position: relative; overflow:hidden; }
.document-card:before { content:"PDF"; position:absolute; top:18px; right:18px; background:#fee2e2; color:#b91c1c; border-radius:8px; padding:4px 8px; font-size:.74rem; font-weight:900; }
.document-card h3 { padding-right: 48px; }
.warning-box { background:#fff7ed; border: 1px solid #fed7aa; color:#7c2d12; border-radius: 16px; padding: 18px; }

/* Gallery and contact */
.gallery { display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery__item { border-radius: 18px; overflow:hidden; background:#e2e8f0; aspect-ratio: 4/3; }
.gallery__item img { width:100%; height:100%; object-fit:cover; }
.map { height: 430px; overflow:hidden; border-radius: var(--radius); border: 1px solid var(--border); }
.map iframe { width:100%; height:100%; border:0; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: 0; }

/* Footer */
.footer { background:#081a33; color:#cbd5e1; padding-top: 56px; }
.footer h3 { color: var(--white); }
.footer a { color:#cbd5e1; }
.footer a:hover { color: var(--secondary); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding: 18px 0; display:flex; justify-content:space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display:grid; gap:10px; }

/* Utilities */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.mb-0 { margin-bottom: 0; }
.check-list { list-style: none; padding:0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.check-list li:before { content:"✓"; position:absolute; left:0; top:0; color:var(--accent); font-weight:900; }
.two-col-list { columns: 2; column-gap: 34px; }

@media (max-width: 1040px) {
  .navToggle { display:block; }
  .nav {
    position: fixed; inset: 124px 16px auto 16px; background: var(--white); border:1px solid var(--border);
    border-radius: 20px; box-shadow: var(--shadow); padding: 12px; display:none; flex-direction: column; align-items: stretch;
  }
  .nav.open { display:flex; }
  .nav a { padding: 13px 14px; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 82px; }
  .heroCard { max-width: 580px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .topbar__row { align-items:flex-start; padding: 10px 0; flex-direction: column; }
  .header__row { min-height: 76px; }
  .brand__tag { display:none; }
  .brand__logo { width:46px; height:46px; }
  .nav { inset-top: 118px; }
  .hero { min-height: auto; }
  .hero__stats { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .notice-strip__row { align-items:flex-start; padding:12px 0; flex-direction:column; gap:8px; }
  .notice-card { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .two-col-list { columns: 1; }
}



.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.popup-box {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  padding: 28px;
  position: relative;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  animation: popupFade 0.3s ease;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #333;
}

.popup-box h2 {
  margin-bottom: 8px;
  color: #0b4ea2;
  font-size: 23px;
}

.popup-subtitle {
  margin-bottom: 20px;
  color: #666;
  font-size: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #0b4ea2;
}

.submit-btn {
  width: 100%;
  background: #0b4ea2;
  color: #ffffff;
  border: none;
  padding: 13px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

.submit-btn:hover {
  background: #083b7a;
}

#formStatus {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 600px) {
  .popup-box {
    padding: 22px;
  }

  .popup-box h2 {
    font-size: 20px;
  }
}
