/* Basic Reset & Body Styles */
body {
  margin: 0;
  font-family: "Inter", Arial, system-ui; /* Using Inter for a modern look */
  color: #333;
  line-height: 1.6;
  background-color: #f8f8f8; /* Light background to match */
  overflow-x: hidden; /* Prevent horizontal scroll on smaller screens */
}

.col-md-custom {
  width:49%
}



.container {
  max-width: 1200px; /* Adjust as needed */
  margin: 0 auto;
  padding: 0 20px;
  display: flex; For alignment in header/nav
  align-items: center; /* For vertical alignment */
}

a {
  text-decoration: none !important;
  color: inherit; /* Inherit color from parent */
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Reusable section title */
.section-title {
  font-size: 2.5em; /* Kích thước tiêu đề */
  font-weight: 800; /* Rất đậm */
  color: #dc3545; /* Màu đỏ */
  margin-bottom: 40px; /* Khoảng cách dưới tiêu đề */
  text-transform: uppercase; /* Chữ hoa */
  line-height: 1.2;
}
.text-center {
  text-align: center;
}
.text-white {
  color: #fff !important;
}

/* Top Bar Styles */
.top-bar {
  background-color: #dc3545; /* Red color */
  color: #fff;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar .container {
  justify-content: space-between; /* Distribute items */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.top-bar .contact-info span {
  margin-right: 15px;
}

.top-bar .contact-info a {
  margin-right: 15px;
  color: #fff;
  transition: color 0.3s ease;
}

.top-bar .contact-info a:hover {
  color: #eee;
}

.top-bar .contact-info i {
  margin-right: 5px;
}

.top-bar .social-lang a {
  color: #fff;
  margin-left: 15px;
  transition: color 0.3s ease;
}

.top-bar .social-lang a:hover {
  color: #eee;
}

/* Main Navigation Styles */
.main-nav {
  background-color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-nav .container {
  justify-content: space-between;
}

.main-nav .logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #333; /* Dark color for text */
}

.main-nav .logo img {
  height: 60px; /* Adjust logo size */
  margin-right: 20px;
}

.main-nav .nav-links {
  display: flex;
  align-items: center;
}

.main-nav .nav-links li {
  margin-left: 30px; /* Spacing between links */
  position: relative; /* For dropdown */
}

.main-nav .nav-links a {
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-nav .nav-links a:hover {
  color: #dc3545; /* Red hover effect */
}

.main-nav .nav-links .dropdown .fa-chevron-down {
  font-size: 10px; /* Smaller arrow */
  margin-left: 5px;
}

/* Dropdown Menu */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 10; /* Higher z-index to ensure it's on top */
  top: 100%; /* Position below the parent link */
  left: 0;
  padding: 10px 0;
  border-radius: 5px;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  white-space: nowrap; /* Prevent wrapping */
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* HERO SECTION WITH BOOTSTRAP CAROUSEL STYLES */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 550px;
  display: flex;
  align-items: center;
  padding-top: 50px; /* Add some padding to push content down from header */
  padding-bottom: 50px;
}

#heroCarousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-carousel-img {
  height: 100%;
  object-fit: cover;
}

.hero-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Place above carousel, but below flag background */
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2; /* Ensure content is above background effects */
}

.hero-content {
  flex: 1;
  max-width: 55%;
  padding: 40px 0;
  position: relative;
  z-index: 3;
  color: #333; /* Text color for readability over backgrounds */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.hero-content h1 {
  font-size: 3.8em;
  font-weight: 800;
  color: #dc3545;
  line-height: 1.1;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  color: #333;
  font-size: 1.1em;
  font-weight: 500;
}

