/* =====================================================
   CAFCSP.IT — Main Stylesheet
   Palette: Deep Navy #0f2744 + Gold #c9922a
   Fonts: Plus Jakarta Sans · Inter · Hind Siliguri
   ===================================================== */

:root {
  --navy:         #0f2744;
  --navy-md:      #1a3c5e;
  --navy-light:   #2d5a8e;
  --gold:         #c9a84c;
  --gold-light:   #f0d78a;
  --gold-pale:    rgba(201,168,76,.15);
  --steel:        #8fb0be;
  --steel-light:  #c5dce6;
  --bg:           #1a2830;
  --bg-alt:       #1f3340;
  --white:        #f0f6fa;
  --text:         rgba(255,255,255,.88);
  --text-md:      rgba(255,255,255,.70);
  --text-muted:   rgba(255,255,255,.48);
  --border:       rgba(255,255,255,.10);
  --border-md:    rgba(255,255,255,.18);

  --font-head:  'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body:  'Inter', sans-serif;
  --font-bn:    'Hind Siliguri', sans-serif;

  --section-pad: 88px;
  --container:   1200px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.15);
  --shadow:     0 4px 20px rgba(0,0,0,.25);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.35);
  --radius:     16px;
  --radius-sm:  10px;
  --radius-xs:  6px;
  --ease:       .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
body.lang-bn { font-family: var(--font-bn); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography helpers ── */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
.lang-bn h1,
.lang-bn h2,
.lang-bn h3 { font-family: var(--font-bn); }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,.35);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--white);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── Section wrappers ── */
.section      { padding: var(--section-pad) 0; }
.section-alt  { background: var(--bg-alt); }
.section-dark { background: var(--navy); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--ease);
  border: 2px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,146,42,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.8);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-md);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* Nav button */
.btn-nav {
  background: var(--gold);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-head);
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-nav:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: var(--navy);
  transition: background var(--ease), padding var(--ease), box-shadow var(--ease);
}
.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 28px rgba(15,39,68,.25);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo { height: 40px; width: auto; }
.nav-brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  transition: all var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.nav-mobile-auth { display: none; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.lang-toggle a {
  color: rgba(255,255,255,.55);
  transition: color var(--ease);
  padding: 2px 3px;
}
.lang-toggle a:hover,
.lang-toggle a.active { color: var(--gold-light); }
.lang-toggle span { color: rgba(255,255,255,.25); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg) 0%, #3d5a66 60%, #5f8ea0 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 85%, rgba(201,146,42,.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 15%, rgba(45,90,142,.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 55% at 70% 30%, rgba(143,176,190,.12) 0%, transparent 55%);
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 130px 0 80px;
  width: 100%;
}
.hero-content { max-width: 620px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,146,42,.14);
  border: 1px solid rgba(201,146,42,.28);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .45; transform: scale(.75); }
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 64px);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
  position: relative;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.72);
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero stats panel */
.hero-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-stat {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  min-width: 130px;
  transition: background var(--ease);
}
.hero-stat:hover { background: rgba(255,255,255,.11); }
.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,.58);
  line-height: 1.4;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.35);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  animation: float 2.4s ease-in-out infinite;
}
.hero-scroll svg { width: 18px; height: 18px; }
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: 30px;
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(143,176,190,.6), var(--navy-light));
  opacity: 0;
  transition: opacity var(--ease);
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.service-card:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.18);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: rgba(143,176,190,.12);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(143,176,190,.2);
  color: var(--steel-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all var(--ease);
  color: var(--navy);
}
.service-card:hover .service-icon { background: var(--navy); color: var(--white); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-size: 17px;
  color: var(--white);
  margin-bottom: 9px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.service-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--ease);
}
.service-card:hover .service-link { gap: 9px; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--navy);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(201,146,42,.08) 0%, transparent 70%);
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-divider {
  position: relative;
}
.stat-divider:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,.1);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-lbl {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 500;
}

/* ── WHY US ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 36px 30px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.09);
  position: relative;
}
.feature-num {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  color: rgba(255,255,255,.12);
  line-height: 1;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; color: var(--white); margin-bottom: 10px; }
.feature-card p  { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ── NEWS CARDS ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-card {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news-thumb {
  width: 100%; height: 196px;
  background: linear-gradient(135deg, var(--navy-md), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-placeholder {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 800;
  color: rgba(255,255,255,.12);
  letter-spacing: -.04em;
}
.news-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,.28);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 11px;
  width: fit-content;
}
.news-card h3 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 9px;
  line-height: 1.45;
}
.news-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}
.news-read { font-weight: 600; color: var(--steel-light); transition: color var(--ease); }
.news-read:hover { color: var(--gold-light); }
.news-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px dashed var(--border-md);
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-md) 100%);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(201,146,42,.1) 0%, transparent 65%);
}
.cta-banner .container { position: relative; }
.cta-banner h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--white);
  margin-bottom: 14px;
}
.cta-banner p {
  font-size: 17px;
  color: rgba(255,255,255,.7);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FOOTER ── */
