/* ── SKELETON LOADING ──────────────────────────────────────────────── */

@keyframes sk-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

/* Overlay */
#page-skeleton {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #f3f5f7;
  transition: opacity 0.35s ease;
}
#page-skeleton.sk-done {
  opacity: 0;
  pointer-events: none;
}

/* No-JS fallback */
@media (scripting: none) {
  #page-skeleton { display: none !important; }
}

/* Print */
@media print {
  #page-skeleton { display: none !important; }
}

/* Base shimmer block */
.sk {
  display: block;
  background: linear-gradient(90deg, #dde2e8 25%, #edf0f3 50%, #dde2e8 75%);
  background-size: 600px 100%;
  animation: sk-shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

/* Light shimmer used on dark (navy) sections */
.sk-light {
  background: linear-gradient(90deg,
    rgba(255,255,255,.06) 25%,
    rgba(255,255,255,.14) 50%,
    rgba(255,255,255,.06) 75%);
  background-size: 600px 100%;
  animation: sk-shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
  display: block;
}

/* ── PUBLIC — NAVBAR ──────────────────────────────────────────────── */

.sk-nav {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid #e5e9ef;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  gap: 2rem;
}
.sk-nav-logo      { width: 130px; height: 36px; }
.sk-nav-links     { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.sk-nav-link      { width: 68px; height: 12px; }
.sk-nav-btn       { width: 90px; height: 36px; border-radius: 8px; }
.sk-nav-hamburger { width: 40px; height: 32px; border-radius: 6px; margin-left: auto; }

/* ── PUBLIC — HERO ────────────────────────────────────────────────── */

.sk-hero {
  background: #1e2d40;
  min-height: 500px;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 5rem 2.5rem;
}
.sk-hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.sk-hero-label { width: 200px; height: 12px; }
.sk-hero-h1    { height: 42px; width: 100%; }
.sk-hero-h1b   { height: 42px; width: 60%; }
.sk-hero-sub   { height: 13px; width: 100%; margin-top: .3rem; }
.sk-hero-sub2  { height: 13px; width: 88%; }
.sk-hero-sub3  { height: 13px; width: 72%; }
.sk-hero-btn   { width: 200px; height: 46px; border-radius: 6px; margin-top: .4rem; }
.sk-hero-img   { width: 420px; height: 300px; border-radius: 12px; flex-shrink: 0; }

/* ── PUBLIC — CONTENT SECTION ─────────────────────────────────────── */

.sk-section {
  padding: 4.5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.sk-section-dark {
  background: #1e2d40;
  padding: 4.5rem 2.5rem;
}
.sk-section-dark-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sk-label { width: 160px; height: 11px; margin-bottom: 1rem; }
.sk-h2    { width: 280px; height: 32px; margin-bottom: 2rem; }

.sk-line   { height: 13px; margin-bottom: .55rem; }
.sk-w100   { width: 100%; }
.sk-w85    { width: 85%; }
.sk-w70    { width: 70%; }

/* Two-column row */
.sk-two-col { display: flex; align-items: center; gap: 3rem; }
.sk-col     { flex: 1; display: flex; flex-direction: column; gap: .85rem; }
.sk-img-side { width: 420px; height: 300px; border-radius: 12px; flex-shrink: 0; }

/* ── PUBLIC — CARD GRID ───────────────────────────────────────────── */

.sk-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.sk-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.sk-card-icon  { width: 40px; height: 40px; border-radius: 8px; }
.sk-card-title { width: 65%;  height: 18px; }
.sk-card-line  { width: 100%; height: 12px; }
.sk-card-line-s { width: 55%; height: 12px; }

/* ── PUBLIC — NEWS GRID (DARK) ────────────────────────────────────── */

.sk-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.sk-news-card {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
}
.sk-news-img  { width: 100%; height: 200px; border-radius: 0; }
.sk-news-body { padding: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.sk-news-date { width: 110px; height: 11px; }
.sk-news-ttl  { width: 80%;  height: 15px; }

/* ── FOOTER BAR ───────────────────────────────────────────────────── */

.sk-footer-bar { height: 80px; background: #1e2d40; }

/* ── ADMIN — WRAPPER ──────────────────────────────────────────────── */

#page-skeleton.sk-admin { background: #f3f5f7; }
#page-skeleton.sk-login { background: #1e2d40; }

.sk-admin-wrap { display: flex; min-height: 100vh; }

/* Sidebar */
.sk-sidebar {
  width: 240px;
  min-width: 240px;
  background: #1e2d40;
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.sk-sidebar-logo { width: 120px; height: 36px; border-radius: 6px; margin-bottom: .5rem; }
.sk-sidebar-item { width: 100%; height: 42px; border-radius: 8px; }

/* Main panel */
.sk-admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f3f5f7;
  min-width: 0;
}
.sk-topbar {
  height: 62px;
  background: #fff;
  border-bottom: 1px solid #e5e9ef;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}
.sk-topbar-title { width: 200px; height: 22px; }
.sk-topbar-btn   { width: 120px; height: 36px; border-radius: 8px; margin-left: auto; }
.sk-admin-content { padding: 1.5rem; flex: 1; }

/* Table skeleton */
.sk-table-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.sk-table-head { height: 46px; width: 100%; border-radius: 6px; }
.sk-table-row  { height: 52px; width: 100%; border-radius: 6px; }

/* Form skeleton */
.sk-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.sk-form-group   { display: flex; flex-direction: column; gap: .45rem; }
.sk-form-row     { display: flex; gap: 1rem; }
.sk-form-row .sk-form-group { flex: 1; }
.sk-form-label   { width: 110px; height: 13px; }
.sk-form-input   { width: 100%; height: 44px; border-radius: 8px; }
.sk-form-textarea { width: 100%; height: 120px; border-radius: 8px; }
.sk-form-textarea-lg { width: 100%; height: 220px; border-radius: 8px; }
.sk-form-btn     { width: 120px; height: 40px; border-radius: 8px; }

/* ── ADMIN LOGIN SKELETON ─────────────────────────────────────────── */

.sk-login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}
.sk-login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,.05);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
}
.sk-login-logo  { width: 140px; height: 50px; border-radius: 6px; }
.sk-login-title { width: 55%;   height: 28px; }
.sk-login-sub   { width: 78%;   height: 12px; }
.sk-login-gap   { height: .3rem; }
.sk-login-input { width: 100%;  height: 44px; border-radius: 8px; }
.sk-login-btn   { width: 100%;  height: 46px; border-radius: 8px; margin-top: .3rem; }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
  .sk-nav-links     { display: none; }
  .sk-nav-hamburger { display: block !important; }
  .sk-hero          { flex-direction: column; padding: 3rem 1.5rem; min-height: 0; }
  .sk-hero-img      { width: 100%; height: 220px; }
  .sk-two-col       { flex-direction: column; }
  .sk-img-side      { width: 100%; height: 240px; }
  .sk-sidebar       { display: none; }
  .sk-admin-main    { width: 100%; }
}

@media (max-width: 767.98px) {
  .sk-card-grid  { grid-template-columns: 1fr; }
  .sk-news-grid  { grid-template-columns: 1fr; }
  .sk-section    { padding: 3rem 1.25rem; }
  .sk-form-row   { flex-direction: column; }
}
