/* -----------------------------------
   FAROS LEGAL – SHARED PRESENTATION
   ----------------------------------- */
:root {
  --fg-dark: #141414;
  --fg-grey: #4a4a4a;
  --bg-light: #f2efe8;
  --bg-section: #e7e9f0;
  --accent-blue: #295f9e;
  --accent-emerald: #4fa3ff;
  --beige: #e0d6c7;
  --card-shadow: 0 18px 50px rgba(12, 24, 43, 0.08);
  --blur: blur(14px);
}

body {
  font-family: 'Palatino Linotype', sans-serif;
  color: var(--fg-grey);
  background:
    linear-gradient(180deg, rgba(234, 229, 220, 0.35), rgba(234, 229, 220, 0.04)) no-repeat,
    radial-gradient(circle at 75% 10%, rgba(41, 95, 158, 0.1), transparent 32%),
    var(--bg-light);
  line-height: 1.7;
  text-align: justify;
  overflow-x: hidden;
}

.text-justify-readable {
  text-align: justify;
}

h1, h2, h3, h4, h5 {
  font-family: 'Palatino Linotype', sans-serif;
  color: var(--fg-dark);
  letter-spacing: 0.2px;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: #1f4d7c;
}

::selection {
  background: rgb(132, 170, 211);
  color: #0f0f0f;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Navigation */
.navbar {
  background: rgba(12, 12, 12, 0.88) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}
.navbar-brand img {
  height: 60px;
  width: auto;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.navbar-brand:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 12px 24px rgba(74, 158, 255, 0.34));
}

.nav-link {
  position: relative;
  color: #dfe7f3 !important;
  margin-left: 14px;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

/* Buttons */
.btn {
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-blue), #1f4d7c);
  border: none;
  box-shadow: 0 12px 30px rgba(41, 95, 158, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid var(--fg-dark);
  color: var(--fg-dark);
}

.btn-outline-light:hover {
  background: var(--fg-dark);
  color: #fff;
  box-shadow: 0 14px 30px rgba(20, 20, 20, 0.15);
}

.btn-outline-dark {
  border: 2px solid var(--fg-dark);
  color: var(--fg-dark);
}

.btn-outline-dark:hover {
  background: var(--fg-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

/* Hero */

.hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(41, 95, 158, 0.15), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(79, 163, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #f1eee7, #e0e7f2);
  color: var(--fg-dark);
  text-align: center;
  padding: 90px 16px 100px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #4f5561;
}

.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(20, 20, 20, 0.08);
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: 999px;
  margin-bottom: 22px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--fg-dark);
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: float 10s ease-in-out infinite;
}

.shape-1 { width: 180px; height: 180px; background: rgba(41, 95, 158, 0.32); top: 18%; left: 12%; animation-delay: -2s; }
.shape-2 { width: 220px; height: 220px; background: rgba(79, 163, 255, 0.3); bottom: 16%; right: 14%; animation-delay: 1s; }
.shape-3 { width: 140px; height: 140px; background: rgba(58, 110, 181, 0.28); bottom: 24%; left: 32%; animation-delay: -4s; }

.hero .card-spotlight {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(20, 20, 20, 0.06);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(12, 24, 43, 0.12);
}

/* Sections */
section { padding: 96px 0; }
.practice-areas-section { padding-top: 56px; }

/* Bring practice preview closer to hero */
#practice-preview {
  margin-top: -28px;
  padding-top: 68px;
}

.section-heading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--accent-blue);
  text-transform: uppercase;
  font-size: 0.95rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 16px;
}

.section-desc {
  max-width: 760px;
  color: #5b6473;
}

/* Cards */
.practice-card, .area-card, .insight-card, .cta-card {
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.practice-card:hover, .area-card:hover, .insight-card:hover, .cta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(12, 24, 43, 0.12);
  border-color: rgba(79, 163, 255, 0.3);
}

.practice-card i {
  font-size: 32px;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(41, 95, 158, 0.14);
}

.insight-card small {
  letter-spacing: 0.3px;
  color: #7d8697;
}

/* Bulletin blocks */
.bulletin-hero-shell {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 20%, rgba(79, 163, 255, 0.15), transparent 30%),
              radial-gradient(circle at 82% 12%, rgba(41, 95, 158, 0.2), transparent 28%),
              linear-gradient(135deg, #f3f4f9, #e6ecf7);
}

.bulletin-hero-inner {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(12, 24, 43, 0.14);
}

