@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  background: #f4f7fb;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* BLOBS */
.blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  top: 10%;
  right: 22%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 200, 180, 0.12) 0%, rgba(100, 220, 200, 0.06) 40%, transparent 70%);
}

.blob-2 {
  top: 30%;
  right: 28%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(160, 220, 80, 0.08) 0%, rgba(200, 240, 120, 0.04) 40%, transparent 70%);
}

.blob-3 {
  bottom: 10%;
  left: 5%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 120, 212, 0.06) 0%, transparent 70%);
}

/* MAIN LAYOUT */
/* .main-layout {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 65%) minmax(340px, 35%);
  gap: 24px;
  padding: 24px 28px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
} */

/* .main-layout {
  --chat-width: 35%;

  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--chat-width);
  gap: 24px;
  padding: 24px 28px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
} */
.main-layout {
  --chat-width: 35%;

  width: 100%;
  min-height: 100vh;

  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--chat-width);

  gap: 24px;
  padding: 24px 28px;

  box-sizing: border-box;

  align-items: flex-start;
  position: relative;
  z-index: 1;
}


/* LEFT SIDE */
.left-panel {
  width: 100%;
  min-width: 0;
  /*height: calc(100vh - 36px);*/
  max-height: 94.3vh;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  /*justify-content: center;*/
  gap: 14px;
  margin: auto;
}

/* HERO */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f5ec 100%);
  border: 1px solid rgba(196, 172, 109, 0.35);
  /* border-radius: 24px; */
  padding: 4px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  /*overflow: hidden;*/
  box-shadow: 0 10px 35px rgba(13, 27, 46, 0.08), 0 2px 8px rgba(196, 172, 109, 0.16);
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 172, 109, 0.12);
  border: 1px solid rgba(196, 172, 109, 0.35);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: 11.5px;
  font-weight: 600;
  color: #5f5f5f;
  margin-bottom: 14px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C4AC6D;
  min-width: 8px;
}

.hero-heading {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 900;
  color: #555;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.stali-name {
  color: #C4AC6D;
}

.hero-subtitle {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  max-width: 520px;
}

.hero-logo-wrap {
  flex: 0 0 42%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-stali-logo {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
}

/* FEATURE CARDS */
.features-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  /* border-radius: 16px; */
  padding: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.22s, transform 0.22s;
}

.feature-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card-icon img {
  width: 22px;
  height: 22px;
}

.fi-blue {
  background: rgba(0, 120, 212, 0.10);
}

.fi-teal {
  background: rgba(0, 180, 160, 0.10);
}

.fi-purple {
  background: rgba(124, 58, 237, 0.10);
}

.feature-card-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.feature-card-text span {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* COUNCIL SECTION */
.council-section {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  /* border-radius: 18px; */
  padding: 15px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.council-title {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}

.council-subtitle {
  font-size: 15px;
  color: #777;
  margin-bottom: 10px;
  line-height: 1.5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #333;
}

.service-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* THREE INFO ROW */
.three-info-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.2fr;
  gap: 14px;
  align-items: stretch;
}

.language-section,
.bottom-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  /* border-radius: 18px; */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 22px 24px;
  height: 100%;
}

.language-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.language-left h2 {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin-bottom: 10px;
}

.language-left p,
.bottom-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.65;
}

.language-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  background: #f0f4fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #444;
}



.pill-more {
  color: #888;
}

.bottom-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bottom-card-icon img {
  width: 22px;
  height: 22px;
}

.bc-orange {
  background: rgba(245, 130, 32, 0.10);
}

.bc-teal {
  background: rgba(0, 180, 160, 0.10);
}

.bottom-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  margin-bottom: 8px;
}

/* RIGHT CHATBOT */
/* .right-panel {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
} */

/* .main-layout {
  --chat-width: 35%;

  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--chat-width);
  gap: 24px;
  position: relative;
} */

.right-panel {
  position: relative;
  width: 100%;
  min-width: 0;
}

.resize-handle {
  position: absolute;
  left: -12px;
  top: 0;
  width: 24px;
  height: 100%;
  cursor: ew-resize;
  z-index: 100;
}

.resize-handle::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 4px;
  height: 70px;
  transform: translateY(-50%);
  border-radius: 4px;
  background: #c4ac6d;
}

