:root {
  --gold: #b8973a;
  --gold-light: #d4b05a;
  --navy: #1e2a3a;
  --navy-dark: #172030;
  --dark: #1a1a1a;
  --text: #555;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
}

h1,
h2,
h3,
h4,
.font-serif {
  font-family: 'Playfair Display', serif;
}

/* NAV */
.navbar {
  background: var(--navy-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
}

.navbar-brand .brand-abbr {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.brand-sub {
  font-size: .6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.3;
}

.brand-sub strong {
  font-weight: 700;
}

.nav-link {
  font-weight: 700;
  font-size: .85rem;
  color: #fff !important;
  letter-spacing: .4px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold) !important;
}


.btn-outline-gold {
  border: 2px solid var(--gold) !important;
  color: var(--gold) !important;
  font-weight: 700;

  font-size: .85rem;
  letter-spacing: 1px;
  border-radius: 4px;
  background: transparent;
  transition: all .2s;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: #fff;
}

/* Header A specific (Solid Navy for subpages) */
.design-a-subpage .navbar {
  background: var(--navy-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}

.design-a-subpage .navbar-brand .brand-abbr {
  color: #fff;
}

.design-a-subpage .brand-sub {
  color: #ccc;
}

.design-a-subpage .brand-sub strong {
  color: #fff;
}

.design-a-subpage .nav-link {
  color: #ccc !important;
}

.design-a-subpage .nav-link:hover,
.design-a-subpage .nav-link.active {
  color: var(--gold) !important;
}

/* General Navbar Toggler Style (For dark background) */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-toggler-icon {
  filter: invert(1) brightness(1.5);
}

/* HERO BANNER (Design A Subpages) */
.hero-banner {
  min-height: 280px;
  background: linear-gradient(to bottom, rgba(15, 12, 8, .6), rgba(15, 12, 8, .8)),
    linear-gradient(135deg, #2a2418, #1a1208);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 30px;
}

.hero-banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: #fff;
  font-weight: 400;
  margin-bottom: 14px;
}

.hero-banner p {
  color: #ccc;
  font-size: .92rem;
  max-width: 760px;
  line-height: 1.85;
}

/* GOLD DIVIDER */
.gold-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
}

/* SECTION LABEL */
.section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

/* GOLD CIRCLE ICON */
.gold-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  border: 2.5px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--gold);
}

.section-header-inline {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.section-header-inline h2 {
  margin-bottom: 0 !important;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* FOOTER A */
footer {
  background: var(--navy-dark);
  color: #aaa;
}

.footer-border {
  border-bottom: 1px solid #2a3545;
}

.footer-link {
  color: #778899;
  text-decoration: none;
  font-size: .82rem;
  transition: color .2s;
  display: block;
  margin-bottom: 5px;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-social-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #3a4a5a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  text-decoration: none;
  font-size: .9rem;
  transition: all .2s;
}

.footer-social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-heading {
  color: #fff;
  font-size: .84rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-text {
  font-size: .8rem;
  line-height: 1.9;
  color: #778899;
}

.newsletter-input {
  background: #111827 !important;
  border: 1px solid #2a3545 !important;
  color: #ccc !important;
  font-size: .82rem;
}

.newsletter-input::placeholder {
  color: #556677;
}

.newsletter-input:focus {
  box-shadow: none !important;
  border-color: var(--gold) !important;
}

.footer-copyright {
  font-size: .75rem;
  color: #4a5a6a;
}

.footer-bottom-link {
  color: #4a5a6a;
  text-decoration: none;
  font-size: .75rem;
}

.footer-bottom-link:hover {
  color: var(--gold);
}

.footer-logo-abbr {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

/* blog-section */
.blog-section {
  padding: 60px 0;
  background: #fff;
}

.blog-section .section-label {
  margin-bottom: 10px;
}

.blog-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--dark);
}

.blog-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 20px;
}

.blog-card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}

.blog-card-content p {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 15px;
}

.blog-card-content .read-more {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-content .read-more:hover {
  color: var(--gold-light);
}

/* PRACTICE AREAS */
.practice-section {
  padding: 100px 0;
  background-color: #f2f3f5;
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  .practice-section {
    padding: 60px 0;
  }
}

.subtitle-badge {
  display: inline-block;
  padding: 6px 16px;
  /* background: rgba(184, 151, 58, 0.1); */
  background-color: #27436b;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: #000000;
  font-weight: 700;
  margin-bottom: 0;
}

.title-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 20px 0;
}

.section-desc {
  font-size: 1rem;
  color: #999;
  max-width: 650px;
  line-height: 1.8;
}

.practice-card {
  background: #27436b;
  padding: 45px 35px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 20px;
  opacity: 0;
  z-index: -1;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: scale(0.95);
}

.practice-card:hover {
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(184, 151, 58, 0.15);
}

.practice-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.card-icon-box {
  width: 70px;
  height: 70px;
  background: rgba(184, 151, 58, 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border-radius: 18px;
  margin-bottom: 30px;
  transition: all 0.4s ease;
}

.practice-card:hover .card-icon-box {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: rotate(10deg);
}

.practice-card h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.practice-card:hover h5 {
  color: #fff;
}

.practice-card p {
  font-size: 0.95rem;
  color: #888;
  line-height: 1.7;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.practice-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* OFF-CANVAS NAVIGATION (Reference Image 2) */
.offcanvas.offcanvas-end {
  width: 100% !important;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  border: none !important;
}

@media (min-width: 992px) {
  .offcanvas.offcanvas-end {
    width: 35vw !important;
    /* Exactly half screen as requested */
  }
}

.bg-navy {
  background-color: #27436b !important;
  /* Elegant deep blue */
  overflow-y: auto;
  /* Enable scrolling for long menus */
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Custom scrollbar for Chrome/Safari */
.bg-navy::-webkit-scrollbar {
  width: 4px;
}

.bg-navy::-webkit-scrollbar-track {
  background: transparent;
}

.bg-navy::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.bg-navy::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.offcanvas-nav-list {
  margin-top: 1rem;
  display: flex;
  align-items: flex-end;
}

.offcanvas-nav-list .nav-item {
  margin-bottom: 0.6rem;
}

.offcanvas-nav-list .nav-link {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.2vw, 1.5rem) !important;
  font-weight: 400 !important;
  transition: all 0.3s ease;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  display: inline-block;
  letter-spacing: 0.02em;
}

.offcanvas-nav-list .nav-link:hover,
.offcanvas-nav-list .nav-link.active {
  color: #fff !important;
  transform: translateX(12px);
}

.offcanvas-nav-list .nav-link.active {
  color: var(--gold) !important;
}

/* Glassmorphism effect for the toggler background if needed */
.navbar-toggler {
  padding: 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.offcanvas-backdrop.show {
  opacity: 0.6;
  /* Ensure background is visible but dimmed */
  backdrop-filter: blur(3px);
  /* Subtle blur for modern feel */
}

.btn-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  transition: all 0.3s ease;
}

.btn-card-link i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.practice-card:hover .btn-card-link {
  color: #fff;
}

.practice-card:hover .btn-card-link i {
  transform: translateX(5px);
}