.bulletin-eyebrow {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(41, 95, 158, 0.08);
  color: var(--accent-blue);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.bulletin-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(12, 24, 43, 0.1);
  color: var(--fg-dark);
  font-weight: 600;
}

.bulletin-chip i {
  color: var(--accent-blue);
}

.bulletin-hero-panel {
  background: #0d1220;
  color: #e4e8f1;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(12, 24, 43, 0.25);
}

.bulletin-hero-panel h1,
.bulletin-hero-panel h2,
.bulletin-hero-panel h3 {
  color: #f5f7fb;
}

.bulletin-hero-panel p,
.bulletin-hero-panel .lead {
  color: #c9d1e0;
}

.bulletin-stat {
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.bulletin-stat .stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.bulletin-stat .stat-label {
  color: #b2b9c8;
  letter-spacing: 0.3px;
}

.bulletin-latest {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.bulletin-panel-note {
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bulletin-section {
  background: var(--beige);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 16px 46px rgba(12, 24, 43, 0.08);
}

.bulletin-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(20, 20, 20, 0.08);
  border-radius: 999px;
  font-weight: 600;
  color: var(--fg-dark);
  letter-spacing: 0.2px;
}

.bulletin-list {
  list-style: none;
  padding-left: 0;
  margin: 18px 0 0;
}

.bulletin-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.bulletin-list li:last-child {
  border-bottom: none;
}

/* Bulletin pages */
.bulletin-card {
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.bulletin-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(12, 24, 43, 0.16);
  border-color: rgba(79, 163, 255, 0.3);
}

.bulletin-meta {
  color: #7d8697;
  letter-spacing: 0.2px;
}

.bulletin-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.bulletin-summary {
  color: #4f5561;
  line-height: 1.7;
  margin-bottom: 6px;
}

.bulletin-cover {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #e5ebf6;
  min-height: 180px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background-image: var(--cover-image, linear-gradient(135deg, #dfe6f5, #e9edf7));
  background-size: cover;
  background-position: center;
}

.bulletin-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 22, 0.2), rgba(5, 9, 22, 0.48));
}

.bulletin-cover.no-image {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 18px;
  background-image: linear-gradient(135deg, #f4f6fb, #e8edf7);
}

.bulletin-cover.no-image::after {
  background: linear-gradient(180deg, rgba(5, 9, 22, 0.04), rgba(5, 9, 22, 0.08));
}

.bulletin-cover-placeholder {
  position: relative;
  z-index: 1;
  color: #4f5561;
  font-weight: 600;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.bulletin-cover-placeholder i {
  color: var(--accent-blue);
}

.bulletin-cover-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--fg-dark);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.bulletin-body {
  color: #4f5561;
  line-height: 1.8;
}

.bulletin-pagination {
  display: flex;
  justify-content: center;
}

#bulletin-pagination .pagination,
#draft-pagination .pagination {
  gap: 10px;
}

#bulletin-pagination .page-item,
#draft-pagination .page-item {
  margin: 0;
}

#bulletin-pagination .page-link,
#draft-pagination .page-link {
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  color: var(--fg-dark);
  min-width: 44px;
  padding: 10px 14px;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(12, 24, 43, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#bulletin-pagination .page-link:hover,
#draft-pagination .page-link:hover {
  transform: translateY(-2px);
  border-color: rgba(41, 95, 158, 0.4);
  color: var(--accent-blue);
  box-shadow: 0 18px 40px rgba(41, 95, 158, 0.25);
}

#bulletin-pagination .page-item.active .page-link,
#draft-pagination .page-item.active .page-link {
  background: linear-gradient(120deg, var(--accent-blue), #1f4d7c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(41, 95, 158, 0.35);
}

#bulletin-pagination .page-item.disabled .page-link,
#draft-pagination .page-item.disabled .page-link {
  color: #9aa3b5;
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(17, 24, 39, 0.06);
  box-shadow: none;
  transform: none;
}

#bulletin-pagination .page-link:focus,
#draft-pagination .page-link:focus {
  box-shadow: 0 0 0 4px rgba(41, 95, 158, 0.18);
}

