/* ============================================================
   MK Law LLP — Clean flat design, no shadows or gradients
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0d1f3c;
  --navy-mid:  #162d52;
  --gold:      #b8972a;
  --white:     #ffffff;
  --off-white: #f5f4f0;
  --light:     #eeece6;
  --text:      #1a1a1a;
  --muted:     #666666;
  --border:    #d4d0c8;
  --radius:    4px;
  --font:      'Georgia', 'Times New Roman', serif;
  --sans:      'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.3;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 0.95rem; }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section.alt-bg { background: var(--off-white); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: #a07e22; border-color: #a07e22; color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { color: var(--white); border-color: var(--white); background: transparent; }
.btn-light:hover { background: var(--white); color: var(--navy); }
.text-link { color: var(--gold); font-weight: 600; font-size: 0.88rem; }
.text-link:hover { color: var(--navy); }

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 9999;
  flex-wrap: wrap;
  border-top: 2px solid var(--gold);
}
.cookie-banner p { margin: 0; font-size: 0.88rem; line-height: 1.4; }
.cookie-banner a { 
  color: var(--gold); 
  text-decoration: underline;
  font-weight: 600;
}
.cookie-actions { 
  display: flex; 
  gap: 0.75rem; 
  flex-shrink: 0; 
}

/* Cookie banner specific button styling */
.cookie-banner .btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.cookie-banner .btn-outline:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.75rem;
  }
  .cookie-banner p {
    text-align: left;
    margin-bottom: 0.75rem;
    line-height: 1.5;
  }
  .cookie-banner a {
    display: inline-block;
    margin-top: 0.25rem;
  }
  .cookie-actions {
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap;
  }
  .cookie-actions .btn {
    flex: 1;
    min-width: 100px;
    max-width: none;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 0.75rem;
  }
  .cookie-actions {
    gap: 0.5rem;
  }
  .cookie-actions .btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--navy);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}
.logo { font-family: var(--font); font-size: 1.35rem; color: var(--white); }
.logo-mk { color: var(--gold); font-weight: 700; }
.logo-law { color: var(--white); }
.logo:hover { color: var(--white); }

/* ---- NAV ---- */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  padding: 0; margin: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--gold);
}

/* ---- DROPDOWN ---- */
.nav-insights-trigger { display: flex !important; align-items: center; gap: 6px; }

.chevron {
  flex-shrink: 0;
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.2s;
}
.has-dropdown.open .chevron { transform: rotate(180deg); opacity: 1; }

.has-dropdown { position: relative; }

.has-dropdown .dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 2px solid var(--gold);
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 200px;
  z-index: 2000;
  flex-direction: column;
  align-items: stretch;
}

.has-dropdown.open .dropdown-menu { 
  display: flex !important;
}

.dropdown-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a {
  display: block;
  padding: 0.7rem 1rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
}

.dropdown-menu li a:hover {
  background: var(--gold);
  color: var(--white);
}

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); }

/* ---- HERO ---- */
.hero {
  position: relative;
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0d1f3c 0%, #162d52 50%, #0d1f3c 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.35;
}

@media (min-aspect-ratio: 16/9) {
  .hero-video-iframe {
    height: 56.25vw;
    width: 100vw;
  }
}

