/*!
 * Sohela Public School — Design System
 * Colors: institutional navy + warm saffron + cream
 *
 * © Sohela Public School. All rights reserved.
 * Designed & developed by IndicWeb Pvt. Ltd. — https://indicweb.com/
 */
:root {
  --c-navy:        #0b2447;
  --c-navy-2:      #19376d;
  --c-blue:        #1e60c6;
  --c-blue-soft:   #e8f0fc;
  --c-saffron:     #d97706;
  --c-gold:        #f59e0b;
  --c-cream:       #fdfaf3;
  --c-bg:          #ffffff;
  --c-text:        #1f2937;
  --c-muted:       #5b6472;
  --c-line:        #e6e8ee;
  --c-line-soft:   #f1f3f7;
  --c-success:     #16a34a;
  --c-danger:      #dc2626;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;

  --sh-sm: 0 1px 2px rgba(15,23,42,.06);
  --sh-md: 0 6px 18px rgba(15,23,42,.08);
  --sh-lg: 0 20px 50px rgba(15,23,42,.15);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--c-cream); }
.section--dark { background: var(--c-navy); color: #e8eefb; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.muted { color: var(--c-muted); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-saffron);
  margin-bottom: .8em;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head p { color: var(--c-muted); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn--primary { background: var(--c-navy); color: #fff; }
.btn--primary:hover { background: var(--c-navy-2); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn--accent  { background: var(--c-saffron); color: #fff; }
.btn--accent:hover { background: #b45309; transform: translateY(-1px); }
.btn--ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: #fff; color: var(--c-navy); border-color: var(--c-line); }
.btn--outline:hover { border-color: var(--c-navy); }
.btn--sm { padding: 9px 18px; font-size: .85rem; }

/* =================================================================
   Top strip + Header
   ================================================================= */
.topstrip {
  background: var(--c-navy);
  color: rgba(255,255,255,.86);
  font-size: 0.85rem;
}
.topstrip a { color: inherit; }
.topstrip a:hover { color: #fff; }
.topstrip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  gap: 12px;
}
.topstrip .i { color: var(--c-gold); margin-right: 4px; }
.topstrip .dot { opacity: .4; margin: 0 8px; }
.topstrip .ts-right { opacity: .9; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--sh-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
  color: var(--c-navy);
}
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-text strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
}
.brand-text span {
  font-size: 0.78rem;
  color: var(--c-muted);
  letter-spacing: .05em;
}

.primary-nav > ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0; padding: 0;
}
.primary-nav .submenu { list-style: none; }
.primary-nav .navlink {
  display: inline-block;
  padding: 10px 14px;
  color: var(--c-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--r-sm);
  text-decoration: none !important;
  position: relative;
}
.primary-nav .navlink:hover { color: var(--c-navy); background: var(--c-blue-soft); }
.primary-nav .navlink.active { color: var(--c-navy); font-weight: 600; }
.primary-nav .navlink.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--c-saffron);
  border-radius: 2px;
}
.primary-nav .caret { font-size: 0.7em; opacity: .6; }

/* dropdown */
.has-sub { position: relative; }
.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  margin: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 100;
}
.submenu::before {
  content: "";
  position: absolute;
  top: -8px; left: 0; right: 0;
  height: 8px;
}
.submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-size: 0.92rem;
  text-decoration: none !important;
}
.submenu a:hover { background: var(--c-blue-soft); color: var(--c-navy); }
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu { display: flex; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--c-line);
  background: #fff;
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-navy);
  margin: 5px auto;
  transition: transform .25s ease, opacity .25s ease;
  border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================================================================
   Hero
   ================================================================= */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
  transform: scale(1.05);
}
.hero-slide.active { opacity: 1; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(11,36,71,.78) 0%, rgba(11,36,71,.55) 55%, rgba(11,36,71,.2) 100%),
    linear-gradient(to top, rgba(0,0,0,.5), transparent 50%);
}
.hero-inner {
  padding: 120px 0 100px;
  max-width: 760px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: .3em;
}
.hero p.lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,.92);
  max-width: 620px;
  margin-bottom: 2em;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.4em;
  backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--c-gold); border-radius: 50%; }

.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active { background: var(--c-gold); width: 28px; border-radius: 6px; }

/* Stats strip under hero */
.stats {
  background: #fff;
  margin-top: -50px;
  position: relative;
  z-index: 3;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 12px;
  max-width: calc(var(--container) - 40px);
  margin-left: auto; margin-right: auto;
}
.stats .stat { text-align: center; padding: 8px 12px; border-right: 1px solid var(--c-line); }
.stats .stat:last-child { border-right: 0; }
.stats .stat strong {
  display: block;
  font-family: var(--f-display);
  font-size: 2.1rem;
  color: var(--c-navy);
  line-height: 1;
}
.stats .stat span {
  font-size: .82rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* =================================================================
   About / Two-column blocks
   ================================================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col.flip { direction: rtl; }
.two-col.flip > * { direction: ltr; }
.two-col img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--sh-md); aspect-ratio: 4 / 5; }
.two-col .imgbox.wide img { aspect-ratio: 4 / 3; }

