body {
  margin: 0;
  font-family: 'Merriweather', serif;
  background-color: #F5F5F5;
  color: #2C2C2C;
}

header {
  background-color: #1A1A40;
  color: white;
  padding: 20px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

h1 {
  margin: 0;
  text-align: center;
}

nav ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a.active, nav ul li a:hover {
  color: #C9A227;
}

.hero {
  background: url('../images/law-bg.jpg') no-repeat center center/cover;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  background: rgba(26, 26, 64, 0.8);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-text h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.btn {
  background-color: #C9A227;
  color: #1A1A40;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.about-preview, .practice-preview, .cta {
  padding: 50px 0;
  background-color: #fff;
  text-align: center;
}

.practice-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.practice-card {
  background-color: #1A1A40;
  color: white;
  padding: 20px;
  width: 200px;
  border-radius: 5px;
  font-weight: bold;
}

footer {
  background-color: #1A1A40;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
}
.page-title {
  background-color: #1A1A40;
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-title h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.about-content {
  background-color: #fff;
  padding: 60px 0;
  line-height: 1.7;
}

.about-content h3 {
  color: #1A1A40;
  margin-top: 30px;
}
.hero-img {
  width: 145px;
  height: 160px;
  border-radius: 40%; /* Makes it circular */
  object-fit: cover;
  margin-bottom: 13px;
  border: 3px solid #C9A227;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.practice-section {
  padding: 50px 0;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.practice-section h3 {
  color: #1A1A40;
  font-size: 28px;
  margin-bottom: 15px;
}

.practice-section p {
  font-size: 16px;
  line-height: 1.7;
}
.practice-card {
  display: inline-block;
  text-align: center;
  background-color: #1A1A40;
  color: white;
  padding: 20px;
  width: 200px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.practice-card:hover,
.practice-card:focus,
.practice-card:active {
  background-color: #C9A227;
  color: #1A1A40;
  border-color: #C9A227;
}
.practice-card {
  /* ...existing styles... */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.practice-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.team-section {
  padding: 60px 0;
  background-color: #fff;
  text-align: center;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.team-member {
  width: 200px;
}

.team-member img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #C9A227;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
}

.team-member h3 {
  margin: 10px 0 5px;
  color: #1A1A40;
}

.team-member p {
  font-size: 14px;
  color: #555;
}
.contact-section {
  padding: 60px 0;
  background-color: #fff;
}

.contact-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.contact-form, .contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Merriweather', serif;
}

.contact-form button {
  background-color: #C9A227;
  color: #1A1A40;
  font-weight: bold;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background-color: #1A1A40;
  color: #fff;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
}
.fees {
  background-color: #fff;
  padding: 60px 0;
}

.fees h2, .fees h3 {
  color: #1A1A40;
  text-align: center;
  margin-bottom: 20px;
}

.fees ul {
  list-style-type: disc;
  margin-left: 40px;
  margin-bottom: 30px;
  color: #333;
}

.fees table.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.fees table.fee-table th,
.fees table.fee-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}

.fees table.fee-table th {
  background-color: #1A1A40;
  color: white;
}

.fees table.fee-table tr:nth-child(even) {
  background-color: #f9f9f9;
}
.page-title {
  background-color: #1A1A40;
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-title h2 {
  font-size: 36px;
  margin-bottom: 10px;
}
.hero-full {
  width: 100vw;
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('../images/ejaz-bg.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  padding: 20px;
  animation: fadeIn 1.5s ease-in-out;
}

.hero-content h2 {
  font-size: 40px;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
}

.btn {
  background-color: #C9A227;
  color: #1A1A40;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  background-color: #1A1A40;
  color: white;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ejaz-profile {
  background-color: #f9f9f9;
  padding: 60px 0;
}

.ejaz-card {
  max-width: 900px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  flex-wrap: wrap;
}

.ejaz-card img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #C9A227;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ejaz-text {
  flex: 1;
}

.ejaz-text h2 {
  color: #1A1A40;
  margin-bottom: 5px;
}

.ejaz-text p {
  font-weight: bold;
  color: #555;
  margin-bottom: 15px;
}

.ejaz-text blockquote {
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  border-left: 4px solid #C9A227;
  padding-left: 15px;
}
.ejaz-card img {
  width: 300px;
  height: 300px;
  object-fit: cover;           /* Makes image fill the circle */
  object-position: top center; /* Moves visible area downward to show full head */
  border-radius: 50%;
  border: 4px solid #000000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.whatsapp-icon {
  position: absolute;
  top: 165px; /* Adjust depending on nav height */
  right: 30px;
  z-index: 1000;
}

.whatsapp-icon img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.whatsapp-icon img:hover {
  transform: scale(1.1);
}
.whatsapp-contact {
  display: block;
  text-align: right;
  margin-top: 20px;
  margin-right: 10px;
}

.whatsapp-contact img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.whatsapp-contact img:hover {
  transform: scale(1.1);
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Merriweather', serif;
  width: 100%;
}

.contact-form button {
  background-color: #C9A227;
  color: #1A1A40;
  font-weight: bold;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background-color: #1A1A40;
  color: white;
}
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ✅ 3 per row by default */
  gap: 20px;
  padding: 30px 20px;
  justify-content: center;
}

/* ✅ Make it 2 per row on mobile screens */
@media (max-width: 768px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ✅ On very small screens, fallback to 1 per row */
@media (max-width: 400px) {
  .practice-grid {
    grid-template-columns: 1fr;
  }
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}

.service-card a {
  display: block;
  padding: 20px;
  background: #1A1A40;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.service-card a:hover {
  background-color: #C9A227;
  color: #1A1A40;
}
.practice-image img {
   border-top: 4px solid #C9A227;
  width: 100%;
  height: auto;
  max-height: 800px;
  object-fit: cover;
  display: block;
  border-bottom: 4px solid #C9A227;
}
.practice-hero {
  background-color: #f5f5f5;
  padding: 60px 20px;
}

.split-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-text h2 {
  font-size: 30px;
  color: #1A1A40;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.hero-image {
  flex: 1;
  min-width: 300px;
}

.hero-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  max-height: 500px;
}
.office-showcase {
  background-color: #f5f5f5;
  padding: 60px 0;
  text-align: center;
}

.office-showcase h2 {
  font-size: 32px;
  color: #1A1A40;
  margin-bottom: 10px;
}

.office-subtext {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.office-image-wrapper {
  max-width: 300px;
  margin: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.office-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.expertise-preview {
  background-color: #fff;
  padding: 40px 20px 10px;
  text-align: center;
}

.expertise-preview h2 {
  color: #1A1A40;
  font-size: 32px;
  margin-bottom: 10px;
}

.expertise-preview p {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}
.practice-section {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

.practice-section .reference {
  margin-top: 15px;
  font-size: 14px;
  color: #777;
}

.practice-section .reference a {
  text-decoration: none;
  color: #C9A227;
  font-weight: 500;
}

.practice-section .read-more {
  display: inline-block;
  margin-top: 10px;
  color: #1A1A40;
  font-weight: bold;
  text-decoration: none;
}

.practice-section .read-more:hover {
  color: #C9A227;
}
.law-highlight {
  padding: 60px 0;
  background-color: #fff;
}

.law-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.law-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  max-height: 250px; /* ✅ sets a height limit */
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.law-content {
  flex: 1;
}

.law-content h3 {
  font-size: 28px;
  color: #1A1A40;
  margin-bottom: 15px;
}

.law-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.read-more-link {
  display: inline-block;
  margin-top: 15px;
  color: #C9A227;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.read-more-link:hover {
  color: #1A1A40;
}
.practice-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-top: 20px;
}

.law-image img {
  width: 100%;
  max-width: 300px;  /* updated to match Civil Law */
  max-height: 200px; /* smaller height */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.law-text {
  flex: 1;
  min-width: 250px;
}

.read-more-btn {
  display: inline-block;
  margin-top: 10px;
  color: #1A1A40;
  background-color: #C9A227;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.read-more-btn:hover {
  background-color: #1A1A40;
  color: #fff;
}
.property-image img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.practice-content {
  display: flex;
  flex-wrap: nowrap;           /* ✅ Prevents stacking */
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}
.corporate-image img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.criminal-image img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  max-width: 100%;
}
.civil-image img,
.constitutional-image img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.family-image img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.team-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-member {
  width: 45%;
  min-width: 300px;
  background: #f7f7f7;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.team-member img {
  border-radius: 50%;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .team-member {
    width: 100%;
  }
}
/* Container for the entire team section */
.team-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Each row of 2 advocates */
.team-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* Special row for 1 advocate centered */
.team-row.single {
  justify-content: center;
}

/* Individual advocate card */
.team-member {
  flex: 1 1 45%;
  min-width: 280px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

/* Hover effect (optional) */
.team-member:hover {
  transform: translateY(-5px);
}

/* Avatar image */
.team-member img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  object-fit: cover;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .team-member {
    flex: 1 1 100%;
  }
}
/* Hamburger icon hidden by default */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* Mobile nav links hidden initially */
#nav-links {
  display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    text-align: right;
    padding: 10px 0;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background-color: #1A1A40;
    padding: 10px 0;
    margin-top: 10px;
  }

  nav ul li {
    display: block;
    margin: 10px 0;
  }

  nav ul.show {
    display: flex;
  }
}
.content-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.practice-section {
  border-bottom: 1px solid #ddd;
  padding-bottom: 30px;
  margin-bottom: 40px;
}
.map-section {
  background-color: #f5f5f5;
  padding: 60px 0;
  text-align: center;
}

.map-section h2 {
  font-size: 32px;
  color: #1A1A40;
  margin-bottom: 10px;
}

.map-subtext {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.map-section {
  background-color: #f5f5f5;
  padding: 40px 0 0; /* Remove bottom padding so map touches edge */
  text-align: center;
}

.map-section h2 {
  font-size: 32px;
  color: #1A1A40;
  margin-bottom: 5px;
}

.map-subtext {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.map-container {
  width: 100%;
  height: 400px;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}
.map-container {
  width: 100%;
  height: 400px;
  border: 4px solid #C9A227; /* Light yellow border */
  box-sizing: border-box;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none; /* Remove iframe's own border */
}
.map-container {
  max-width: 1200px;         /* Prevents it from going too wide on big screens */
  margin: 0 auto;            /* Centers the map */
  height: 400px;
  border: 4px solid #C9A227; /* Light yellow border */
  border-radius: 10px;       /* Slight curve for a softer look */
  overflow: hidden;          /* Keeps iframe corners clean */
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}
.map-container {
  max-width: 1200px;         
  margin: 0 auto;            
  height: 400px;
  border: 4px solid #C9A227; 
  border-radius: 10px;       
  overflow: hidden;          
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* Squeeze map slightly on mobile */
@media (max-width: 768px) {
  .map-container {
    max-width: 90%;  /* 90% of screen instead of full width */
  }
}
.map-section {
  background-color: transparent; /* Remove grey */
  padding: 40px 0 0;
  text-align: center;
}

.map-section h2 {
  font-size: 32px;
  color: #1A1A40;
  margin-bottom: 5px;
}

.map-subtext {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}
.team-member {
  background: #f9f9f9;
  padding: 20px;
  margin: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.team-member h3 {
  color: black;
  font-family: 'Merriweather', serif;
  margin-bottom: 10px;
}

.team-member p {
  line-height: 1.6;
  color: #333;
}
/* Mobile Fix */
@media (max-width: 768px) {
  .practice-content {
    flex-direction: column;   /* stack image & text */
    text-align: center;       /* optional: center text on mobile */
  }

  .law-text {
    min-width: auto;
    word-wrap: break-word;    /* stop text overflow */
  }

  .law-image img {
    max-width: 100%;
    height: auto;
  }
}
/* --- Fix ONLY the contact page --- */
.contact-page {
  max-width: 100%;
  overflow-x: hidden;   /* prevent sideways movement */
}

/* Make sure flex columns shrink properly */
.contact-page .contact-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.contact-page .contact-form,
.contact-page .contact-info {
  flex: 1 1 380px; /* two columns on large screens */
  min-width: 0;    /* prevents overflow */
}

/* Ensure inputs don’t exceed container */
.contact-page input,
.contact-page textarea,
.contact-page button {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Media & embeds */
.contact-page img,
.contact-page iframe {
  max-width: 100%;
  height: auto;
}

/* Stop marquee from causing side scroll */
.contact-page marquee {
  display: none; /* or make it 100% width if you want it visible */
}
/* Force hamburger button centered only on mobile */
@media (max-width: 768px) {
  .menu-toggle {
    position: relative !important;
    display: block !important;
    margin: 25px auto !important;   /* ⬅️ increase this number to push lower */
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    text-align: center !important;
    float: none !important;
  }
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.service-card a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  min-height: 100px;           /* keeps all cards same smaller height */
  background: #1A1A40;
  color: white;
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

.service-card a:hover {
  background-color: #C9A227;
  color: #1A1A40;
}

.service-card .emoji {
  font-size: 26px;             /* uniform emoji size */
  line-height: 1;              /* prevents stretching */
  margin-bottom: 6px;
}
.contact-page marquee {
  display: block !important;
  background: #f5f5f5;
  color: #555;
  padding: 10px 0;
  margin: 0;
}