.hero-benefits li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.hero-benefits i {
  color: #dc3545;
  margin-right: 10px;
  font-size: 1em;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  background-color: #dc3545;
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-register i {
  margin-right: 10px;
  transition: transform 0.2s ease;
}

.btn-register:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-register:hover i {
  transform: translateX(3px);
}

.hero-image-placeholder {
  width: 65%;
  height: 100%;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background-image: url("[https://placehold.co/800x600/EEEEEE/333333?text=German+Flag+Background](https://placehold.co/800x600/EEEEEE/333333?text=German+Flag+Background)"); /* Placeholder for German Flag */
  background-size: cover;
  background-position: top left;
  opacity: 0.15;
  z-index: 0;
}

/* ABOUT HIKARI GROUP SECTION STYLES */
.about-section {
  padding: 80px 0;
  background-color: #fff;
}

.about-section .container {
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-image-wrapper {
  position:relative;
  flex: 0 0 45%;
  max-width: 45%;
  padding-right: 30px;
}

.about-image-wrapper:before {
  content: "";
  position: absolute;
  /* background: #cececf; */
  top: 74px;
  left: 44px;
  width: 100%;
  height: 100%;
  background-image: url("../images/tiec.jpg");
  background-size: cover;
  background-position: center;
  /* background-color: rgba(0, 0, 0, 0.5); */
  border-radius: 8px; /* Bo góc nhẹ cho ảnh */
  /* border-right: 23px solid #cececf; 
  border-bottom: 23px solid #cececf; */
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  display: block; /* Loại bỏ khoảng trắng thừa dưới ảnh */
  border-radius: 8px;
}

.achievements-section {
  background:#fff;
}

.about-image-wrapper img:hover {
  transform: translateY(-5px);
  box-shadow: 20px 20px 25px rgba(0, 0, 0, 0.4);
}

.about-content {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 20px;
}

.about-content p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #555;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  background-color: #dc3545;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
}

.btn-read-more i {
  margin-left: 10px;
  transition: transform 0.2s ease;
}

.btn-read-more:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-read-more:hover i {
  transform: translateX(3px);
}

/* SERVICES SECTION */
.services-section {
  padding: 80px 0;
  background-color: #f0f2f5; /* Light grey background */
}
.services-section .row {
  justify-content: center; /* Center cards if they don't fill a row */
}
.service-item {
  text-align: center;
  padding: 30px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 15px; /* Spacing between cards */
  flex: 1; /* Allow flex growth */
  min-width: 280px; /* Minimum width for cards before wrapping */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.service-icon {
  font-size: 3em;
  color: #dc3545;
  margin-bottom: 20px;
}
.service-item h3 {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}
.service-item p {
  font-size: 1em;
  color: #666;
  line-height: 1.6;
}

/* COMMITMENT SECTION */
.commitment-section {
  padding: 80px 0;
  background-color: #dc3545; /* Red background */
  color: #fff;
}
.commitment-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding: 0 15px;
}
.commitment-item i {
  font-size: 2em;
  margin-right: 20px;
  color: #fff; /* White icon */
  flex-shrink: 0; /* Prevent icon from shrinking */
}
.commitment-item p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 0;
}

/* PROGRAMS SECTION */
.programs-section {
  padding: 80px 0;
  background-color: #fff;
}
.program-type {
  margin-bottom: 60px;
}
.program-type:last-child {
  margin-bottom: 0;
}
.program-type h3 {
  font-size: 2em;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}
.program-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
.program-card h4 {
  font-size: 1.3em;
  font-weight: bold;
  color: #dc3545;
  margin-bottom: 15px;
}
.program-card ul {
  list-style: none;
  padding: 0;
}
.program-card ul li {
  font-size: 1em;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.5;
}
.program-card ul li strong {
  color: #333;
}

.process-steps {
  margin-top: 30px;
  justify-content: center;
}
.process-step {
  text-align: center;
  padding: 25px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin: 15px;
  flex: 1;
  min-width: 280px;
}
.process-step .step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #dc3545;
  background-color: #fbe9ea; /* Light red background */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}
.process-step h5 {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.95em;
  color: #666;
  line-height: 1.6;
}

/* CONTACT SECTION */
.contact-section {
  padding: 80px 0;
  background-color: #f0f2f5;
}
.contact-info-block,
.contact-form-block {
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}
.contact-info-block h3,
.contact-form-block h3 {
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
  margin-bottom: 25px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}
.contact-info-block p {
  font-size: 1.05em;
  color: #555;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}
.contact-info-block p i {
  margin-right: 10px;
  color: #dc3545;
  font-size: 1.2em;
  margin-top: 3px;
}
.social-contact a {
  font-size: 1.8em;
  color: #dc3545;
  margin-right: 20px;
  transition: color 0.3s ease;
}
.social-contact a:hover {
  color: #c82333;
}
.form-control {
  border-radius: 5px;
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ddd;
}
.form-control:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
.btn-primary-custom {
  background-color: #dc3545;
  color: #fff;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-primary-custom:hover {
  background-color: #c82333;
  transform: translateY(-2px);
}
.map-container {
  border-radius: 8px;
  overflow: hidden; /* Ensure map corners are rounded */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.map-container iframe {
  border-radius: 8px;
}

/* FOOTER SECTION */
.footer-section {
  background-color: #222; /* Dark background */
  color: #f0f2f5; /* Light text */
  padding: 60px 0 30px 0;
  font-size: 0.95em;
}
.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.footer-logo img {
  height: 40px;
  margin-right: 10px;
}
.footer-logo span {
  font-size: 1.8em;
  font-weight: bold;
  color: #fff;
}
.footer-col h4 {
  font-size: 1.4em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 25px;
  position: relative;
}
.footer-col h4::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 3px;
  width: 50px;
  background-color: #dc3545;
}
.footer-col ul {
  padding: 0;
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: #f0f2f5;
  transition: color 0.3s ease;
}
.footer-col ul li a:hover {
  color: #dc3545;
}
.footer-col p {
  color: #ccc;
  margin-bottom: 10px;
}
.footer-col p i {
  margin-right: 8px;
  color: #dc3545;
}
.social-footer {
  margin-top: 20px;
}
.social-footer a {
  font-size: 1.5em;
  color: #f0f2f5;
  margin-right: 15px;
  transition: color 0.3s ease;
}
.social-footer a:hover {
  color: #dc3545;
}
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
}
.footer-bottom p {
  color: #aaa;
  margin-bottom: 0;
}

