:root {
  --navy: #071c2b; --navy-2: #0d293b; --navy-3: #12374a;
  --teal: #159cc8; --teal-dark: #107fa3; --teal-light: #8dddf2;
  --gold: #e0bb73; --cream: #f7f8f6; --ink: #172c39;
  --muted: #60717a; --line: #dce5e4;
  --heading: "Manrope", sans-serif; --body: "DM Sans", sans-serif;
}

/* ===== Blog cards (homepage + blog pages) ===== */
.blog-card {
  height: 100%; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; transition: all 0.3s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(7, 28, 43, 0.1);
  border-color: #b8d4d0;
}
.blog-thumb {
  position: relative; display: block; aspect-ratio: 16 / 10;
  overflow: hidden; background: var(--navy-2);
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.blog-card:hover .blog-thumb img { transform: scale(1.07); }
.blog-cat {
  position: absolute; left: 16px; top: 16px;
  background: var(--navy); color: var(--gold);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 4px;
}
.blog-cat.static { position: static; display: inline-block; margin-bottom: 18px; }
.blog-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--muted); margin-bottom: 12px;
}
.blog-meta i { color: var(--teal); margin-right: 5px; }
.blog-meta.light { color: #c2d2d7; font-size: 0.88rem; }
.blog-meta.light i { color: var(--teal-light); }
.blog-card h3 {
  font-family: var(--heading); font-size: 1.18rem; font-weight: 800;
  line-height: 1.38; letter-spacing: -0.02em; margin-bottom: 12px;
}
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--teal-dark); }
.blog-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }
.blog-card .inline-link { margin-top: auto; }

/* ===== Standalone blog pages ===== */
.blog-page { font-family: var(--body); color: var(--ink); overflow-x: hidden; }
.blog-page a { text-decoration: none; }
.blog-page h1, .blog-page h2, .blog-page h3 { font-family: var(--heading); letter-spacing: -0.03em; }
.blog-page .site-nav {
  background: rgba(5, 20, 33, 0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 187, 115, 0.18);
}
.blog-page .navbar { min-height: 78px; }
.blog-page .navbar-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.blog-page .brand-mark { width: 60px; height: 52px; box-sizing: border-box; object-fit: contain; padding: 3px; border: 1px solid rgba(224, 187, 115, .42); border-radius: 9px; background: #f7f8f6; filter: drop-shadow(0 3px 7px rgba(0,0,0,.24)); }
.blog-page .brand-name {
  display: block; color: #f2fbff; font-family: "Cinzel", Georgia, serif;
  font-weight: 700; font-size: 1.1rem; letter-spacing: 0.12em; line-height: 1.08;
}
.blog-page .brand-subtitle {
  display: block; color: var(--gold); font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.23em; margin-top: 6px;
}
.blog-page .nav-link { color: #d7e2e4; font-weight: 600; font-size: 0.88rem; padding: 0.6rem 0.85rem; }
.blog-page .nav-link:hover, .blog-page .nav-link.active { color: var(--teal-light); }

.blog-page .btn-atlantis {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff;
  border: 1px solid rgba(224, 187, 115, 0.42); border-radius: 6px;
  padding: 0.8rem 1.4rem; font-weight: 700; font-size: 0.88rem; transition: all 0.25s;
}
.blog-page .btn-atlantis:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); }
.blog-page .inline-link { color: var(--teal-dark); font-weight: 700; }
.blog-page .inline-link i { display: inline-block; transition: transform 0.25s; }
.blog-page .inline-link:hover i { transform: translateX(5px); }

.blog-page .section-space { padding: 90px 0; }
.blog-page .section-soft { background: var(--cream); }
.blog-page .section-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; color: var(--navy); }
.blog-page .section-copy { color: var(--muted); line-height: 1.85; }
.blog-page .eyebrow {
  display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--teal-light); font-weight: 800;
  font-size: 0.72rem; margin-bottom: 18px;
}
.blog-page .eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Page hero */
.page-hero {
  position: relative; color: #fff; padding: 110px 0 90px;
  background: var(--navy) center / cover no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,22,34,.96), rgba(7,28,43,.78));
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.12; max-width: 900px; }
.page-hero p { color: #d4e0e1; max-width: 620px; line-height: 1.8; font-size: 1.05rem; }
.breadcrumb-lite { font-size: 0.82rem; color: #aabfc5; margin-bottom: 20px; }
.breadcrumb-lite a { color: var(--teal-light); }

/* Article */
.article-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 36px; }
.article-content { font-size: 1.04rem; line-height: 1.9; color: #2b3f4a; }
.article-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 38px 0 14px; }
.article-content p { margin-bottom: 18px; }
.article-content ul { list-style: none; padding: 0; margin: 0 0 22px; }
.article-content ul li { position: relative; padding: 6px 0 6px 26px; }
.article-content ul li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
}
.article-content blockquote {
  border-left: 3px solid var(--gold); background: var(--cream);
  padding: 20px 24px; margin: 30px 0; font-weight: 500; color: var(--navy); border-radius: 0 8px 8px 0;
}
.article-share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px;
  font-weight: 700; color: var(--navy); font-size: 0.9rem;
}
.article-share a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #e5f3f1; color: var(--teal-dark); transition: all 0.25s;
}
.article-share a:hover { background: var(--navy); color: var(--gold); }

