@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Nunito+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

:root {
  --font-family: "Nunito Sans", "NunitoSans", sans-serif;
  --head-font: "Libre Baskerville", serif;
  --white-color: #fff;
  --body-bg: #fdfcfb;
  --heading-color: #313134;
  --selected-color: #8e433e;
  --primary-color: #8e433e;
  --primary-dark: #731d1d;
  --secondary-color: #fff3e1;
  --input-border-color: #ebebeb;
  --border-radius: 8px;
  --fonts-subtext: #434343;
  --global-border: #e6e6e6;
  --header-default: #8e433e;
  --fonts-body: #606060;
  --fonts-primary: #1e1e1e;
  --button-icon-background: #f9f1f1;
  --fonts-title: #252525;
  --cream: #fdf8f4;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; letter-spacing: -0.3px; }
html, body { height: 100%; }
body {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--fonts-primary);
  background: #fffbfb;
  line-height: 1.45;
}
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

.skip { position: absolute; left: -999px; }
.topbar {
  background: #6f2e2a;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 28px;
  min-height: 38px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.font-btns { display: flex; gap: 6px; align-items: center; }
.font-btns button {
  background: transparent; border: 1px solid rgba(255,255,255,.35);
  color: #fff; width: 24px; height: 22px; cursor: pointer; border-radius: 3px;
}
.font-btns button.active { background: #fff; color: var(--primary-color); }
.lang-btn {
  background: transparent; border: 0; color: #fff; cursor: pointer;
  display: flex; align-items: center; gap: 6px; font-size: 13px;
}
.login-or-reg {
  background: #fff; color: var(--primary-color); border: 0;
  padding: 6px 16px; border-radius: 20px; font-weight: 700;
  cursor: pointer; font-size: 13px;
}
.login-or-reg:hover { background: var(--secondary-color); }

.brand-wrap {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px 8px;
  border-bottom: 1px solid #f0e6e4;
}
.brand-left { display: flex; align-items: center; gap: 14px; }
.emblem { width: 58px; height: 72px; object-fit: contain; }
.ssc-logo { width: 62px; height: 62px; object-fit: contain; }
.brand-text h1 {
  font-family: var(--head-font);
  font-size: 22px;
  color: #3b1d1c;
  font-weight: 700;
  letter-spacing: 0;
}
.brand-text p { font-size: 13px; color: #6a3a36; margin-top: 2px; }
.brand-right { display: flex; align-items: center; gap: 12px; }
.search-ico {
  width: 38px; height: 38px; border: 1px solid #eadfdd; border-radius: 50%;
  display: grid; place-items: center; background: #fff; cursor: pointer;
}

.navbar {
  background: var(--header-default);
  padding: 0 18px;
  display: flex;
  align-items: center;
  min-height: 46px;
  position: relative;
  z-index: 20;
}
.navbar ul.nav { list-style: none; display: flex; gap: 2px; }
.navbar .nav > li { position: relative; }
.navbar .nav > li > a, .navbar .nav > li > button {
  display: block; color: #fff; padding: 13px 16px; font-weight: 600;
  background: none; border: 0; cursor: pointer; font-size: 14px;
}
.navbar .nav > li:hover > a, .navbar .nav > li:hover > button,
.navbar .nav > li.active > a { background: #6f2e2a; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 280px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-radius: 0 0 8px 8px; padding: 8px 0; z-index: 50;
}
.navbar .nav > li:hover .dropdown { display: block; }
.dropdown a {
  display: block; padding: 8px 16px; color: #333; font-size: 13px;
}
.dropdown a:hover { background: #f9f1f1; color: var(--primary-color); text-decoration: none; }

.hero {
  position: relative;
  min-height: 320px;
  background:
    linear-gradient(90deg, rgba(111,46,42,.88) 0%, rgba(142,67,62,.55) 46%, rgba(255,243,225,.15) 100%),
    url("../assets/Satyamev-Jayate.webp") right center / contain no-repeat,
    linear-gradient(135deg, #5a1f1c, #8e433e 45%, #c9a27a);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 40px 48px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: 8%; top: 10%;
  width: 280px; height: 280px;
  background: url("../assets/Ashoka_Chakra.svg") center / contain no-repeat;
  opacity: .35;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero h2 { font-family: var(--head-font); font-size: 34px; margin-bottom: 8px; }
.hero .tag { font-size: 20px; opacity: .95; }
.hero p { margin-top: 12px; max-width: 520px; font-size: 15px; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 28px 0; }
.section h3 {
  font-size: 20px; color: var(--primary-color); margin-bottom: 14px;
  border-left: 4px solid var(--primary-color); padding-left: 10px;
}

.home-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.card {
  background: #fff; border: 1px solid #f0e4e2; border-radius: 10px;
  box-shadow: 0 2px 10px rgba(142,67,62,.05); padding: 14px;
}
.card h4 {
  background: var(--primary-color); color: #fff; margin: -14px -14px 12px;
  padding: 10px 14px; border-radius: 10px 10px 0 0; font-size: 15px;
}
.news-item { padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 13px; }
.news-item span { color: var(--primary-color); font-weight: 700; margin-right: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { background: #f9f1f1; color: #5a2a27; text-align: left; padding: 8px; }
.table td { padding: 8px; border-bottom: 1px solid #f3eaea; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-color); color: #fff; border: 0;
  padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 700;
}
.btn:hover { background: #6f2e2a; text-decoration: none; color: #fff; }
.btn.ghost { background: #fff; color: var(--primary-color); border: 1px solid var(--primary-color); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  background: linear-gradient(180deg, #fff, #fdf6f3);
  border: 1px solid #f0e4e2; border-radius: 10px; padding: 18px 12px;
  text-align: center; color: #333; font-weight: 700;
}
.tile:hover { border-color: var(--primary-color); text-decoration: none; color: var(--primary-color); }

.site-footer {
  background: #4a1f1d; color: #f7ece9; margin-top: 30px; padding: 28px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 20px; padding-bottom: 20px; }
.site-footer h5 { color: #fff; margin-bottom: 10px; }
.site-footer a { color: #f3ddd8; display: block; padding: 3px 0; font-size: 13px; }
.footer-bottom {
  background: #3a1715; padding: 10px 28px; display: flex;
  justify-content: space-between; font-size: 12px;
}

/* Modal */
.overlay {
  display: none; position: fixed; inset: 0; background: rgba(20,8,8,.55);
  z-index: 1000; align-items: center; justify-content: center;
}
.overlay.show { display: flex; }
.modal {
  width: min(440px, 94vw); background: #fff; border-radius: 12px;
  padding: 22px 22px 18px; position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.modal h3 { color: var(--primary-color); font-size: 20px; margin-bottom: 14px; }
.modal-close {
  position: absolute; right: 12px; top: 10px; border: 0; background: none;
  font-size: 22px; cursor: pointer; color: #666;
}
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button {
  flex: 1; border: 1px solid #eadfdd; background: #fff; padding: 8px;
  border-radius: 6px; cursor: pointer; font-weight: 700; color: #555;
}
.tabs button.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; margin-bottom: 4px; font-weight: 600; }
.req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--input-border-color); border-radius: 6px;
  padding: 10px 12px; font-size: 14px; background: #fff;
}
.field input:focus, .field select:focus { border-color: var(--primary-color); }
.pass-wrap { position: relative; }
.pass-wrap img, .pass-wrap .eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 22px; cursor: pointer;
}
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-box {
  background: repeating-linear-gradient(45deg, #f4ece6, #f4ece6 8px, #efe4dc 8px, #efe4dc 16px);
  border: 1px solid #ddd; min-width: 110px; height: 40px; display: grid; place-items: center;
  font-weight: 800; letter-spacing: 3px; color: #3a2a1a; font-size: 18px;
  font-family: "Libre Baskerville", serif; user-select: none;
}
.linkish { background: none; border: 0; color: var(--primary-color); cursor: pointer; font-weight: 700; }
.full { width: 100%; }
.hint { font-size: 12px; color: #777; margin-top: 4px; }
.alert {
  padding: 10px 12px; border-radius: 6px; margin-bottom: 12px; font-size: 13px;
}
.alert.error { background: #fdecea; color: #8a1f11; border: 1px solid #f5c6cb; }
.alert.ok { background: #eaf7ee; color: #1e6b34; border: 1px solid #b7e0c2; }
.alert.warn { background: #fff6e5; color: #7a4b00; border: 1px solid #f3d7a0; }
.otp-local { background: #fff3e1; border: 1px dashed var(--primary-color); padding: 8px; border-radius: 6px; margin: 8px 0; font-weight: 700; }

/* Inner pages */
.page-banner {
  background: linear-gradient(90deg, #6f2e2a, #8e433e);
  color: #fff; padding: 18px 28px; font-size: 20px; font-weight: 700;
}
.crumb { font-size: 12px; color: #eee; font-weight: 400; margin-bottom: 4px; }
.page-body { width: min(1100px, calc(100% - 36px)); margin: 20px auto 40px; }

.otr-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 18px 0; }
.otr-card {
  border: 1px solid #f0e4e2; border-radius: 12px; padding: 18px 14px; text-align: center;
  background: #fff;
}
.otr-card .ico {
  width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%;
  background: #f9f1f1; display: grid; place-items: center; font-size: 26px;
}
.otr-card h4 { color: var(--primary-color); margin-bottom: 6px; }
.note-box {
  background: #fff8ee; border-left: 4px solid #c9892d; padding: 12px 14px;
  border-radius: 6px; margin: 14px 0;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.sno { color: var(--primary-color); font-weight: 800; margin-right: 6px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.mismatch { color: #c0392b; font-size: 12px; }

.dash {
  display: grid; grid-template-columns: 250px 1fr; gap: 18px;
  width: min(1180px, calc(100% - 32px)); margin: 18px auto 40px;
}
.side {
  background: #fff; border: 1px solid #f0e4e2; border-radius: 10px; overflow: hidden;
}
.side a, .side button {
  display: block; width: 100%; text-align: left; padding: 11px 14px;
  border: 0; border-bottom: 1px solid #f6eeee; background: #fff;
  color: #333; cursor: pointer; font-weight: 600;
}
.side a.active, .side button.active { background: #f9f1f1; color: var(--primary-color); }
.profile-head {
  background: var(--primary-color); color: #fff; padding: 16px; text-align: center;
}
.avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; background: #fff; margin-bottom: 8px;
}
.kv { display: grid; grid-template-columns: 220px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f4ecec; }
.kv b { color: #555; }

.local-strip {
  display: none;
}

@media (max-width: 980px) {
  .home-grid, .otr-steps, .tiles, .footer-grid, .form-grid, .dash { grid-template-columns: 1fr; }
  .brand-text h1 { font-size: 16px; }
  .navbar { overflow-x: auto; }
  .hero { min-height: 220px; padding: 24px; }
}