/* Floating Buttons (unchanged) */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-button {
  background-color: #dc3545;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.floating-button:hover {
  background-color: #c82333;
  transform: translateY(-3px); /* Slightly more lift */
}


.doi-tac {
  justify-content:center;
}

.doi-tac img{
  object-fit:contain;
  height:250px;
  width:100%;
}

.doi-tac p {
  text-align:center;
  margin-top:0.5rem;
  font-weight:bold;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .main-nav .nav-links li {
    margin-left: 15px;
  }
  .hero-content h1 {
    font-size: 3em;
  }
  .hero-content {
    max-width: 65%;
  }
  .hero-image-placeholder {
    width: 35%;
  }
  .about-image-wrapper {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 20px;
  }
  .about-content {
    flex: 0 0 45%;
    max-width: 45%;
    padding-left: 15px;
  }
  .section-title {
    font-size: 2.2em;
  }
  .service-item,
  .program-card,
  .process-step {
    margin: 10px; /* Adjust margin for smaller screens */
  }
  .commitment-item {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .top-bar .container,
  .main-nav .container {
    flex-direction: column;
    text-align: center;
  }

  .top-bar .contact-info,
  .top-bar .social-lang {
    margin-bottom: 10px;
  }
  .top-bar .contact-info a {
    margin-right: 10px;
  }

  .main-nav .logo {
    margin-bottom: 15px;
  }

  .main-nav .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .main-nav .nav-links li {
    margin-left: 0;
  }
  .main-nav .nav-links .dropdown-content {
    position: static; /* Make dropdown flow naturally */
    box-shadow: none;
    background-color: #fefefe;
    width: 100%;
    padding: 5px 0;
  }

  .hero-section {
    min-height: 500px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero-content-overlay {
    position: relative;
    height: auto;
    padding-bottom: 40px;
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 30px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
  }
  .hero-benefits {
    text-align: left;
    margin: 0 auto 25px auto;
    max-width: 350px; /* Constrain width for better readability */
  }
  .hero-image-placeholder {
    display: none;
  }
  .hero-section::before {
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-position: center;
  }

  .about-section .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-image-wrapper,
  .about-content {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }
  .about-image-wrapper {
    margin-bottom: 30px;
  }
  .about-image-wrapper img {
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.2); /* Adjust shadow for mobile */
  }
  .about-content {
    text-align: center;
  }
  .section-title {
    font-size: 2em;
    margin-bottom: 25px;
  }
  .about-content p {
    font-size: 1em;
    margin-bottom: 15px;
  }
  .btn-read-more {
    margin-top: 15px;
  }

  .service-item,
  .program-card,
  .process-step {
    flex: 0 0 90%; /* Almost full width for better stacking */
    max-width: 90%;
    margin: 15px auto; /* Center items */
  }
  .commitment-item {
    flex-direction: column; /* Stack icon and text */
    text-align: center;
    align-items: center;
  }
  .commitment-item i {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .commitment-item p {
    font-size: 1em;
  }
  .program-type h3 {
    font-size: 1.8em;
  }
  .contact-info-block,
  .contact-form-block {
    padding: 25px;
  }
  .contact-info-block h3,
  .contact-form-block h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  .contact-info-block p {
    font-size: 1em;
  }

  .footer-col {
    margin-bottom: 30px;
    text-align: center;
  }
  .footer-col h4::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .social-footer {
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2em;
  }
  .btn-register {
    font-size: 1em;
    padding: 12px 25px;
  }
  .floating-buttons {
    right: 10px;
    bottom: 10px;
  }
  .floating-button {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  .section-title {
    font-size: 1.8em;
  }
  .about-content p {
    font-size: 0.95em;
  }
  .btn-read-more {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .service-item,
  .program-card,
  .process-step {
    padding: 20px;
  }
  .program-type h3 {
    font-size: 1.6em;
  }
  .program-card h4 {
    font-size: 1.2em;
  }
  .process-step .step-number {
    width: 50px;
    height: 50px;
    font-size: 2em;
  }
  .contact-info-block p {
    font-size: 0.95em;
  }
  .social-contact a {
    font-size: 1.5em;
  }
  .btn-primary-custom {
    font-size: 1em;
    padding: 10px 20px;
  }
}

/* back to top */
/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 154px; /* Adjust as needed to not overlap with existing floating buttons */
  right: 20px;
  background-color: #dc3545; /* Or your preferred brand color */
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: background-color 0.3s, transform 0.3s, opacity 0.5s ease-in-out;
  opacity: 0; /* Hidden by default */
  visibility: hidden; /* Hidden by default */
}

.back-to-top:hover {
  background-color: #c82333; /* Darker shade on hover */
  transform: translateY(-3px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}