* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

body {
  font-family: "Times New Roman", serif;
  background:url("img/background.jpg") center / cover fixed;
  min-height: 100vh;
}

.container {
  margin: 0 auto;
  background: #f5f5dc;
  background-image: url("img/background.jpg");
}

.page-section {
  min-height: 100vh;
}

/* Header Styles */
.header {
  background: #f5f5dc;
  padding: 10px;
  border-bottom: 2px solid #d4af37;
  background-image: url("img/background.jpg");
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.header-icon.left {
  position: absolute;
  left: 50px;
}

.header-icon.right {
  position: absolute;
  right: 50px;
}

.header-text {
  text-align: center;
  position: relative;
}

.logo-container {
  margin-bottom: 10px;
}

.main-logo {
  height: 85px;
  width: auto;
  object-fit: contain;
}

.tagline {
  font-size: 24px;
  color: #34495e;
  font-style: italic;
  margin-top: 5px;
}

/* Landing Page Styles */
.main-content {
  display: grid;
  grid-template-columns: 290px 1fr 290px;
  gap: 20px;
  padding: 5px;
  min-height: 600px;
  /* padding-bottom: 100px; */
}

/* Fixed sidebar styles with working auto scroll */
.left-sidebar,
.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 550px; /* Fixed height for scrolling */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  scroll-behavior: smooth;
}

/* Custom scrollbar styling */
.left-sidebar::-webkit-scrollbar,
.right-sidebar::-webkit-scrollbar {
  width: 8px;
}

.left-sidebar::-webkit-scrollbar-track,
.right-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin: 5px;
}

.left-sidebar::-webkit-scrollbar-thumb,
.right-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #d4af37, #b8941f);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display:none
}

.left-sidebar::-webkit-scrollbar-thumb:hover,
.right-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #b8941f, #d4af37);
  display:none
}

/* Ad banner styles with image elements */
.ad-banner {
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.ad-banner:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 175, 55, 0.6);
}

.ad-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.ad-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: white;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.ad-content h3 {
  font-size: 14px;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.ad-content p {
  font-size: 12px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: #dc3545;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 10px;
}

.cross-logo {
  font-size: 30px;
  margin: 5px 0;
}

.texas-flag::before {
  content: "⭐";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: white;
  z-index: 3;
}

/* Center Content */
.center-content {
  border-radius: 15px;
  padding: 10px;
}

.select-city {
  text-align: center;
  font-size: 28px;
  color: #2980b9;
  margin-bottom: 10px;
  font-weight: bold;
  text-transform: capitalize;
  letter-spacing: 1px;
  
}

.cities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;

}
.city-content {
  width: 100%;
  z-index: 2;
}

.city-name {
  font-size: 24px;
  color: white;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}



.injury-title {
  font-size: 25px;
  color: #2c3e50;
  margin-bottom: 25px;
  font-style: italic;
  text-transform: capitalize;
}

