/* GLOBAL */
body {
  font-family: "Poppins", sans-serif;
  background-color: #0d1b2a;
}

:root {
  --dark: #0a1628;
  --footer-bg: #0d1b2a;
  --alpha-gold: #d4a44a;
  --alpha-dark: #0a1628;
  --alpha-gray: #f8f9fa;

  --black: #0a1628;
  --gold: #d4a44a; /* Professional gold - justice & excellence */
  --law-blue: #1a365d; /* Deep navy - trust & authority */
  --light-blue: #234876; /* Royal blue - technology & professionalism */
  --white: #ffffff;
  --dark-navy: #0d1b2a; /* Darkest background */
  --slate: #64748b; /* Neutral text */
  --light-slate: #94a3b8; /* Secondary text */
}

.text-gold {
  color: var(--gold);
}

.text-alpha-gold {
  color: var(--alpha-gold);
}
.bg-alpha-gold {
  background-color: var(--alpha-gold);
}
.bg-alpha-dark {
  background-color: var(--alpha-dark);
}
.btn.bg-alpha-gold:hover {
  background-color: #b08d4b; /* darker gold on hover */
  color: #0f172a; /* text color changes */
}
.modern-nav {
  /* Use a solid, professional color and remove blur */
  background: var(--law-blue) !important;
  padding: 10px 0; /* Add more padding */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add subtle shadow */
  transition: all 0.4s ease;
}
/* Removed negative margin that was causing overflow */

/* --- LOGO STYLING (DEFAULT: DESKTOP) --- */

/* Custom Toggler for Mobile */
.custom-toggler {
  border: none;
  background-color: transparent !important;
  padding: 0;
  outline: none;
}

.custom-toggler:focus {
  box-shadow: none;
}

