/* Legacy Law Firm Design */

:root {
  --primary: #1a3a52;
  --secondary: #8b4513;
  --accent: #c41e3a;
  --purple: #6b46c1;
  --purple-dark: #553c9a;
  --dark-gray: #2c2c2c;
  --light-gray: #f5f5f5;
  --border-gray: #d9d9d9;
  --text: #1a1a1a;
  --text-light: #555;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.7;
  color: var(--text);
  background-color: #fafaf8;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  color: var(--primary);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

h1 {
  font-size: 2.8em;
  font-weight: normal;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.2em;
  font-weight: normal;
  border-bottom: 3px solid var(--secondary);
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

h3 {
  font-size: 1.6em;
  font-weight: normal;
}

h4 {
  font-size: 1.3em;
  font-weight: normal;
}

p {
  margin: 1em 0;
  line-height: 1.8;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Header & Navigation */
header {
  background-color: var(--primary);
  color: white;
  padding: 20px 0;
  border-bottom: 4px solid var(--secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-section img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.logo-section h1 {
  margin: 0;
  color: white;
  font-size: 1.8em;
}

.logo-section p {
  margin: 0;
  color: #d0d0d0;
  font-size: 0.9em;
  font-style: italic;
  font-family: 'Georgia', serif;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2em;
}

nav a {
  color: white;
  font-weight: normal;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
  text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

/* Ensure nav is visible on desktop */
@media (min-width: 769px) {
  .main-nav {
    display: block !important;
    max-height: none !important;
  }
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(26, 58, 82, 0.94), rgba(26, 58, 82, 0.90)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1920&h=1080&fit=crop') center/cover;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 20px 0 50px;
  text-align: left;
  position: relative;
  min-height: 500px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  font-size: 3.8em;
  margin-bottom: 0.3em;
  letter-spacing: -1.5px;
  font-weight: 300;
  line-height: 1.2;
}

.hero-tagline {
  font-size: 1.5em;
  color: #e0e0e0;
  font-weight: 300;
  margin-bottom: 1em;
  letter-spacing: 0.3px;
  line-height: 1.6;
}

.hero-description {
  font-size: 1.2em;
  max-width: 850px;
  margin: 0 0 1.5em 0;
  color: #e8e8e8;
  line-height: 1.9;
  font-weight: 300;
  letter-spacing: 0.2px;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 1.5em 0;
  max-width: 700px;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 0;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
}

.hero-feature-item:hover {
  transform: translateX(5px);
}

.feature-icon {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4em;
  font-weight: 300;
  margin-top: 2px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-feature-item strong {
  color: white;
  font-size: 1.15em;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin: 0;
  line-height: 1.4;
}

.hero-feature-item span {
  color: #d0d0d0;
  font-size: 1em;
  text-align: left;
  line-height: 1.6;
  font-weight: 300;
}

.hero-cta {
  margin-top: 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  margin: 10px 5px;
  font-family: 'Georgia', serif;
  font-size: 1em;
  border: 2px solid var(--primary);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white;
  text-decoration: none;
}

.hero .btn-primary {
  background-color: white;
  color: var(--primary);
  border-color: white;
  padding: 14px 32px;
  font-size: 1.05em;
  font-weight: 500;
}

.hero .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero .btn-secondary {
  background-color: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
  padding: 14px 32px;
  font-size: 1.05em;
  font-weight: 500;
}

.hero .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Content Sections */
.section {
  padding: 60px 0;
  position: relative;
}

.section.with-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section.with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 0;
}

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

.section.alternate {
  background-color: var(--light-gray);
}

.section.alternate.with-bg::before {
  background: rgba(245, 245, 245, 0.95);
}

.section-header {
  text-align: center;
  margin-bottom: 3em;
}

.section-header h2 {
  border: none;
  padding-bottom: 0;
}

.section-header .decorative-line {
  height: 3px;
  width: 80px;
  background-color: var(--secondary);
  margin: 1em auto;
}

/* Cards & Boxes */
.card {
  background-color: white;
  border: 1px solid var(--border-gray);
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card h3 {
  margin-top: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 2em 0;
}

.card-item {
  background-color: white;
  border-left: 4px solid var(--secondary);
  padding: 25px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.card-item h3 {
  margin-top: 0;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 0.5em;
}

.card-item p {
  flex-grow: 1;
}

.icon {
  font-size: 3em;
  margin-bottom: 0.5em;
}

/* Service Pages */
.service-content {
  background-color: white;
  padding: 40px;
  border: 1px solid var(--border-gray);
}

.service-toc {
  background-color: var(--light-gray);
  border-left: 4px solid var(--secondary);
  padding: 25px;
  margin: 2em 0;
}

.service-toc h4 {
  margin-top: 0;
  color: var(--secondary);
}

.service-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-toc li {
  margin: 0.5em 0;
}

.service-toc a {
  color: var(--primary);
}

/* Lists */
ul, ol {
  margin: 1.5em 0;
  padding-left: 2.5em;
}

li {
  margin-bottom: 0.8em;
  line-height: 1.8;
}

ul.check {
  list-style: none;
  padding: 0;
}

ul.check li:before {
  content: "✓ ";
  color: var(--secondary);
  font-weight: bold;
  margin-right: 0.5em;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  background-color: white;
}

thead {
  background-color: var(--primary);
  color: white;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-gray);
}

tr:hover {
  background-color: var(--light-gray);
}

/* Forms */
form {
  background-color: var(--light-gray);
  padding: 30px;
  border: 1px solid var(--border-gray);
  margin: 2em 0;
}

.form-group {
  margin-bottom: 1.5em;
}

label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
  color: var(--primary);
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-gray);
  font-family: 'Georgia', serif;
  font-size: 1em;
  line-height: 1.5;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26, 58, 82, 0.1);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  margin-bottom: 20px;
}

.footer-section h4 {
  color: var(--secondary);
  margin-top: 0;
}

.footer-section p, .footer-section a {
  color: #d0d0d0;
  margin: 0.5em 0;
}

.footer-section a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  text-align: center;
  color: #a0a0a0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
}

/* Breadcrumbs */
.breadcrumb {
  margin: 20px 0;
  font-size: 0.95em;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 0.5em;
  color: var(--text-light);
}

/* Contact Info */
.contact-info {
  background-color: var(--light-gray);
  padding: 25px;
  border-left: 4px solid var(--secondary);
  margin: 2em 0;
}

.contact-info p {
  margin: 0.5em 0;
  font-size: 1.05em;
}

.contact-info strong {
  color: var(--primary);
}

/* Testimonials */
.testimonial {
  background-color: white;
  border-left: 4px solid var(--secondary);
  padding: 25px;
  margin: 2em 0;
  font-style: italic;
  color: var(--text-light);
}

.testimonial-author {
  font-style: normal;
  font-weight: bold;
  color: var(--primary);
  margin-top: 1em;
}

/* Case Results */
.case-result {
  background-color: white;
  border: 1px solid var(--border-gray);
  padding: 30px;
  margin-bottom: 25px;
  border-left: 5px solid var(--secondary);
}

.case-result h3 {
  margin-top: 0;
  color: var(--primary);
}

.case-meta {
  color: var(--text-light);
  font-size: 0.95em;
  margin-bottom: 1em;
}

.case-amount {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary);
  margin: 0.5em 0;
}

/* Article List */
.article-list {
  list-style: none;
  padding: 0;
  margin: 2em 0;
}

.article-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-gray);
}