.chat-card {
  width: 100%;
  height: calc(100vh - 50px);
  background: #fff;
  border-radius: 20px;
  /* overflow: hidden; */
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 10px 48px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.chat-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  flex: 1;
}

/* LAPTOP HEIGHT FIX */
@media (max-height: 820px) {
  .main-layout {
    padding: 12px 22px;
    gap: 20px;
  }

  .left-panel {
    gap: 10px;
  }

  .hero-section {
    padding: 22px 28px;
  }

  .hero-heading {
    font-size: 40px;
  }

  .hero-subtitle {
    /*font-size: 13px;*/
    line-height: 1.5;
  }

  .hero-stali-logo {
    max-width: 360px;
  }

  .feature-card {
    padding: 14px 16px;
  }

  .feature-card-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
  }

  /*.feature-card-text span {
    font-size: 11px;
    line-height: 1.5;
  }*/

  .council-section {
    padding: 18px 24px;
  }

  .service-item {
    padding: 9px 12px;
    font-size: 11.5px;
  }

  .language-section,
  .bottom-card {
    padding: 16px 18px;
  }

  .chat-card {
    height: calc(100vh - 24px);
  }
}

/* 1366px LAPTOP WIDTH FIX */
@media (max-width: 1366px) {
  .three-info-row {
    grid-template-columns: 1.2fr;
  }

  .main-layout {
    grid-template-columns: minmax(0, 68%) minmax(330px, 32%);
    gap: 18px;
    padding: 14px 18px;
  }

  .hero-heading {
    font-size: 40px;
  }

  .hero-stali-logo {
    max-width: 350px;
  }

  .chat-card {
    height: calc(100vh - 50px);
  }
}

/* TABLET */
@media (max-width: 960px) {

  .main-layout {
    display: flex;
    flex-direction: column;
    padding: 20px;
  }

  .left-panel,
  .right-panel {
    width: 100%;
  }

  .left-panel {
    display: none;
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
  }

  .hero-logo-wrap {
    width: 100%;
    flex: none;
    justify-content: center;
  }

  .features-section,
  .services-grid,
  .three-info-row {
    grid-template-columns: 1fr;
  }

  /* .chat-card {
    height: 650px;
  } */

  /* LEFT SIDE */
  .left-panel {
    max-height: unset !important;
    overflow: unset !important;

  }
}



