:root {
  --color-primary: #1E1E9E;   /* Blue from logo */
  --color-accent: #F5821F;    /* Orange from logo */
  --color-dark: #0D0D3D;
  --color-light-bg: #F5F6FA;
  --color-white: #FFFFFF;
  --font-main: 'Montserrat', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: var(--font-main); color: var(--color-dark); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Buttons */
.btn { display: inline-block; padding: 12px 26px; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; transition: transform 0.25s ease, background 0.25s ease; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--color-accent); color: var(--color-white); }
.btn-primary:hover { background: #d96e15; }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: var(--color-white); }
.btn-full { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; background: var(--color-white); box-shadow: 0 2px 8px rgba(0,0,0,0.08); z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; }
.logo img { height: 55px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; color: var(--color-dark); position: relative; }
.main-nav a:hover { color: var(--color-accent); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; gap: 12px; }
.hamburger { display: none; }
.hamburger span { transition: 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav action buttons (hidden by default on desktop) */
.mobile-nav-actions {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 20px;
}

/* Hero with sliding background */
.hero {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
  color: var(--color-white);
}
.hero-slider { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: rgba(13, 13, 61, 0.7); z-index: 2; }
.hero-content { position: relative; z-index: 3; }
.hero h1 { font-size: 2.8rem; margin-bottom: 15px; }
.hero p { font-size: 1.1rem; max-width: 700px; margin: 0 auto 25px; }
.hero .hero-badges { margin-bottom: 30px; font-weight: 600; color: var(--color-accent); }
.hero .hero-buttons { display: flex; gap: 15px; justify-content: center; }

/* Generic section */
.section { padding: 70px 0; }
.section-alt { background: var(--color-light-bg); }
.section h2 { color: var(--color-primary); font-size: 2rem; margin-bottom: 20px; text-align: center; }

/* Grid layouts (services, why-choose-us) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.grid-2 .card { text-align: left; }
.grid-2 .icon { font-size: 2.2rem; margin-bottom: 12px; }
.grid-2 h3 { color: var(--color-primary); margin-bottom: 10px; }

.card { background: var(--color-white); border-radius: 10px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }
.card .icon { color: var(--color-accent); font-size: 2rem; margin-bottom: 12px; }

/* HMO logos */
.hmo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: center; margin-top: 30px; }
.hmo-grid img { filter: none; opacity: 1; transition: transform 0.3s ease; }
.hmo-grid img:hover { transform: scale(1.05); }

/* Contact banner */
.contact-banner { background: var(--color-primary); color: var(--color-white); text-align: center; padding: 50px 0; }
.contact-banner a { color: var(--color-accent); font-weight: 700; }

/* Footer */
.site-footer { background: var(--color-dark); color: var(--color-white); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 30px; }
.footer-col h4 { margin-bottom: 12px; color: var(--color-accent); }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { text-align: center; padding: 15px 0; border-top: 1px solid rgba(255,255,255,0.1); }

/* Appointment Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-box { background: var(--color-white); padding: 30px; border-radius: 10px; width: 90%; max-width: 420px; position: relative; }
.modal-box h3 { color: var(--color-primary); margin-bottom: 20px; }
.modal-box form { display: flex; flex-direction: column; gap: 12px; }
.modal-box input, .modal-box select, .modal-box textarea { padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; }
.modal-close { position: absolute; top: 12px; right: 15px; font-size: 1.5rem; background: none; border: none; cursor: pointer; }

/* Page Banner (used on About, Services, Contact) */
.page-banner {
  background: linear-gradient(rgba(13,13,61,0.85), rgba(13,13,61,0.85)), url('../images/image5.jpg') center/cover;
  color: var(--color-white);
  padding: 70px 0;
  text-align: center;
}
.page-banner h1 { font-size: 2.3rem; margin-bottom: 8px; }
.page-banner p { font-size: 1.1rem; opacity: 0.9; }

/* About Hero (background image style, like homepage hero) */
.about-hero {
  position: relative;
  background: linear-gradient(rgba(13,13,61,0.82), rgba(13,13,61,0.82)), url('../images/climaxx-hospital-4.jpg') center/cover;
  color: var(--color-white);
  padding: 90px 0;
  text-align: center;
}
.about-hero-content { max-width: 800px; margin: 0 auto; }
.about-hero h2 { color: var(--color-white); font-size: 2rem; margin-bottom: 20px; }
.about-hero p { margin-bottom: 15px; font-size: 1.05rem; line-height: 1.7; }

/* Weekly Schedule Table */
.table-wrapper { overflow-x: auto; margin-top: 30px; }
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 2px solid var(--color-primary);
}
.schedule-table th, .schedule-table td {
  padding: 16px 20px;
  text-align: left;
  border: 1px solid var(--color-primary);
}
.schedule-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  border: 1px solid var(--color-primary);
}
.schedule-table td {
  font-weight: 500;
  border-bottom: 1px solid var(--color-primary);
}
.schedule-table tr:last-child td { border-bottom: 2px solid var(--color-primary); }
.schedule-table tr:hover td { background: var(--color-light-bg); }