.article-item:last-child {
  border-bottom: none;
}

.article-date {
  color: var(--text-light);
  font-size: 0.9em;
}

.article-title {
  font-size: 1.3em;
  margin: 0.5em 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .header-content {
    padding: 0 30px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 30px;
  }

  nav ul {
    gap: 1.5em;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
    margin-top: 0;
  }

  header {
    padding: 15px 0;
  }

  .header-content {
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 20px;
    position: relative;
  }

  .logo-section {
    flex: 1;
    min-width: 0;
  }

  .logo-section h1 {
    font-size: 1.5em;
  }

  .logo-section p {
    font-size: 0.8em;
  }

  .logo-section img {
    height: 60px;
  }

  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1002;
    min-width: 44px;
    min-height: 44px;
  }

  .main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    order: 3;
  }

  .main-nav.nav-open {
    max-height: 500px;
  }
  
  nav.main-nav {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav li:last-child {
    border-bottom: none;
  }

  nav a {
    display: block;
    padding: 14px 0;
    border-bottom: none;
    min-height: 44px;
    line-height: 1.5;
  }

  nav a:hover {
    border-bottom: none;
    padding-left: 10px;
  }

  .hero {
    padding: 15px 0 30px;
    text-align: left;
    background-attachment: scroll;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.2em;
    margin-bottom: 0.3em;
  }

  .hero-tagline {
    font-size: 1.2em;
    margin-bottom: 0.8em;
  }

  .hero-description {
    font-size: 1em;
    margin: 0 0 1em 0;
    line-height: 1.6;
  }

  .hero-features {
    gap: 10px;
    margin: 0 0 1em 0;
  }

  .hero-feature-item {
    width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero .btn-primary,
  .hero .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 2em;
  }

  .footer-content {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 30px;
  }

  .footer-bottom {
    padding: 20px;
    font-size: 0.9em;
    line-height: 1.6;
  }

  /* Mobile-specific grid fixes */
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 2em;
  }

  .why-choose-item {
    padding: 25px;
  }

  /* Fix all multi-column grids on mobile */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Fix specific grid patterns */
  div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="grid-template-columns: repeat(5"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Table responsiveness - horizontal scroll for mobile */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }

  table thead,
  table tbody,
  table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  table th,
  table td {
    min-width: 120px;
    word-wrap: break-word;
  }

  /* Form improvements */
  .form-group {
    margin-bottom: 1.2em;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px;
    min-height: 44px;
  }

  textarea {
    min-height: 120px;
  }

  button[type="submit"],
  .btn {
    min-height: 48px;
    padding: 14px 24px;
    font-size: 16px;
    touch-action: manipulation;
  }

  /* Card improvements */
  .card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .card-item {
    padding: 20px;
    min-height: auto;
  }

  /* Service TOC mobile */
  .service-toc {
    padding: 20px;
  }

  /* Contact info mobile */
  .contact-info {
    padding: 20px;
  }

  /* Case result mobile */
  .case-result {
    padding: 20px;
  }

  /* Article list mobile */
  .article-item {
    padding: 15px 0;
  }

  /* Testimonial mobile */
  .testimonial {
    padding: 20px;
  }

  /* Breadcrumb mobile */
  .breadcrumb {
    font-size: 0.9em;
    margin: 15px 0;
    word-break: break-word;
  }

  /* Subtitle mobile */
  .subtitle {
    font-size: 1.1em;
    line-height: 1.5;
  }

  /* Additional mobile improvements */
  h3 {
    font-size: 1.3em;
  }

  h4 {
    font-size: 1.1em;
  }

  p {
    font-size: 0.95em;
    line-height: 1.7;
  }

  ul, ol {
    padding-left: 1.5em;
  }

  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Better spacing for sections */
  .section.with-bg {
    padding: 30px 0;
  }

  /* Improve button spacing */
  .btn {
    margin: 8px 0;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 15px;
    margin-top: 0;
  }

  header {
    padding: 12px 0;
  }

  .header-content {
    padding: 0 15px;
    gap: 12px;
  }

  .logo-section h1 {
    font-size: 1.3em;
  }

  .logo-section p {
    font-size: 0.75em;
  }

  .logo-section img {
    height: 50px;
  }

  .mobile-menu-toggle {
    width: 26px;
    height: 26px;
    right: 15px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.5em;
  }

  .section {
    padding: 30px 0;
  }

  .hero {
    padding: 12px 0 25px;
    background-attachment: scroll;
    min-height: auto;
  }

  .hero h1 {
    font-size: 1.8em;
    margin-bottom: 0.3em;
    line-height: 1.2;
  }

  .hero-tagline {
    font-size: 1.05em;
    margin-bottom: 0.7em;
    line-height: 1.5;
  }

  .hero-description {
    font-size: 0.95em;
    margin: 0 0 0.9em 0;
    line-height: 1.6;
  }

  .hero-features {
    gap: 8px;
    margin: 0 0 0.9em 0;
  }

  .feature-icon {
    font-size: 1.1em;
    width: 18px;
  }

  .hero-feature-item {
    gap: 12px;
  }

  .hero-feature-item strong {
    font-size: 1em;
  }

  .hero-feature-item span {
    font-size: 0.9em;
    line-height: 1.5;
  }

  .hero-cta {
    gap: 10px;
  }

  .hero .btn-primary,
  .hero .btn-secondary {
    padding: 11px 20px;
    font-size: 0.95em;
  }

  .card-item {
    padding: 20px;
  }

  .case-result {
    padding: 20px;
  }

  .why-choose-item {
    padding: 20px;
  }

  .why-choose-item h3 {
    font-size: 1.2em;
  }

  .why-icon {
    font-size: 1.6em;
  }

  .footer-bottom {
    padding: 15px;
    font-size: 0.85em;
    line-height: 1.6;
  }
}

