/* ========================================
   FONT IMPORT & GLOBAL SETTINGS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500;600;700;800;900&display=swap');

html, body {
  font-family: 'Josefin Sans', sans-serif !important;
   background-color: #009a44;
}

body {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
 
}

.app-content, .content-wrapper {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.row {
  margin-bottom: 0 !important;
}

/* Apply Josefin Sans broadly */
body,
h1, h2, h3, h4, h5, h6,
p, a, span, small, strong, em,
label,
button, .btn,
input, select, textarea, .form-control,
.card, .list-group-item,
.table,
.modal, .dropdown-menu,
.nav, .navbar, .breadcrumb {
  font-family: 'Josefin Sans', sans-serif !important;
}

/* Preserve icon fonts (Font Awesome) */
.fas, .far, .fal {
  font-family: 'FontAwesome', 'Font Awesome 5 Free' !important;
}
.fab {
  font-family: 'FontAwesome', 'Font Awesome 5 Brands' !important;
}
i.fas, i.far, i.fal {
  font-family: 'FontAwesome', 'Font Awesome 5 Free' !important;
}
i.fab {
  font-family: 'FontAwesome', 'Font Awesome 5 Brands' !important;
}

/* ========================================
   BANNER SLIDER SECTION
   ======================================== */
:root { 
  --banner-height: 52vh; 
}

.banner-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--banner-height);
  min-height: 240px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Banner Slides */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #009a44;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.slide:nth-child(1)::before { background-image: url("/images/banner/banner1.png"); }
.slide:nth-child(2)::before { background-image: url("/images/banner/banner2.png"); }
.slide:nth-child(3)::before { background-image: url("/images/banner/banner3.png"); }
.slide:nth-child(4)::before { background-image: url("/images/banner/banner4.png"); }
.slide:nth-child(5)::before { background-image: url("/images/banner/banner5.png"); }
.slide:nth-child(6)::before { background-image: url("/images/banner/banner6.png"); }
.slide:nth-child(7)::before { background-image: url("/images/banner/banner7.png"); }

.slide.active {
  opacity: 1;
}

