:root {
  --primary-color: #000f7e; /* Dark Blue */
  --secondary-color: #eb5757;
  --accent-color: #e6f0fa; /* Light Blue-ish */
  --text-color: #333333;
  --light-bg: #f9f9f9;
  --white: #ffffff;
  --font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
  --alt-bg: #ffffff;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

h1,
h3 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 16px;
  text-transform: uppercase;
  font-size: 2.2rem;
  text-align: center;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s;
}

a:hover {
  color: var(--secondary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.header-phone i {
  color: var(--primary-color);
}

.header-phone a {
  color: var(--text-color);
  text-decoration: none;
}

.header-phone a:hover {
  color: var(--primary-color);
}

.header-lang {
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: 15px;
}

.header-lang a {
  color: var(--text-color);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.header-lang a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.header-title {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.header-doctor {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.header-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-color);
}

nav {
  display: flex;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  z-index: 1001;
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links .header-phone-mobile,
.nav-links .header-lang-mobile {
  display: none;
}

.nav-links li {
  margin: 0;
  display: flex;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-color);
  text-transform: uppercase;
}

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

.btn-appoint {
  background-color: var(--secondary-color);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  display: inline-block;
}

.btn-appoint:hover {
  background-color: #d94444;
  color: var(--white) !important;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
  z-index: 1001;
}

/* Hero Section */
.hero,
#home {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    url("../images/slide-4.jpg");
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* News Section */
.news-section {
  background-color: var(--white);
  padding: 80px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: var(--light-bg);
  padding: 25px;
  border-radius: 8px;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.news-card:hover {
  transform: translateY(-3px);
}

.news-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.news-text {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.5;
}

.loading-text {
  grid-column: 1 / -1;
  text-align: center;
  color: #666;
  font-style: italic;
}

.error-message {
  grid-column: 1 / -1;
  text-align: center;
  color: #d32f2f;
}

/* Sections */
section {
  padding: 80px 0;
}

section.bg-light {
  background-color: var(--light-bg);
}

section.bg-white {
  background-color: var(--white);
}

section.news-section,
section#contact {
  background-color: var(--white);
}

section#services {
  background-color: var(--light-bg);
}

section#practice {
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* Hours & Info */
.info-section {
  background-color: var(--white);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.hours-card {
  display: flex;
  flex-direction: column;
  background-color: var(--light-bg);
  padding: 25px;
  border-radius: 8px;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: top;
}

.hours-time {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours-table tr:last-child td {
  border-bottom: none;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

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

.service-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

/* Gallery / Thematic Images */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Contact Section */
.contact-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  margin-top: 72px;
}

.contact-card {
  background-color: #f9f9f9 !important;
  padding: 25px !important;
  padding-top: 40px !important;
  border-top: 5px solid #000f7e !important;
  border-radius: 8px !important;
  box-shadow: 4px 4px 10px rgba(128, 128, 128, 0.5) !important;
  text-align: center;
  position: relative;
}

.contact-card .contact-icon {
  font-size: 2.5rem !important;
  background-color: #000f7e !important;
  width: 80px;
  height: 80px;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: absolute !important;
  top: -45px !important;
  left: 25px !important;
  margin-bottom: 15px !important;
}

.contact-card .contact-icon i {
  color: #ffffff !important;
  font-size: 2rem !important;
}

.contact-card .phone-highlight i {
  color: #000f7e !important;
  font-size: 2rem !important;
}

.contact-card .phone-highlight {
  font-size: 2rem;
  font-weight: bold;
  color: #000f7e;
  margin: 20px 0;
}

.contact-card h3 {
  margin-bottom: 20px;
  color: #000f7e;
}

.contact-card h3 i {
  font-size: 3rem;
  margin-right: 10px;
}

/* Footer */
footer {
  background-color: #000f7e;
  color: #ffffff;
  padding: 30px 0;
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 1024px) {
  .hamburger {
    display: none !important;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links .header-phone-mobile,
  .nav-links .header-lang-mobile {
    display: none;
  }

  .header-phone {
    display: flex;
  }

  .header-lang {
    display: block;
  }
}

@media (max-width: 768px) {
  header .container {
    position: relative;
    padding: 10px 0 10px 0;
    min-height: 80px;
    align-items: center;
  }

  nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-left: auto;
    position: relative;
  }

  .hamburger {
    display: block !important;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    color: var(--primary-color);
    position: absolute;
    right: 20px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 999;
    padding: 80px 20px 20px;
    gap: 15px;
    height: auto;
    min-height: 280px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 5px 0;
  }

  .nav-links .header-phone-mobile {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
  }

  .nav-links .header-lang-mobile {
    display: flex !important;
    gap: 10px;
  }

  .nav-links .header-lang-mobile a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
  }

  .nav-links .header-lang-mobile a:hover {
    background-color: var(--primary-color);
    color: var(--white);
  }

  .header-phone {
    display: none;
  }

  .header-lang {
    display: none;
  }

  .header-phone.active {
    display: none;
  }

  .hamburger {
    display: block !important;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    color: var(--primary-color);
    line-height: 1;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 80px !important;
  }

  .contact-card .phone-highlight {
    font-size: 1.2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .btn-appoint {
    display: none;
  }

  .nav-links .btn-appoint {
    display: inline-block;
    margin-top: 10px;
  }
}
