/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+Pro:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* Or alternatively, you can add this to your HTML head section */
/* <link href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet"> */

/* Update font variables for consistent usage */
:root {
  --heading-font: 'Libre Baskerville', serif;
  --body-font: 'Source Sans Pro', sans-serif;
  --primary-color: #05223c;
  --secondary-color: #e0b869;
  --text-color: #3f6182;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* Animation keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInFromLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

/* New animation keyframe for timeline */
@keyframes slideInFromTop {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Classes for JavaScript-controlled animations */
.media-year-block:not(.animate) {
  opacity: 0;
  transform: translateY(30px);
  animation: none;
}

.media-entry:not(.animate) {
  opacity: 0;
  transform: translateX(30px);
  animation: none;
}

.media-year-block.animate {
  animation: slideInFromBottom 0.8s ease forwards;
}

.media-entry.animate {
  animation: slideInFromRight 0.6s ease forwards;
}

/* Pulse animation for year dots */
.media-year.pulse::after {
  animation: pulse 1s ease infinite;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* Adjust this value to your navbar's height */
}

/* Styles for individual pages */
.page-header {
  text-align: center;
  margin-top: 120px; /* Space for fixed navbar */
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 100;
  color: #05223c;
  font-family: var(--heading-font);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--body-font);
  background: url('assets/images/hero-bg-inverted.png') center center fixed no-repeat;
  background-size: cover;
}

/* Disclaimer Modal Styles */
.disclaimer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.disclaimer-modal {
  background-color: white;
  width: 90%;
  max-width: 600px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  max-height: 80vh;
  overflow-y: auto;
  margin: 0 15px;
}

.disclaimer-modal h2 {
  font-family: var(--heading-font);
  color: #05223c;
  font-size: 2rem;
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
}

.disclaimer-content {
  font-family: var(--body-font);
  color: #3f6182;
  line-height: 1.6;
}

.disclaimer-content ol {
  padding-left: 20px;
}

.disclaimer-content li {
  margin-bottom: 15px;
}

.disclaimer-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.disclaimer-btn {
  font-family: var(--body-font);
  padding: 10px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.accept-btn {
  background-color: #05223c;
  color: white;
}

.accept-btn:hover {
  background-color: #0a3a64;
}

.reject-btn {
  background-color: #f5f6fa;
  color: #3f6182;
  border: 1px solid #cfd8e3;
}

.reject-btn:hover {
  background-color: #e9ecf2;
}

body.disclaimer-active {
  overflow: hidden;
}
  
.hero-navbar-wrapper {
  height: 100vh;
  height: 100dvh; /* Use dynamic viewport height for mobile browsers that support it */
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('assets/images/hero-bg.png') bottom center no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(5, 34, 60, 0.3) 0%, rgba(5, 34, 60, 0) 50%);
  animation: fadeIn var(--transition-slow);
}

.hero-logo {
  max-width: 60vw;
  max-height: 60vh;
  object-fit: contain;
  animation: pulse 3s infinite ease-in-out;
  position: relative;
  z-index: 2;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #e0b869;
  font-family: var(--body-font);
  animation: fadeInUp 2s infinite;
  z-index: 5;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 3px solid #e0b869;
  border-bottom: 3px solid #e0b869;
  transform: rotate(45deg);
  margin-bottom: 10px;
}

.scroll-text {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Hide scroll indicator when scrolled */
.scrolled .scroll-indicator {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

  
  /* Navbar container for better layout control */
  .navbar-container {
    display: flex;
    justify-content: flex-start; /* Changed to flex-start to align logo to left */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* Added for absolute positioning of navbar-links */
  }
  
  /* Logo in navbar - visible by default on all pages */
  .navbar-logo {
    opacity: 1;
    width: auto;
    min-width: 120px;
    overflow: visible;
    transition: all 0.3s ease;
    margin-right: 20px;
    display: flex;
    justify-content: flex-start; /* Align logo to the left */
    z-index: 10; /* Ensure logo appears above other elements */
  }
  
  /* Special class for index page hero section to hide logo initially */
  .hero-page .navbar:not(.scrolled) .navbar-logo {
    opacity: 0;
    width: 0;
    min-width: 0;
    overflow: hidden;
  }
  
  .nav-logo {
    height: 60px;
    width: auto;
    margin-left: 10px; /* Add some left margin to the logo */
  }
  
  /* Navbar links container */
  .navbar-links {
    display: flex;
    justify-content: center; /* Center the links */
    align-items: center;
    position: absolute; /* Position absolutely to center within navbar */
    width: calc(100% - 140px);
    left: 140px;
    right: 0;
    margin: 0 auto;
    pointer-events: auto; /* Ensure links remain clickable */
  }
  
  /* Adjust spacing for centered links */
  .navbar.scrolled .navbar-links {
    width: calc(100% - 140px); /* Adjust width to account for logo */
    left: 140px; /* Position after the logo */
    right: 0;
  }
  
  /* Update the navbar styles */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center; /* Keep this as center for the container */
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1000;
    background-color: transparent;
  }
  
  /* Mobile menu button */
  .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #e0b869;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  
  .navbar.scrolled .menu-toggle span {
    background-color: #36445a;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .navbar a {
  font-family: var(--heading-font);
  font-weight: 400;
  color: #e0b869; /* Golden text color */
  text-decoration: none;
  padding: 18px 18px;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative; /* Added for underline positioning */
}

  
  .navbar a:hover::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: #e0b869; /* Golden underline color */
    transition: all 0.3s ease;
  }
  
  /* Remove hover effects from navbar logo */
  .navbar-logo a:hover {
    background: transparent;
  }
  
  .navbar-logo a:hover::after {
    display: none;
  }
  
  /* Add this class for the scrolled state */
  .navbar.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .navbar.scrolled a {
    color: #36445a; /* Dark color when scrolled */
  }
  
  .navbar.scrolled a:hover::after {
    background-color: #36445a; /* Dark underline when scrolled */
  }

  
  /* Active link style with underline */
  .navbar a.active {
    position: relative;
  }
  
  .navbar a.active::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: #e0b869; /* Golden underline color */
    transition: all 0.3s ease;
  }
  
  /* Active link style when scrolled */
  .navbar.scrolled a.active::after {
    background-color: #36445a; /* Dark underline when scrolled */
  }
  
  /* Adjust the hero section to account for fixed navbar */
  .hero-navbar-wrapper {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  
  /* Update scroll padding to match new navbar height */
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on navbar height */
  }

