*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-shadow: none;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
}

.header-information {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  width: 100%;
  overflow: hidden;
  background-color: var(--secondary);
}

.header-information-news {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background-color: var(--primary);
  padding: 4px 20px;
}

.marquee {
  display: inline-block;
  color: var(--text-light);
  font-size: 11px;
  font-style: italic;
  padding-left: 100%;
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.header-information-contact {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-left: 24px;
  padding-right: 24px;
}

.header-contact-item,
.header-contact-item i {
  font-size: 12px;
  color: var(--text-light);
}

.header-contact-item {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.header-contact-item span {
  color: var(--text-light);
  font-size: 12px;
}

.header-contact-item span a {
  color: var(--text-light);
  font-size: 12px;
}

.header-contact-item i {
  margin-right: 12px;
  margin-left: 12px;
  color: var(--text-light);
}

.header-social-media {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 16px;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
}

nav {
  background-color: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.navbar {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}

.navbar-logo .logo img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-logo .logo img:hover {
  transform: scale(1.05);
}

.navbar-menu .menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
}

.navbar-menu .menu-list .nav-link {
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar-menu .menu-list .nav-link:hover,
.navbar-menu .menu-list .nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.navbar-menu .menu-list .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.navbar-menu .menu-list .nav-link:hover::after {
  width: 100%;
}

.navbar-menu .menu-list li {
  position: relative;
}

.flyout-menu {
  display: none;
  position: fixed;
  top: 100px;
  left: 0;
  width: 100vw;
  background-color: #fff;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 6px;
  gap: 0;
  z-index: 1000;
}

.flyout-menu.open {
  display: flex;
}

.flyout-column {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
  padding: 20px;
  position: relative;
}

.flyout-column > a {
  font-weight: bold;
  margin-bottom: 10px;
  cursor: default;
  color: var(--text-dark);
}

.sub-flyout {
  display: flex;
  flex-direction: column;
}

.sub-flyout a {
  padding: 12px 4px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 12px;
}

.sub-flyout a:hover {
  padding: 12px 20px;
  color: var(--text-light);
  background-color: var(--primary-light);
  transition: all 0.3s ease;
}

.flyout-menu > a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 15px;
  white-space: nowrap;
  border-radius: 0;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.flyout-menu > a:hover {
  background-color: var(--primary-light);
  color: var(--text-light);
}

.navbar-menu .menu-list .has-flyout .nav-link::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 5px;
  font-size: 10px;
  vertical-align: middle;
  display: inline-block;
  transform: translateY(-1px);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-actions .btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 20px;
  background-color: var(--primary);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
}

.navbar-actions .btn .bi {
  font-size: 1.1em; /* Adjust if needed */
  vertical-align: middle;
  margin-left: 8px;
  line-height: 1;
}

.navbar-actions .btn:hover {
  background-color: var(--bg-gray);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  position: absolute;
  top: 18%;
  right: 20px;
  z-index: 1100;
}

.carousel {
  position: relative;
  width: 100vw;
  height: 700px;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-slide {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 24px 15;
  cursor: pointer;
  font-size: 24px;
  z-index: 2;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background-color: white;
}

.mini-carousel {
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.mini-carousel-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.mini-carousel-slide {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease-in-out;
}

.mini-carousel-slide {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease-in-out;
}

.mini-slide {
  width: 100%;
  height: 400px;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  text-align: left;
  color: var(--text-light);
}

.mini-slide h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.mini-slide p {
  margin-bottom: 20px;
  font-size: 16px;
}

.mini-slide button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  width: 160px;
  transition: background-color 0.3s;
}

.mini-slide button:hover {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  border: 1px solid var(--primary);
}

.services-card {
  margin-top: -150px;
  padding: 80px 0;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.cards {
  display: flex;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
  flex-wrap: nowrap;
}

.card-1,
.card-3 {
  background-color: var(--primary);
  color: var(--text-light);
  width: 280px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s;
  cursor: pointer;
  position: relative;
}

.card-2,
.card-4 {
  background-color: var(--primary-light);
  color: var(--text-light);
  width: 280px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s;
  cursor: pointer;
  position: relative;
}

.card-1 .green-btn:hover,
.card-3 .green-btn:hover {
  background-color: var(--primary);
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.card-2 .green-btn:hover,
.card-4 .green-btn:hover {
  background-color: var(--primary-light);
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.icon i {
  color: var(--text-light);
}

.card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 700;
}

.card p {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.4;
  text-align: justify;
  padding: 0 12px;
}

.card-footer {
  position: relative;
  height: 40px;
  overflow: hidden;
}

.green-line {
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
  margin: 0 auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
}

.green-btn {
  background-color: var(--secondary);
  border: none;
  color: var(--text-light);
  padding: 6px 12px;
  white-space: nowrap;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -50%) translateY(20px);
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transition: opacity 0.3s, transform 0.3s;
}

.card:hover .green-line {
  opacity: 0;
  transform: translateY(10px);
}

.card:hover .green-btn {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
  pointer-events: auto;
}

.typewriter-container {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 80px;
  color: white;
  font-weight: bold;
  z-index: 3;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}

/* ---------- BRIEF MESSAGE SECTION ---------- */
.brief-message {
  padding: 2.5rem 1.25rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.message-container {
  max-width: 68.75rem; /* 1100px */
  text-align: left;
}

.message-container h1 {
  font-size: clamp(1.625rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.875rem;
  color: var(--text-dark, #333);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.message-container > p {
  text-align: justify;
  margin-bottom: 1.875rem;
  color: #555;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
}

.message {
  width: 100%;
}

.message h3 {
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #222;
}

/* --------- Sub-message Layout --------- */
.sub-message {
  display: flex;
  flex-wrap: nowrap;
  gap: 2.5rem;
  width: 1080px;
  padding: 0;
  margin: 0px;
}

.sub-message div {
  width: 600px;
}

.sub-message h3 {
  text-align: center;
}

/* Text Section */
.sub-message p {
  text-align: justify;
  line-height: 1.7;
  color: #444;
  font-size: 16px;
  padding: 0;
}

/* Image Section */
.sub-message img {
  max-width: 600px;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1;
}

.about {
  padding-top: 120px;
  padding-bottom: 60px;
}

.about-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.about-container h2 {
  font-size: 54px;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--secondary);
  text-align: center;
}

.about-container p {
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 30px;
  text-align: justify;
}

.read-more {
  margin-top: 40px;
  padding: 12px 40px;
  color: var(--text-light);
  background-color: var(--secondary);
}

.read-more:hover {
  border: 1px solid var(--secondary);
  background-color: #fff;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.services {
  background-color: var(--primary);
  padding: 80px 20px;
  width: 100%;
}

.services-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
  color: var(--text-light);
}

.services-impact-top,
.services-impact-down {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 80px;
  margin-bottom: 40px;
}

.services-impact-top {
  border-bottom: 1px solid var(--bg-gray);
  padding-bottom: 40px;
}

.services-count {
  flex: 1 1 45%;
  min-width: 280px;
  text-align: left;
}

.services-impact-top > h1 {
  font-size: 48px;
  flex: 1 1 100%;
  margin-bottom: 30px;
  text-align: left;
}

.services-count h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.services-count p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 400px;
}

.info-vertical {
  padding: 80px 20px;
  background-color: #f9fbfd;
  position: relative;
  overflow: hidden;
}

.info-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.info-block {
  padding: 40px 30px;
  background-color: #f9fbfd;
  border-radius: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  flex: 1;
  border-top: 3px solid var(--primary);
  z-index: 1;
}

.info-block:hover {
  transform: translateY(-10px);
}

.info-icon {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon i {
  color: var(--text-light);
  position: relative;
  z-index: 2;
}

.icon-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primary);
  border-radius: 50%;
  transform: scale(0.8);
  transition: var(--transition);
  border: 1px solid var(--primary);
}

.info-block:hover .icon-backdrop {
  transform: scale(1);
  background: #fff;
}
.info-block:hover .info-icon i {
  color: var(--primary);
}

.info-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.info-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.info-block:hover .info-heading::after {
  width: 80px;
}

.info-description {
  line-height: 1.7;
  color: var(--text-dark);
  text-align: justify;
  margin-bottom: 0;
}

.info-description ul li {
  font-size: 14px;
}

.info-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.info-block:hover .info-hover-effect {
  opacity: 1;
}

.main-services-header {
  background: linear-gradient(rgba(255, 72, 0, 0.5), rgba(255, 72, 0, 0.5)),
    url("/tucee/assets/images/academi&career.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  padding: 80px 0px;
  color: #fff;
}

.main-service-name {
  width: 1080px;
  text-align: center;
}

.main-service-name h1 {
  font-size: 40px;
  position: relative;
  display: inline-block;
  text-align: center;
}

.main-service-name p {
  margin: 40px 0px;
}

.main-service-name h1::after {
  content: "";
  position: absolute;
  left: 0%;
  bottom: -15px; /* Adjust spacing below text */
  transform: translateX(100%);
  width: 30%;
  height: 4px; /* Thickness of underline */
  background-color: #fff; /* or any accent color you prefer */
}

.service-section {
  max-width: 1500px;
  margin: 40px auto;
  padding: 120px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.service-item {
  flex: 1 1 45%;
  margin: 16px auto;
}

/* Main horizontal layout */
.icon-and-text {
  display: flex;
  align-items: flex-start; /* important: aligns h2 to the top of icon */
  gap: 16px;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  flex-shrink: 0;
}

/* Text block */
.text-wrapper h2 {
  margin: 12px 0px;
  font-size: 24px;
}

.text-wrapper p {
  margin: 4px 0 40px 0px;
  line-height: 1.6;
}

.service-btn {
  padding: 8px 20px;
  background-color: var(--primary);
  color: var(--text-light);
  margin-top: 24px;
}

.service-btn:hover {
  background-color: rgba(255, 72, 0, 0.2);
  color: var(--text-light);
  border: 1px solid #fff;
  transition: all 0.3s ease;
}

.news-banner {
  padding: 40px;
  background-color: var(--primary);
  color: var(--text-light);
  text-align: center;
}

.news-banner h2 {
  font-size: 36px;
  font-weight: 600;
  margin: 0;
}

.news-main {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
  padding: 40px;
  justify-content: center;
}

.news-section {
  background-color: #fff;
  padding: 24px;
  border-radius: 12px;
}

.news-content .top-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.news-content img {
  width: 100%;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.news-header {
  margin-bottom: 20px;
}

.news-header h1 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.news-meta {
  margin-top: 8px;
  display: flex;
  gap: 20px;
  color: #888;
  font-size: 13px;
}

.news-meta i {
  margin-right: 6px;
  color: #555;
}

.news-header p {
  margin-top: 6px;
  font-size: 14px;
  color: #666;
}

.news-header h1 a {
  color: var(--text-dark);
}

.news-content .top-row a {
  color: var(--text-dark);
}

.news-content .description {
  margin-top: 24px;
  color: var(--text-dark);
  text-align: justify;
  line-height: 1.6;
}

/* Sidebar */
.news-sidebar .news-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.news-sidebar .news-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
}

.news-sidebar .news-item .news-text h4 {
  margin: 0;
  font-size: 16px;
  color: #444;
}

.news-sidebar .news-item .news-text h4 a {
  color: var(--text-dark);
}

.news-sidebar .news-item .news-text p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #888;
}

.news-sidebar .sidebar-title {
  margin-bottom: 16px;
  padding: 8px 16px;
  border-bottom: 1px solid #eee;
}

.sidebar-title-recently {
  background-color: #888;
}

.sidebar-title-news-all {
  background-color: var(--secondary);
}

.sidebar-title-news-all h4,
.sidebar-title-recently h4 {
  color: var(--text-light);
}

.news-sidebar .sidebar-title p {
  color: #888;
  margin-top: 4px;
  font-size: 14px;
}

.footer {
  background-color: var(--secondary);
  color: var(--text-light);
  padding: 40px 20px 20px;
  width: 100%;
}

.footer-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-evenly;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
  gap: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

.footer-section p {
  font-size: 12px;
  line-height: 1.6;
}

.footer-section p a.footer-link {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.3s;
  font-size: 12px;
}

.footer-section p a.footer-link:hover {
  color: var(--primary);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 12px;
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.footer-section p i,
.footer-section ul li a i {
  margin-right: 8px;
  color: var(--primary);
}

.newsletter-form {
  display: flex;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 8px;
}

.newsletter-form input[type="email"] {
  padding: 8px;
  flex: 1;
  border: none;
  outline: none;
}

.newsletter-form button {
  padding: 8px 16px;
  background-color: var(--primary);
  border: none;
  color: #000;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: var(--primary-light);
  color: var(--text-light);
}

.social-icons a {
  display: inline-block;
  margin-right: 12px;
  font-size: 20px;
  color: var(--text-light);
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: var(--primary);
  transform: scale(1.2);
}

/* Footer Bottom */
.floating-chat {
  position: fixed;
  right: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  z-index: 9999;
}

.chat-btn {
  position: fixed;
  bottom: 30px; /* Lowered from 100px */
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;

  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: width 0.3s ease, border-radius 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.livechat-btn {
  bottom: 90px;
  background-color: var(--secondary);
}
.whatsapp-btn {
  bottom: 30px;
  background-color: #25d366;
}

.chat-btn:hover {
  width: 240px;
  border-radius: 25px;
  cursor: pointer;
}

.chat-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0 16px;
  gap: 10px;
}

.chat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.chat-text {
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chat-btn:hover .chat-text {
  opacity: 1;
}

/* Hover Animation for coordinated movement */
.floating-chat:hover .chat-btn {
  transform: translateX(0);
}

.floating-chat:hover .chat-btn:nth-child(1):hover ~ .chat-btn:nth-child(2),
.floating-chat:hover .chat-btn:nth-child(2):hover ~ .chat-btn:nth-child(1) {
  transform: translateX(-20px);
}

/* Chat Dialog */
.chat-dialog {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 400px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
}

/* Chat Header */
.chat-head {
  background-color: var(--primary-light);
  color: #fff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Close Button */
.chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* Chat Body */
.chat-body {
  padding: 12px;
  flex-grow: 1;
  overflow-y: auto;
  max-height: 200px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Chat Messages */
.message {
  padding: 8px 12px;
  border-radius: 4px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 13px;
}

.recipient {
  background-color: var(--primary-light);
  align-self: flex-start;
}

.sender {
  background-color: var(--secondary);
  align-self: flex-end;
}

/* Chat Footer */
.chat-footer {
  display: flex;
  padding: 8px;
  gap: 8px;
  background-color: #eee;
}

.chat-footer input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
}

.chat-footer button {
  padding: 8px 12px;
  background-color: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Responsive Breakpoint ≤ 768px */
@media (max-width: 768px) {
  .chat-dialog {
    width: 90vw;
    right: 5%;
    bottom: 80px;
  }
}

/* Responsive Breakpoint ≤ 480px */
@media (max-width: 480px) {
  /* Chat dialog adjusts to almost full width */
  .chat-dialog {
    width: 95vw;
    right: 2.5%;
    bottom: 80px;
  }

  /* Stack input and button vertically */
  .chat-footer {
    flex-direction: column;
  }

  .chat-footer input,
  .chat-footer button {
    width: 100%;
  }

  /* Floating chat button adjustments */
  .floating-chat {
    bottom: 20px;
    right: 20px;
  }

  .chat-btn {
    width: 45px;
    height: 45px;
  }

  .chat-btn:hover {
    width: 140px;
  }

  .chat-content i {
    font-size: 18px;
  }

  .chat-content .chat-text {
    font-size: 12px;
  }
}

/* ------------------------------------ */
/* AD FLYER */
.ad-flyer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  height: 150px;
  background-color: rgb(212, 212, 212);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

/* Slider Track */
.slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.slide-track {
  display: flex;
  width: calc(300px * 6);
  animation: scroll 15s linear infinite;
}

.slide-track img {
  width: 300px;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Scrolling Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-900px);
  }
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  z-index: 1001;
}

.close-btn:hover {
  color: #000;
}

/* ------------------------------------ */
/* RESPONSIVE BREAKPOINT ≤ 992px */
@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
    text-align: left;
    gap: 40px;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100%;
    border-radius: 4px;
  }

  .ad-flyer {
    width: 95vw;
    height: 120px;
  }

  .slide-track img {
    width: 200px;
  }

  .slide-track {
    width: calc(200px * 6);
    animation: scrollSmall 15s linear infinite;
  }

  @keyframes scrollSmall {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-600px);
    }
  }

  .ceo_image {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* RESPONSIVE BREAKPOINT ≤ 576px */
@media (max-width: 576px) {
  .ad-flyer {
    height: 100px;
  }

  .slide-track img {
    width: 150px;
  }

  .slide-track {
    width: calc(150px * 6);
    animation: scrollSmallest 15s linear infinite;
  }

  @keyframes scrollSmallest {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-450px);
    }
  }

  .chat-btn {
    width: 45px;
    height: 45px;
  }

  .chat-btn:hover {
    width: 150px;
  }

  .chat-content i {
    font-size: 18px;
  }

  .chat-content .chat-text {
    font-size: 12px;
  }

  .floating-chat {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 992px) {
  .header-information {
    flex-direction: column;
    align-items: stretch;
  }

  .header-information-news {
    padding: 6px 16px;
  }

  .header-information-contact {
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 16px;
  }

  .header-contact-item {
    margin: 4px 8px;
  }

  .header-social-media {
    justify-content: center;
    margin-left: 0;
    margin-top: 8px;
  }

  .social-icon {
    margin-right: 12px;
  }

  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
  }

  .navbar-menu {
    display: none;
    width: 100%;
  }

  .navbar-menu.active {
    display: block;
  }

  .menu-list {
    flex-direction: column;
    gap: 0;
    background-color: var(--bg-gray);
    width: 100%;
  }

  .menu-list li {
    width: 100%;
    border-bottom: 1px solid #ccc;
  }

  .menu-list .nav-link {
    display: block;
    padding: 12px 16px;
  }

  .flyout-menu {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: none;
    flex-direction: column;
    padding: 0;
  }

  .flyout-menu > a,
  .flyout-column,
  .sub-flyout a {
    padding: 12px 16px;
  }

  .flyout-menu.open {
    display: block;
  }

  .mobile-menu-btn {
    display: block;
    top: 12%;
    right: 40px;
  }

  .navbar-actions {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }

  .navbar-actions {
    display: none;
  }

  .mini-carousel {
    width: 80%;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .mini-slide {
    height: 300px;
    padding: 20px;
  }

  .mini-slide h3 {
    font-size: 20px;
  }

  .mini-slide p {
    font-size: 14px;
  }

  .mini-slide button {
    padding: 8px 16px;
    font-size: 14px;
    width: 140px;
  }

  .carousel {
    height: 400px;
  }

  .typewriter-container {
    font-size: 60px;
    top: 45%;
  }

  .about-container {
    padding: 0 20px;
  }

  .services-impact-top,
  .services-impact-down {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: center;
  }

  .services-impact-top > h1 {
    font-size: 36px;
    text-align: center;
  }

  .services-count {
    text-align: left;
    margin-bottom: 30px;
  }

  .services-count h1 {
    font-size: 36px;
  }

  .services-count p {
    max-width: 100%;
  }

  .services-card .cards {
    display: flex;
    flex-direction: column;
    margin-top: 70px;
  }

  .services-card .cards .card {
    width: 100%;
    padding: 40px;
  }

  .info-wrapper {
    flex-wrap: wrap;
  }

  .info-block {
    flex: 0 0 calc(50% - 15px);
  }

  .sub-message {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    width: 80vw;
  }

  .sub-message p {
    width: 100%;
    font-size: 15px;
  }

  .sub-message img {
    width: 100%;
    max-width: 300px;
  }
  .news-main {
    grid-template-columns: 1fr; /* Stack main and sidebar vertically */
    padding: 30px;
  }

  .news-content .top-row {
    flex-direction: column; /* Stack image and text vertically */
  }

  .news-content img {
    width: 100%;
    max-height: 350px;
  }

  .news-sidebar {
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    top: 17%;
    right: 40px;
  }
  .info-block {
    flex: 0 0 100%;
  }

  .info-vertical {
    padding: 60px 20px;
  }

  .news-banner {
    padding: 30px;
  }

  .news-banner h2 {
    font-size: 28px;
  }

  .news-main {
    padding: 20px;
  }

  .news-section {
    padding: 20px;
  }

  .news-content .description {
    font-size: 14px;
    line-height: 1.5;
  }

  .news-sidebar .news-item img {
    width: 70px;
    height: 50px;
  }

  .news-sidebar .news-item .news-text h4 {
    font-size: 15px;
  }

  .news-sidebar .news-item .news-text p {
    font-size: 11px;
  }
}

@media (max-width: 576px) {
  .mini-carousel {
    width: 90%;
    height: 250px;
  }

  .mini-slide {
    height: 250px;
    padding: 15px;
  }

  .mini-slide h3 {
    font-size: 18px;
  }

  .mini-slide p {
    font-size: 13px;
  }

  .mini-slide button {
    padding: 6px 12px;
    font-size: 12px;
    width: 120px;
  }

  .carousel {
    height: 350px;
  }

  .services {
    padding: 60px 15px;
  }

  .services-impact-top > h1 {
    font-size: 30px;
  }

  .services-count h1 {
    font-size: 28px;
  }

  .services-count p {
    font-size: 13px;
  }

  .brief-message {
    padding: 2rem 1rem;
  }

  .message-container h1 {
    font-size: 1.5rem;
  }

  .message-container > p {
    font-size: 0.875rem;
  }

  .message h3 {
    font-size: 1rem;
  }

  .sub-message p {
    font-size: 14px;
  }

  .sub-message img {
    max-width: 100%;
  }

  .news-banner {
    padding: 20px;
  }

  .news-banner h2 {
    font-size: 24px;
  }

  .news-main {
    padding: 16px;
  }

  .news-section {
    padding: 16px;
  }

  .news-header h1 {
    font-size: 20px;
  }

  .news-meta {
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
  }

  .news-content img {
    width: 100%;
    max-height: 250px;
  }

  .news-sidebar .news-item {
    gap: 8px;
  }

  .news-sidebar .news-item img {
    width: 60px;
    height: 45px;
  }

  .sidebar-title-news-all h4,
  .sidebar-title-recently h4 {
    font-size: 16px;
  }
}
