main {
  padding-top: var(--header-height);
  color: var(--title-color);
  background-color: var(--section-color);
}

/* Mobile fix */
@media (max-width: 768px) {
  main {
    padding-top: calc(var(--header-height) - 1rem);
  }
}


/* About Hero Section */

.about-hero {
  padding-top: 40px;
  padding-bottom: 20px;
  color: white;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.about-hero h1 {
  font-size: 2.5rem;
  /*  font-family: 'Poppins', sans-serif;*/
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-top: 2rem;
  margin-bottom: 1rem;

}

.about-hero p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  /* tighter width = better spacing */
  margin-bottom: 2rem;
  /* remove auto centering */
  color: var(--text-color);
}


/* CEO Image Styling */
.ceo-image-wrapper {
  perspective: 1000px;
  /* For 3D effect */
}

.ceo-img {
  margin: 0 auto;
  /*  only  for desktops  */
  max-width: 340px;
  display: block;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Hover 3D/float effect */
.ceo-img:hover {
  transform: translateY(-10px) rotateY(5deg);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
}


/* ================== ABOUT HERO CENTERED RESPONSIVE ================== */

/* General centering for all small/medium screens */
@media (max-width: 991px) {
  .about-hero {
    display: flex;
    flex-direction: column;
    /* stack text above image */
    justify-content: center;
    /* vertical centering */
    align-items: center;
    /* horizontal centering */
    text-align: center;
    padding-top: 20px;
    padding-bottom: 10px;
    min-height: 30vh;
  }

  .hero-container {
    max-width: 100%;
    padding: 0 15px;
  }

  .about-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .about-hero p {
    font-size: 0.95rem;
    /*max-width: 90%;*/
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .ceo-img {
    max-width: 250px;
    margin: 0 auto;
  }

  .ceo-img:hover {
    transform: none;
    /* disable hover on touch devices */
  }
}

/* Extra fine-tuning for 820px width (portrait tablets) */
@media (min-width: 769px) and (max-width: 840px) {
  .about-hero h1 {
    font-size: 2.05rem;
  }

  .about-hero p {
    font-size: 0.92rem;
  }

  .ceo-img {
    max-width: 280px;
  }
}

/* Extra fine-tuning for 912px width (smaller laptops / large tablets) */
@media (min-width: 841px) and (max-width: 960px) {
  .about-hero h1 {
    font-size: 2.2rem;
  }

  .about-hero p {
    font-size: 0.95rem;
  }

  .ceo-img {
    max-width: 300px;
  }
}


/* Medium tablets / large phones */
@media (max-width: 768px) {
  .row.align-items-center {
    flex-direction: column-reverse;
    /* image below text */
    text-align: center;
    gap: 2rem;
  }

  .about-hero h1 {
    font-size: 2rem;
  }

  .about-hero p {
    max-width: 100%;
    font-size: 0.9rem;
  }

  .ceo-img {
    max-width: 250px;
    margin: 0 auto;
  }
}

/* Small phones */
@media (max-width: 576px) {
  .about-hero {
    padding-top: 30px;
    padding-bottom: 10px;
    min-height: 15vh;
  }

  .about-hero h1 {
    font-size: 1.7rem;
  }

  .about-hero p {
    font-size: 0.85rem;
  }

  .ceo-img {
    max-width: 200px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }

  .ceo-img:hover {
    transform: none;
    /* disable hover on small screens */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
  }
}

/* Extra small phones / tiny screens */
@media (max-width: 375px) {
  .about-hero {
    padding-top: 20px;
    padding-bottom: 5px;
    min-height: 10vh;
  }

  .about-hero h1 {
    font-size: 1.5rem;
  }

  .about-hero p {
    font-size: 0.8rem;
  }

  .ceo-img {
    max-width: 180px;
  }
}

/* ======================= Mission Section =====================*/

.mission-section {
  /*  background: #f8f9fb; */
  position: relative;
  overflow: hidden;
  padding: 2rem 0;

}

.mission-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Tabs */
.mission-tabs span {
  /* font-size: 22px;  */
  font-size: 28px;
  font-weight: 600;
  margin-right: 30px;
  cursor: pointer;
  color: #2c3e50;
  transition: 0.3s;
}

.mission-tabs .active {
  color: #1DC9A9;
}


/* Content */
.tab-content-wrapper {
  position: relative;
  z-index: 2;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content .custom-h2 {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: var(--title-color);

}

.tab-content p {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Image Styling */
.mission-img {
  /*  max-width: 480px; */
  max-width: 550px;
  height: 350px;
  animation: float 4s ease-in-out infinite;
  border-radius: 20px;
}

/* Floating effect */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* ================== MISSION SECTION RESPONSIVE ================== */


/* ================== 1024px SCREEN FIX ================== */
@media (min-width: 992px) and (max-width: 1100px) {
  .mission-section {
    padding: 20px 20px;
  }

  .mission-container {
    max-width: 95%;
  }

  .row.align-items-center {
    align-items: center;
  }

  /* Text side */
  .tab-content .custom-h2 {
    font-size: 1.7rem;
  }

  .tab-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Tabs */
  .mission-tabs span {
    font-size: 24px;
    margin-right: 20px;
  }

  /* Image */
  .mission-img {
    max-width: 100%;
    height: auto;
  }
}


/* General small/medium screens */
@media (max-width: 991px) {
  .mission-section {
    display: flex;
    flex-direction: column;
    /* stack text above image */
    justify-content: center;
    /* vertical centering */
    align-items: center;
    /* horizontal centering */
    text-align: center;
    padding: 50px 15px;
  }

  .mission-container {
    max-width: 100%;
    padding: 0 15px;
  }

  /* Tabs */
  .mission-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
  }

  .mission-tabs span {
    font-size: 22px;
    margin-right: 15px;
    margin-bottom: 10px;
    /* spacing for wrap */
  }

  .tab-content .custom-h2 {
    font-size: 1.5rem;
  }

  .tab-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto 15px auto;
  }

  .mission-img {
    max-width: 100%;
    height: auto;
    margin-top: 25px;
  }
}

/* Extra fine-tuning for 820px width (portrait tablets) */
@media (min-width: 769px) and (max-width: 840px) {
  .tab-content .custom-h2 {
    font-size: 1.55rem;
  }

  .tab-content p {
    font-size: 0.93rem;
  }

  /*
  .mission-img {
    max-width: 280px;
  } */
  .mission-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
  }
}

/* Extra fine-tuning for 912px width (small laptops / large tablets) */
@media (min-width: 841px) and (max-width: 960px) {
  .tab-content .custom-h2 {
    font-size: 1.6rem;
  }

  .tab-content p {
    font-size: 0.95rem;
  }

  /*
  .mission-img {
    max-width: 320px;
  }  */
  .mission-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
  }
}