.feature-list { list-style: none; padding: 0; margin: 1.4em 0; }
.feature-list li {
  display: flex; gap: 12px;
  padding: 8px 0;
  font-size: 0.97rem;
}
.feature-list li::before {
  content: "✓";
  color: var(--c-saffron);
  font-weight: 800;
  flex-shrink: 0;
}

/* =================================================================
   Feature cards (Why choose us)
   ================================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: transparent;
}
.feature-card .ico {
  width: 56px; height: 56px;
  background: var(--c-blue-soft);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--c-navy);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.feature-card.warm .ico { background: #fff1de; color: var(--c-saffron); }
.feature-card.cool .ico { background: #e3f5ee; color: #14855a; }
.feature-card h3 { margin-bottom: 8px; font-family: var(--f-body); font-weight: 700; font-size: 1.05rem; color: var(--c-navy); }
.feature-card p { margin: 0; color: var(--c-muted); font-size: 0.94rem; }

/* =================================================================
   Principal block
   ================================================================= */
.principal-block {
  background: linear-gradient(115deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
  color: #e7ecf7;
  border-radius: var(--r-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.principal-block::before {
  content: "“";
  position: absolute;
  font-family: var(--f-display);
  font-size: 22rem;
  line-height: .8;
  top: -10px; right: 20px;
  color: rgba(255,255,255,.07);
}
.principal-block .pmedia {
  width: 260px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
}
.principal-block .pmedia img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.principal-block h2 { color: #fff; }
.principal-block .sig {
  margin-top: 18px;
  display: flex; align-items: center; gap: 12px;
}
.principal-block .sig strong { color: #fff; }
.principal-block .sig span { color: var(--c-gold); font-size: 0.9rem; }

/* =================================================================
   Updates / News
   ================================================================= */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.post-card .pc-img {
  aspect-ratio: 16 / 10;
  background: var(--c-blue-soft);
  overflow: hidden;
}
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .pc-img img { transform: scale(1.04); }
.post-card .pc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .pc-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 0.78rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.post-card .pc-tag {
  background: var(--c-blue-soft);
  color: var(--c-navy);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.post-card .pc-tag.notice { background: #fdecec; color: #b91c1c; }
.post-card .pc-tag.event  { background: #fff1de; color: var(--c-saffron); }
.post-card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--c-navy);
}
.post-card p { color: var(--c-muted); font-size: 0.93rem; margin-bottom: 16px; flex: 1; }
.post-card .pc-link { font-size: 0.9rem; font-weight: 600; color: var(--c-saffron); }

.empty {
  text-align: center;
  padding: 60px 20px;
  border: 2px dashed var(--c-line);
  border-radius: var(--r-md);
  color: var(--c-muted);
}

/* =================================================================
   Gallery
   ================================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid a {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 1;
  display: block;
  background: var(--c-line-soft);
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,36,71,.35), transparent 60%);
  opacity: 0;
  transition: opacity .2s ease;
}
.gallery-grid a:hover::after { opacity: 1; }
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.gallery-strip a { aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }

/* =================================================================
   Single post page
   ================================================================= */
.post-single { max-width: 820px; margin: 0 auto; }
.post-cover {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--sh-md);
  background: var(--c-line-soft);
}
.post-cover img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2b3340;
}
.post-body a { color: var(--c-blue); }
.post-meta-foot {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
}

/* Share bar */
.share-bar {
  margin-top: 32px;
  padding: 22px;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.share-label {
  font-weight: 600;
  color: var(--c-navy);
  font-size: 0.92rem;
  margin-right: 6px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  color: #fff !important;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s ease, filter .15s ease;
}
.share-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.share-btn .ico {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.share-btn.wa   { background: #25D366; }
.share-btn.fb   { background: #1877F2; }
.share-btn.tw   { background: #111827; }
.share-btn.tg   { background: #0088CC; }
.share-btn.mail { background: #6b7280; }
.share-btn.copy { background: var(--c-navy); }
.share-btn.copied { background: var(--c-success); }

@media (max-width: 760px) {
  .share-bar { padding: 16px; }
  .share-btn { padding: 8px 12px; font-size: 0.82rem; }
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8,15,30,.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.lightbox .close {
  position: absolute; top: 18px; right: 24px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

/* =================================================================
   Page banner (inner pages)
   ================================================================= */
.page-banner {
  background: linear-gradient(110deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
  color: #fff;
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(245,158,11,.35), transparent 60%);
}
.page-banner h1 {
  color: #fff;
  margin-bottom: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.crumbs { font-size: 0.85rem; color: rgba(255,255,255,.7); }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs .sep { margin: 0 8px; opacity: .5; }

/* =================================================================
   Tables
   ================================================================= */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--c-line); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  background: #fff;
}
table.data th, table.data td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-line-soft);
}
table.data th {
  background: var(--c-blue-soft);
  color: var(--c-navy);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 0.78rem;
}
table.data tbody tr:hover { background: #fafbfd; }
table.data tbody tr:last-child td { border-bottom: 0; }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-blue-soft);
  color: var(--c-navy);
}
.badge.pgt { background: #efe7fb; color: #6b21a8; }
.badge.tgt { background: #e3f5ee; color: #15803d; }
.badge.prt { background: #fff1de; color: var(--c-saffron); }
.badge.ntt { background: #ffe9e3; color: #b91c1c; }
.badge.pri { background: var(--c-navy); color: #fff; }
.badge.vp  { background: var(--c-navy-2); color: #fff; }
.badge.pet { background: #dff2ff; color: #075985; }
.badge.coun { background: #fce7f3; color: #9d174d; }

/* =================================================================
   Disclosure / docs list
   ================================================================= */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color .2s ease, transform .2s ease;
}
.doc-item:hover { border-color: var(--c-navy); transform: translateY(-2px); }
.doc-item .ico {
  width: 44px; height: 44px;
  background: var(--c-blue-soft);
  border-radius: var(--r-sm);
  color: var(--c-navy);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
}
.doc-item .meta strong { display: block; color: var(--c-navy); font-weight: 600; font-size: 0.95rem; }
.doc-item .meta span { color: var(--c-muted); font-size: 0.82rem; }
.doc-item .go { margin-left: auto; color: var(--c-saffron); font-weight: 700; }

/* =================================================================
   Contact / Forms
   ================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}
.info-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.info-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.info-card .ico {
  width: 48px; height: 48px;
  background: var(--c-blue-soft);
  border-radius: var(--r-sm);
  color: var(--c-navy);
  display: grid; place-items: center;
  font-size: 1.3rem;
}
.info-card strong { display: block; color: var(--c-navy); font-size: 1rem; margin-bottom: 4px; }
.info-card p { margin: 0; color: var(--c-muted); font-size: 0.94rem; }

.form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 32px; }
.form .row { margin-bottom: 16px; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { font-size: 0.88rem; font-weight: 600; display: block; margin-bottom: 6px; color: var(--c-navy); }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: #fff;
  font: inherit;
  color: var(--c-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0;
  border-color: var(--c-navy);
  box-shadow: 0 0 0 3px var(--c-blue-soft);
}
.form textarea { resize: vertical; min-height: 130px; }
.alert {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  margin-bottom: 18px;
  border: 1px solid;
}
.alert.success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert.error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert.info    { background: var(--c-blue-soft); color: var(--c-navy); border-color: #c8dcfb; }

/* =================================================================
   Footer
   ================================================================= */
.site-footer {
  background: #061a37;
  color: #c6cee0;
  padding-top: 64px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.f-col h4 {
  color: #fff;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.f-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.f-brand strong { color: #fff; font-family: var(--f-display); font-size: 1.15rem; display: block; line-height: 1.1; }
.f-brand span { font-size: 0.78rem; color: rgba(255,255,255,.6); }
.f-about p { font-size: 0.92rem; line-height: 1.7; max-width: 320px; color: rgba(255,255,255,.7); }
.f-links { list-style: none; padding: 0; margin: 0; }
.f-links li { margin-bottom: 8px; }
.f-links a {
  color: rgba(255,255,255,.78);
  font-size: 0.92rem;
  text-decoration: none;
}
.f-links a:hover { color: var(--c-gold); }
address { font-style: normal; font-size: 0.93rem; line-height: 1.8; color: rgba(255,255,255,.75); }
address a { color: inherit; }
address a:hover { color: var(--c-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
}
.fb-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.fb-inner a.muted { color: rgba(255,255,255,.55); }
.fb-inner a.muted:hover { color: var(--c-gold); }
.fb-right { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fb-credit { color: rgba(255,255,255,.4); font-size: 0.78rem; }
.fb-credit a { color: rgba(255,255,255,.5); text-decoration: none; }
.fb-credit a:hover { color: rgba(255,255,255,.75); }

.to-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  background: var(--c-navy);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .9rem;
  text-decoration: none !important;
  box-shadow: var(--sh-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s;
  z-index: 30;
  pointer-events: none;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* =================================================================
   Admin panel
   ================================================================= */
.admin-body {
  background: #f4f6fa;
  font-family: var(--f-body);
  color: var(--c-text);
  margin: 0;
  min-height: 100vh;
}
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-side {
  background: var(--c-navy);
  color: #cfd6e6;
  padding: 24px 0;
}
.admin-side .a-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 22px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 16px;
  color: #fff;
}
.admin-side .a-brand img { width: 36px; height: 36px; }
.admin-side .a-brand strong { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.1; display: block; }
.admin-side .a-brand span { font-size: 0.72rem; color: rgba(255,255,255,.55); letter-spacing: .08em; text-transform: uppercase; }
.admin-side nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 22px;
  color: rgba(255,255,255,.75);
  font-size: 0.93rem;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.admin-side nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-side nav a.active {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-left-color: var(--c-gold);
  font-weight: 600;
}
.admin-side .a-bot {
  padding: 18px 22px;
  font-size: 0.78rem;
  color: rgba(255,255,255,.45);
}
.admin-side .a-bot a { color: var(--c-gold); }

.admin-main { padding: 32px 38px; }
.admin-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 30px;
}
.admin-topbar h1 { margin: 0; font-size: 1.6rem; }
.admin-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 28px;
  margin-bottom: 22px;
}
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.admin-stat {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 22px 24px;
}
.admin-stat strong { font-family: var(--f-display); font-size: 1.8rem; color: var(--c-navy); display: block; }
.admin-stat span { font-size: 0.85rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .1em; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(11,36,71,.85), rgba(11,36,71,.95)),
    url('../assets/images/hero-1.jpg') center/cover no-repeat;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 40px 36px;
  box-shadow: var(--sh-lg);
}
.login-card .lh { text-align: center; margin-bottom: 26px; }
.login-card .lh img { width: 64px; height: 64px; margin: 0 auto 12px; }
.login-card h2 { font-size: 1.4rem; margin-bottom: 4px; }
.login-card .lh p { color: var(--c-muted); margin: 0; font-size: 0.92rem; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.admin-table th, table.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--c-line-soft);
  text-align: left;
  vertical-align: middle;
}
table.admin-table th {
  background: #f9fafc;
  color: var(--c-navy);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 0.74rem;
}
.row-actions { display: flex; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #f3f4f7;
  color: var(--c-navy);
  border-radius: var(--r-sm);
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover { background: var(--c-blue-soft); }
.icon-btn.danger { color: var(--c-danger); background: #fef2f2; }
.icon-btn.danger:hover { background: #fee2e2; }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .updates-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .principal-block { grid-template-columns: 1fr; padding: 40px; justify-items: center; text-align: center; }
  .principal-block .pmedia { width: 220px; aspect-ratio: 4 / 5; height: auto; }
  .principal-block .sig { justify-content: center; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-main { padding: 24px 18px; }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .topstrip-inner { font-size: 0.78rem; }
  .topstrip .ts-right { display: none; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 320px);
    background: #fff;
    box-shadow: var(--sh-lg);
    transform: translateX(105%);
    transition: transform .28s ease;
    padding: 90px 24px 30px;
    overflow-y: auto;
    z-index: 40;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav > ul { flex-direction: column; gap: 4px; }
  .primary-nav .submenu { padding-left: 8px; }
  .primary-nav .navlink { width: 100%; padding: 12px 14px; }
  .has-sub > .submenu {
    position: static;
    box-shadow: none;
    border: 0;
    background: var(--c-line-soft);
    margin: 4px 0 8px;
    display: flex;
    padding-left: 16px;
  }
  .submenu::before { display: none; }
  .header-inner { padding: 12px 18px; }
  .brand img { width: 46px; height: 46px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text span { font-size: 0.7rem; }
  .hero { min-height: 70vh; }
  .hero-inner { padding: 90px 0 110px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 20px 8px; }
  .stats .stat:nth-child(2) { border-right: 0; }
  .stats .stat { padding: 12px 8px; border-bottom: 1px solid var(--c-line); }
  .stats .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .two-col, .two-col.flip { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
  .two-col img { aspect-ratio: 4 / 3; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 22px; }
  .updates-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .docs-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 30px; }
  .form .row-2 { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-main { padding: 20px 16px; }
  .page-banner { padding: 50px 0 40px; }
  .page-banner h1 { font-size: 1.55rem; line-height: 1.25; }
  .principal-block { padding: 28px; }
  .principal-block::before { font-size: 14rem; }
  .section-head { margin-bottom: 36px; }
}

/* prevent body scroll when nav open */
body.nav-open { overflow: hidden; }
.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,36,71,.4);
  z-index: 35;
  display: none;
}
body.nav-open .nav-backdrop { display: block; }