/* Banner Content */
.slide-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-text {
  background: transparent;
  border-radius: 15px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-text-content {
  margin-top: 70px;
  text-align: left;
  max-width: 650px;
  width: 100%;
}

/* Banner Specific Layouts */
.slide:nth-child(1) .slide-text,
.slide:nth-child(2) .slide-text,
.slide:nth-child(3) .slide-text,
.slide:nth-child(4) .slide-text {
  justify-content: flex-start;
}

.slide:nth-child(1) .slide-text-content,
.slide:nth-child(2) .slide-text-content,
.slide:nth-child(3) .slide-text-content,
.slide:nth-child(4) .slide-text-content {
  max-width: 600px;
}

.slide:nth-child(4) .slide-content {
  text-align: left;
}

.slide:nth-child(5) .slide-text {
  text-align: center;
  max-width: 500px;
}

.slide:nth-child(5) .slide-text-content {
  text-align: left !important;
  align-items: center;
  justify-content: center;
}

.slide:nth-child(6) .slide-content {
  text-align: center;
  align-items: flex-start !important;
}

.slide:nth-child(6) .slide-text {
  text-align: center;
  max-width: 1200px;
  padding-bottom: 30px;
}

.slide:nth-child(6) .slide-text-content {
  max-width: 1000px !important; 
  text-align: center;
  justify-content: flex-start;
  align-items: center;
}

.slide:nth-child(7) .slide-content {
  justify-content: flex-end !important;
}

.slide:nth-child(7) .slide-text {
  justify-content: flex-end !important;
  margin-left: 350px;
}

.slide:nth-child(7) .slide-text-content {
  max-width: 500px;
}

/* Banner Typography */
.company-name {
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-title {
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  letter-spacing: 2px;
}

.service-subtitle {
  font-weight: 900;
  margin-bottom: 30px;
  color: #fadf00;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  letter-spacing: 3px;
}

/* Banner Text: Bold */
.banner-slider p,
.banner-slider .contact-info p,
.banner-slider .btn-contact,
.banner-slider .slide-actions a,
.banner-slider .company-name {
  font-weight: 700 !important;
}

/* Banner Contact Button */
.btn-contact {
  background-color: #fff;
  color: #009a44;
  padding: 15px 40px;
  font-size: 1.2em;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-contact:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #009a44;
  text-decoration: none;
}

/* Banner Contact Info */
.contact-info p {
  font-size: 1.1em;
  margin: 8px 0;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.contact-info i {
  margin-right: 10px;
  color: #fff;
}

.contact-info .fa-phone,
.contact-info .fa-envelope {
  color: #ffffff;
}

/* Banner Navigation Dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
  background-color: #ffffff;
}

/* Banner Navigation Arrows */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 2em;
  font-weight: bold;
  padding: 20px;
  cursor: pointer;
  z-index: 3;
  background-color: transparent;
  border-radius: 0;
  transition: all 0.3s ease;
  text-decoration: none;
}

.prev {
  left: 30px;
}

.next {
  right: 30px;
}

.prev:hover,
.next:hover {
  background-color: transparent;
  color: #ffffff;
  text-decoration: none;
}

/* ========================================
   INTRO SECTION (GIỚI THIỆU)
   ======================================== */
.intro-bg {
  margin-top: 0;
  padding-top: var(--banner-height);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: url('/images/section_about_bg_edit.png') center center / cover no-repeat;
  overflow-x: hidden;
}

.intro-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
}

.intro-section {
  padding: 40px 10px 10px 10px;
  background: transparent;
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
 
}

.intro-section::before,
.intro-section::after {
  content: none !important;
  background: none !important;
}

.intro-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.intro-title {
  font-weight: 800;
  margin: 0 0 10px 0;
  font-size: clamp(20px, 2vw, 30px);
}

.intro-underline {
  position: relative;
  height: 10px;
  margin-bottom: 20px;
}

.intro-underline .line-gray {
  height: 2px;
  background: #d9d9d9;
  width: 100%;
}

.intro-underline .line-green {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  background: #009a44;
  color: transparent;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
  width: fit-content;
  overflow: hidden;
}

.intro-heading {
  font-weight: 900;
  margin: 10px 0 20px 0;
  text-transform: uppercase;
  font-size: clamp(20px, 2.6vw, 30px);
}

.intro-grid {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 24px;
  align-items: center;
}

.intro-section p {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.8;
}

.intro-slogan {
  margin-top: 10px;
  font-size: clamp(19px, 1.5vw, 22px);
  font-style: italic;
}

.intro-pipe {
  color: #009a44;
  font-weight: 900;
  font-style: normal;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========================================
   PARTNER BANNER SECTION
   ======================================== */
.partner-banner-section {
  background-color: transparent;
  overflow: hidden;
  position: relative;
  z-index: 10;
  padding-bottom: 100px;
}

.partner-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.partner-slider {
  position: relative;
  overflow: hidden;
}

.partner-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  gap: 0;
}

.partner-item {
  flex: 0 0 25%; /* 4 items per view on desktop */
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-item img {
  width: 290px;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.partner-item img:hover {
  transform: scale(1.05);
}

/* Partner Navigation Arrows */
.partner-prev,
.partner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #009a43a6;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 15;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}

.partner-banner-section:hover .partner-prev,
.partner-banner-section:hover .partner-next {
  opacity: 1;
  visibility: visible;
}

.partner-prev {
  left: 10px;
}

.partner-next {
  right: 10px;
}

.partner-banner-section:hover .partner-prev:hover,
.partner-banner-section:hover .partner-next:hover {
  background-color: #007a35;
  transform: translateY(-50%) scale(1.1);
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */
.dashboard-header h2 {
  font-weight: 700;
  margin-bottom: 10px;
}

.card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
  font-weight: 700;
  margin-bottom: 5px;
}

.btn-block {
  width: 100%;
}

.list-group-item {
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.list-group-item:hover {
  border-left-color: #009a44;
  background-color: #f8f9fa;
}

/* ========================================
   SERVICES SECTION (DỊCH VỤ)
   ======================================== */
.services-bg {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: url('/images/bg_dichvu.jpg') center center / cover no-repeat;
  overflow-x: hidden;
  padding: 80px 0;
}

.services-section {
  position: relative;
  z-index: 1;
}

.services-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

.services-title {
  font-weight: 800;
  margin: 0 0 10px 0;
  font-size: clamp(20px, 2vw, 30px);
  color: #333;
}

.services-underline {
  position: relative;
  height: 10px;
  margin-bottom: 40px;
}

.services-underline .line-gray {
  height: 2px;
  background: #d9d9d9;
  width: 100%;
}

.services-underline .line-green {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  background: #009a44;
  color: transparent;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
  width: fit-content;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  background: #fff;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.service-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  background-color: #009a44;
  padding: 20px;
  text-align: center;
}

.service-content h3 {
  color: #ffffff;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Services Grid */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .services-bg {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .services-bg {
    padding: 40px 0;
  }
  
  .service-image {
    height: 200px;
  }
}

/* ========================================
   FOOTER SECTION
   ======================================== */
.footer-bg {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 0;
  padding-bottom: 0;
  background-color: #009a44;
  background-image: linear-gradient(rgba(0, 154, 68, 0.85), rgba(0, 154, 68, 0.85)), url('/images/footer.jpg');
  background-size: cover;
  background-position: center;
  overflow-x: hidden;
  color: #ffffff;
}

.footer-section {
  position: relative;
  padding: 60px 0 60px 0;
  z-index: 1;
}

.footer-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-col h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffffff;
  display: block;
}

.footer-contact p {
  font-size: clamp(15px, 1.2vw, 18px);
  margin: 15px 0;
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  line-height: 1.6;
}

.footer-contact i {
  margin-right: 12px;
  margin-top: 3px;
  font-size: 18px;
  color: #ffffff;
  min-width: 20px;
}

.footer-address {
  font-weight: 500;
}

.footer-phone,
.footer-email {
  font-weight: 400;
}

.footer-email a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-email a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-map {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

.footer-bottom p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(13px, 1vw, 15px);
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-map {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .footer-section {
    padding: 40px 0 30px 0;
  }
  
  .footer-map {
    height: 200px;
  }
  
  .footer-bottom {
    margin-top: 30px;
  }
}

/* ========================================
   ANIMATION EFFECTS (PowerPoint Style)
   ======================================== */

/* Keyframes for animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation classes */
.animate-element {
  opacity: 0;
}

.animate-element.animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specific animations */
.fade-in-up.animated {
  animation-name: fadeInUp;
}

.fade-in-left.animated {
  animation-name: fadeInLeft;
}

.fade-in-right.animated {
  animation-name: fadeInRight;
}

.fade-in.animated {
  animation-name: fadeIn;
}

.zoom-in.animated {
  animation-name: zoomIn;
}

/* Delay classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Fluid Typography for Banner */
.company-name {
  font-size: clamp(12px, 1.2vw, 18px);
}

.service-title {
  font-size: clamp(18px, 2vw, 28px);
}

.service-subtitle {
  font-size: clamp(22px, 3.2vw, 40px);
}

.btn-contact {
  font-size: clamp(12px, 1vw, 16px);
  padding: clamp(8px, 1vw, 12px) clamp(16px, 2.5vw, 32px);
}

.slide-text {
  padding: clamp(20px, 3vw, 40px);
}

.banner-slider h1 {
  font-size: clamp(22px, 3.2vw, 36px);
}

/* After Banner Spacing */
.after-banner {
  margin-top: 520px;
}

/* Large Screens (1200px and below) */
@media (max-width: 1200px) {
  .after-banner { 
    margin-top: 480px; 
  }
  
  .slide:nth-child(6) .slide-content { 
    width: 90%; 
  }
  
  .partner-prev {
    left: 5px;
  }
  
  .partner-next {
    right: 5px;
  }
}

/* Tablet (992px and below) */
@media (max-width: 992px) {
  .after-banner { 
    margin-top: 440px; 
  }
  
  /* Intro Grid */
  .intro-grid { 
    grid-template-columns: 1fr; 
  }
  
  /* Banner Slides 6 & 7 */
  .slide:nth-child(6) .slide-content {
    width: 100%;
    align-items: center !important;
  }
  
  .slide:nth-child(6) .slide-text,
  .slide:nth-child(6) .slide-text-content {
    max-width: 90%;
    text-align: center;
  }

  .slide:nth-child(7) .slide-content {
    justify-content: center !important;
  }
  
  .slide:nth-child(7) .slide-text {
    margin-left: 0;
    justify-content: center !important;
  }
  
  .slide:nth-child(7) .slide-text-content {
    max-width: 90%;
    text-align: center;
  }
  
  /* Partner Banner */
  .partner-item {
    flex: 0 0 33.333%; /* 3 items per view on tablet */
    padding: 0 10px;
  }
  
  .partner-item img {
    width: 260px;
    height: 150px;
    object-fit: cover;
  }
  
  .partner-prev,
  .partner-next {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

/* Tablet & Mobile Banner (768px and below) */
@media (max-width: 768px) {
  .after-banner { 
    margin-top: 70vh; 
  }
  
  .banner-slider {
    height: 500px;
    min-height: 500px;
  }

  .slide-text {
    padding: 20px;
  }

  .company-name {
    font-size: 1em;
  }

  .service-title {
    font-size: 2.5em;
  }

  .service-subtitle {
    font-size: 3em;
  }

  .btn-contact {
    padding: 12px 30px;
    font-size: 1em;
  }

  .contact-info p {
    font-size: 0.9em;
  }

  .prev,
  .next {
    font-size: 1.5em;
    padding: 15px;
  }

  .prev {
    left: 15px;
  }

  .next {
    right: 15px;
  }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
  .after-banner { 
    margin-top: 60vh; 
  }
  
  .banner-slider {
    height: 500px;
    min-height: 500px;
  }
  
  /* Navigation Dots */
  .dot {
    height: 8px;
    width: 8px;
    margin: 0 5px;
  }
  
  /* Banner Slides 6 & 7 */
  .slide:nth-child(6) .slide-text,
  .slide:nth-child(6) .slide-text-content,
  .slide:nth-child(7) .slide-text,
  .slide:nth-child(7) .slide-text-content {
    max-width: 95%;
  }
  
  /* Partner Banner */
  .partner-banner-section {
    padding: 40px 0;
  }
  
  .partner-container {
    padding: 0 15px;
  }
  
  .partner-item {
    flex: 0 0 50%; /* 2 items per view on mobile */
    padding: 0 5px;
  }
  
  .partner-item img {
    width: 220px;
    height: 130px;
    object-fit: cover;
  }
  
  .partner-prev,
  .partner-next {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }
  
  .partner-prev {
    left: 5px;
  }
  
  .partner-next {
    right: 5px;
  }
}