/* Fix extra gap for tablets & mid screens */
@media (min-width: 768px) and (max-width: 1100px) {
  .mission-section {
    padding: 20px 20px;
    /* reduce spacing */
  }

  .mission-img {
    margin-top: 15px;
    margin-bottom: 15px;
  }
}

/* Medium tablets / large phones */
@media (max-width: 768px) {
  .row.align-items-center {
    flex-direction: column-reverse;
    /* Image below text */
  }

  .mission-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
  }

  .mission-tabs span {
    font-size: 20px;
    margin-right: 15px;
  }

  .tab-content .custom-h2 {
    font-size: 1.4rem;
  }

  .tab-content p {
    font-size: 0.9rem;
  }
}

/* Small phones */
@media (max-width: 576px) {
  .mission-container {
    padding: 0 15px;
  }

  .mission-tabs span {
    font-size: 18px;
    margin-right: 10px;
  }

  .tab-content .custom-h2 {
    font-size: 1.3rem;
  }

  .tab-content p {
    font-size: 0.85rem;
  }

  .mission-img {
    border-radius: 15px;
  }
}

/* Extra small phones / tiny screens */
@media (max-width: 375px) {
  .mission-container {
    padding: 0 10px;
  }

  .mission-tabs span {
    font-size: 16px;
    margin-right: 8px;
  }

  .tab-content .custom-h2 {
    font-size: 1.2rem;
  }

  .tab-content p {
    font-size: 0.8rem;
  }

  .mission-img {
    border-radius: 12px;
  }
}