.notfound-actions .btn-outline-light {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.notfound-actions .btn-outline-light:hover {
  background: #fff;
  color: var(--accent-blue);
  box-shadow: 0 16px 36px rgba(255, 255, 255, 0.18);
}

.notfound-actions .btn-outline-light:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.bulletin-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.bulletin-media figcaption {
  margin-top: 8px;
  color: #6c7686;
  font-size: 0.95rem;
}

.bulletin-hero {
  margin: 24px 0 32px;
}

.bulletin-hero figure {
  margin: 0;
}

.bulletin-hero img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 22px 50px rgba(12, 24, 43, 0.14);
}

.bulletin-hero.layout-contained {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.bulletin-hero.layout-left {
  max-width: 860px;
  margin-right: auto;
}

.bulletin-hero.layout-right {
  max-width: 860px;
  margin-left: auto;
}

.bulletin-hero.layout-full {
  max-width: none;
}

.bulletin-gallery .bulletin-media figure {
  margin: 0;
}

.pill-muted {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  color: #4f5561;
  border: 1px solid rgba(17, 24, 39, 0.06);
  font-weight: 600;
}

.pill-muted i {
  color: var(--accent-blue);
}

/* Call to action */
.cta-section {
  background: linear-gradient(135deg, #dfe6f5, #d2dbe9);
  color: var(--fg-dark);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at 30% 40%, rgba(79, 163, 255, 0.26), transparent 30%),
              radial-gradient(circle at 70% 60%, rgba(41, 95, 158, 0.28), transparent 28%);
  filter: blur(60px);
  opacity: 0.8;
}

.cta-section .container { position: relative; z-index: 1; }

/* Scroll cue */
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--accent-blue);
  margin-top: 26px;
  font-size: 0.9rem;
  cursor: pointer;
}

.scroll-cue .chevron {
  width: 32px;
  height: 52px;
  border: 1px solid rgba(41, 95, 158, 0.7);
  border-radius: 999px;
  position: relative;
}

.scroll-cue .chevron::after {
  content: '';
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--accent-blue);
  border-bottom: 2px solid var(--accent-blue);
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translate(-50%, 0) rotate(-45deg);
  animation: scrollBlink 1.6s ease-in-out infinite;
}

/* Scroll reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.divider {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
  border-radius: 999px;
  margin: 16px auto;
}

#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent-blue), #1f4d7c);
  color: #fff;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(12, 24, 43, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 1000;
}

#scrollTopBtn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(12, 24, 43, 0.28);
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}

@keyframes scrollBlink {
  0% { opacity: 0; transform: translate(-50%, 0) rotate(-45deg); }
  40% { opacity: 1; transform: translate(-50%, 8px) rotate(-45deg); }
  100% { opacity: 0; transform: translate(-50%, 16px) rotate(-45deg); }
}

/* Disclaimer modal */
.no-scroll {
  overflow: hidden;
}
.disclaimer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.disclaimer-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 820px;
  width: 100%;
  padding: 28px 28px 24px;
  box-shadow: 0 28px 68px rgba(12, 24, 43, 0.24);
  border: 1px solid rgba(17, 24, 39, 0.08);
}
.disclaimer-modal h3 {
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--fg-dark, #111);
}
.disclaimer-modal p {
  color: var(--fg-grey, #444);
  line-height: 1.65;
  margin-bottom: 12px;
}
.disclaimer-modal ul {
  padding-left: 20px;
  margin: 0 0 16px;
  color: var(--fg-grey, #444);
}
.disclaimer-modal li {
  margin-bottom: 8px;
}
.disclaimer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.disclaimer-actions .btn {
  min-width: 120px;
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .hero { padding: 72px 16px 80px; }
  .disclaimer-overlay {
    align-items: flex-start;
    padding: 24px 14px;
  }
  .disclaimer-modal {
    margin-top: 12px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 22px 18px 18px;
    border-radius: 14px;
  }
  .disclaimer-actions {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .disclaimer-actions .btn {
    width: 100%;
  }
}

/* Bulletin content formatting for markdown/HTML blocks */
.bulletin-content img {
  max-width: 100%;
  height: auto;
}
.bulletin-content .img-wrap {
  margin: 1rem 0;
}
.bulletin-content .img-wrap.align-center {
  text-align: center;
}
.bulletin-content .img-wrap.align-left {
  text-align: left;
}
.bulletin-content .img-wrap.align-right {
  text-align: right;
}
.bulletin-content img.img-sm {
  max-width: 320px;
}
.bulletin-content img.img-md {
  max-width: 600px;
}
.bulletin-content img.img-lg {
  max-width: 900px;
}
.bulletin-content img.img-full {
  max-width: 100%;
}