/* Sidebar */
.sidebar-sticky { position: sticky; top: 100px; }
.sidebar-box { border: 1px solid var(--line); border-radius: 10px; padding: 28px; margin-bottom: 24px; background: #fff; }
.sidebar-box h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.sidebar-cta { background: var(--navy); color: #fff; border: 0; border-top: 4px solid var(--gold); }
.sidebar-cta h3 { color: #fff; }
.sidebar-cta p { color: #c2d2d7; font-size: 0.92rem; line-height: 1.7; }
.related-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.related-item:last-child { border-bottom: 0; }
.related-item img { width: 76px; height: 60px; object-fit: cover; border-radius: 6px; flex: 0 0 76px; }
.related-item strong { display: block; color: var(--navy); font-size: 0.9rem; line-height: 1.4; }
.related-item small { color: var(--muted); font-size: 0.76rem; }
.related-item:hover strong { color: var(--teal-dark); }

/* CTA strip */
.blog-cta { background: var(--navy-2); color: #fff; padding: 70px 0; }
.blog-cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }

/* Footer */
.blog-page .footer { background: #051522; color: #bdcbd0; }
.blog-page .footer-bottom {
  padding: 26px 0; font-size: 0.85rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.blog-page .footer-bottom a { color: var(--teal-light); }

@media (max-width: 575.98px) {
  .blog-page .brand-mark { width: 44px; height: 40px; }
  .blog-page .brand-name { font-size: 0.85rem; }
  .blog-page .brand-subtitle { font-size: 0.48rem; letter-spacing: 0.15em; }
  .blog-page .site-nav .btn-atlantis { padding: 0.55rem 0.85rem; font-size: 0.76rem; }
  .page-hero { padding: 80px 0 64px; }
}


/* Accessibility and fallback polish */
.blog-page { min-height: 100vh; display: flex; flex-direction: column; }
.blog-page #main-content { flex: 1; }
.blog-page .brand-mark { flex-shrink: 0; }
.blog-page .footer a:focus-visible,
.blog-page a:focus-visible,
.blog-page button:focus-visible { outline: 3px solid #159cc8; outline-offset: 3px; }
.blog-page .blog-thumb img,
.blog-page .article-cover,
.blog-page .related-item img { background: #0d293b; }
@media (max-width: 767.98px) {
  .blog-page .navbar > .container { gap: 10px; flex-wrap: wrap; }
  .blog-page .navbar-brand { margin-right: auto; }
  .blog-page .navbar .d-flex { width: 100%; justify-content: space-between; gap: 3px; }
  .blog-page .navbar .nav-link { padding: .45rem .35rem; font-size: .78rem; }
  .blog-page .navbar .btn-atlantis { padding: .55rem .7rem; font-size: .76rem; margin-left: .3rem !important; }
  .blog-body { padding: 22px; }
}

/* Responsive blog navigation and resilient visual polish */
.blog-page .navbar-toggler { border: 1px solid rgba(224, 187, 115, .45); border-radius: 6px; padding: .45rem .65rem; }
.blog-page .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(224, 187, 115, .24); }
.blog-page .navbar-toggler-icon { filter: invert(1); }
.blog-page #atlantisBlogNav { padding: .45rem 0 .8rem; }
.blog-page .navbar-nav .nav-link { border-radius: 6px; }
.blog-page .navbar-nav .nav-link:hover, .blog-page .navbar-nav .nav-link:focus { background: rgba(224, 187, 115, .1); }
.blog-page .blog-thumb img, .blog-page .article-cover { background: #0d293b; }
@media (min-width: 992px) { .blog-page #atlantisBlogNav { padding: 0; } }


/* Refined editorial cards — aligned with the homepage premium palette. */
.blog-card {
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(7, 28, 43, 0.045);
}
.blog-card:hover {
  box-shadow: 0 22px 48px rgba(7, 28, 43, 0.12);
  border-color: rgba(21, 156, 200, 0.38);
}
.blog-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-body { padding: clamp(20px, 2vw, 28px); }
.blog-card h3 { min-height: 3.25em; }
.blog-card .inline-link { display: inline-flex; align-items: center; gap: 7px; }
.blog-card:focus-within { outline: 2px solid var(--teal); outline-offset: 3px; }
.blog-page .site-nav { border-bottom-color: rgba(224, 187, 115, 0.18); }
.blog-page .brand-name { color: #f0d08b; }
.blog-page .btn-atlantis { border-color: rgba(224, 187, 115, .42); }
@media (max-width: 575.98px) {
  .blog-card h3 { min-height: 0; }
}