.about {
  text-align: center;
  margin: 60px auto;
  max-width: 1200px;
  padding: 0 20px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.about h1 {
  font-size: 3rem;
  font-weight: 100;
  color: var(--primary-color);
  font-family: var(--heading-font);
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0;
  animation: slideInFromBottom 0.8s ease 0.2s forwards;
}

.underline {
  width: 200px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(to right, #fff, var(--secondary-color) 60%, var(--secondary-color) 40%, #fff);
  opacity: 0;
  animation: slideInFromBottom 0.8s ease 0.4s forwards;
  position: relative;
}

.underline::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
}

.about-content {
  opacity: 0;
  animation: fadeIn 1s ease 0.6s forwards;
}

.about-content h2 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-size: 2rem;
  margin-top: 2em;
  margin-bottom: 0.5em;
  text-align: left;
  position: relative;
  padding-left: 15px;
    font-weight: 100;
}

.about-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 5px;
  background: var(--secondary-color);
  border-radius: 2px;
    font-weight: 100;
}

.about-content p {
  font-family: var(--body-font);
  color: #000;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2em;
  text-align: left;
}

.about-content strong {
  font-family: var(--body-font);
  font-weight: 900;
  color: #000;
}

.practice-areas {
  text-align: center;
  margin-top: 80px;
  border-radius: 24px;
}

.practice-areas h1 {
  font-weight: 100;
  font-size: 3rem;
  color: #05223c;
  font-family: var(--heading-font);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.practice-content {
  text-align: left;
  margin: 0 100px;
  font-family: var(--body-font);
  color: #3f6182;
  font-size: 1.1rem;
  line-height: 1.7;
  padding: 32px 24px 0 24px;
}

.practice-content p {
  margin-bottom: 1.5em;
  font-size: 1.15rem;
  color: #05223c;
  font-weight: 500;
}

/* Accordion Styles */
.practice-content > p {
  animation: fadeIn 0.8s ease forwards;
}

.accordion {
  width: 100%;
  margin: 20px 0;
  opacity: 0;
  animation: slideInFromBottom 0.8s ease 0.3s forwards;
}

.accordion-item {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(5,34,60,0.08);
  background-color: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Classes for scroll-triggered animations */
.accordion-item:not(.in-view) {
  opacity: 0;
  transform: translateY(20px);
}

.accordion-item.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Staggered animation for items coming into view */
.accordion-item:nth-child(1).in-view { transition-delay: 0.1s; }
.accordion-item:nth-child(2).in-view { transition-delay: 0.2s; }
.accordion-item:nth-child(3).in-view { transition-delay: 0.3s; }
.accordion-item:nth-child(4).in-view { transition-delay: 0.4s; }
.accordion-item:nth-child(5).in-view { transition-delay: 0.5s; }
.accordion-item:nth-child(6).in-view { transition-delay: 0.6s; }
.accordion-item:nth-child(7).in-view { transition-delay: 0.7s; }
.accordion-item:nth-child(8).in-view { transition-delay: 0.8s; }
.accordion-item:nth-child(9).in-view { transition-delay: 0.9s; }
.accordion-item:nth-child(10).in-view { transition-delay: 1.0s; }

.accordion-item:hover {
  box-shadow: 0 4px 15px rgba(5,34,60,0.12);
  transform: translateY(-3px);
}

.accordion-header {
  padding: 18px 24px;
  background-color: #f5f6fa;
  color: #05223c;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease, padding 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  color: #e0b869;
  font-weight: 300;
  transition: transform 0.5s ease, color 0.3s ease;
}

.accordion-item.active .accordion-header::after {
  content: '−';
  transform: rotate(180deg);
  color: #fff;
}

.accordion-item.active .accordion-header {
  background-color: #05223c;
  color: #fff;
  padding-left: 28px; /* Slight indent when active */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  background-color: #fff;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  max-height: 1000px; /* Increased for larger content */
  transition: max-height 0.5s cubic-bezier(0.5, 0, 1, 0), opacity 0.3s ease;
  opacity: 1;
}

.accordion-content p {
  padding: 20px 24px;
  margin: 0;
  color: #3f6182;
  font-size: 1.05rem;
  line-height: 1.6;
  transform: translateY(10px);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.accordion-item.active .accordion-content p {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.2s;
}

/* Page header animation */
.page-header h1 {
  animation: fadeIn 1s ease forwards;
}

.page-header .underline {
  width: 0;
  animation: expandWidth 1.2s ease forwards;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 80px; }
}

@media (max-width: 800px) {
  .accordion-header {
    padding: 15px 20px;
    font-size: 1rem;
  }
  
  .accordion-content p {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}

.team, .insights, .contact {
  text-align: center;
  margin-top: 80px;
}

.team h1,
.insights h1,
.contact h1 {
  font-size: 3rem;
  color: #05223c;
  font-family: var(--heading-font);
  letter-spacing: 2px;
  margin-bottom: 10px;
    font-weight: 100;
}

.team-content,
.insights-content,
.contact-content {
  text-align: left;
  margin: 0 100px;
  font-family: var(--body-font);
  color: #000;
  font-size: 1.1rem;
  line-height: 1.7;
}



.team-grid {
  display: flex;
  justify-content: center;
  gap: 75px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 220px;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.team-member:nth-child(1) {
  animation-delay: 0.2s;
}

.team-member:nth-child(2) {
  animation-delay: 0.4s;
}

.team-member:nth-child(3) {
  animation-delay: 0.6s;
}

.team-photo {
  width: 250px;
  height: 260px;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  border: none;
  box-shadow: 0 4px 16px rgba(5,34,60,0.10);
  margin-bottom: 18px;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  position: relative;
}

.team-photo::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 1px solid var(--secondary-color);
  opacity: 0;
  transition: all var(--transition-medium);
}

.team-name {
  font-family: var(--heading-font);
  color: #05223c;
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  margin-top: 8px;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-member:hover .team-photo {
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(5,34,60,0.18);
}

.team-member:hover .team-photo::after {
  opacity: 1;
  transform: scale(1.05);
}

.team-member:hover .team-name {
  color: #cca153;
  text-shadow: 0 2px 8px rgba(224,184,105,0.10);
}

.team-role {
  font-family: var(--body-font);
  color: #3f6182;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 2px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.profile-btn {
  font-family: var(--body-font);
  background: #f5f6fa;
  color: #3f6182;
  border: 1.5px solid #cfd8e3;
  border-radius: 20px;
  padding: 6px 24px;
  font-size: 1rem;
  margin-top: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  display: inline-block;
  text-decoration: none;
}

.profile-btn:hover {
  background: #cca153;
  color: #fff;
  border-color: #cca153;
}

/* Profile Section Styles - Enhanced */
.profile-sections {
  margin-top: 60px;
  width: 100%;
}

.profile-section {
  display: none;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  background-color: #f9f9fb;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(5, 34, 60, 0.08);
  overflow: hidden;
}

.profile-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.8s ease;
}

.profile-hero {
  display: flex;
  margin-top: 0;
  background-color: #05223c;
  position: relative;
  animation: fadeIn var(--transition-medium);
}

.profile-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #cca153, #e0b869);
  animation: slideInFromLeft var(--transition-medium);
}

.profile-photo {
  width: 35%;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideInFromLeft var(--transition-medium);
}

.profile-photo img {
  width: 100%;
  max-width: 280px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 3px solid #fff;
  transition: transform var(--transition-medium);
}

.profile-photo img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.profile-details {
  width: 65%;
  padding: 50px 40px;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  animation: slideInFromRight var(--transition-medium);
}

.profile-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 34, 60, 0.7);
  z-index: 0;
}

