* {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
}

body {
  color: #fff;
  background: linear-gradient(rgba(0, 80, 90, 0.8), rgba(0, 50, 50, 0.9)),
              url('Images1/service.webp') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
  
}

.navbar {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  padding: 10px;
  display: block;
}

.nav-links a:hover {
  color: #00b894;
}

.logo-text {
  font-size: 28px;
  margin-left: 40px;
  font-weight: bold;
  color: #00ffe0;
  text-decoration: none;
}

.btn-appointment {
  padding: 12px 28px;
  background-color: #20d6b5;
  border: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 30px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-appointment:hover {
  background-color: #18c1a3;
}

.divider {
  border: 0;
  height: 1px;
  background: #fff;
  margin: 0 60px;
  margin-top: 12px;
}


.dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background-color: #033232;
  min-width: 120px;
  border-radius: 6px;
  z-index: 999;
  list-style: none;
}

.dropdown-menu li {
  width: 100%;
  margin-left: -10px;
}

.dropdown-menu a {
  padding: 10px 20px;
  color: #fff;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: #055a5a;
}

.arrow {
  font-size: 16px;
  margin-left: 5px;
  cursor: pointer;
  user-select: none;
}


.logo img {
  height: 60px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}


.menu-toggle {
  display: none;
  font-size: 26px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

@media screen and (max-width: 768px) {

  .navbar {
    width: 100%;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    position: relative;
  }

  /* LOGO ON LEFT SIDE */
  .logo {
    order: 1;
  }

  .logo img {
    height: 55px;
    margin-left: -100px;
  }

  /* HAMBURGER ON RIGHT SIDE */
  .menu-toggle {
    order: 2;
    display: block;
    font-size: 34px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 60px;
  }

  /* NAV DROPDOWN BELOW HEADER */
  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    text-align: center;
    background-color: rgba(0, 50, 50, 0.95);
    padding: 20px 0;
    border-radius: 6px;

    position: absolute;
    top: 100%;  /* BELOW HEADER */
    left: 0;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: 12px 0;
    justify-content: center;
  }

  /* DROPDOWN */
  .arrow {
    margin-left: 6px;
    font-size: 20px;
    cursor: pointer;
  }

  .dropdown-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 6px;
  }

.dropdown.open .dropdown-menu {
    display: flex !important;
}


  .dropdown:hover .dropdown-menu {
    display: none !important;
}

}


.dropdown.open .dropdown-menu {
  display: flex !important;
}

@media screen and (max-width: 768px) {
  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .dropdown-menu li {
  background-color: #055a5a;   /* Your desired color */
  border-radius: 4px;
  height: 30px;
  margin-top: 10px;
  margin-bottom: 4px;
}
}

.hero {
  position: relative;
  height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
}

.hero-content a {
  color: #fff;
  text-decoration: none;
}

.hero-content span {
  color: #00c291;
}

.container {
  display: flex;
  font-family: Arial, sans-serif;
  overflow: hidden;
  gap: 30px;
  margin: auto;
  background-color: #fffbe9;
  padding: 40px 20px;
}

.blog-content {
  flex: 2;
}

.post-card a:hover {
  color: #5dffe1;
}

.post-card {
  background: #073b3a;
  color: white;
  border-radius: 12px;
  margin-bottom: 30px;
  overflow: hidden;
}

.post-card img {
  width: 100%;
  height: 400px;
  display: block;
}

.post-info {
  padding: 20px;
}

.post-info .category {
  font-size: 0.9em;
  opacity: 0.8;
}

.post-info h3 {
  margin: 10px 0;
}

.post-info h3:hover {
color: #00c291;
cursor: pointer;
};


.post-info .date {
  font-size: 0.9em;
  color: #b0b0b096;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-info p {
    margin-top: 10px;
  margin-bottom: 15px;
  font-size: 0.95em;
}

.post-info a {
  color: #20e6aa;
  text-decoration: none;
  font-weight: bold;
}

.load-more {
  display: block;
  margin: 20px auto;
  background: #20e6aa;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
}

.load-more:hover
{
  background-color: #00ffe0;
  color: black;
}

.sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget {
  background: #073b3a;
  color: white;
  padding: 20px;
  border-radius: 12px;
}