.toggle-icon {
  font-size: 24px;
  color: var(--gold); /* Gold color for the icon */
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

/* Toggle icon animation when menu is open */
.toggle-icon.fa-xmark {
  transform: rotate(90deg);
}

.toggle-icon.fa-bars {
  transform: rotate(0deg);
}
.btn-gold {
  background: var(--gold);
  color: #000;
  font-weight: bold;
  padding: 10px 22px;
  border-radius: 6px;
}

/* HERO */
.clients-hero {
  height: 90vh;
  background: url("asset/appointment-bg.jpg") center/cover no-repeat;
  position: relative;
}

.clients-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.hero-content {
  position: relative;
  z-index: 3;
  animation: fadeIn 1.3s ease-out;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Fade Animation */
.fadeInUp {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ⭐ AUTO-SCROLL LOGOS ⭐ */
.scroll-container {
  width: 100%;
  overflow: hidden;
}

.scroll-track {
  display: flex;
  gap: 50px;
  animation: scroll 15s linear infinite;
}

.scroll-track img {
  width: 150px;
  opacity: 0.8;
  transition: 0.3s;
}

.scroll-track img:hover {
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.serif-title {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  color: var(--gold) !important; /* Professional gold for professionalism */
  margin-bottom: 2rem;
}

/* Card Container Styling */
.partner-card {
  background-color: var(--dark);
  border: 1px solid #e0e0e0; /* Subtle border */
  border-radius: 8px; /* Slightly less rounded */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Light, lifted shadow */
  padding: 50px;
  margin-bottom: 20px; /* Spacing between cards when stacked */
  min-height: 280px; /* Ensures consistent card height */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#clint-card-valued{
  background-color: var(--alpha-dark);
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Card Header and Title */
.card-header {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0; /* Very light separator */
  display: flex;
  align-items: center;
}

.card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--gold); /* Matches title color */
  font-weight: 600;
}

/* Icon/Emoji for Card */
.card-header span {
  font-size: 1.6rem;
  margin-right: 12px;
  line-height: 1; /* Aligns emoji nicely */
}

/* Description Content */
.card-content {
  color: var(--white); /* Muted, professional text color */
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-content strong {
  color: var(--gold); /* Slightly darker key terms */
  font-weight: 700;
}



/* Specific Color Accents - Used only for the bottom line of the content */
/* We'll use a class in the card-content for a small color bar/highlight if needed, 
 but for clean professionalism, we often rely on the main style. */
/* Adding a subtle border-left color for a visual cue */
.card-1 { border-left: 5px solid #28a745; } 
.card-2 { border-left: 5px solid #007bff; } 
.card-3 { border-left: 5px solid #dc3545; } 
.card-4 { border-left: 5px solid #ffc107; }

/* Fix Bootstrap margin issue on the last card-content paragraph */
.card-content p:last-child {
  margin-bottom: 0;
}


.client-card {
  background-color: #ffffff;                 /* White cards for contrast */
  border-radius: 12px;                       /* Modern rounded corners */
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08); /* Subtle lifted shadow */
  padding: 25px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;                              /* Equal height cards */
}

.client-card:hover {
  transform: translateY(-6px);               /* Lift effect on hover */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.client-card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.client-card .card-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a365d;                             /* Matches section background */
  margin: 0;
}

.client-card .card-header span {
  font-size: 1.8rem;                           /* Larger icon */
}

.client-card .card-content p {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.5;
}

.serif-title {
  font-family: 'Georgia', serif;
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 50px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .client-card {
    padding: 20px;
  }
  .client-card .card-header h3 {
    font-size: 1.1rem;
  }
  .client-card .card-header span {
    font-size: 1.5rem;
  }
}



/* CLIENT GRID */
/* .client-box {
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: 0.3s;
}

.client-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.client-logo {
  width: 100%;
  opacity: 0.75;
  transition: 0.3s;
}

.client-logo:hover {
  opacity: 1;
  transform: scale(1.05);
} */

/* Footer styles moved to home.css */

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.social-links a {
  font-size: 1.4rem;
  margin-right: 15px;
  color: var(--gold);
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

/* MOBILE */
@media (max-width: 768px) {
  .clients-hero {
    height: 40vh;
  }
}

/* Layout */
.about-section {
  display: flex;
  align-items: center; /* Vertically center content */
  justify-content: center; /* Center content horizontally */
  min-height: 100vh; /* Full screen height */
  padding: 40px 15px;
  background: #f4f4f4;
  overflow: hidden;
}

.about-section .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.about-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 50px;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* Photo styling with hover effect */
.about-photo {
  flex: 0 0 auto;
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.about-photo img {
  width: 100%;
  max-width: 600px;
  display: block;
  transition: transform 0.4s ease, opacity 0.5s ease;
}

.about-photo img:hover {
  transform: scale(1.05);
}

/* Text styling */
.about-text {
  flex: 1 1 0;
  text-align: left;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.about-text h3 {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 12px;
}

/* Dynamic text */
#dynamic-text {
  display: inline;
  font-weight: 600;
  color: #ffffff;
}
#cursor {
  animation: blink 1s infinite;
  color: #ffffff; /* icon color */
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* 
#cursor {
  display: inline-block;
  font-weight: bold;
  animation: blink 1s step-start infinite;
  color: #cfbd16;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
} */

/* Responsive */
@media (max-width: 768px) {
  .about-section {
    min-height: auto;
    padding: 40px 15px;
  }

  .about-content {
    flex-direction: column;
    gap: 25px;
    padding-top: 20px;
    align-items: center;
  }

  .about-photo {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .about-photo img {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
  }

  .about-text {
    flex: 1 1 100%;
    text-align: center;
    padding: 0 10px;
  }

  .about-text h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .about-text h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  .about-text p {
    font-size: 0.95rem;
    text-align: justify;
    line-height: 1.7;
  }

  #dynamic-title {
    text-align: center;
  }

  #dynamic-text {
    text-align: justify;
    display: block;
  }

  .about-photo,
  .about-text {
    flex: 1 1 100%;
  }
  .about-photo {
    flex: 0 0 180px;
    overflow: hidden;
    border-radius: 12px;
  }

  .about-photo img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease, opacity 0.5s ease;
  }
}

/* Footer styles are now in home.css - removed duplicates */

/* Button Styles - Matching Home Page */
.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 16px;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: black;
}

/* --- RESPONSIVE STYLES (MOBILE) --- */
@media (max-width: 991.98px) {
  /*
    Overwriting desktop logo layout for mobile view.
    Stack the image and text vertically for space saving on small screens.
  */
  .logo {
    /* Set right margin of the logo container */
    margin-right: 5px;

    flex-direction: column;
    align-items: flex-start;
    gap: 0; /* Remove gap */
  }

  .alpha-symbol img {
    /* Nudge the image slightly to the left to reduce left margin */
    margin-left: -5px;
    width: 80px; /* Adjusted size for better mobile fit */
  }

  .logo-text {
    text-align: left;
    font-size: 14px; /* Slightly smaller text on mobile */
    margin-top: 5px; /* Add slight separation */

    /* Nudge the text slightly to the left to reduce left margin */
    margin-left: -5px;
  }

  /* Mobile Menu Background */
  .navbar-collapse {
    background-color: var(
      --light-blue
    ); /* Dark background for the expanded menu */
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }

  /* .nav-link {
    margin-left: 0;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }

  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .nav-link::after {
    display: none; 
  } */

  .btn-gold {
    width: 100%;
    margin-top: 15px !important;
  }
  .partner-card{
    margin-left: 15px;
    margin-right: 15px;
  }
  #clint-card-valued{
    margin-left: 15px;
    margin-right: 15px; 
  }
}

/* --- FIX HORIZONTAL SCROLLING (DO NOT CHANGE ANYTHING ELSE) --- */

/* Prevent any container from becoming wider than the screen */
* {
  box-sizing: border-box;
}

/* Fix for grids or flex items pushing outside screen */
body,
html {
  overflow-x: hidden !important;
  width: 100% !important;
}


/* Additional Mobile Responsive Fixes */
@media (max-width: 576px) {
  .clients-hero {
    height: 50vh;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .serif-title {
    font-size: 1.6rem;
  }
  
  .partner-card {
    padding: 25px;
    min-height: auto;
  }
  
  .card-header h3 {
    font-size: 1.1rem;
  }
  
  .card-content {
    font-size: 0.85rem;
  }
  
  .scroll-track img {
    width: 100px;
  }
  
  .footer {
    padding: 40px 0 15px;
  }
  
  .footer-title {
    font-size: 18px;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .about-photo {
    flex: 0 0 100%;
  }
  
  .about-photo img {
    width: 100%;
  }
}

/* Tablet Responsive */
@media (min-width: 577px) and (max-width: 991px) {
  .clients-hero {
    height: 60vh;
  }
  
  .scroll-track img {
    width: 120px;
  }
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}


/* ========================================
   CLIENT REVIEWS SECTION STYLES
   ======================================== */

/* Review Cards */
.review-card-wrapper {
  height: 100%;
}

.review-card-professional {
  background: linear-gradient(145deg, #1a365d, #234876);
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 164, 74, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.review-card-professional::before {
  content: '\201C';
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 80px;
  color: rgba(212, 164, 74, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.review-card-professional:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(212, 164, 74, 0.4);
}

/* Review Header */
.review-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.review-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a44a, #b08d4b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #0d1b2a;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(212, 164, 74, 0.3);
}

.review-author-info {
  flex: 1;
}

.review-author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.review-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Star Rating Display */
.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 15px;
}

.review-stars i {
  color: #ffc107;
  font-size: 1rem;
}

.review-stars i.empty {
  color: rgba(255, 255, 255, 0.2);
}

/* Review Content */
.review-title-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: #d4a44a;
  margin-bottom: 12px;
  line-height: 1.4;
}

.review-body {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Verified Badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 15px;
}

.verified-badge i {
  font-size: 0.7rem;
}

/* Star Rating Input (Modal) */
.star-rating-input {
  display: inline-flex;
  gap: 8px;
  font-size: 2.2rem;
  cursor: pointer;
}

.star-rating-input i {
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.star-rating-input i:hover,
.star-rating-input i.active {
  color: #ffc107;
  transform: scale(1.15);
}

.star-rating-input i.hovered {
  color: #ffc107;
}

/* Review Form Styles */
#reviewForm .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
}

#reviewForm .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #d4a44a;
  box-shadow: 0 0 0 3px rgba(212, 164, 74, 0.2);
  color: white;
}

#reviewForm .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#reviewForm .form-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Review Message */
#reviewFormMessage .alert {
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Reviews Loading & Empty States */
#reviews-loading,
#no-reviews-message {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#no-reviews-message i {
  opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .review-card-professional {
    padding: 22px;
  }
  
  .review-card-professional::before {
    font-size: 60px;
    top: 10px;
    right: 15px;
  }
  
  .review-avatar {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .review-author-name {
    font-size: 1rem;
  }
  
  .review-title-text {
    font-size: 1.05rem;
  }
  
  .review-body {
    font-size: 0.9rem;
  }
  
  .star-rating-input {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  #client-reviews-section {
    padding: 40px 0;
  }
  
  .review-card-professional {
    padding: 18px;
  }
  
  .review-card-header {
    gap: 12px;
  }
}