.footer {
  background: #080f1e;
  color: rgba(255,255,255,.65);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand img   { height: 38px; margin-bottom: 10px; filter: brightness(0) invert(1); }
.footer-brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  color: rgba(255,255,255,.55);
}
.footer-socials a:hover { background: var(--gold); color: var(--white); }
.footer-socials svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 20px;
}
.footer-col ul   { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  transition: color var(--ease);
}
.footer-col li a:hover { color: var(--gold-light); }
.footer-contact p {
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 13px;
  color: rgba(255,255,255,.58);
  line-height: 1.5;
}
.footer-contact svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,.3);
}
.footer-bottom-links { display: flex; align-items: center; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,.4); transition: color var(--ease); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-md);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  background: rgba(255,255,255,.07);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-control:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(143,176,190,.18);
}
.form-control::placeholder { color: rgba(255,255,255,.35); }

/* ── ALERTS ── */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-error   { background: rgba(239,68,68,.15);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.alert-success { background: rgba(34,197,94,.12);  border: 1px solid rgba(34,197,94,.28); color: #86efac; }
.alert-info    { background: rgba(96,165,250,.12);  border: 1px solid rgba(96,165,250,.28); color: #93c5fd; }

/* ── AUTH PAGE ── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #091d35 0%, var(--navy-md) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 48px;
}
.auth-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo img { height: 52px; margin: 0 auto 14px; }
.auth-logo h2 { font-size: 22px; color: var(--white); }
.auth-logo p  { font-size: 14px; color: var(--text-muted); margin-top: 5px; }
.auth-card .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.auth-footer a { color: var(--gold-light); font-weight: 600; }
.forgot-link { text-align: right; font-size: 13px; margin-top: -12px; margin-bottom: 18px; }
.forgot-link a { color: var(--steel-light); font-size: 13px; }

/* ── Public portal sidebar (shown on public pages when logged in) ── */
.public-portal-sidebar {
  position: fixed;
  left: 0;
  top: 65px;
  width: 220px;
  height: calc(100vh - 65px);
  background: var(--navy);
  padding: 24px 16px;
  overflow-y: auto;
  z-index: 800;
  box-shadow: 4px 0 20px rgba(15,39,68,.15);
}
body.has-portal-sidebar {
  padding-left: 220px;
}
@media (max-width: 768px) {
  .public-portal-sidebar { display: none; }
  body.has-portal-sidebar { padding-left: 0; }
}

/* ── DASHBOARD ── */
.dash-page {
  min-height: 100vh;
  padding-top: 70px;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-width: 0;
}
.dash-sidebar {
  background: var(--navy);
  padding: 28px 16px;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}
.dash-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dash-avatar {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  font-size: 16px;
  flex-shrink: 0;
}
.dash-sidebar-name { font-size: 14px; font-weight: 600; color: var(--white); line-height: 1.3; }
.dash-sidebar-role { font-size: 11px; color: rgba(255,255,255,.5); }
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: var(--radius-xs);
  color: rgba(255,255,255,.6);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--ease);
  margin-bottom: 3px;
}
.dash-nav-link:hover,
.dash-nav-link.active {
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.dash-nav-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.dash-nav-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  padding: 14px 14px 6px;
}
.dash-main { padding: 32px 28px; background: var(--bg); min-width: 0; }
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.dash-topbar h1 { font-size: 26px; color: var(--white); }
.dash-topbar p  { color: var(--text-muted); font-size: 14px; margin-top: 3px; }
.dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.dash-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-card-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-card-icon.navy { background: rgba(143,176,190,.15); color: var(--steel-light); }
.dash-card-icon.gold { background: var(--gold-pale); color: var(--gold); }
.dash-card-icon svg { width: 22px; height: 22px; }
.dash-card-num   { font-family: var(--font-serif); font-size: 28px; font-weight: 700; color: var(--gold-light); line-height: 1; }
.dash-card-label { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* Tables */
.table-wrap {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
}
table { min-width: 520px; }
.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.table-head h3 { font-size: 16px; color: var(--white); }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 14px 18px; font-size: 14px; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg); }
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.status-pending    { background: rgba(251,191,36,.18);  color: #fcd34d; border: 1px solid rgba(251,191,36,.3); }
.status-processing { background: rgba(96,165,250,.15);  color: #93c5fd; border: 1px solid rgba(96,165,250,.28); }
.status-completed  { background: rgba(52,211,153,.15);  color: #6ee7b7; border: 1px solid rgba(52,211,153,.28); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-md) 100%);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); color: var(--white); margin-bottom: 12px; }
.page-hero p  { font-size: 17px; color: rgba(255,255,255,.7); max-width: 560px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.55); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,.25); }

/* ── SERVIZI INNER PAGE ── */
.service-detail { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.service-detail-content h2 { font-size: 22px; color: var(--gold-light); margin-bottom: 14px; margin-top: 32px; }
.service-detail-content h2:first-child { margin-top: 0; }
.service-detail-content p { font-size: 15px; color: var(--text-md); line-height: 1.8; margin-bottom: 14px; }
.service-detail-content ul { margin: 14px 0 14px 20px; }
.service-detail-content li { font-size: 15px; color: var(--text-md); margin-bottom: 7px; line-height: 1.6; list-style: disc; }
.service-sidebar {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 90px;
}
.service-sidebar h3 { font-size: 16px; color: var(--white); margin-bottom: 16px; }
.service-list-nav { display: flex; flex-direction: column; gap: 6px; }
.service-list-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--text-md);
  transition: all var(--ease);
  border-left: 3px solid transparent;
}
.service-list-nav a:hover,
.service-list-nav a.active {
  background: rgba(255,255,255,.08);
  color: var(--gold-light);
  border-left-color: var(--gold);
  padding-left: 18px;
}
.cta-card {
  background: var(--navy);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  margin-top: 20px;
}
.cta-card h4 { color: var(--white); font-size: 16px; margin-bottom: 8px; }
.cta-card p  { color: rgba(255,255,255,.65); font-size: 13px; margin-bottom: 18px; line-height: 1.6; }