/* ============== TEAM SECTION =================== */

.team-section {
  /* background: #000; */
  /* padding: 60px 0; */
  padding: 20px 0 20px 0;
  color: #fff;
}

.team-container {
  padding-left: 50px;
  padding-right: 50px;
}

/* Heading */
.team-header h2 {

  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  margin-right: 20px;

}

.team-header h2 span {
  color: #1DC9A9;
}

.team-header p {
  color: var(--text-color);
  margin-top: 15px;
  font-size: 16px;
 /* margin-right: 10px; */
 max-width: 1200px;
}

/* Card */
.team-card {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  height: 420px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
   object-position: top;
  transition: 0.6s ease;
}

/* OVERLAY BASE (ALWAYS VISIBLE) */
.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.7) 20%,
      rgba(0, 0, 0, 0.3) 60%,
      rgba(0, 0, 0, 0.1) 100%);
  transition: 0.5s ease;
  z-index: 1;
}

/* HOVER → ADD COLOR GLOW */
.team-card:hover::after {
  background: linear-gradient(to top,

      rgba(29, 201, 169, 0.9) 0%,

      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0.2) 100%);
}

/* TEXT ALWAYS VISIBLE */
.overlay {
  position: absolute;
  bottom: 25px;
  left: 20px;
  z-index: 2;
  transition: 0.4s ease;
}

/* NAME */
.overlay .custom-h3 {
  /* font-size: 22px; */
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--title-color);
}

/* ROLE */
.overlay span {
  color: #1DC9A9;
  font-size: 14px;
}

/* SOCIAL ICONS DEFAULT HIDDEN */
.social-icons {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.4s ease;
}

/* ICON STYLE */
.social-icons i {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.social-icons i:hover {
  background: #fff;
  color: #1DC9A9;
  ;
}

/* HOVER EFFECT */
.team-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.8);
}

/* TEXT MOVE UP SLIGHTLY */
.team-card:hover .overlay {
  transform: translateY(-10px);
}

/* SHOW ICONS ON HOVER */
.team-card:hover .social-icons {
  opacity: 1;
  transform: translateY(0);
}

/* Fix right spacing issue properly */
/*
.team-section .row {
  margin-left: 0;
  margin-right: 20px;
}

.team-section .col-lg-3,
.team-section .col-md-6 {
  padding-left: 12px;
  padding-right: 12px;
} */


/* Responsive */
@media (max-width: 991px) {

  .team-section {
    /* padding: 100px 20px 50px 20px;
    padding: 60px 0 30px 0;*/
    padding: 20px 0px 10px 0px;
  }

  .team-container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .team-header h2 {
    font-size: 36px;
  }

  .team-header p {
    font-size: 15px;
  }

  .team-card {
    height: 380px;
    border-radius: 22px;
  }

 .overlay .custom-h3 {
    font-size: 22px;
  }

}

@media (max-width: 768px) {

  .team-section {
    /* padding: 90px 18px;
    padding: 90px 18px 40px 18px; */
    padding: 20px 0px 15px 0px;
  }

    .team-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .team-header h2 {
    font-size: 32px;
  }

  .team-header p {
    font-size: 15px;
  }

  .team-card {
    height: 340px;
  }

  .overlay {
    bottom: 20px;
    left: 15px;
  }

  .overlay .custom-h3 {
    font-size: 20px;
  }

  .overlay span {
    font-size: 13px;
  }

  .social-icons i {
    width: 32px;
    height: 32px;
  }

}

@media (max-width: 576px) {

  .team-section {
    /* padding: 80px 16px;*/
    padding: 10px 0px 15px 0px;
  }

   .team-container {
    padding-left: 15px;
    padding-right: 15px;
  }


  .team-header h2 {
    font-size: 26px;
  }

  .team-header p {
    font-size: 14px;
  }

  .team-card {
    /* height: 320px; */
    height: 300px;
    border-radius: 20px;
  }

  .overlay {
    bottom: 20px;
    left: 15px;
  }

  .overlay .custom-h3 {
    font-size: 18px;
  }

  .overlay span {
    font-size: 12px;
  }

  .social-icons i {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }


  /* Show icons without hover (important for mobile) */
  .social-icons {
    opacity: 1;
    transform: translateY(0);
  }

}