/* Why Choose Us Section */
.why-choose-us {
  background-color: white;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3em;
}

.why-choose-item {
  background-color: var(--light-gray);
  border-left: 4px solid var(--primary);
  padding: 30px;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.why-choose-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left-color: var(--secondary);
}

.why-icon {
  font-size: 2em;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 300;
}

.why-choose-item h3 {
  color: var(--primary);
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 0.8em;
  border: none;
  padding: 0;
}

.why-choose-item p {
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* Scrolling Reviews Section */
.reviews-section {
  background-color: var(--light-gray);
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}

.reviews-container {
  display: flex;
  gap: 30px;
  animation: scroll 40s linear infinite;
  width: fit-content;
}

.reviews-container:hover {
  animation-play-state: paused;
}

.review-card {
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 25px;
  min-width: 320px;
  max-width: 320px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.review-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.review-info h4 {
  margin: 0;
  font-size: 1.1em;
  color: var(--primary);
  border: none;
}

.review-info p {
  margin: 0.3em 0 0 0;
  font-size: 0.9em;
  color: var(--text-light);
}

.review-text {
  flex-grow: 1;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.review-rating {
  color: #f4a261;
  font-size: 1.2em;
  margin-top: 10px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.reviews-wrapper {
  overflow: hidden;
  position: relative;
}

.reviews-wrapper::before,
.reviews-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.reviews-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--light-gray), transparent);
}

.reviews-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--light-gray), transparent);
}