/* By Appointment specialists */
.appointment-specialists { text-align: center; margin-top: 40px; }
.appointment-specialists h3 { color: var(--color-primary); margin-bottom: 15px; }
.inline-list { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.inline-list li {
  background: var(--color-white);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Notice Banner */
.notice-banner {
  background: #FFF3E0;
  border-left: 5px solid var(--color-accent);
  padding: 20px 0;
}
.notice-banner p { text-align: center; color: var(--color-dark); }
.notice-banner strong { color: var(--color-accent); }

/* Catchment Areas Slider */
.catchment-slider {
  overflow: hidden;
  width: 100%;
  margin-top: 25px;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.catchment-track {
  display: flex;
  width: max-content;
  gap: 15px;
  animation: scrollCatchment 25s linear infinite;
}
.catchment-track span {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
@keyframes scrollCatchment {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.catchment-slider:hover .catchment-track { animation-play-state: paused; }

/* Contact Form */
.contact-form-wrapper { max-width: 700px; margin: 0 auto; }
.contact-form-wrapper h2 { margin-bottom: 25px; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form input, .contact-form textarea {
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  width: 100%;
}
.contact-form textarea { resize: vertical; }

/* Map */
.map-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 99;
  }
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }
  .main-nav ul li {
    border-bottom: 1px solid #eee;
  }
  .main-nav ul li:last-child { border-bottom: none; }
  .main-nav ul li a {
    display: block;
    padding: 15px 5px;
  }
  .header-actions { display: none; }
  .mobile-nav-actions { display: flex; }

  .hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
  .hamburger span { width: 25px; height: 3px; background: var(--color-primary); }
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .hmo-grid { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr; }

  .catchment-track { animation-duration: 18s; gap: 10px; }
  .catchment-track span { font-size: 0.8rem; padding: 8px 18px; }

  .schedule-table th, .schedule-table td {
    padding: 12px 14px;
    font-size: 0.85rem;
    border: 1px solid var(--color-primary);
  }
  .schedule-table th { font-weight: 700; }
  .schedule-table td { font-weight: 600; }
  .inline-list { flex-direction: column; align-items: center; }

  /* Hero mobile adjustments */
  .hero { padding: 80px 0; }
  .hero h1 { font-size: 1.8rem; line-height: 1.3; }
  .hero p { font-size: 1rem; }

  /* Section headings mobile adjustment */
  .section h2 { font-size: 1.5rem; }

  /* Page banner / about hero mobile */
  .page-banner h1 { font-size: 1.7rem; }
  .about-hero { padding: 60px 0; }
  .about-hero h2 { font-size: 1.6rem; }
  
  .credit-line {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}
.credit-line a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
}
.credit-line a:hover {
  color: var(--color-accent);
}
}