/* ── NEWS INNER PAGE ── */
.news-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.news-article h1 { font-size: clamp(24px, 3vw, 36px); color: var(--white); margin-bottom: 16px; line-height: 1.3; }
.news-article .article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.news-article {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: 40px;
}
.news-article .article-body { font-size: 16px; color: var(--text-md); line-height: 1.85; }
.news-article .article-body p { margin-bottom: 18px; }
.news-article .article-body h2,
.news-article .article-body h3,
.news-article .article-body h4 { color: var(--white); margin: 28px 0 12px; }
.news-article .article-body h2 { font-size: 20px; }
.news-article .article-body strong,
.news-article .article-body b { color: var(--white); font-weight: 700; }
.news-article .article-body a { color: var(--gold-light); text-decoration: underline; }
.news-article .article-body a:hover { color: var(--steel-light); }
.news-sidebar { position: sticky; top: 90px; }
.news-sidebar .table-wrap { padding: 22px; }
.news-sidebar h3 { font-size: 15px; color: var(--white); margin-bottom: 16px; }
.recent-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--ease);
}
.recent-post:last-child { border-bottom: none; }
.recent-post:hover { opacity: .75; }
.recent-post-info h4 { font-size: 13px; color: var(--white); line-height: 1.4; margin-bottom: 4px; }
.recent-post-info span { font-size: 11px; color: var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid     { grid-template-columns: repeat(2, 1fr); }
  .news-grid         { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-aside        { display: none; }
  .service-detail    { grid-template-columns: 1fr; }
  .service-sidebar   { position: static; }
  .news-layout       { grid-template-columns: 1fr; }
  .news-sidebar      { position: static; }
}
@media (max-width: 768px) {
  :root { --section-pad: 60px; }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 260px;
    height: 100vh;
    background: #1a2e40;
    border-left: 1px solid rgba(255,255,255,.1);
    padding: 80px 20px 36px;
    z-index: 1001;
    gap: 3px;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a     { font-size: 16px; padding: 12px 14px; }
  .hamburger        { display: flex; }
  .nav-brand-name   { display: none; }
  .nav-mobile-auth  { display: block; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-mobile-auth .btn-nav { width: 100%; box-sizing: border-box; }
  .nav-actions .btn-nav { display: none; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1000;
  }
  .nav-overlay.open { display: block; }

  .hero-inner       { grid-template-columns: 1fr; }
  .hero-aside       { display: none; }
  .hero h1          { font-size: 36px; }
  .hero-sub         { font-size: 16px; }
  .hero-ctas        { flex-direction: column; }
  .hero-ctas .btn   { justify-content: center; }

  .services-grid    { grid-template-columns: 1fr; }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .stat-divider::after { display: none; }
  .features-grid    { grid-template-columns: 1fr; }
  .news-grid        { grid-template-columns: 1fr; }

  .footer-grid      { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom    { flex-direction: column; gap: 8px; text-align: center; }

  .dash-page        { grid-template-columns: 1fr; }
  .dash-sidebar     { display: none; }
  .dash-main        { padding: 24px 18px; }
  .dash-cards       { grid-template-columns: 1fr; }

  .auth-card        { padding: 36px 24px; }

  .section-header   { margin-bottom: 36px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile bottom nav (all pages) ───────────────────────────────────────── */
.dash-bottom-nav {
  display: none;
}
@media (max-width: 768px) {
  .dash-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 900;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  }
  .dbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 0;
    transition: color .2s;
  }
  .dbn-item svg {
    width: 22px; height: 22px;
  }
  .dbn-item.active,
  .dbn-item:hover {
    color: #c9922a;
  }
  .dash-main { padding-bottom: 80px; }
}
