:root {
  --main-color: #00598A;
  --text-color: #222;
  --bg-light: #f9f9f9;
  --accent: #BFA674;
  --accent-light: #e8dfc7;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-light);
  color: var(--text-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.main-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
  box-shadow: var(--shadow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 60px;
}

.logo .text h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--main-color);
}

.logo .text p {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
}

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

.nav a {
  text-decoration: none;
  color: var(--main-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  background: url('/fatima-law/law-office-bg.svg') no-repeat center center/cover;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.hero .content {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-weight: 700;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.3rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

.services {
  padding: 4rem 0;
  background: #fff;
}

.services h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--main-color);
  position: relative;
  padding-bottom: 15px;
}

.services h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
}

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

.card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--accent);
}

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

.card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--main-color);
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.service-details {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed #ddd;
}

.service-details h4 {
  color: var(--main-color);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.service-details ul, 
.service-details ol {
  padding-right: 1.5rem;
  margin-bottom: 1.2rem;
}

.service-details li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.service-details strong {
  color: #444;
}

.service-pledge {
  background: var(--accent-light);
  padding: 12px;
  border-radius: 6px;
  margin-top: 1.5rem;
  font-style: italic;
  text-align: center;
  color: #555;
}

.contact {
  padding: 3rem 0;
  text-align: center;
  background-color: var(--bg-light);
}

.contact h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--main-color);
}

.contact p {
  margin: 0.5rem 0;
  color: #555;
  font-size: 1.1rem;
}

.contact .btn {
  background: var(--main-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact .btn:hover {
  background: #00476d;
  transform: translateY(-2px);
}

.footer {
  background: #222;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #ddd;
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .main-header .container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .nav ul {
    justify-content: center;
  }
}

/* Ensure the header is properly displayed on mobile */
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Consultations Section Styles */
.consultations {
  padding: 4rem 0;
  background: var(--bg-light);
}

.consultations h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--main-color);
  position: relative;
  padding-bottom: 15px;
}

.consultations h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
}

.consultation-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
}

.consultation-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.consultation-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.consultation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card-header {
  padding: 1.5rem;
  text-align: center;
  color: white;
}

.card-header.online {
  background: var(--main-color);
}

.card-header.in-person {
  background: var(--accent);
}

.card-header i {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.card-header h3 {
  margin: 0;
  font-size: 1.5rem;
  border: none;
}

.card-body {
  padding: 2rem;
}

.price {
  text-align: center;
  margin-bottom: 1.5rem;
}

.amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
}

.currency {
  font-size: 1.2rem;
  color: #666;
  margin-right: 0.3rem;
}

.time-slots {
  margin-bottom: 1.5rem;
  text-align: center;
}

.time-slots h4 {
  margin-bottom: 0.8rem;
  color: var(--main-color);
  font-size: 1.1rem;
}

.time-tag {
  display: inline-block;
  background: var(--accent-light);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  color: #555;
  margin: 0.3rem;
}

.features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.features li {
  padding: 0.7rem 0;
  border-bottom: 1px dashed #eee;
  position: relative;
  padding-right: 1.8rem;
}

.features li:before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--accent);
  position: absolute;
  right: 0;
}

.features li:last-child {
  border-bottom: none;
}

.book-btn {
  text-align: center;
}

.book-btn .btn {
  background: var(--main-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
}

.consultation-card:nth-child(2) .book-btn .btn {
  background: var(--accent);
}

.book-btn .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.consultation-note {
  background: rgba(0,89,138,0.08);
  padding: 1.2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.consultation-note p {
  margin: 0;
  color: #555;
}

.consultation-note i {
  color: var(--main-color);
  margin-left: 0.5rem;
}

@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .consultation-types {
    grid-template-columns: 1fr;
  }
  
  .time-slots {
    flex-direction: column;
  }
  
  .time-tag {
    margin: 0.3rem 0;
  }
}