@media (max-width: 480px) {

  .team-section {
    /*  padding: 70px 14px; */
    padding: 15px 0px 10px 0px;
  }

  .team-card {
    height: 300px;
  }

  .overlay .custom-h3 {
    font-size: 16px;
  }

  .overlay span {
    font-size: 11px;
  }

    .social-icons i {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }


}

@media (max-width: 360px) {

  .team-section {
    /* padding: 60px 12px;  */

    padding: 10px 0px 8px 0px;
  }

  .team-header h2 {
    font-size: 22px;
  }

  .team-card {
    height: 350px;
  }

  .social-icons {
    gap: 6px;
  }

  .social-icons i {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

}


/* ================= CONTACT CTA ================= */
.about-contact-cta {
  /*  padding: 1.5rem 5%; */
  padding: 3rem 5% 4% 5%;

  text-align: center;
  border-radius: 20px;
  margin: 0.5rem auto;
  max-width: 1000px;
}

/* TITLE */
.about-contact-cta h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* TEXT */
.about-contact-cta p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

/* BUTTON */
.about-contact-cta .btn {
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 30px;
  transition: 0.3s ease;
  background: #1DC9A9;
  color: var(--title-color);
}


/* HOVER */
.about-contact-cta .btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 20px rgba(29, 201, 169, 0.5);
  color: var(--title-color);
}

/* ================================
   RESPONSIVE - LARGE TABLETS
================================ */
@media (max-width: 991px) {

  .about-contact-cta {
    padding: 2.5rem 4%;
    max-width: 90%;
  }

  .about-contact-cta h3 {
    font-size: 1.8rem;
  }

  .about-contact-cta p {
    font-size: 0.95rem;
  }

  .about-contact-cta .btn {
    padding: 10px 26px;
    font-size: 0.95rem;
  }
}


/* ================================
   RESPONSIVE - TABLETS
================================ */
@media (max-width: 768px) {

  .about-contact-cta {
    padding: 2rem 20px;
    border-radius: 15px;
  }

  .about-contact-cta h3 {
    font-size: 1.6rem;
  }

  .about-contact-cta p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .about-contact-cta .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}


/* ================================
   RESPONSIVE - MOBILE
================================ */
@media (max-width: 576px) {

  .about-contact-cta {
    padding: 1.8rem 15px;
    border-radius: 12px;
  }

  .about-contact-cta h3 {
    font-size: 1.4rem;
  }

  .about-contact-cta p {
    font-size: 0.85rem;
  }

  .about-contact-cta .btn {
    padding: 9px 22px;
    font-size: 0.85rem;
    border-radius: 25px;
  }
}


/* ================================
   RESPONSIVE - SMALL DEVICES (360px)
================================ */
@media (max-width: 400px) {

  .about-contact-cta {
    padding: 1.5rem 12px;
  }

  .about-contact-cta h3 {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .about-contact-cta p {
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .about-contact-cta .btn {
    padding: 8px 18px;
    font-size: 0.8rem;
  }
}


/* ===================== Chat Button ========================== */

#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1DC9A9;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
}

/* Chat Box */
#chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  background: #fff;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* Header */
.chat-header {
  background: #1DC9A9;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

.chat-header button {

  border: none;
  background: none;

  color: white;
}

/* Body */
.chat-body {
  padding: 10px;
  height: 250px;
  overflow-y: auto;
}

.bot-message {
  background: #f1f1f1;
  padding: 8px;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 5px;
}

.user-message {
  background: #1DC9A9;
  color: #fff;
  padding: 8px;
  font-size: 16px;
  border-radius: 6px;
  margin-bottom: 5px;
  text-align: right;
}

/* Footer */
.chat-footer {
  display: flex;
}

.chat-footer input {
  flex: 1;
  border: none;
  padding: 10px;
}

.chat-footer button {
  background: #1DC9A9;
  color: #fff;
  border: none;
  padding: 10px;
}