/* Base styles for the Salam Al‑Hafidh web site recreated from the
   archived version.  The colour palette and overall layout are
   inspired by the original site: a dark header, bright green
   tagline, clean navigation bar, and dual‑column content area. */

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
}

/* Header contains the logo and the doctor’s name.  The dark
   background echoes the original site’s top bar. */
header {
  display: flex;
  align-items: center;
  background: #333333;
  color: #ffffff;
  padding: 12px 20px;
}

header img.logo {
  height: 50px;
  margin-right: 15px;
}

/*
  The doctor’s name is displayed via a custom span (.doctor-name) rather than an
  h1 element.  Using a span avoids issues with certain hosting platforms
  duplicating the site title.  The .doctor-name class inherits the same
  typography as the old h1.
*/

header h1 {
  /* deprecated – kept for backward compatibility but unused */
  font-size: 24px;
  margin: 0;
}

header .brand .doctor-name {
  font-size: 24px;
  margin: 0;
  white-space: nowrap;
}

/* Container for social icons on the right side of the header.  The icons
   automatically push to the far right thanks to margin-left:auto. */
header .social-icons {
  margin-left: auto;
  display: flex;
  gap: 12px;
}

header .social-icons img {
  width: 24px;
  height: 24px;
  filter: invert(100%);
}

/* Group the logo and heading together so that the name doesn’t duplicate or
   wrap unexpectedly. */
header .brand {
  display: flex;
  align-items: center;
}

header .brand h1 {
  font-size: 24px;
  margin: 0;
  white-space: nowrap;
}

/* Tagline banner with a bold green backdrop. */
.tagline {
  background: #5dbb2e;
  color: #ffffff;
  text-align: center;
  padding: 8px 0;
  font-weight: bold;
  font-size: 18px;
}

@media (max-width: 768px) {
  .tagline {
    font-size: 16px;
    padding: 6px 0;
  }
}

/* Navigation bar.  A light grey bar with green highlight for the
   active page and hover state. */
nav {
  background: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  color: #333333;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Mobile navigation button (hamburger).  Hidden on larger screens and shown
   on small screens to toggle the nav list. */
nav .menu-toggle {
  display: none;
  font-size: 24px;
  line-height: 1;
  background: transparent;
  border: none;
  color: #333333;
  cursor: pointer;
  padding: 12px 18px;
}

/* When the nav list has the .open class (toggled via JS) we force it
   to display so that it appears on mobile */
nav ul.open {
  display: flex !important;
}

@media (max-width: 768px) {
  /* Show the menu toggle button on small screens */
  nav .menu-toggle {
    display: block;
  }
  /* Stack nav links vertically and hide by default */
  nav ul {
    flex-direction: column;
    display: none;
    width: 100%;
  }
  nav li {
    border-top: 1px solid #e5e5e5;
  }
  nav a {
    padding: 10px 18px;
  }
}

nav a:hover,
nav a.active {
  background: #5dbb2e;
  color: #ffffff;
}

/* Container used to wrap the main page content.  It centers
   everything and constrains the width for readability. */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
}

/* Home page image slider.  Images are absolutely positioned on
   top of each other and faded in/out via JS toggling classes. */
#slider {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  margin: 0 auto 20px;
  background: #000;
}

@media (max-width: 768px) {
  #slider {
    height: 200px;
  }
}

#slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

#slider img.active {
  opacity: 1;
  z-index: 2;
}

/* Feature boxes on the home page.  They appear side‑by‑side on
   larger screens and wrap on smaller viewports. */
.home-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
}

.feature-box {
  flex: 1;
  min-width: 280px;
  background: #f9f9f9;
  border: 1px solid #eeeeee;
  margin: 0 10px 20px 0;
  padding: 15px;
  box-sizing: border-box;
}

.feature-box:last-child {
  margin-right: 0;
}

.feature-box h2 {
  margin-top: 0;
  color: #5dbb2e;
  font-size: 18px;
}

.feature-box img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.feature-box p {
  margin-bottom: 10px;
}

.feature-box a {
  color: #5dbb2e;
  text-decoration: none;
  font-weight: bold;
}

.feature-box a:hover {
  text-decoration: underline;
}

/* Dual column layout for main content.  On smaller screens
   the columns stack for better readability. */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }
  .content-left {
    margin-right: 0;
  }
}

.content-left {
  flex: 2;
  min-width: 300px;
  margin-right: 20px;
}

.content-right {
  flex: 1;
  min-width: 250px;
}

.content-left h1,
.content-left h2 {
  color: #5dbb2e;
}

.content-right h2 {
  color: #5dbb2e;
  margin-top: 0;
}

.content-right ul {
  list-style: none;
  padding-left: 0;
}

.content-right ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.content-right ul li:before {
  content: '\25B6'; /* small right-pointing triangle */
  color: #5dbb2e;
  position: absolute;
  left: 0;
}

/* Styles for services and diagnostics lists on the services page. */
.services-section h3,
.diagnostics-section h3 {
  color: #5dbb2e;
  margin-bottom: 10px;
}

.services-section ul,
.diagnostics-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.services-section ul li,
.diagnostics-section ul li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}

.services-section ul li:before,
.diagnostics-section ul li:before {
  content: '\2022'; /* bullet */
  color: #5dbb2e;
  position: absolute;
  left: 0;
  font-size: 18px;
  line-height: 1;
}

/* Insurance list displayed in multiple columns for readability. */
.insurance-list {
  list-style: none;
  padding-left: 0;
  column-count: 3;
  column-gap: 20px;
}

@media (max-width: 768px) {
  .insurance-list {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .insurance-list {
    column-count: 1;
  }
}

.insurance-list li {
  break-inside: avoid;
  margin-bottom: 5px;
  padding-left: 15px;
  position: relative;
}

.insurance-list li:before {
  content: '\2022';
  color: #5dbb2e;
  position: absolute;
  left: 0;
  font-size: 16px;
}

/* Contact page styles */
.contact-details p {
  margin-bottom: 8px;
}

.map-container {
  width: 100%;
  height: 350px;
  margin-top: 15px;
  border: 1px solid #dddddd;
}

/* Footer matches the header colour scheme. */
footer {
  background: #333333;
  color: #ffffff;
  text-align: center;
  font-size: 13px;
  padding: 20px 0;
  margin-top: 40px;
}

@media (max-width: 700px) {
  .feature-box {
    flex: 1 1 100%;
    margin-right: 0;
  }
  .content-wrapper {
    flex-direction: column;
  }
  .content-left {
    margin-right: 0;
  }
}

/* Announcement banner styles.  This bar appears below the menu on all pages
   to communicate important information.  It uses a bold red background
   and white text with center alignment. */
.announcement {
  background: #c92a2a; /* rich red hue */
  color: #ffffff;
  text-align: center;
  padding: 8px 12px;
  font-weight: bold;
  font-size: 16px;
}

.announcement a {
  color: #ffffff;
  text-decoration: underline;
}