/* MOBILE */
@media (max-width: 600px) {
  .main-layout {
    padding: 14px;
  }

  .hero-heading {
    font-size: 34px;
  }

  .hero-section {
    padding: 22px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* .chat-card {
    height: 560px;
  } */
}

/* SCROLLBAR */
/*::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #c4ac6d69;
  border-radius: 5px;
}*/
::-webkit-scrollbar-thumb {
  background: #c4ac6d69;
  border-radius: 5px;
}

.left-panel {
  overflow-y: auto;
  scrollbar-width: none;
  /* Firefox */
}

/* Hide scrollbar by default */
.left-panel::-webkit-scrollbar {
  width: 0;
}

/* Show scrollbar on hover */
.left-panel:hover {
  scrollbar-width: thin;
}

.left-panel:hover::-webkit-scrollbar {
  width: 5px;
  background: #c4ac6d69 !important;
}

.left-panel:hover::-webkit-scrollbar-track {
  background: transparent;
}

.left-panel:hover::-webkit-scrollbar-thumb {
  background: #c4ac6d !important;
  border-radius: 5px;
}

.left-panel:hover::-webkit-scrollbar-thumb:hover {
  background: #c4ac6d69 !important;
}

.left-panel::-webkit-scrollbar {
  width: 6px;
}

.left-panel::-webkit-scrollbar-track {
  background: transparent;
}

.left-panel::-webkit-scrollbar-thumb {
  background-color: #c4ac6d !important;
  border-radius: 10px;
  border: 1px solid transparent;
}

/* Fix hero section on small laptop height */
@media (min-width: 600px) and (max-height: 820px) {
  /* .hero-section {
    min-height: 150px;
    padding: 0px 28px;
    align-items: center;
  }*/

  .hero-heading {
    font-size: 45px;
    line-height: 1.05;
    margin-bottom: 8px;
  }

  .three-info-row {
    grid-template-columns: 1.2fr 1.2fr 1.2fr;
  }


  .hero-subtitle {
    /*font-size: 11px;*/
    line-height: 1.45;
    max-width: 520px;
  }

  .hero-online-badge {
    margin-bottom: 10px;
    padding: 5px 14px;
    font-size: 12px;
    margin-top: 5px;
  }

  .hero-logo-wrap {
    flex: 0 0 38%;
  }

  .hero-stali-logo {
    max-width: 433px;
  }

  .pill {
    display: inline-block;
    background: #f0f4fa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 600;
    color: #444;
  }
}

@media (min-width: 961px) and (max-width: 1185px) {

  .hero-online-badge {
    margin-bottom: 10px;
    padding: 5px 14px;
    font-size: 10px;
    font-weight: 700;
    margin-top: 5px;
  }


  .left-panel {
    max-height: 95.5vh;
    overflow: scroll;
    display: flex;
  }



}

/* Desktop monitor chatbot bottom space fix */
@media (min-width: 1440px) and (min-height: 850px) {



  /* Allow normal page scrolling */
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Desktop / laptop scroll safety */
  .main-layout {
    overflow: visible;
  }

  /*.left-panel {
  height: auto;
  min-height: auto;
  overflow: visible;
}*/

  /* Chatbot desktop/laptop height */
  .chat-card {
    height: calc(100vh - 50px);
  }

  /* Laptop height fix */
  @media (max-height: 820px) {
    .main-layout {
      align-items: flex-start;
    }

    .left-panel {
      height: auto;
      overflow: visible;
    }

    .chat-card {
      height: calc(100vh - 50px);
    }
  }

  /* Tablet screens */
  @media (min-width: 601px) and (max-width: 1024px) {
    .main-layout {
      display: flex;
      flex-direction: column;
      padding: 20px;
      gap: 20px;
    }

    .left-panel,
    .right-panel {
      width: 100%;
    }

    .hero-section {
      display: flex;
      flex-direction: row !important;
      align-items: center;
      justify-content: space-between;
      gap: 24px;


      text-align: left;
    }

    .hero-heading {
      font-size: 57px;
    }

    .three-info-row {
      display: grid !important;
      grid-template-columns: 1fr 1.5fr 1fr;
      gap: 14px;
      align-items: stretch;
    }

    .language-section {
      grid-column: auto !important;
      width: 100%;
      height: 100%;
    }

    .hero-online-badge {
      margin-bottom: 10px;
      padding: 5px 14px;
      font-size: 8px;
      font-weight: 700;
      margin-top: 5px;
    }

    .bottom-card {
      width: 100%;
      height: 100%;
    }

    .hero-content {
      flex: 1;
    }

    .hero-logo-wrap {
      flex: 0 0 42%;
      width: auto;
      justify-content: flex-end;
    }

    .hero-stali-logo {
      max-width: 382px;
      width: 100%;
    }

    .features-section {
      grid-template-columns: 1fr 1fr 1fr;
    }

    .services-grid {
      grid-template-columns: 1fr 1fr;
    }

    .three-info-row>* {
      min-width: 0;
    }

    .chat-card {
      height: 650px;
    }
  }




  /* Mobile screens */
  @media (max-width: 600px) {


    .main-layout {
      padding: 14px;
      gap: 16px;
    }

    .hero-section {
      padding: 13px 18px;
      border-radius: 18px;
    }

    .hero-online-badge {
      margin-bottom: 10px;
      padding: 5px 14px;
      font-size: 8px;
      font-weight: 700;
      margin-top: 5px;
    }


    .hero-heading {
      font-size: 34px;
    }

    /* .hero-subtitle {
    font-size: 13px;
  }
*/
    .hero-stali-logo {
      max-width: 320px;
      margin-top: -32px;
      margin-bottom: -18px;
    }

    .features-section {
      grid-template-columns: 2fr;
    }


    .services-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .service-item {
      font-size: 11px;
      padding: 10px 10px;
      gap: 8px;
    }

    .service-icon {
      width: 26px;
      height: 26px;
    }

    .service-icon img {
      width: 14px;
      height: 14px;
    }


    .feature-card,
    .council-section,
    .language-section,
    .bottom-card {
      padding: 18px;
    }

    .chat-card {
      height: 560px;
    }
  }