/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Thai:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Serif Thai', serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  color: #1a365d;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: #1a365d;
}

section {
  padding: 20px 0;
}

/* Header and Navigation */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a365d;
}

.menu {
  display: flex;
  list-style: none;
}

.menu li {
  margin-left: 30px;
}

.menu a {
  font-weight: 500;
  transition: color 0.3s;
}

.menu a:hover {
  color: #e67e22;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #1a365d;
  margin: 3px 0;
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: brightness(0.7); */
}

.slide-text {
  position: absolute;
  bottom: 3%;
  left: 3%;
  /* left: 0%; */
  /* transform: translate(-50%, -50%); */
  /* text-align: center; */
  color: white;
  width: 90%;
  max-width: 800px;
  z-index: 2;
}

.slide-text h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-text p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #0056b3;
}

/* Swiper Navigation Styles */
.swiper-button-next,
.swiper-button-prev {
  color: white !important;
  background: rgba(0, 0, 0, 0.3);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.5);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.5rem !important;
}

/* Swiper Pagination Styles */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: white;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #007bff;
}

/* About Section */
.about {
  background-color: white;
}

/* Services Section */
.services {
  background-color: #f8f9fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: white;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: #e8f0fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-icon i {
  font-size: 30px;
  color: #1a365d;
}

.service-image {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image {
  transform: scale(1.2);
}

.service-message {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(26, 54, 93, 0.9);
  color: white;
  font-size: 0.9rem;
  transition: bottom 0.3s ease;
  opacity: 0;
}

.service-card:hover .service-message {
  bottom: 0;
  opacity: 1;
}

/* Testimonial Section */
.testimonial {
  background-color: #1a365d;
  color: white;
  padding: 40px 0;
}

.testimonial-text {
  font-size: 1.2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-style: italic;
}

.testimonial-text i {
  color: #e67e22;
  margin: 0 10px;
}

/* Courses Section */
.courses {
  background-color: white;
}

.accordion {
  margin-top: 30px;
}

.accordion-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  background-color: #f8f9fa;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.accordion-header:hover {
  background-color: #e8f0fe;
}

.accordion-header.active {
  background-color: #e8f0fe;
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: white;
}

/* Footer */
footer {
  background-color: #1a365d;
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #e8f0fe;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #e67e22;
}

.copyright {
  margin-top: 40px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s;
    z-index: 99;
  }

  .menu.active {
    transform: translateY(0);
  }

  .menu li {
    margin: 15px 0;
  }

  .slide-text h2 {
    font-size: 2.5rem;
  }

  .slide-text p {
    font-size: 1.2rem;
  }

  .cta-button {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .slide-text h2 {
    font-size: 2rem;
  }

  .slide-text p {
    font-size: 1rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 1.2rem !important;
  }
}

.about-us-card {
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 10px;
}

.our-services-card {
  padding: 10px;
  background-color: #fff;
  border-radius: 10px;
}

/* Accordion Styles */
.accordion {
  max-width: 1200px;
  margin: 0 auto;
}

.accordion-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.accordion-header {
  padding: 1.5rem;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background: #e9ecef;
}

.accordion-header span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
}

.accordion-header i {
  color: #6c757d;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
  max-height: 2000px;
}

/* Content Wrapper Styles */
.content-wrapper {
  padding: 2rem;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #2c3e50;
  margin-bottom: 2rem;
}

.info-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.info-section ul {
  list-style: none;
  padding-left: 0;
}

.info-section ul li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.info-section ul li:before {
  content: "•";
  color: #007bff;
  position: absolute;
  left: 0;
}

/* Step Styles */
.step {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.step h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Checklist Styles */
.checklist-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.checklist li i {
  color: #28a745;
  position: absolute;
  left: 0;
}

/* Update Date Styles */
.update-date {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Link Text Styles */
.link-text {
  font-size: 1.1rem;
  color: #007bff;
  margin-top: 1rem;
}

.link-text a {
  color: #007bff;
  text-decoration: none;
}

.link-text a:hover {
  text-decoration: underline;
}

/* Notes Styles */
.notes {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fff3cd;
  border-radius: 8px;
}

.notes p {
  color: #856404;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.notes p:last-child {
  margin-bottom: 0;
}

/* Assessment Levels Styles */
.assessment-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.level {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
}

.level h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.level ul {
  list-style: none;
  padding-left: 0;
}

.level ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.level ul li:before {
  content: "•";
  color: #007bff;
  position: absolute;
  left: 0;
}

/* Test List Styles */
.test-list {
  list-style: none;
  padding-left: 0;
}

.test-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.test-list li i {
  color: #28a745;
  position: absolute;
  left: 0;
}

/* Threshold List Styles */
.threshold-list {
  list-style: none;
  padding-left: 0;
}

.threshold-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.threshold-list li i {
  color: #007bff;
  position: absolute;
  left: 0;
}

/* Visa List Styles */
.visa-list {
  list-style: none;
  padding-left: 0;
}

.visa-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.visa-list li:before {
  content: "•";
  color: #007bff;
  position: absolute;
  left: 0;
}