.profile-name {
  font-family: var(--heading-font);
  font-size: 2.8rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeIn var(--transition-slow);
}

.profile-role {
  font-family: var(--body-font);
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--secondary-color);
  position: relative;
  z-index: 1;
  letter-spacing: 1.5px;
  font-weight: 500;
  animation: fadeIn var(--transition-slow) 0.2s;
}

.profile-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  animation: fadeIn 1s ease 0.4s forwards;
  opacity: 0;
}

.profile-contact-block {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.profile-contact-block:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-color);
}

.profile-contact-icon {
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.profile-contact-block:hover .profile-contact-icon {
  transform: scale(1.2);
}

.profile-contact-info {
  font-family: var(--body-font);
  font-size: 1.05rem;
  transition: color var(--transition-fast);
}

.profile-contact-block:hover .profile-contact-info {
  color: var(--secondary-color);
}

.back-to-team {
  display: inline-block;
  margin-top: 25px;
  padding: 10px 24px;
  background-color: #cca153;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-family: var(--body-font);
  transition: all var(--transition-fast);
  position: relative;
  z-index: 1;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: fadeIn 0.8s ease 0.8s forwards;
}

.back-to-team::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--secondary-color), #cca153);
  transition: left var(--transition-medium);
  z-index: -1;
}

.back-to-team:hover {
  background-color: #e0b869;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(5, 34, 60, 0.3);
}

.back-to-team:hover::before {
  left: 0;
}

.back-to-team:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(5, 34, 60, 0.2);
}

.profile-description {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  font-family: var(--body-font);
  line-height: 1.8;
  color: #3f6182;
  font-size: 1.1rem;
  background-color: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  animation: fadeIn 1s ease 0.6s forwards;
  opacity: 0;
}

.profile-description p {
  margin-bottom: 20px;
  opacity: 0;
  animation: slideInFromBottom 0.8s ease forwards;
}

.profile-description p:nth-child(1) {
  animation-delay: 0.7s;
}

.profile-description p:nth-child(2) {
  animation-delay: 0.9s;
}

.profile-description p:nth-child(3) {
  animation-delay: 1.1s;
}

.profile-description p:first-of-type::first-letter {
  font-size: 3.5rem;
  font-family: var(--heading-font);
  float: left;
  padding-right: 10px;
  line-height: 0.8;
  color: #05223c;
  text-shadow: 2px 2px 0 var(--secondary-color);
  opacity: 0.9;
}