.widget h4 {
  margin-bottom: 15px;
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget ul li {
  margin-bottom: 10px;
}

.widget ul li a {
  color: #20e6aa;
  text-decoration: none;
}

.contact-widget p {
  margin: 8px 0;
}

/* Mobile layout for blog page */
@media screen and (max-width: 768px) {

  /* make page flow vertically and prevent horizontal scroll */
  .container {
    flex-direction: column;
    gap: 18px;
    padding: 20px 12px;
    margin: 0 auto;
    overflow-x: hidden;    /* avoid mobile overflow-x */
    box-sizing: border-box;
  }

  /* main content full width, sidebar moves below */
  .blog-content {
    flex: none;
    width: 100%;
  }

  .sidebar {
    flex: none;
    width: 100%;
    gap: 14px;
  }

  /* post card sizing and spacing */
  .post-card {
    border-radius: 10px;
    margin-bottom: 20px;
  }

  /* responsive images: keep aspect, limit height */
  .post-card img {
    width: 100%;
    height: auto;          /* maintain image ratio */
    max-height: 300px;     /* limit very tall images on mobile */
    object-fit: cover;
    display: block;
  }

  /* reduce post-info padding & text sizes for mobile */
  .post-info {
    padding: 14px;
  }

  .post-info .category,
  .post-info .date {
    font-size: 0.85rem;
  }

  .post-info h3 {
    font-size: 1.05rem;
    margin: 8px 0;
  }

  .post-info p {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .post-info a {
    font-size: 0.95rem;
  }

  /* load more button full width on mobile */
  .load-more {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }

  /* widgets full width and slightly smaller padding */
  .widget {
    padding: 14px;
    border-radius: 10px;
  }

  .widget h4 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .widget ul li {
    font-size: 0.95rem;
  }

  /* small screens tweak */
  @media (max-width: 480px) {
    .post-card img { max-height: 220px; }
    .post-info h3 { font-size: 1rem; }
    .post-info p { font-size: 0.92rem; }
    .container { padding: 16px 10px; gap: 14px; }
  }

}


.footer-section {
  background: url('Images1/footer-bg.webp') no-repeat center center;
  background-size: cover;
  color: #ffffff;
  padding: 60px 20px 30px;
  position: relative;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 220px;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 20px;
}

.footer-column h4 {
  color: #00c6a9;
  font-size: 22px;
  margin-bottom: 15px;
}

.footer-column p {
  font-size: 15px;
  line-height: 1.8;
  margin-top: 10px;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
  font-size: 18px;
}

.footer-column ul li i {
  margin-right: 10px;
  color: #00c6a9;
}

.footer-column ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #00c6a9;
}

.footer-socials a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: #00c6a9;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: background 0.3s;
}

.footer-socials a:hover {
  background: #ffffff;
  color: #00c6a9;
}

.newsletter-form {
  margin-top: 15px;
  display: flex;
  background: #fff6e5;
  border-radius: 4px;
  overflow: hidden;
  max-width: 100%;
}

.newsletter-form input {
  padding: 10px 15px;
  border: none;
  flex-grow: 1;
  outline: none;
  font-size: 15px;
}

.newsletter-form button {
  background: #00c6a9;
  border: none;
  color: white;
  padding: 0 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #00a08a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #ccc;
}

.logo-text1 {
  font-size: 28px;
  font-weight: bold;
  color: #00ffe0;
  text-decoration: none;
}


@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }

  .footer-column {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .footer-logo {
    margin: 0 auto 20px;
  }

  .footer-column h4 {
    font-size: 20px;
  }

  .footer-column p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .footer-column ul li {
    font-size: 16px;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form input {
    width: 100%;
    margin-bottom: 10px;
  }

  .newsletter-form button {
    width: 100%;
    padding: 12px;
  }

  .footer-socials {
    margin-top: 10px;
  }

  .footer-socials a {
    margin-right: 8px;
  }

  .footer-bottom {
    font-size: 12px;
    margin-top: 30px;
  }
}

@media screen and (max-width: 768px) {
  body, html {
    overflow-x: hidden !important; /* Full-page fix */
  }
}