@media (max-width: 768px) {
  .review-card {
    min-width: 280px;
    max-width: 280px;
  }
  
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 2em;
  }

  .why-choose-item {
    padding: 25px;
  }
  
  .logo-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .logo-section img {
    height: 60px;
  }
  
  .footer-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .footer-logo img {
    height: 35px;
  }
  
  .section.with-bg {
    background-attachment: scroll;
  }
}

/* Trust Badges & Credibility Icons */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 40px 20px;
  background-color: var(--light-gray);
  border-top: 1px solid var(--border-gray);
  border-bottom: 1px solid var(--border-gray);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: var(--text);
}

.trust-badge:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.trust-badge-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 1.8em;
}

.trust-badge-text {
  font-size: 0.9em;
  color: var(--text);
  font-weight: 500;
  max-width: 150px;
}

.trust-badge-link {
  font-size: 0.85em;
  color: var(--primary);
  text-decoration: underline;
}

.trust-badge-link:hover {
  color: var(--secondary);
}

.credibility-section {
  background-color: white;
  padding: 40px 0;
  border-top: 3px solid var(--secondary);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 2em;
}

.credibility-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background-color: var(--light-gray);
  border-left: 4px solid var(--secondary);
  transition: all 0.3s ease;
}

.credibility-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.credibility-icon {
  font-size: 2em;
  color: var(--secondary);
  flex-shrink: 0;
}

.credibility-content h4 {
  margin: 0 0 0.5em 0;
  color: var(--primary);
  border: none;
  padding: 0;
  font-size: 1.1em;
}

.credibility-content p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text);
}

.credibility-content a {
  color: var(--primary);
  text-decoration: underline;
}

.credibility-content a:hover {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .trust-badges {
    gap: 20px;
    padding: 30px 15px;
  }

  .trust-badge {
    padding: 15px;
  }

  .trust-badge-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5em;
  }

  .trust-badge-text {
    font-size: 0.85em;
    max-width: 120px;
  }

  .credibility-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .credibility-item {
    padding: 15px;
  }
}