/* Improved responsive styles for profile sections */
@media (max-width: 900px) {
  .profile-hero {
    flex-direction: column;
    align-items: center;
  }
  
  .profile-photo, .profile-details {
    width: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .profile-photo {
    padding: 40px 30px 20px 30px;
  }
  
  .profile-photo img {
    max-width: 260px;
    border-width: 3px;
    margin: 0 auto;
  }
  
  .profile-name {
    font-size: 2.4rem;
    text-align: center;
    width: 100%;
  }
  
  .profile-role {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
  }
  
  .profile-contact-row {
    justify-content: center;
    gap: 15px;
    width: 100%;
  }
  
  .back-to-team {
    margin: 25px auto 0;
    display: table;
    padding: 12px 28px;
    font-size: 1.05rem;
  }
  
  .profile-details {
    padding: 30px;
  }
  
  .profile-description {
    padding: 35px 30px;
  }
}

@media (max-width: 600px) {
  .profile-contact-row {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }
  
  .profile-contact-block {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 12px 16px;
  }
  
  .profile-photo {
    padding: 35px 25px 20px 25px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .profile-photo img {
    max-width: 220px;
    border-width: 3px;
    margin: 0 auto;
  }
  
  .profile-details {
    padding: 25px 25px 30px 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .profile-name {
    font-size: 2rem;
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
  }
  
  .profile-role {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
  }
  
  .profile-contact-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .profile-contact-info {
    font-size: 1rem;
  }
  
  .profile-description {
    padding: 30px 20px;
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .profile-description p:first-of-type::first-letter {
    font-size: 3rem;
    padding-right: 12px;
    line-height: 0.9;
  }
}

/* Additional styles for very small screens */
@media (max-width: 480px) {
  .profile-photo {
    padding: 30px 20px 15px 20px;
  }
  
  .profile-photo img {
    max-width: 200px;
    border-width: 2px;
  }
  
  .profile-details {
    padding: 20px 20px 25px 20px;
  }
  
  .profile-name {
    font-size: 1.8rem;
  }
  
  .profile-role {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  
  .profile-contact-row {
    gap: 12px;
    width: 100%;
  }
  
  .profile-contact-block {
    padding: 10px 14px;
    width: 100%;
  }
  
  .profile-contact-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .profile-contact-info {
    font-size: 0.85rem;
    word-break: break-word;
  }
  
  .back-to-team {
    margin: 18px auto 0;
    padding: 10px 24px;
    font-size: 0.95rem;
  }
  
  .profile-description {
    padding: 25px 18px;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .profile-description p:first-of-type::first-letter {
    font-size: 2.8rem;
  }
}

.associate-heading {
  font-family: var(--heading-font);
  color: #05223c;
  font-size: 2rem;
  text-align: center;
  margin: 40px 0 24px 0;
  letter-spacing: 1.5px;
}

.associate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 32px;
}

.associate-pill {
  font-family: var(--body-font);
  background: #fff;
  color: #3f6182;
  border: 1.5px solid #cfd8e3;
  border-radius: 24px;
  padding: 8px 28px;
  font-size: 1.08rem;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(5,34,60,0.04);
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.associate-pill:hover {
  background: #cca153;
  color: #fff;
  border-color: #cca153;
}

@media (max-width: 900px) {
  .team-grid {
    gap: 24px;
  }
  .team-photo {
    width: 250px;
    height: 250px;
  }
}

/* Consistent Team Grid Layout */
@media (max-width: 768px) and (min-width: 601px) {
  .team-grid {
    gap: 40px;
  }
  
  .team-member {
    max-width: 180px;
  }
  
  .team-photo {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 600px) {
  .team-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 0 10px;
  }
  .team-member {
    width: calc(50% - 12px);
    max-width: 160px;
    margin-bottom: 20px;
  }
  .team-photo {
    width: 250px;
    height: 250px;
    margin-bottom: 12px;
  }
  .team-name {
    font-size: 1.1rem;
    margin-top: 6px;
    margin-bottom: 2px;
  }
  .team-role {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  .profile-btn {
    padding: 5px 15px;
    font-size: 0.9rem;
  }
  .associate-heading {
    font-size: 1.6rem;
    margin: 30px 0 16px 0;
  }
  .associate-list {
    justify-content: center;
    padding: 0 10px;
  }
}

.media-section {
  background: #fafbfc;
  padding: 80px 0 60px 0;
}

.media-title {
  text-align: center;
  font-family: var(--heading-font);
  color: #05223c;
  font-size: 3.2rem;
  letter-spacing: 2px;
  margin-bottom: 0;
}

.media-section .underline {
  margin-bottom: 40px;
}

.media-timeline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden; /* Prevent animations from causing scrollbars */
}

/* Vertical timeline line with animation */
.media-timeline::before {
  content: '';
  position: absolute;
  left: 65px;
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 1;
  animation: pulse 3s ease-in-out infinite;
}

.media-year-block {
  display: flex;
  align-items: stretch; /* Make children stretch to same height */
  margin-bottom: 48px;
  position: relative;
  min-height: 100px;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInFromBottom 0.8s ease forwards;
}

/* Staggered animation for year blocks */
.media-year-block:nth-child(1) { animation-delay: 0.1s; }
.media-year-block:nth-child(2) { animation-delay: 0.2s; }
.media-year-block:nth-child(3) { animation-delay: 0.3s; }
.media-year-block:nth-child(4) { animation-delay: 0.4s; }
.media-year-block:nth-child(5) { animation-delay: 0.5s; }
.media-year-block:nth-child(6) { animation-delay: 0.6s; }
.media-year-block:nth-child(7) { animation-delay: 0.7s; }
.media-year-block:nth-child(8) { animation-delay: 0.8s; }
.media-year-block:nth-child(9) { animation-delay: 0.9s; }
.media-year-block:nth-child(10) { animation-delay: 1s; }

.media-year-block::before {
  content: '';
  position: absolute;
  left: 65px; /* adjust to align with year text */
  top: 4em; /* start below the year text */
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    #3f6182 0px,
    #3f6182 5px,
    transparent 5px,
    transparent 10px
  );
  opacity: 0.3;
  z-index: 2;
  animation: slideInFromTop 1s ease forwards;
  transform-origin: top;
  transform: scaleY(0);
}

.media-year {
  font-family: var(--heading-font);
  color: #05223c;
  font-size: 2.2rem;
  min-width: 90px;
  text-align: right;
  margin-right: 32px;
  margin-top: 8px;
  position: relative;
  z-index: 3; /* above the line */
  padding-right: 10px;
  text-shadow: 0 0 10px rgba(204, 161, 83, 0);
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

/* Year hover effect */
.media-year-block:hover .media-year {
  color: var(--secondary-color);
  text-shadow: 0 0 10px rgba(204, 161, 83, 0.3);
}

.media-entries {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  z-index: 1;
}

.media-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(5,34,60,0.04);
  padding: 24px 32px;
  margin-bottom: 0;
  position: relative;
  gap: 32px;
  opacity: 0;
  transform: translateX(30px);
  animation: slideInFromRight 0.6s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Staggered animation for entries */
.media-entry:nth-child(1) { animation-delay: 0.2s; }
.media-entry:nth-child(2) { animation-delay: 0.3s; }
.media-entry:nth-child(3) { animation-delay: 0.4s; }
.media-entry:nth-child(4) { animation-delay: 0.5s; }
.media-entry:nth-child(5) { animation-delay: 0.6s; }

/* Entry hover effect */
.media-entry:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(5, 34, 60, 0.08);
}

.media-entry-title {
  font-family: var(--body-font);
  font-weight: 900;
  color: #05223c;
  font-size: 1.15rem;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 8px;
}

.media-entry-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.4s ease;
}

.media-entry:hover .media-entry-title::after {
  width: 100%;
}

.media-entry-desc {
  font-family: var(--body-font);
  color: #3f6182;
  font-size: 1.05rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.media-btn {
  display: inline-block;
  background: #e9ecf2;
  color: #3f6182;
  border: 2px solid #bfc7d1;
  border-radius: 22px;
  padding: 10px 32px;
  font-size: 1.15rem;
  font-family: var(--body-font);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 32px;
  min-width: 160px;
  text-align: center;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.media-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
  z-index: -1;
}

.media-btn:hover {
  background: #cca153;
  color: #fff;
  border-color: #cca153;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(204, 161, 83, 0.3);
}

.media-btn:hover::before {
  left: 100%;
}

@media (max-width: 900px) {
  .media-timeline {
    padding: 0 10px;
  }
  
  .media-year-block {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .media-year {
    text-align: left;
    margin-bottom: 12px;
  }

  .media-year-block::before {
    left: 0px;
  }
  
  .media-timeline::before {
    left: 95px;
  }
  
  .media-entry {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    transform: translateX(0) translateY(30px);
    animation-name: slideInFromBottom;
  }
  
  .media-btn {
    margin-left: 0;
    min-width: 120px;
  }
}

@media (max-width: 600px) {
  .media-year {
    font-size: 1.8rem;
  }
  
  .media-year::after,
  .media-year-block::before,
  .media-timeline::before {
    left: 0px;
  }
  
  .media-entry-title {
    font-size: 1.1rem;
  }
  
  .media-entry-desc {
    font-size: 1rem;
  }
  
  .media-btn {
    font-size: 1rem;
    padding: 8px 24px;
  }
}

.contact-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px; /* Adjust for desired space between phone and email */
  margin-top: 32px;
}

.contact-block {
  display: flex;
  align-items: center;
  gap: 16px; /* Space between icon and text */
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.contact-info {
  font-size: 1.35rem;
  color: #05223c;
  font-family: var(--body-font);
  font-weight: 500;
  margin: 0;
  line-height: 1;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-link:hover {
  transform: translateY(-2px);
}

.contact-link:hover .contact-info {
  color: var(--primary-color);
  text-decoration: underline;
}

@media (max-width: 700px) {
  .contact-row {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
}

.contact-map-btn {
  display: inline-flex;
  align-items: center;
  background: #e9ecf2;
  color: #05223c;
  border: 2px solid #bfc7d1;
  border-radius: 22px;
  padding: 10px 32px;
  font-size: 1.15rem;
  font-family: var(--body-font);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
  font-weight: 600;
}

.contact-map-btn:hover {
  background: #cca153;
  color: #fff;
  border-color: #cca153;
}

@media (max-width: 900px) {
  .about,
  .practice-content,
  .team-content,
  .insights-content,
  .contact-content {
    margin: 0 24px;
    padding: 0 8px;
  }
  .media-timeline {
    max-width: 100%;
    padding: 0 8px;
  }
  .media-section {
    padding: 48px 0 32px 0;
  }
}

/* Footer Styles - Enhanced Version */
.footer {
  background-color: #05223c;
  color: #fff;
  padding: 60px 0 20px;
  margin-top: 60px;
  font-family: var(--body-font);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start; /* Changed from center to flex-start for better alignment */
}

.footer-logo-section {
  width: 25%;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  position: relative;
  padding-right: 20px;
}

/* Add separator after logo section */
.footer-logo-section::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-logo-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  transition: transform 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.05);
}

.footer-contact-section {
  width: 40%;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding: 0 20px;
}

/* Add separator after contact section */
.footer-contact-section::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-links-section {
  width: 25%;
  margin-bottom: 30px;
  text-align: center;
  padding-left: 20px;
}

.footer-section {
  margin-bottom: 30px;
}

.footer-section h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 20px;
  color: #cca153;
  position: relative;
  display: inline-block;
}

.footer-section h3:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background-color: #cca153;
  transition: width 0.3s ease;
}

.footer-contact-section h3:after {
  left: 50%;
  transform: translateX(-50%);
}

.footer-links-section h3:after {
  left: auto;
  right: 0;
}

.footer-section p {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #e9ecf2;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
  transition: transform 0.2s ease;
}

.footer-links li:hover {
  transform: translateX(-5px);
}

.footer-links a {
  color: #e9ecf2;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding-left: 15px;
  display: inline-block;
}

.footer-links a:before {
  content: '›';
  position: absolute;
  left: 0;
  color: #cca153;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.footer-links a:hover {
  color: #cca153;
}

.footer-links a:hover:before {
  transform: translateX(3px);
}

.footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #bfc7d1;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  margin-bottom: 10px;
}

/* Social Media Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  background-color: #cca153;
  transform: translateY(-3px);
}

/* Contact Office Sections */
.contact-offices-row {
  display: flex;
  gap: 30px;
  margin: 40px 0;
}

.contact-office-section {
  flex: 1;
  padding: 30px;
  background-color: #f9f9fb;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(5, 34, 60, 0.08);
}

.contact-address {
  margin-bottom: 20px;
  text-align: center;
}

.contact-address h3 {
  font-family: var(--heading-font);
  color: #05223c;
  font-size: 1.8rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.contact-address h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--secondary-color);
  width: 60%;
  margin: 0 auto;
}

.contact-address p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #3f6182;
}

.contact-map-embed {
  margin-top: 20px;
  width: 100%;
}

/* Updated Contact Office Styling */
.address-container {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  flex-wrap: wrap;
  gap: 30px;
}

.address-block {
  flex: 1;
  min-width: 250px;
}

.address-block p {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #3f6182;
}

.address-block p strong {
  color: #05223c;
  font-size: 1.3rem;
  display: block;
  margin-bottom: 5px;
}

.contact-maps-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-maps-container .contact-map-embed {
  flex: 1;
  min-width: 300px;
}

.map-label {
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
  color: #05223c;
}

@media (max-width: 768px) {
  .address-container {
    flex-direction: column;
  }
  
  .contact-maps-container {
    flex-direction: column;
  }
  
  .contact-maps-container .contact-map-embed {
    margin-bottom: 20px;
  }
}

/* Utility Classes */
.no-scroll {
  overflow: hidden;
}

/* Responsive adjustments */
/* Responsive navbar styles */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }
  
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: #05223c;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    padding-left:20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex; /* Ensure this is explicitly set */
    transform: translateX(100%); /* Add this as a backup method */
  }
  
  .navbar-links.active {
    right: 0;
    transform: translateX(0); /* Reset transform when active */
  }
  
  .navbar.scrolled .navbar-links {
    width: 250px;
    left: auto;
    right: -100%;
    background-color: #05223c;
  }
  
  .navbar.scrolled .navbar-links.active {
    right: 0;
  }
  
  .navbar a {
    color: #e0b869;
    width: 100%;
    text-align: left;
    padding: 15px 40px;
    border-bottom: 1px solid rgba(224, 184, 105, 0.1);
  }
  
  .navbar.scrolled a {
    color: #e0b869;
  }
  
  .navbar a:hover,
  .navbar.scrolled a:hover {
    background: rgba(224, 184, 105, 0.1);
  }
}