.icon-svg {
  font-size: 30px;
  margin-bottom: 8px;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.injury-icon:hover .icon-svg {
  filter: grayscale(0);
}

.injury-icon span {
  font-size: 12px;
  color: #2c3e50;
  text-align: center;
  line-height: 1.2;
}
.injury-types {
    padding: 10px;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.injury-icons {
    display: flex;
    gap: 20px;
    /* width: max-content; */
    justify-content: center;
}

.injury-icon {
    flex:  auto;
    text-align: center;
    min-width: 100px;
    padding: 5px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Directory Page Styles */
.directory-content {
  margin: 10px;
  border-radius: 15px;
}

.directory-title {
  text-align: center;
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: bold;
}

.attorneys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.attorney-card {
  background: white;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.attorney-card:hover {
  transform: translateY(-5px);
}


.attorney-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.attorney-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.attorney-card p {
  font-size: 14px;
  color: #666;
}

.eagle-logo,
.w-logo,
.ramji-logo,
.cross-logo {
  font-size: 40px;
  margin: 10px 0;
}


/* Attorney Profile Page Styles */
.profile-content {
  padding: 40px;
  background: rgba(255, 255, 255, 0.9);
  margin: 20px;
  border-radius: 15px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #2980b9;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #1a5276;
}

.firm-header {
  text-align: center;
}

.firm-name {
  font-size: 48px;
  color: #2c3e50;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.firm-logo-image {
  height: 80px;
  object-fit: contain;
}
.team-photo {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 15px;
  /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); */
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.team-photo {
  width: 100%;
}

.team-image {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Contact Info */
.contact-info {
  padding: 40px;
  border-radius: 15px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  font-size: 24px;
  margin-top: 2px;
  color: #2980b9;
}

.contact-details {
  font-size: 22px;
  color: #2c3e50;
  line-height: 1.4;
}

.map-container {
  text-align: center;
}

.map-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-note {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

/* Right Content */
.right-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.firm-description {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.firm-description p {
  margin-bottom: 18px;
  line-height: 1.8;
  color: #2c3e50;
  font-size: 18px;
  text-align: justify;
}

.firm-description p:last-child {
  margin-bottom: 0;
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #fff;
  padding: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-row.full-width {
  grid-template-columns: 1fr;
}

.form-input,
.form-textarea {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #2980b9;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-btn {
  background: #27ae60;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #219a52;
}

/* Navigation */
.navigation {
  position: fixed;
  bottom: 20px;
  left: 50%;
  /* bottom: 81%; */
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px;
  border-radius: 25px;
  z-index: 1000;
}

.nav-btn {
  padding: 10px 20px;
  background: transparent;
  color: rgb(0, 0, 0);
  border: 1px solid rgb(0, 0, 0);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;

}

.nav-btn:hover,
.nav-btn.active {
  background: white;
  color: black;
}

/* Contact Page Styles */
.contact-page-content,
.about-page-content {
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  margin: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.page-title {
  text-align: center;
  font-size: 36px;
  color: #2c3e50;
  margin-bottom: 40px;
  font-weight: bold;
}
/* About Page Styles */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-section {
  background: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-section h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 24px;
}

.about-section ul {
  list-style: none;
  padding-left: 0;
}

.about-section li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.about-section li:before {
  content: "✓ ";
  color: #27ae60;
  font-weight: bold;
  margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-content {
    grid-template-columns: 200px 1fr 200px;
  }

  .content-grid {
    gap: 30px;
  }

  .firm-name {
    font-size: 36px;
  }
}

@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .main-content {
    grid-template-columns: 1fr;
    gap: 20px;
     display: flow-root;
  }

  .left-sidebar,
  .right-sidebar {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    max-height: 200px;
  }

  .ad-banner {
    min-width: 200px;
  }

  .header-icon.left,
  .header-icon.right {
    position: static;
    width: 60px;
    height: 60px;
  }

  .header-content {
    gap: 20px;
  }

  .attorneys-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .navigation {
    flex-wrap: wrap;
    width: auto;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .main-logo {
    height: 40px;
  }

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

  .tagline {
    font-size: 18px;
  }

  .page-title {
    font-size: 28px;
  }

  .injury-icons {
    justify-content: center;
    display: ruby;
  }

  .injury-icon {
    min-width: 60px;
  }

  .firm-name {
    font-size: 36px;
  }

  .firm-subtitle {
    font-size: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .firm-description,
  .contact-form {
    padding: 20px;
  }

  .navigation {
    flex-direction: column;
    width: 200px;
    bottom: 10px;
    padding: 8px;
  }

  .nav-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
    div#left-sidebar,
  div#right-sidebar{
    display: flex;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 15px;
  }

  .profile-content {
    padding: 15px;
  }

  .firm-header {
    margin-bottom: 30px;
  }

  .content-grid {
    gap: 25px;
  }
}

/* Animation Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Hover Effects */
.team-image:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}
/* Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(41, 128, 185, 0.1) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}
/* profile Styles */

.back-link{
    position: fixed;
    left: 20px;
    text-decoration: none;
    font-size: 20px;
}
.container {
  display: flex;
  flex-direction: column;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 20px;
  gap: 10px;
}

/* Top: 2-column layout */
.top-row {
  display: flex;
  flex: 0 0 55%;
  gap: 10px;
}

/* .left-image {
  flex: 1;
} */

.left-image img {
  width: 400px;
  height: 300px;
  object-position: top;
  object-fit: cover;
  border-radius: 4px;
  
}

.right-text {
  flex: 1;
  overflow-y: auto;
  font-size: 0.95rem;
}

/* Bottom: 3-column layout */
.bottom-row {
  display: flex;
  flex: 1;
  gap: 10px;
}

.column {
  flex: 1;
  /* background: #fff; */
  /* padding: 10px; */
  border-radius: 4px;
  overflow-y: auto;
}


.contact-info {
  background: #f9f9f9;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* .contact-info a {
  text-decoration: none;
  color: #333;
} */

.map img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.form h4 {
  text-align: center;
  margin-bottom: 10px;
}

.form form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form input,
.form textarea {
  padding: 6px;
  font-size: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.phone-fields {
  display: flex;
  gap: 6px;
}

.phone-fields input {
  flex: 1;
}

.form button {
  padding: 8px;
  background-color: #4CAF50;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.form button:hover {
  background-color: #d0a523;
}
/* Tablets (<= 900px) */
@media (max-width: 900px) {
  .top-row {
    flex-direction: column;
  }

  .bottom-row {
    flex-direction: column;
  }

  .right-text {
    max-height: none;
  }
}

/* Small Phones (<= 500px) */
@media (max-width: 500px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 10px;
  }

  .form input,
  .form textarea {
    font-size: 0.85rem;
    padding: 8px;
  }

  .form button {
    font-size: 0.85rem;
  }

  .contact-info p {
    font-size: 0.85rem;
  }

  .right-text {
    font-size: 0.9rem;
  }
  
  .three-column-section{
    display: grid;
    grid-template-columns: 1fr; /* big-small-big */
  }
}
    .three-column-section {
        display: grid;
        grid-template-columns: 2fr 1fr 2fr; /* big-small-big */
        gap: 20px;
        margin-top: 5px;
        align-items: start;
    }

    /* Map column */
    .map-container iframe {
        width: 100%;
        height: 360px;
        border: none;
        border-radius: 6px;
    }

    /* Contact info column */
    .contact-info {
        background: #fff;
        padding: 20px;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        font-size: 14px;
    }

    /* Form column */
    .form-box {
        background: #fff;
        padding: 20px;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        min-height: 350px; /* taller */
    }
    .form-box h3 {
        margin-top: 0;
        font-size: 18px;
    }
    .form-box input, .form-box textarea {
        width: 100%;
        padding: 8px;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 18px;


    }
    .form-box button {
        background: green;
        color: white;
        padding: 12px;
        width: 100%;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 20px;
    }
.firm-description h1{
    font-size: 24px;
  }