@media (max-aspect-ratio: 16/9) {
  .hero-video-iframe {
    width: 177.78vh;
    height: 100vh;
  }
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 31, 60, 0.85) 0%, rgba(22, 45, 82, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-border-frame {
  position: relative;
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-border-frame::before,
.hero-border-frame::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid var(--gold);
  animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.hero-border-frame::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.hero-border-frame::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

.hero h1 { 
  color: var(--white); 
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-sub {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-desc { 
  color: rgba(255,255,255,0.85); 
  max-width: 640px; 
  margin: 0 auto 2rem; 
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions { 
  display: flex; 
  gap: 1rem; 
  justify-content: center; 
  flex-wrap: wrap; 
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
  border-bottom: 2px solid var(--gold);
}
.page-hero h1 { color: var(--white); margin-bottom: 0.4rem; }
.page-hero p { color: rgba(255,255,255,0.65); margin: 0; font-size: 0.92rem; }
.page-hero .tag { margin-bottom: 0.6rem; }

/* ---- TAGS ---- */
.tag {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

/* ---- PRACTICE AREAS ---- */
.practice-preview {
  position: relative;
}

.practice-preview::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
}

.practice-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
  gap: 1px; 
  background: var(--border); 
  border: 1px solid var(--border); 
}

.practice-grid.large { 
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
  gap: 1.5rem; 
  background: none; 
  border: none; 
}

.practice-card { 
  background: var(--white); 
  padding: 1.5rem; 
  border-top: 3px solid var(--gold);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--navy);
  transition: width 0.3s ease;
}

.practice-card:hover {
  transform: translateY(-2px);
}

.practice-card:hover::before {
  width: 100%;
}

.practice-card h4 { 
  font-size: 0.88rem; 
  margin-bottom: 0.5rem; 
}

.practice-card.large { 
  border: 1px solid var(--border); 
  border-top: 3px solid var(--gold); 
}

.practice-card.large h3 { 
  margin-bottom: 0.6rem; 
}

.practice-card.large p { 
  font-size: 0.88rem; 
  color: var(--muted); 
  margin-bottom: 1rem; 
}

/* ---- SECTION HEADER ---- */
.section-title { margin-bottom: 2rem; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; }

/* ---- ARTICLES GRID ---- */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  overflow: hidden;
}
.article-card:hover { border-top-color: var(--gold); }
.article-card-img { height: 180px; overflow: hidden; background: var(--navy); }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card-body { padding: 1.25rem; }
.article-card-body h3 { font-size: 0.97rem; margin-bottom: 0.5rem; }
.article-card-body h3 a { color: var(--navy); }
.article-card-body h3 a:hover { color: var(--gold); }
.article-card-body p { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.75rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.76rem; color: var(--muted); }
.ref-code { font-family: monospace; background: var(--light); padding: 0.1rem 0.4rem; font-size: 0.73rem; }

/* ---- INSIGHTS LAYOUT ---- */
.insights-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
.insights-sidebar h4 { margin-bottom: 0.75rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.filter-list { list-style: none; padding: 0; margin-bottom: 2rem; border: 1px solid var(--border); }
.filter-list li { border-bottom: 1px solid var(--border); }
.filter-list li:last-child { border-bottom: none; }
.filter-list a { display: block; padding: 0.5rem 0.75rem; font-size: 0.86rem; color: var(--text); }
.filter-list a:hover { background: var(--off-white); color: var(--navy); }
.filter-list a.active { background: var(--navy); color: var(--white); }
.insights-toolbar { display: flex; justify-content: flex-end; margin-bottom: 1rem; font-size: 0.83rem; color: var(--muted); }
.no-results { color: var(--muted); font-style: italic; }

/* ---- ARTICLE PAGE ---- */
.article-layout { display: grid; grid-template-columns: 1fr 260px; gap: 2.5rem; align-items: start; }
.article-hero-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.6rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.article-hero-meta .ref-code { 
  background: rgba(184, 151, 42, 0.2); 
  color: var(--gold); 
  border: 1px solid rgba(184, 151, 42, 0.4);
}
.article-content { font-size: 1rem; line-height: 1.85; }
.article-content h3 { margin: 1.5rem 0 0.6rem; }
.article-content ul, .article-content ol { margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.35rem; }

.article-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.share-buttons { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.83rem; }
.share-btn {
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  border: none;
}
.share-wa  { background: #25d366; }
.share-li  { background: #0077b5; }
.share-x   { background: #111111; }
.share-fb  { background: #1877f2; }
.share-btn:hover { opacity: 0.85; color: var(--white); }

.related-articles { margin-top: 2.5rem; }
.related-articles h3 { margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }

.article-sidebar { position: sticky; top: 80px; }
.author-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.author-avatar { width: 56px; height: 56px; background: var(--navy); margin: 0 auto 0.75rem; }
.author-card h4 { font-size: 0.92rem; margin-bottom: 0.2rem; }
.author-card p { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* ---- SUBSCRIBE ---- */
.subscribe-section { background: var(--navy) !important; border-top: 2px solid var(--gold); }
.subscribe-section .subscribe-block { max-width: 520px; margin: 0 auto; text-align: center; }
.subscribe-section h3 { color: var(--white); margin-bottom: 0.4rem; }
.subscribe-section p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.subscribe-section .subscribe-form input[type=email] {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}
.subscribe-section .subscribe-form input[type=email]::placeholder { color: rgba(255,255,255,0.4); }
.subscribe-section .checkbox-label { color: rgba(255,255,255,0.65); }
.subscribe-section .checkbox-label a { color: var(--gold); }

.subscribe-block h3 { margin-bottom: 0.4rem; }
.subscribe-form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.subscribe-form input[type=email] {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  width: 100%;
  background: var(--white);
}
.sidebar-subscribe { margin-top: 2rem; }
.sidebar-subscribe .subscribe-block h3 { font-size: 0.95rem; }

/* ---- FORMS ---- */
.checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); cursor: pointer; }
.checkbox-label input { margin-top: 3px; flex-shrink: 0; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.83rem; font-weight: 600; margin-bottom: 0.35rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-family: var(--sans);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--navy); }

.success-msg { background: #f0faf0; color: #2a6e2a; padding: 1rem; border: 1px solid #b6d9b6; font-size: 0.88rem; }

/* ---- CONTACT ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-form-wrap h3 { margin-bottom: 1.25rem; }
.contact-info h3 { margin-bottom: 0.75rem; }
.contact-info p { font-size: 0.88rem; margin-bottom: 0.4rem; }
.map-embed {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
}
.map-embed iframe {
  display: block;
  width: 100%;
}

/* ---- ABOUT ---- */
.about-layout { max-width: 860px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.team-card { text-align: center; padding: 1.5rem 1rem; border: 1px solid var(--border); border-top: 3px solid var(--navy); }
.team-avatar { width: 64px; height: 64px; background: var(--navy); margin: 0 auto 0.75rem; }
.team-card h4 { font-size: 0.92rem; margin-bottom: 0.2rem; }
.team-card p { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* ---- PLACEHOLDER ---- */
.placeholder-section { text-align: center; padding: 4rem 2rem; max-width: 520px; margin: 0 auto; }
.placeholder-icon {
  width: 64px; height: 64px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.placeholder-section h2 { margin-bottom: 0.75rem; }
.placeholder-section p { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.92rem; }

/* ---- PROSE ---- */
.prose { max-width: 740px; }
.prose h3 { margin: 1.75rem 0 0.6rem; }

/* ---- COOKIE PREFERENCES ---- */
.cookie-preferences {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.consent-status {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.consent-status #current-consent {
  font-weight: 600;
  color: var(--navy);
}

.consent-status .status-accepted {
  color: #27ae60;
}

.consent-status .status-declined {
  color: #e74c3c;
}

.consent-status .status-none {
  color: var(--muted);
}

.consent-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.consent-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

@media (max-width: 480px) {
  .consent-controls {
    flex-direction: column;
  }
  .consent-controls .btn {
    width: 100%;
  }
}

/* ---- FOOTER ---- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding-top: 3rem; border-top: 3px solid var(--gold); }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem; padding-bottom: 2rem; }
.footer-col h4 { color: var(--gold); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.footer-col p { font-size: 0.83rem; line-height: 1.6; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.35rem; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.83rem; }
.footer-col ul a:hover { color: var(--gold); }
.footer-subscribe { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-subscribe input[type=email] {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--white);
  font-size: 0.83rem;
}
.footer-subscribe input[type=email]::placeholder { color: rgba(255,255,255,0.35); }
.footer-subscribe .checkbox-label { color: rgba(255,255,255,0.55); font-size: 0.76rem; }
.footer-subscribe .checkbox-label a { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.1rem 0; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin: 0; }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  width: 56px; 
  height: 56px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 998;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.whatsapp-float:hover { 
  background: #1da851; 
  color: var(--white);
  transform: scale(1.1);
}

/* ---- CHATBOT WIDGET ---- */
.chatbot-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
}

.chatbot-button {
  width: 56px;
  height: 56px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
  animation: chatbotWave 2s ease-in-out infinite;
}

@keyframes chatbotWave {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
}

.chatbot-button:hover {
  background: #a07e22;
  transform: scale(1.1);
  animation: none;
}

.chatbot-greeting {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: none;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.chatbot-greeting.visible {
  display: flex;
  animation: greetingSlideIn 0.5s ease-out forwards;
}

.chatbot-greeting.fade-out {
  opacity: 0;
}

@keyframes greetingSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.chatbot-greeting.hidden {
  display: none !important;
}

.greeting-hand {
  animation: handWave 1.5s ease-in-out infinite;
  transform-origin: bottom center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.greeting-hand svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@keyframes handWave {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
}

.greeting-bubble {
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  min-width: 180px;
}

.greeting-bubble::after {
  content: '';
  position: absolute;
  right: -8px;
  bottom: 12px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--white);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.greeting-bubble p {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.greeting-bubble span {
  font-size: 0.8rem;
  color: var(--muted);
}

.greeting-close {
  background: var(--white);
  border: 1px solid var(--border);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--muted);
  padding: 0;
  transition: all 0.2s ease;
}

.greeting-close:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e74c3c;
  color: var(--white);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.chatbot-window {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  height: 500px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-window.open {
  display: flex;
}

.chatbot-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
}

.chatbot-header h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin: 0;
}

.chatbot-status {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--off-white);
}

.chatbot-message {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.chatbot-message.bot {
  align-items: flex-start;
}

.chatbot-message.user {
  align-items: flex-end;
}

.message-content {
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  max-width: 75%;
  font-size: 0.88rem;
  line-height: 1.5;
  border: 1px solid var(--border);
}

.chatbot-message.user .message-content {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.message-time {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.25rem;
  padding: 0 0.5rem;
}

.chatbot-input-area {
  border-top: 1px solid var(--border);
  background: var(--white);
}

.chatbot-quick-replies {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  flex-wrap: wrap;
}

.quick-reply {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-reply:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.chatbot-input-wrapper {
  display: flex;
  padding: 0.75rem;
  gap: 0.5rem;
}

#chatbot-input {
  flex: 1;
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  border-radius: 20px;
  font-size: 0.88rem;
  outline: none;
}

#chatbot-input:focus {
  border-color: var(--navy);
}

.chatbot-send {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease;
}

.chatbot-send:hover {
  background: #a07e22;
}

@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 2rem);
    right: 1rem;
  }
  .whatsapp-float {
    bottom: 5.5rem;
    right: 1rem;
  }
  .chatbot-widget {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ---- MISC ---- */
.center-text { text-align: center; padding: 4rem 0; }
.center-text h1 { margin-bottom: 1rem; }
.center-text p { margin-bottom: 1.5rem; color: var(--muted); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .insights-layout { grid-template-columns: 1fr; }
  .insights-sidebar { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy);
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 1500;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav > ul > li > a { padding: 0.6rem 0.5rem; font-size: 0.9rem; }
  .dropdown-menu {
    position: static !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    background: rgba(255,255,255,0.03) !important;
    margin: 0.25rem 0 0.25rem 0.75rem;
    min-width: unset;
  }
  .has-dropdown.open .dropdown-menu { display: block; }
  .hamburger { display: flex; }
  .hero { 
    padding: 4rem 0; 
    min-height: 500px;
  }
  .hero-border-frame {
    padding: 2rem 1rem;
  }
  .hero-border-frame::before,
  .hero-border-frame::after {
    width: 50px;
    height: 50px;
  }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .whatsapp-float { bottom: 4.5rem; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: 1fr; }
}

/* ---- VIDEO GRID ---- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.video-card { border: 1px solid var(--border); border-top: 3px solid var(--navy); }
.video-embed { 
  position: relative; 
  padding-bottom: 56.25%; 
  height: 0; 
  overflow: hidden; 
  background: #000; 
}
.video-embed iframe { 
  position: absolute; 
  top: -60px; 
  left: -100px; 
  width: calc(100% + 200px); 
  height: calc(100% + 120px); 
}
.video-body { padding: 1.1rem; }
.video-body h3 { font-size: 0.97rem; margin-bottom: 0.4rem; }
.video-body p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
}