@media (max-width: 992px) {
  .contact-offices-row {
    flex-direction: column;
    gap: 40px;
  }
  
  .contact-office-section {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .go-to-top-btn {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
  
  .footer-section,
  .footer-logo-section,
  .footer-contact-section,
  .footer-links-section {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
    padding: 0;
  }
  
  .footer-logo-section,
  .footer-contact-section {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  /* Remove vertical separators on mobile */
  .footer-logo-section::after,
  .footer-contact-section::after {
    display: none;
  }
  
  .footer-logo-section {
    justify-content: center;
  }
  
  .footer-links {
    text-align: center;
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .footer-links li {
    margin-bottom: 12px;
    text-align: left;
  }
  
  .footer-links li:hover {
    transform: translateY(-3px);
  }
  
  .footer-links a {
    display: block;
    padding-left: 20px;
    position: relative;
    text-align: left;
  }
  
  .footer-links a:before {
    content: '›';
    position: absolute;
    left: 5px;
    color: #cca153;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
  }
  
  .footer-section h3 {
    display: block;
    width: 100%;
    text-align: center;
  }
  
  .footer-section h3:after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
  }
  
  .contact-office-section {
    padding: 20px;
  }
  
  .contact-address h3 {
    font-size: 1.5rem;
  }
  
  .contact-address p {
    font-size: 1.1rem;
  }
}

@media (max-width: 900px) {
  .team-grid {
    gap: 24px;
  }
  .team-photo {
    width: 250px;
    height: 250px;
  }
  .media-entry {
    padding: 18px 12px;
    gap: 16px;
  }
  .media-btn {
    min-width: 100px;
    padding: 8px 16px;
    font-size: 1rem;
  }
  .contact-row {
    gap: 24px;
  }
}

/* Go to Top Button */
.go-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #05223c;
  color: #e0b869;
  border: 2px solid #e0b869;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.go-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-to-top-btn:hover {
  background-color: #e0b869;
  color: #05223c;
  transform: translateY(-5px);
}

.go-to-top-btn:active {
  transform: translateY(0);
}

/* Additional styles for very small screens */
@media (max-width: 400px) {
  .team-member {
    width: 100%;
    max-width: 180px;
  }
  
  .team-photo {
    width: 250px;
    height: 250px;
  }
}

/* Additional responsive styles for smaller screens */
@media (max-width: 480px) {
  .navbar a {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  .hero-logo {
    max-width: 80vw;
  }
  
  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .profile-description p:first-of-type::first-letter {
    font-size: 2.8rem;
  }
  
  .profile-name {
    font-size: 1.8rem;
  }
  
  .profile-role {
    font-size: 1rem;
  }
  
  .profile-contact-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .profile-contact-block {
    width: 80%;
  }
  
  .back-to-team {
    display: block;
    text-align: center;
    margin: 20px auto 0;
  }
  
  .scroll-indicator {
    bottom: 20px;
  }
  
  .scroll-arrow {
    width: 20px;
    height: 20px;
  }
  
  .scroll-text {
    font-size: 12px;
  }
  
  .footer-links {
    max-width: 180px;
  }
  
  .footer-links a {
    font-size: 0.95rem;
  }
  
  .footer-section h3 {
    font-size: 1.3rem;
  }
  
  .recruitment-footer {
    padding: 0 15px;
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .about {
    margin-top: 24px;
  }
  .hero {
    min-height: 220px;
  }
  .about,
  .practice-content {
    margin: 0 8px;
    padding: 0 2px;
  }
  .team-content,
  .insights-content,
  .contact-content {
    margin: 0 15px;
    padding: 0 5px;
  }
  .about h1,
  .practice-areas h1,
  .media-title {
    font-size: 2rem;
  }
  .team h1,
  .insights h1,
  .contact h1 {
    font-size: 2rem;
    margin-bottom: 5px;
  }
  
  .underline {
    margin-bottom: 20px;
  }
  .media-year {
    font-size: 1.2rem;
    min-width: 60px;
    margin-right: 12px;
    padding-right: 4px;
  }
  .media-entry-title {
    font-size: 1rem;
  }
  .media-entry-desc {
    font-size: 0.95rem;
  }
  .media-section .underline,
  .underline {
    width: 120px;
  }
  .associate-list {
    gap: 8px;
  }
  .associate-pill {
    font-size: 0.95rem;
    padding: 6px 14px;
  }
  .contact-row {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .contact-block {
    gap: 8px;
  }
  .contact-info {
    font-size: 1rem;
  }
  .contact-map-embed iframe {
    height: 180px !important;
    margin: 16px 0 0 0 !important;
    width: 100%;
  }
  .contact-office-section {
    padding: 15px;
    margin: 20px 0;
  }
  
  .contact-address h3 {
    font-size: 1.3rem;
  }
  
  .contact-address p {
    font-size: 1rem;
  }
}


.vcard-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 15px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 15px auto 0;
  width: 80%;
  max-width: 220px;
}

.vcard-download-btn:hover {
  background-color: #0a3256;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vcard-icon {
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.vcard-text {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.team-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.team-profile {
  display: flex;
  margin-bottom: 80px;
  border-top: 1px solid #eaeaea;
  padding-top: 40px;
  position: relative;
}

.team-profile:first-child {
  border-top: none;
  padding-top: 0;
}

/* Alternating layout */


.team-profile-photo {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  max-height: 80vh;
}

.team-profile-photo img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-profile-content {
  flex: 0 0 65%;
  margin: 0 20px;
}

.team-profile-header {
  margin-bottom: 20px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 10px;
}

.team-profile-name {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 400;
  color: #333;
  margin: 0 0 5px 0;
}

.team-profile-role {
  font-family: var(--body-font);
  font-size: 1.2rem;
  color: #999;
  font-weight: 400;
  display: block;
  margin-bottom: 10px;
}

.team-profile-bio {
  margin-bottom: 30px;
}

.team-profile-bio p {
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}

.team-profile-bio p strong {
  font-weight: 600;
}

.team-profile-actions {
  display: flex;
  gap: 15px;
}

/* Associate Section Styling */
.associate-heading {
  margin-top: 60px;
  margin-bottom: 30px;
  color: #05223c;
  font-family: var(--heading-font);
  font-size: 1.8rem;
  text-align: center;
  position: relative;
}

.associate-heading:after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #cca153;
  margin: 15px auto 0;
}

.associate-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
}

.associate-pill {
  background-color: #f5f6fa;
  color: #05223c;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.associate-pill:hover {
  background-color: #05223c;
  color: #fff;
  transform: translateY(-2px);
  cursor: default;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .team-profile,
  .team-profile-alt {
    flex-direction: column;
  }
  
  /* Fix for mobile - always show photo first, then content */
  .team-profile-photo {
    order: 1;
    flex: 0 0 100%;
    padding-right: 0;
    padding-left: 0;
    margin-bottom: 30px;
    position: relative; /* Remove sticky behavior on mobile */
    top: 0;
  }
  
  .team-profile-content {
    order: 2;
    flex: 0 0 100%;
  }
  
  .team-profile-name {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .team-profile-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  
  .team-profile-name {
    font-size: 1.8rem;
  }
  
  .team-profile-role {
    font-size: 1rem;
  }
  
  .vcard-download-btn {
    max-width: 80%;
  }
}
/* Recruitment Section Styles */
.recruitment-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 30px;
}

.recruitment-block {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  padding: 25px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(5, 34, 60, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recruitment-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(5, 34, 60, 0.12);
}

.recruitment-title {
  font-family: var(--heading-font);
  color: #05223c;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
}

.recruitment-text {
  margin-bottom: 20px;
  line-height: 1.6;
}

.email-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 15px auto 0;
  width: 80%;
  max-width: 220px;
}

.email-btn:hover {
  background-color: #0a3256;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.email-icon {
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-icon svg {
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.email-text {
  font-weight: 600;
  display: inline-block;
  vertical-align: middle;
}

.subject-note {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 15px;
  color: #666;
}

.email-fallback {
  display: block;
  font-size: 0.85rem;
  margin-top: 5px;
  color: #555;
}

.recruitment-footer {
  text-align: center;
  margin-top: 30px;
  font-style: italic;
  color: #05223c;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile Responsiveness for Recruitment Section */
@media (max-width: 768px) {
  .recruitment-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  
  .recruitment-block {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
  }
  
  .email-btn {
    width: 100%;
  }
  
  .contact-office-section {
    padding: 20px 15px;
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }
  
  .contact-content {
    margin: 0;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .recruitment-footer {
    padding: 0 15px;
    font-size: 0.95rem;
  }
}
/* Blog Styles */
/* Blog Filter Styles */
.blog-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 8px 16px;
  background-color: #f5f6fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--body-font);
  font-weight: 600;
  color: #3f6182;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #e9ecf2;
}

.filter-btn.active {
  background-color: #05223c;
  color: white;
  border-color: #05223c;
}

.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.blog-empty-message {
  text-align: center;
  padding: 50px 20px;
  color: #3f6182;
  font-style: italic;
  background-color: #f5f6fa;
  border-radius: 8px;
  margin: 30px 0;
}

.blog-post {
  margin-bottom: 0;
  padding: 0;
  border-bottom: none;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post-header {
  padding: 20px 20px 10px 20px;
}

.blog-post-title {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: #05223c;
  margin-bottom: 10px;
  line-height: 1.3;
  min-height: 2.6em;
}

/* Blog Category Styles */
.blog-post-category {
  display: inline-block;
  padding: 4px 10px;
  background-color: #05223c;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Category-specific colors */
.blog-post-category.arbitration {
  background-color: #0a3a64;
}

.blog-post-category.constitution {
  background-color: #2c5282;
}

.blog-post-category.contract-law {
  background-color: #3182ce;
}

.blog-post-category.evidence-law {
  background-color: #4299e1;
}

.blog-post-category.insolvency-laws {
  background-color: #63b3ed;
}

.blog-post-category.labour-laws {
  background-color: #4a5568;
}

.blog-post-category.specific-relief {
  background-color: #3f6182;
}

.blog-post-category.tort {
  background-color: #2d3748;
}

.blog-post-category.uncategorized {
  background-color: #718096;
}

.blog-post-meta {
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
  margin-top: 10px;
}

.blog-post-date {
  margin-right: 15px;
}

.blog-post-content {
  padding: 0 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-post-content p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #3f6182;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  display: inline-block;
  padding: 8px 15px;
  background-color: #05223c;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.9rem;
}

.blog-read-more:hover {
  background-color: #0a3a64;
}

/* Responsive adjustments for blog */
@media (max-width: 768px) {
  .blog-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .blog-container {
    grid-template-columns: 1fr;
  }
}
.blog-post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-post:hover .blog-post-image img {
  transform: scale(1.05);
}

/* Individual Blog Post Page Styles */
.blog-post-page {
  padding-top: 120px;
  padding-bottom: 60px;
}

.blog-post-full {
  max-width: 1000px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.blog-post-image-full {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.blog-post-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-header-full {
  padding: 30px 40px 20px;
}

.blog-post-title-full {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  color: #05223c;
  margin-bottom: 15px;
  line-height: 1.2;
}

/* For the full blog post page */
.blog-post-header-full .blog-post-category {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.blog-post-meta-full {
  font-size: 1rem;
  color: #6c757d;
  font-style: italic;
  margin-bottom: 20px;
}

.blog-post-date-full {
  margin-right: 15px;
}

.blog-post-content-full {
  padding: 0 40px 30px;
}

.blog-post-content-full p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #3f6182;
  font-size: 1.1rem;
}

.blog-post-navigation {
  padding: 20px 40px 30px;
  border-top: 1px solid #e0e0e0;
}

.back-to-blogs {
  display: inline-block;
  padding: 10px 20px;
  background-color: #05223c;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.back-to-blogs:hover {
  background-color: #0a3a64;
}

/* Responsive adjustments for blog post pages */
@media (max-width: 768px) {
  .blog-post-title-full {
    font-size: 2rem;
  }
  
  .blog-post-header-full,
  .blog-post-content-full,
  .blog-post-navigation {
    padding-left: 25px;
    padding-right: 25px;
  }
  
  .blog-post-image-full {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .blog-post-title-full {
    font-size: 1.7rem;
  }
  
  .blog-post-header-full,
  .blog-post-content-full,
  .blog-post-navigation {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .blog-post-image-full {
    height: 200px;
  }
}

/* Contentful Integration Styles */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2c5aa0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.error-content h2 {
  color: #e74c3c;
  margin-bottom: 1rem;
}

.error-content p {
  color: #666;
  margin-bottom: 1rem;
}

.error-content a {
  color: #2c5aa0;
  text-decoration: none;
}

.error-content a:hover {
  text-decoration: underline;
}

.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

/* Dynamic Blog Post Page Styles */
.blog-post-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-post-breadcrumb {
  margin-bottom: 2rem;
}

.blog-post-breadcrumb a {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 500;
}

.blog-post-breadcrumb a:hover {
  text-decoration: underline;
}

.blog-post-image-section {
  padding: 2rem 0;
}

.blog-post-featured-image {
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-content-section {
  padding: 4rem 0;
}

.blog-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin: 2rem 0 1rem;
  color: #2c5aa0;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

/* Related Posts */
.related-posts {
  padding: 4rem 0;
  background: #f8f9fa;
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c5aa0;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.related-post {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.related-post-image {
  height: 200px;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-content {
  padding: 1.5rem;
}

.related-post-content h3 {
  margin-bottom: 1rem;
}

.related-post-content h3 a {
  color: #2c5aa0;
  text-decoration: none;
}

.related-post-content h3 a:hover {
  text-decoration: underline;
}

.related-post-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Responsive Design for Contentful Integration */
@media (max-width: 768px) {
  .blog-post-hero {
    padding: 6rem 0 2rem;
  }
  
  .blog-content {
    font-size: 1rem;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}