/* Minimal utility-style fallback to preserve layout when Tailwind CDN is blocked */
:root {
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --purple-600: #7c3aed;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --slate-50: #f8fafc;
  --slate-100: #e2e8f0;
  --slate-200: #e5e7eb;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--slate-900);
  background: var(--slate-50);
  line-height: 1.6;
}
a { color: var(--indigo-600); text-decoration: none; }
a:hover { color: var(--indigo-700); }
img { max-width: 100%; display: block; }

/* Layout helpers */
.max-w-3xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 72rem; margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.w-10 { width: 2.5rem; }
.w-24 { width: 6rem; }
.w-28 { width: 7rem; }
.w-32 { width: 8rem; }
.h-full { height: 100%; }
.h-24 { height: 6rem; }
.h-40 { height: 10rem; }
.min-w-full { min-width: 100%; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.object-cover { object-fit: cover; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.sticky { position: sticky; }
.z-50 { z-index: 50; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-y-6 { row-gap: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-2 { padding-top: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.list-decimal { list-style: decimal; }
.list-inside { padding-left: 1rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.rounded { border-radius: 0.25rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow { box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.shadow-sm { box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.shadow-xl { box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.shadow-2xl { box-shadow: 0 20px 45px rgba(0,0,0,0.18); }
.border { border: 1px solid #e5e7eb; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-slate-100 { border-color: var(--slate-100); }
.border-slate-200 { border-color: var(--slate-200); }
.border-indigo-100 { border-color: #e0e7ff; }
.border-white\/5 { border-color: rgba(255,255,255,0.05); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }
.border-white\/50 { border-color: rgba(255,255,255,0.5); }
.divide-y > :not(:last-child) { border-bottom: 1px solid #e5e7eb; }
.bg-white\/90 { background: rgba(255,255,255,0.9); }
.bg-white\/5 { background: rgba(255,255,255,0.05); }
.bg-white\/10 { background: rgba(255,255,255,0.1); }
.bg-white\/20 { background: rgba(255,255,255,0.2); }
.bg-indigo-50 { background: var(--indigo-50); }
.bg-indigo-600 { background: var(--indigo-600); color: #fff; }
.bg-indigo-700 { background: var(--indigo-700); color: #fff; }
.bg-slate-900 { background: var(--slate-900); color: #e2e8f0; }
.bg-slate-50 { background: var(--slate-50); }
.bg-slate-100 { background: var(--slate-100); }
.bg-gradient-to-br { background: linear-gradient(135deg, var(--indigo-700), #1d4ed8, var(--sky-500)); color: #fff; }
.bg-gradient-to-br.from-indigo-600.via-purple-600.to-sky-500 { background: linear-gradient(135deg, var(--indigo-600), var(--purple-600), var(--sky-500)); color: #fff; }
.bg-gradient-to-br.from-indigo-50.to-sky-50 { background: linear-gradient(135deg, #eef2ff, #e0f2fe); }
.text-white { color: #fff; }
.text-indigo-50 { color: var(--indigo-100); }
.text-indigo-100 { color: var(--indigo-100); }
.text-indigo-200 { color: var(--indigo-200); }
.text-indigo-300 { color: var(--indigo-300); }
.text-indigo-600 { color: var(--indigo-600); }
.text-indigo-700 { color: var(--indigo-700); }
.text-slate-100 { color: #e2e8f0; }
.text-slate-300 { color: var(--slate-300); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-700 { color: var(--slate-700); }
.text-slate-800 { color: #1f2937; }
.text-slate-900 { color: var(--slate-900); }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-tight { line-height: 1.1; }
.leading-relaxed { line-height: 1.7; }
.uppercase { text-transform: uppercase; }
.tracking-[0.3em] { letter-spacing: 0.3em; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.1; }
.text-xs { font-size: 0.75rem; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hover\:-translate-y-1 { transition: transform 0.2s ease; }
.hover\:-translate-y-1:hover { transform: translateY(-4px); }
.hover\:-translate-y-0\.5 { transition: transform 0.2s ease; }
.hover\:-translate-y-0\.5:hover { transform: translateY(-2px); }
.transition { transition: all 0.2s ease; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-2xl { box-shadow: 0 20px 45px rgba(0,0,0,0.18); }
.backdrop-blur { backdrop-filter: blur(10px); }
.hover\:bg-indigo-700:hover { background: var(--indigo-700); color: #fff; }
.hover\:text-indigo-600:hover { color: var(--indigo-600); }
.hover\:bg-white\/10:hover { background: rgba(255,255,255,0.1); }
.bg-white.rounded-2xl { border: 1px solid var(--slate-100); box-shadow: 0 10px 30px rgba(15,23,42,0.08); }
.hidden { display: none !important; }
.min-h-screen { min-height: 100vh; }

/* Forms */
input, textarea {
  font-family: inherit;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--indigo-500); }
textarea { resize: vertical; }

/* Buttons */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: var(--indigo-600);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
button:hover, .btn:hover { background: var(--indigo-700); }

/* Prose */
.prose { line-height: 1.7; color: var(--slate-700); }
.prose h1, .prose h2, .prose h3 { color: var(--slate-900); margin-top: 1.6em; margin-bottom: 0.6em; }
.prose p { margin: 0.8em 0; }
.prose ul { padding-left: 1.5em; }

/* Breadcrumb-like small text */
.text-indigo-600.font-semibold { color: var(--indigo-600); font-weight: 600; }

/* Responsive grids */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:flex { display: flex; }
  .md\:inline-flex { display: inline-flex; }
  .md\:flex-row { flex-direction: row; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Home featured classes */
.home-featured-classes { width: 100%; }
.home-featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-featured-card:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.home-featured-image { height: 11rem; width: 100%; overflow: hidden; }
.home-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-featured-content { padding: 1.25rem; display: flex; flex-direction: column; height: 100%; }
.home-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.15) 0%, rgba(15,23,42,0.75) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: flex-end;
}
.home-featured-card:hover .home-featured-overlay { opacity: 1; pointer-events: auto; }
.home-featured-overlay-inner { padding: 1.25rem; width: 100%; }
.home-featured-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.home-featured-btn {
  background: #fff;
  color: var(--indigo-600);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-featured-btn.secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.home-featured-btn:hover { transform: translateY(-1px); }

@media (max-width: 767px) {
  .home-featured-image { height: 12rem; }
  .home-featured-overlay { align-items: flex-end; }
}

/* Simple container backgrounds */
.bg-gradient-to-br.from-indigo-600.via-purple-600.to-sky-500 {
  background: linear-gradient(135deg, var(--indigo-600), var(--purple-600), var(--sky-500));
}

/* Link-like buttons */
.px-5.py-3.bg-indigo-600 { color: #fff; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; }
.px-5.py-3.bg-indigo-600:hover { background: var(--indigo-700); }
.px-5.py-3.border { border: 1px solid rgba(255,255,255,0.5); color: #fff; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; }
.page-shell { width: 100%; }
.page-shell-article { max-width: 1050px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.page-shell-default { max-width: 1150px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.page-shell-wide { width: 100%; }
.article-prose { max-width: 100%; line-height: 1.7; font-size: 1rem; color: #0f172a; }
.article-prose p { margin-bottom: 1rem; }
.article-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.article-container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== Theme V2: Modern Professional Refresh ===== */
:root {
  --brand-bg: #f4f7fb;
  --brand-panel: #ffffff;
  --brand-ink: #0d1b2a;
  --brand-muted: #5f6f82;
  --brand-line: #d9e2ec;
  --brand-primary: #006d77;
  --brand-primary-strong: #00545b;
  --brand-accent: #f4a261;
  --brand-surface: #f0f7f8;
  --brand-shadow: 0 18px 50px rgba(13, 27, 42, 0.08);
}

.site-body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background: radial-gradient(1200px 500px at 10% -10%, rgba(0, 109, 119, 0.1), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(244, 162, 97, 0.12), transparent 60%),
              var(--brand-bg);
  color: var(--brand-ink);
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.01em;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(13, 27, 42, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(13, 27, 42, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
}

.site-header {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brand-ink);
  font-weight: 800;
}

.site-brand-mark {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  box-shadow: 0 0 0 5px rgba(0, 109, 119, 0.13);
}

.site-brand-text {
  font-size: 1.03rem;
  line-height: 1.3;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 27, 42, 0.09);
  background: rgba(255, 255, 255, 0.9);
}

.site-nav a {
  color: var(--brand-muted);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.site-nav a:hover {
  color: var(--brand-primary-strong);
  background: rgba(0, 109, 119, 0.09);
}

.site-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
}

.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.68rem 1.25rem;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--brand-primary), #008995);
  box-shadow: 0 8px 20px rgba(0, 109, 119, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 109, 119, 0.3);
}

.site-cta-desktop {
  display: none;
}

.site-menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.site-menu-btn span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: #14303f;
}

.site-mobile-nav {
  border-top: 1px solid rgba(13, 27, 42, 0.08);
  background: #fff;
}

.site-mobile-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.8rem 1rem 1rem;
  display: grid;
  gap: 0.45rem;
}

.site-mobile-nav a {
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  color: #123042;
  font-weight: 700;
}

.site-mobile-nav a:hover {
  background: var(--brand-surface);
}

.site-mobile-nav .site-cta.mobile {
  margin-top: 0.25rem;
}

.site-main {
  position: relative;
  z-index: 1;
}

main section {
  animation: fadeRise 0.55s ease both;
}

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards, blocks, forms */
.bg-white,
.bg-white.rounded-2xl,
.bg-white.rounded-3xl {
  background: var(--brand-panel) !important;
  border: 1px solid var(--brand-line) !important;
  box-shadow: var(--brand-shadow) !important;
}

.rounded-2xl { border-radius: 1.05rem; }
.rounded-3xl { border-radius: 1.3rem; }

.text-indigo-600,
.text-indigo-700 {
  color: var(--brand-primary) !important;
}

.bg-indigo-50 {
  background: var(--brand-surface) !important;
  border-color: rgba(0, 109, 119, 0.18) !important;
}

.bg-indigo-600,
.px-5.py-3.bg-indigo-600 {
  background: linear-gradient(135deg, var(--brand-primary), #008995) !important;
  color: #fff !important;
}

.bg-indigo-600:hover,
.px-5.py-3.bg-indigo-600:hover {
  background: linear-gradient(135deg, var(--brand-primary-strong), #007a84) !important;
}

input,
textarea,
select {
  background: #fff;
  border: 1px solid #ccd8e5;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(0, 109, 119, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 109, 119, 0.12);
}

/* Hero tuning */
section.bg-gradient-to-br {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #0a4f59, #007f8a 58%, #f4a261 130%) !important;
}

section.bg-gradient-to-br::before {
  content: "";
  position: absolute;
  inset: -25% 45% auto -10%;
  height: 230px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(24px);
}

section.bg-gradient-to-br h1 {
  text-shadow: 0 8px 35px rgba(0, 0, 0, 0.22);
}

/* Post and article readability */
.article-prose {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--brand-shadow);
}

.article-prose p,
.article-prose li {
  color: #21384b;
}

.article-prose h2,
.article-prose h3 {
  color: #13293a;
}

/* Footer */
.site-footer {
  margin-top: 4.5rem;
  background: linear-gradient(160deg, #0f1b2d, #12253b 55%, #0d4f58 120%);
  color: #e8edf5;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(800px 280px at 20% 0%, rgba(255, 255, 255, 0.09), transparent 70%);
}

.site-footer h3,
.site-footer h4 {
  font-family: 'Fraunces', Georgia, serif;
  margin: 0 0 0.65rem;
}

.site-footer h3 { font-size: 1.18rem; }
.site-footer h4 { font-size: 1rem; }

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(232, 237, 245, 0.88);
  font-size: 0.93rem;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.site-footer-links span {
  color: rgba(232, 237, 245, 0.65);
}

.site-socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.site-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
}

/* Small screens */
@media (max-width: 767px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-brand-text {
    font-size: 0.95rem;
  }

  .site-main {
    padding-top: 0.2rem;
  }

  h1.text-4xl,
  h1.text-5xl {
    font-size: 2rem !important;
    line-height: 1.18 !important;
  }

  h2.text-3xl {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
  }
}

@media (min-width: 768px) {
  .site-nav {
    display: inline-flex;
  }

  .site-cta-desktop {
    display: inline-flex;
  }

  .site-menu-btn {
    display: none;
  }

  .site-mobile-nav {
    display: none !important;
  }
}

/* ===== V3 polish: richer visuals ===== */
.home-hero .max-w-6xl {
  position: relative;
  z-index: 1;
}

.home-hero .relative.rounded-3xl {
  transform: perspective(1000px) rotateY(-3deg);
  transition: transform 0.4s ease;
}

.home-hero .relative.rounded-3xl:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-4px);
}

.home-hero .mt-8 > div {
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.16) !important;
  background: linear-gradient(160deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08));
}

.home-classes .home-featured-card {
  border: 1px solid #d1dce7 !important;
  box-shadow: 0 20px 36px rgba(13, 27, 42, 0.08) !important;
  background: linear-gradient(180deg, #fff, #f8fbff 75%);
}

.home-classes .home-featured-content h3 {
  color: #0f2537;
}

.home-classes .home-featured-content .text-sm.text-slate-500 {
  font-weight: 600;
  color: #5b6e81;
}

.home-classes .home-featured-overlay {
  background: linear-gradient(180deg, rgba(7, 59, 76, 0.05), rgba(7, 59, 76, 0.88));
}

.home-classes .home-featured-btn {
  background: #fff;
  color: #004f57;
}

.home-roadmap,
.home-method,
.home-faq,
.home-contact {
  position: relative;
}

.home-roadmap::before,
.home-method::before,
.home-faq::before,
.home-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 140px at 10% 0%, rgba(0, 109, 119, 0.08), transparent 70%);
}

.home-method .p-4.rounded-2xl {
  background: linear-gradient(145deg, #ffffff, #f4fbfc) !important;
  border-color: #cfe0e2 !important;
}

.home-schedule-table thead th {
  color: #456176;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}

.home-schedule-table tbody tr {
  transition: background 0.2s ease;
}

.home-schedule-table tbody tr:hover {
  background: #f3fafb;
}

.home-blog {
  background: linear-gradient(140deg, #0c1728, #14324a 55%, #005f69 120%) !important;
}

.home-blog article {
  background: linear-gradient(165deg, rgba(255,255,255,0.11), rgba(255,255,255,0.03)) !important;
  border-color: rgba(255,255,255,0.2) !important;
  backdrop-filter: blur(7px);
}

.faq-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(13, 27, 42, 0.1) !important;
}

.faq-item summary {
  position: relative;
  padding-right: 1.6rem;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: #0a6169;
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "−";
}

.contact-form-modern {
  background: linear-gradient(160deg, #ffffff, #f5fafb) !important;
  border-color: #cde0e3 !important;
  box-shadow: 0 24px 45px rgba(13, 27, 42, 0.09) !important;
}

.contact-form-modern button {
  min-width: 140px;
}

@media (max-width: 767px) {
  .home-hero .text-lg {
    font-size: 1.02rem !important;
  }

  .home-blog .grid {
    gap: 0.8rem;
  }

  .contact-form-modern {
    padding: 1rem !important;
  }
}

/* ===== V4 readability + luxury polish ===== */
.nightly-panel {
  background: linear-gradient(160deg, #0f6a73, #0a525b 55%, #083b43) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 24px 50px rgba(4, 48, 53, 0.38) !important;
  color: #f3fbfc;
}

.nightly-panel h3 {
  color: #ffffff !important;
  letter-spacing: 0.01em;
}

.nightly-panel .nightly-item {
  align-items: flex-start;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.nightly-panel .nightly-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.nightly-panel .nightly-item span {
  background: linear-gradient(145deg, #f4a261, #ffbe88) !important;
  color: #1f2d3a !important;
  box-shadow: 0 10px 22px rgba(244, 162, 97, 0.35);
  font-weight: 800;
}

.nightly-panel .nightly-item p {
  margin: 0;
}

.nightly-panel .nightly-item p.font-semibold {
  color: #ffffff !important;
  font-size: 1rem;
}

.nightly-panel .nightly-item p.text-sm,
.nightly-panel .nightly-item p.text-slate-600 {
  color: #d6ecee !important;
  margin-top: 0.2rem;
}

.home-hero .px-5.py-3.bg-white {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #0a5159 !important;
  font-weight: 800;
}

.home-hero .px-5.py-3.border.border-white\/50 {
  border-width: 1.5px;
  font-weight: 700;
}

.home-classes .home-featured-card {
  transform-origin: center bottom;
}

.home-classes .home-featured-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.home-classes .home-featured-image {
  height: 12rem;
}

.home-method .bg-white.rounded-3xl {
  background: linear-gradient(165deg, #ffffff, #f1f9fb 72%) !important;
}

.home-faq .faq-item {
  border-color: #cfdae6 !important;
}

.home-contact .rounded-2xl.overflow-hidden.shadow.border {
  border-color: #b7cdda !important;
  box-shadow: 0 18px 35px rgba(13, 27, 42, 0.12) !important;
}

.contact-form-modern button,
.home-contact button.bg-indigo-600 {
  background: linear-gradient(135deg, #006d77, #0a818c) !important;
  border: 0;
}

.contact-form-modern button:hover,
.home-contact button.bg-indigo-600:hover {
  background: linear-gradient(135deg, #00545b, #006d77) !important;
}

@media (max-width: 767px) {
  .nightly-panel {
    padding: 1rem !important;
  }

  .nightly-panel .nightly-item p.font-semibold {
    font-size: 0.95rem;
  }
}

/* ===== V5: method section synced with nightly style ===== */
.method-highlight .method-intro > p,
.method-highlight .method-intro > h2,
.method-highlight .method-intro > div {
  color: #edf8f9 !important;
}

.method-highlight .method-intro {
  background: linear-gradient(160deg, #0f6a73, #0a525b 55%, #083b43) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.1rem;
  box-shadow: 0 24px 50px rgba(4, 48, 53, 0.32);
  padding: 1.4rem;
}

.method-feature {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
}

.method-feature h3 {
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.method-feature p,
.method-feature .text-sm,
.method-feature .text-slate-600 {
  color: #d6ecee !important;
}

.method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, #f4a261, #ffbe88);
  color: #1f2d3a;
  box-shadow: 0 8px 18px rgba(244, 162, 97, 0.35);
  flex: 0 0 auto;
}

.schedule-panel.nightly-panel {
  color: #edf8f9;
}

.schedule-panel .home-schedule-table thead th {
  color: #d6ecee !important;
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

.schedule-panel .home-schedule-table tbody tr {
  border-bottom-color: rgba(255, 255, 255, 0.14) !important;
}

.schedule-panel .home-schedule-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

.schedule-panel .home-schedule-table td,
.schedule-panel .home-schedule-table .text-slate-600,
.schedule-panel .home-schedule-table .text-slate-800 {
  color: #f3fbfc !important;
}

.schedule-panel .mt-4,
.schedule-panel .text-slate-500 {
  color: #d6ecee !important;
}

@media (max-width: 767px) {
  .method-highlight .method-intro {
    padding: 1rem;
  }
}

/* ===== Hotfix contrast: force readable text in Method/Schedule blocks ===== */
.home-method.method-highlight .method-intro {
  background: linear-gradient(160deg, #0d616a, #094a52 58%, #083c43) !important;
  color: #eef9fa !important;
}

.home-method.method-highlight .method-intro * {
  color: #eef9fa !important;
}

.home-method.method-highlight .method-feature {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

.home-method.method-highlight .method-feature h3,
.home-method.method-highlight .method-feature p {
  color: #ffffff !important;
}

.home-method.method-highlight .method-feature .method-icon {
  color: #1e2c36 !important;
}

.home-method .schedule-panel {
  background: linear-gradient(160deg, #0d616a, #094a52 58%, #083c43) !important;
  color: #eef9fa !important;
}

.home-method .schedule-panel h3,
.home-method .schedule-panel p,
.home-method .schedule-panel th,
.home-method .schedule-panel td,
.home-method .schedule-panel .text-slate-500,
.home-method .schedule-panel .text-slate-600,
.home-method .schedule-panel .text-slate-800 {
  color: #eef9fa !important;
}

.home-method .schedule-panel thead th,
.home-method .schedule-panel tbody tr {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ===== Hotfix 2: schedule table contrast lock ===== */
.home-method .schedule-panel {
  background: #f7fcfd !important;
  border: 1px solid #bfd6dc !important;
  box-shadow: 0 18px 35px rgba(9, 74, 82, 0.14) !important;
  color: #123042 !important;
}

.home-method .schedule-panel h3,
.home-method .schedule-panel .mt-4,
.home-method .schedule-panel .text-slate-500,
.home-method .schedule-panel .text-slate-600,
.home-method .schedule-panel .text-slate-800,
.home-method .schedule-panel th,
.home-method .schedule-panel td {
  color: #123042 !important;
}

.home-method .schedule-panel .home-schedule-table thead th {
  color: #0d4950 !important;
  border-bottom: 1px solid #b8d1d8 !important;
  font-weight: 800;
}

.home-method .schedule-panel .home-schedule-table tbody tr {
  border-bottom: 1px solid #d5e7eb !important;
}

.home-method .schedule-panel .home-schedule-table tbody tr:hover {
  background: #e9f5f8 !important;
}

/* ===== Clickable post cards ===== */
.post-card-clickable {
  cursor: pointer;
}

.post-card-clickable .post-card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.post-card-clickable .post-card-link:hover,
.post-card-clickable .post-card-link:focus {
  color: inherit;
}

/* ===== Home blog redesign: stronger contrast ===== */
.home-blog {
  background: linear-gradient(140deg, #0a1525, #10263f 52%, #0a4e57 125%) !important;
}

.home-blog-copy {
  padding: 0.5rem 0.75rem 0.5rem 0;
}

.home-blog-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  color: #cde8ff !important;
  letter-spacing: 0.03em;
}

.home-blog-title {
  color: #ffffff !important;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.home-blog-desc {
  color: #dbeaff !important;
  max-width: 36rem;
}

.home-blog-cta {
  background: linear-gradient(135deg, #f7fbff, #ffffff) !important;
  color: #0f2e45 !important;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22) !important;
}

.home-blog-cta:hover {
  transform: translateY(-1px);
}

.home-blog-list {
  gap: 0.9rem !important;
}

.home-blog-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(8px);
}

.home-blog-card:hover {
  transform: translateY(-4px) !important;
}

.home-blog-card img {
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.home-blog-card-category {
  color: #ffe4be !important;
  font-weight: 700;
}

.home-blog-card-title {
  color: #ffffff !important;
  line-height: 1.35;
}

.home-blog-card-excerpt {
  color: #d7ecff !important;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .home-blog-copy {
    padding-right: 0;
  }

  .home-blog-title {
    font-size: 1.7rem !important;
  }

  .home-blog-card {
    padding: 0.85rem !important;
  }
}

/* ===== Logo integration ===== */
.site-brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.12);
  padding: 6px;
}

.site-footer-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 12px;
}

.site-footer-brand {
  margin-bottom: 10px;
}
