/* Make sure the footer stays at the bottom of the viewport */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* full screen height */
}

/* Whatever wraps your main content */
main {
  flex: 1; /* pushes the footer down */
}

/* ============================= */
/* STOP WHITE SPACE ON ROTATION */
/* ============================= */

/* 1) Lock the page to the viewport and prevent horizontal overflow */
html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ============================= */
/* FULL-WIDTH SECTIONS */
/* ============================= */
section {
  width: 100%;
  margin: 0;
}



/* ============================= */
/* NAVBAR */
/* ============================= */
.navbar {
  background: #f5f5f5;
  padding: 0.8rem 2rem;
  font-family: 'Times New Roman', Times, serif;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* ============================= */
/* CONTAINER */
/* ============================= */
.navbar-container {
  max-width: 1300px;
  margin: 0 auto;

  width: 90%;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================= */
/* BRAND */
/* ============================= */
.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-logo {
  width: 180px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}

/* ============================= */
/* NAV LINKS */
/* ============================= */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;

  margin-left: auto;

  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links li {
  position: relative;
}

.navbar-links a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: #555;
  transition: 0.2s ease;
}

.navbar-links a:hover {
  color: #2f55d4;
}

/* ============================= */
/* BOOK APPOINTMENT BUTTON */
/* ============================= */
.book-nav-btn {
  background: linear-gradient(135deg, #4f6dff, #2f55d4);
  color: #fff !important;

  padding: 12px 22px;
  border-radius: 14px;

  font-size: 16px;
  font-weight: 800;

  transition: all 0.25s ease;
}

.book-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(47, 85, 212, 0.3);
}

/* ============================= */
/* DROPDOWN */
/* ============================= */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;

  background: #fff;
  border-radius: 10px;

  min-width: 180px;
  padding: 0.5rem 0;

  box-shadow: 0 10px 30px rgba(0,0,0,0.08);

  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #444;
}

.dropdown-menu li a:hover {
  background: #f5f7ff;
  color: #2f55d4;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  display: block;
}

/* ============================= */
/* HAMBURGER */
/* ============================= */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;

  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggle span {
  width: 26px;
  height: 3px;
  background: #2f55d4;
  border-radius: 10px;
}

/* ============================= */
/* MOBILE */
/* ============================= */
@media (max-width: 991px) {

  .navbar {
    padding: 1rem;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-logo {
    width: 150px;
  }

  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    background: #fff;

    flex-direction: column;
    align-items: center;

    padding: 1.5rem 0;
    gap: 1rem;

    display: none;

    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-links li {
    width: 100%;
    text-align: center;
  }

  .navbar-links a {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
  }

  .book-nav-btn {
    display: inline-block;
    margin-top: 0.5rem;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
  }
}

/* ============================= */
/* SMALL PHONES */
/* ============================= */
@media (max-width: 480px) {

  .navbar-logo {
    width: 130px;
  }

  .book-nav-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}



/* ============================= */
/* FOOTER */
/* ============================= */
.footer {
  margin-top: auto;
  background: #ffffff;
  padding: 40px 20px;

  border-top: 1px solid #eef1f6;

  font-family: 'Times New Roman', Times, serif;
}

/* ============================= */
/* CONTAINER */
/* ============================= */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

/* ============================= */
/* TEXT */
/* ============================= */
.footer-text {
  color: #000000;

  font-size: 15px;
  line-height: 1.7;

  margin-bottom: 18px;
}

/* ============================= */
/* LINKS */
/* ============================= */
.footer-links {
  display: flex;
  align-items: center;
  gap: 30px;

  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #2451e6;

  text-decoration: none;

  font-size: 15px;
  font-weight: 500;

  transition: 0.25s ease;
}

.footer-links a:hover {
  color: #0f2147;
}

/* ============================= */
/* MOBILE */
/* ============================= */
@media (max-width: 768px) {

  .footer {
    padding: 30px 20px;
  }

  .footer-text {
    font-size: 14px;
  }

  .footer-links {
    gap: 18px;
  }

  .footer-links a {
    font-size: 14px;
  }
}