html, body {
  max-width: 100%;
  overflow-x: hidden;
  
}

@media (max-width: 768px) {

  html {
    scroll-behavior: smooth;
  }

  /* Hide desktop menu */
  .desktop-menu {
    display: none;
  }

  /* Contact button hidden on small screens */
  .contact-btn {
    display: none;
  }

  /* ===============================
     Navbar Layout
  =============================== */
  .brand-name {
    font-size: 0.8rem; /* Adjust this size as needed */
    display: block;
    line-height: 1.2;
    font-weight: bold;
    white-space: nowrap;
  }

  .logo img {
    max-height: 30px; /* Optional: reduce logo image size on mobile */
  }
.navbar {
  position: fixed;
  top: 0;
  height: 60px; /* or whatever */
}

  /* Hamburger Icon */
  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 1.8rem;
    color: #1a1a1a;
    padding: 0.5rem;
    margin-left: auto; /* pushes it to the right */
  }

  /* Mobile menu dropdown */
  .mobile-menu {
    display: none;
    background: #f8faf7;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
  }

  .mobile-menu.active {
    display: block;
  }

  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .mobile-menu ul li {
    margin: 1rem 0;
  }

  .mobile-menu ul li a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
  }

  /* ===============================
     Generic Layout
  =============================== */

  .container,
  section,
  .section-wrapper {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  h1, h2, h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* ===============================
     Hero Section
  =============================== */


.hero {
  margin-top: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0rem 4rem;
  text-align: center;
  background: linear-gradient(
      rgba(0, 0, 0, 0.4), 
      rgba(0, 0, 0, 0.4)
    ),
    url('../images/hero_img.png') center/cover no-repeat;
  min-height: 30vh;
  
  color: white;
}

.hero-overlay {
  display: none; 
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-right: 35px;
}

.hero h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

/* ===============================
   Why Choose Us Section (Mobile)
=============================== */
.features-section {
  padding: 2rem 1rem;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.features-text {
  text-align: center;
}

.features-text h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.features-text .section-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.feature-icon {
  font-size: 1.5rem;
  color: #007f5f;
  flex-shrink: 0;
}

.feature-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.feature-block p {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Image styling */
.features-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

  /* ===============================
     Projects Section
  =============================== */

  .project-card {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .project-card img {
    width: 100%;
    height: auto;
  }

  /* ===============================
     Testimonials Section
  =============================== */

  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0;
  }

  .testimonial-card {
    min-width: 80%;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding: 1rem;
  }
/* ===============================
   Footer Responsive Styling
=============================== */
.site-footer {
  padding: 2rem 1rem;
  text-align: center;
  background-color: black; 
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  max-width: 100%;
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.social-icons a {
  font-size: 1.2rem;
  padding: 0.4rem;
  border-radius: 50%;
  text-decoration: none;
}

.intro-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.5rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.footer-columns {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.footer-col {
  width: 100%;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li a {
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.3rem 0;
}

/* Newsletter Bar */
.newsletter-bar {
  width: 100%;
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 10px;
  background-color: inherit;
}

.newsletter-bar form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter-bar label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.newsletter-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
}

.newsletter-input input {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  width: 100%;
}

.btn-subscribe {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 2rem;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-direction:row;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 500;
}
.contact-hero {
  background: linear-gradient(to right, #a8edea, #fed6e3);
  text-align: center;
  padding: 4rem 2rem;
  color: #014d34;
  margin-top: 0px;
}


  /* About Hero Section */
  .hero-about {
    padding: 120px 15px 60px 15px;
    background-position: center;
    text-align: center;
  }

  .hero-about-content h1 {
    font-size: 1.8rem;
    color: #000;
  }

  .hero-about-content p {
    font-size: 1rem;
    color: #000;
  }

  /* About Section */
  .about-section {
    padding: 40px 10px;
  }

  /* Stack content vertically */
  .about-block,
  .about-block.reverse {
    display: flex;
    flex-direction: column !important;
    align-items: center;
  }

  /* Force text first, image second */
  .about-text {
    order: 1 !important;
    width: 100%;
    padding: 15px;
    text-align: center;
  }

  .about-img {
    order: 2 !important;
    width: 100%;
    padding: 15px;
    text-align: center;
  }

  .about-img img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  }

  /* Map Section */
  .map-section {
    padding: 40px 10px;
  }
  
  
/*whatwethink*/

  .section-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .section-subheading {
    font-size: 1rem;
    text-align: center;
    color: #666;
  }
  
  
  .timeline {
    padding-left: 40px; /* space for the line */
    margin-top: 80px;
  }

  .timeline::before,
  .timeline-progress {
    left: 0;
    transform: none;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    margin: 40px 0;
  }

  .checkmark {
    left:0;
    transform: translateY(-50%);
  }

  .timeline-content,
  .timeline-image {
    width: calc(100% - 50px); /* leaves room for the vertical line */
    margin-left: 50px;
  }

  /* Keep the white arrow on the left of the box */
  .timeline-content::before {
    display: block;
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: #fff; /* Keep it white to match the box */
    content: "";
  }

  /* Make sure both left and right versions behave the same */
  .timeline-item.left .timeline-content::before,
  .timeline-item.right .timeline-content::before {
    left: -16px;
    right: auto;
    border-left-color: transparent;
    border-right-color: #fff;
  }
  /*carer*/
  
  .grid-2 {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .grid-2.reverse {
    direction: ltr; /* disable reverse stacking on mobile */
  }

  .career-hero {
    padding: 4rem 1rem 2rem;
  }

  .career-hero h1 {
    font-size: 2rem;
  }

  .career-hero p {
    font-size: 1rem;
  }

  .career-hero .btn {
    padding: 0.6rem 1.2rem;
  }

  .career-role .role-text h2 {
    font-size: 1.5rem;
  }

  .location {
    font-size: 0.95rem;
  }

  .tags li {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  .btn-apply {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .career-details {
    padding: 2rem 1rem;
  }

  .career-details h3 {
    font-size: 1.5rem;
  }

  .split {
    flex-direction: column;
    gap: 1.5rem;
  }

  .career-benefits {
    padding: 2.5rem 1rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .benefits-grid div {
    padding: 1.5rem;
  }

  .career-about-company {
    padding: 2.5rem 1rem;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }

  .job-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .job-card {
    padding: 1.2rem;
  }

  .job-card h4 {
    font-size: 1.1rem;
  }

  .job-card p {
    font-size: 0.95rem;
  }

  .role-image img {
    max-height: 250px;
  }
  
  /*contactus*/
    .contact-hero {
    padding: 3rem 1rem;
    margin-top: 60px;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-hero p {
    font-size: 1rem;
    max-width: 100%;
  }

  .contact-section {
    padding: 2.5rem 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem;
  }

  .contact-info-card h2,
  .contact-form-card h2 {
    font-size: 1.5rem;
  }

  .certifications h3 {
    font-size: 1.1rem;
  }

  .form-grid {
    gap: 0.75rem;
  }

  .contact-form-card input,
  .contact-form-card textarea {
    font-size: 0.95rem;
    padding: 0.7rem;
  }

  .btn-primary {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }

  .map-section iframe {
    height: 280px;
    margin-top: 0;
  }

  .privacy-note {
    font-size: 0.85rem;
  }
}
