/* Top Bar and Hamburger Section */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Work Sans', sans-serif;
}

/* Top Bar */
  @keyframes scrollText {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); } /* Adjust based on number of repeats */
  }

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 50px;
  background-color: #f2f2f2;
  flex-wrap: wrap;
  position: relative;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-right: 20px;
}

.nav-center img {
  width: 150px;
  max-height: 60px;
  margin-right: 100px;
}

.nav-right a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 18px;
}

.nav-right a:hover {
  color: #d9251c;
}


/* Dropdown */
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  color: #000;
}

.dropbtn:hover {
  color: #d9251c;
}

.dropdown-list {
  list-style-type: none;  /* Changed from 'disc' to 'none' */
  padding-left: 0;        /* Optional: remove extra left space */
  margin: 0;
  width: 260px;
}

.dropdown-list li {
  padding: 0px 10px;
}

.dropdown-list li a {
  color: #000;
  text-decoration: none;
  font-family: 'Work Sans', sans-serif;
  display: block;
}

.dropdown-list li a:hover {
  background-color: #eee;
  border-radius: 4px;
}

.dropdown-content {
  position: absolute;
  background-color: white;
  min-width: 240px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
  top: 100%;
  left: 0;
  border-radius: 5px;
  margin-left: -25px;
  overflow: hidden;

  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);

  transition: max-height 0.4s ease, visibility 0.3s ease;
}




.dropdown-content a {
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  color: #000;
}

.dropdown-content a:hover {
  background-color: #eee;
}

.dropdown:hover .dropdown-content {
  max-height: 500px; /* adjust as needed */
  visibility: visible;
  pointer-events: auto;
  animation: dropdownFade 0.3s ease-in-out forwards;
}



@keyframes dropdownFade {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Mobile */
.mobile-header {
  display: none;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Slide-Out Mobile Menu */
/* Slide-Out Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100vh;
  background: #f2f2f2;
  transform: translateX(100%); /* start hidden off-screen to the right */
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
}

.mobile-menu.active {
  transform: translateX(0); /* slide into view */
}


.mobile-menu a {
  padding: 12px 0;
  text-decoration: none;
  color: #000;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

.close-btn {
  font-size: 28px;
  color: #000;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 20px;
}

.submenu-toggle {
  cursor: pointer;
  padding: 12px 0;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  font-size: 18px;
}

.submenu {
  display: none;
  flex-direction: column;
  margin-left: 10px;
}

.submenu a {
  padding: 8px 0;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-left,
  .nav-right,
  .nav-center {
    display: none !important;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    background-color: #f2f2f2;
  }

  .mobile-logo {
    max-height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    margin-left: -25px; /* Add this */
  }

  .hamburger {
    display: block;
    margin-left: 100px;  /* Add this */
  }
}




/* blog Banner Section */
* {
      margin: 0;
      padding: 0;
    }


    .blog-hero-wrapper {
      width: 100%;
      overflow: hidden;
    }

    .blog-hero-wrapper img {
      width: 100%;
    height: auto;
    display: block;
    }

        /* ✅ Mobile L: 600px–767px */
@media (max-width: 767px) and (min-width: 600px) {
  .blog-hero-wrapper img {
    width: 100%;
    height: auto;
  }
}

/* ✅ Mobile M: 400px–599px */
@media (max-width: 599px) and (min-width: 400px) {
  .blog-hero-wrapper img {
    width: 100%;
    height: auto;
  }
}

/* ✅ Mobile S: below 400px */
@media (max-width: 399px) {
  .blog-hero-wrapper img {
    width: 100%;
    height: auto;
  }
}

/* Blog Heading Section */

    .blog-heading-section {
      max-width: 1200px;
      margin: 80px auto;
      padding: 0 20px;
    }

    .blog-heading-section h2 {
      font-size: 36px;
      color: #2eb44e; /* green color */
      margin-bottom: 30px;
      font-weight: 700;
      font-family: Sans-serif;
      text-align: center;
      margin-top: -40px;
    }

    .blog-heading-section p {
      font-size: 18px;
      line-height: 1.8;
      margin-bottom: 25px;
      color: #333;
      text-align: center;
      font-family: 'Playfair Display', serif;
    }

    /* ===== Responsive Styling ===== */

/* Large Mobile (up to 767px) */
@media (max-width: 767px) {
  .blog-heading-section {
    margin: 50px 15px;
    padding: 0 10px;
  }

  .blog-heading-section h2 {
    font-size: 28px;
    margin-top: -20px;
  }

  .blog-heading-section p {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .blog-heading-section h2 {
    font-size: 24px;
  }

  .blog-heading-section p {
    font-size: 15px;
    line-height: 1.5;
  }
}



/* Blog Content */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


.blog-section {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 50px 0px;
}

.blog-card {
  max-width: 500px;
  flex: 1;
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.image-container img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.date-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: white;
  color: black;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 3px;
  font-weight: bold;
}

.blog-card h3 {
  margin: 15px 0 10px;
  font-size: 20px;
  color: #000;
  font-family: Sans-serif;
    white-space: nowrap;        /* Force one line */
  overflow: hidden;           /* Hide overflow */
  text-overflow: ellipsis;
}

.blog-card p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.read-more {
  color: black;
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
  font-family: Sans-serif;
}

.read-more:hover {
  text-decoration: underline;
}

/* ========================= */
/* ✅ Responsive Adjustments */
/* ========================= */

/* Medium devices (Tablets, 768px and below) */
@media (max-width: 768px) {
  .blog-card h3 {
    font-size: 18px;
  }

  .blog-card p,
  .read-more {
    font-size: 14px;
  }

  .blog-card {
    padding: 0px 20px;
  }
}

/* Small devices (Mobile L and below, 480px and below) */
@media (max-width: 480px) {
  .blog-section {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 25px 10px;
  }

  .blog-card {
    width: 100%;
    max-width: 400px;
  }

  .blog-card h3 {
    font-size: 17px;
  }

  .blog-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  .read-more {
    font-size: 13px;
  }
}
