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

/* Body styles */
body {
  font-family: 'Chakra Petch', sans-serif;
  color: #000;
  margin: 0;
  background-color: #E3F2FD; /* Light blue background */
}

/* Navbar styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1E78AE; /* Navbar blue color */
  padding: 15px;
  color: white;
}
.nav-links {
  display: flex; /* ใช้ Flexbox */
  justify-content: center; /* จัดให้กลาง */
  align-items: center; /* จัดให้กลางในแนวตั้ง */
  list-style-type: none; /* ลบจุดจากลิสต์ */
  margin: 0; /* ลบ margin */
  padding: 0; /* ลบ padding */
}

.nav-links li {
  margin: 0 15px; /* ระยะห่างระหว่างรายการ */
}

.nav-links a {
  text-decoration: none; /* ลบขีดเส้นใต้ */
  color: #fff; /* เปลี่ยนสีลิงก์ */
  font-weight: 500; /* เปลี่ยนความหนา */
}


.auth-buttons button {
  background-color: #0277BD; /* Button blue color */
  color: white;
  border: none;
  margin-left: 5px;
  cursor: pointer;
}

/* Hero section styles */
.hero {
  background: #0288D1 url('https://images.pexels.com/photos/3729557/pexels-photo-3729557.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero-content {
  
  text-align: center;
  color: white;
  background-image: url('img/bg1.jpg'); /* เปลี่ยนเส้นทางไปยังรูปภาพของคุณ */
  background-size: cover; /* ทำให้ภาพครอบคลุมพื้นที่ */
  background-position: center; /* จัดตำแหน่งภาพให้ตรงกลาง */
  padding: 20px;
  border-radius: 10px;
  border: 2px solid white;
  z-index: 10;
}

/* CTA button styles */
.cta-button {
  background-color: #007BFF; /* Call to action button color */
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin: 10px;
  border-radius: 5px;
}

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

/* Features section styles */
.features {
  display: flex;
  justify-content: space-around;
  padding: 40px 20px;
}

.feature-card {
  background-color: #E3F2FD; /* Light blue for feature cards */
  border: 1px solid #0288D1; /* Border color for feature cards */
  padding: 20px;
  border-radius: 5px;
  width: 200px;
  text-align: center;
}

/* News section styles */
.news-carousel {
  background-color: #0277BD; /* News section background color */
  color: white;
  text-align: center;
  padding: 20px;
}

.carousel {
  display: flex;
  justify-content: space-around;
}

.news-item {
  background-color: #01579B; /* News item background color */
  padding: 10px;
  border-radius: 5px;
  width: 150px;
  text-align: center;
}

/* Testimonials section styles */
.testimonials {
  background-color: #0288D1; /* Testimonials section background color */
  color: white;
  text-align: center;
  padding: 20px;
}

/* Footer styles */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-logo img {
  width: 30px;
  height: auto;
  margin-bottom: 10px;
}

footer p {
  margin: 10px 0;
}

footer a {
  color: #007BFF; /* Link color in footer */
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Logo styles */
.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
}

.logo-text {
  font-family: 'Pattaya', sans-serif;
  color: white;
  font-size: 40px;
  margin-left: 10px;
}
.logo-text1 {
  font-family: 'Pattaya', sans-serif;
  color: white;
  font-size: 30px;
  margin-left: 10px;
}
/* Math login button styles */
.math-login-button {
  font-family: 'Pattaya', sans-serif;
  font-size: 18px;
  color: #FFFFFF;
  background: linear-gradient(145deg, #004d99, #3399ff); /* Gradient blue background */
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0, 77, 153, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.math-login-button:before {
  content: "Σ ∫ ∆ π";
  position: absolute;
  top: -10px;
  left: -10px;
  color: rgba(255, 255, 255, 0.1);
  font-size: 40px;
  font-weight: bold;
  transform: rotate(-30deg);
}

.math-login-button:hover {
  transform: scale(1.05);
  box-shadow: 0px 6px 15px rgba(0, 77, 153, 0.7);
}

.math-login-button:active {
  transform: scale(0.98);
  box-shadow: 0px 4px 8px rgba(0, 77, 153, 0.4);
}

/* Service and schedule sections */
.service-section,
.schedule-section {
  margin: 20px 0;
}

.map-container {
  text-align: center;
  margin: 20px auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.schedule-table th,
.schedule-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

.schedule-table th {
  background-color: #004d99; /* Header background color */
  color: #fff;
}

.schedule-table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Services styles */
.services {
  text-align: center;
  margin: 40px 0;
}

.service-content {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  margin-top: 20px;
}

.map-section,
.schedule-section {
  width: 45%;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

/* Hero carousel styles */
.hero-carousel {
  display: flex; /* ใช้ Flexbox */
  justify-content: center; /* จัดให้กลาง */
  align-items: center; /* จัดให้กลางในแนวตั้ง */
  position: relative; /* เพื่อให้ใช้ position ของลูกได้ */
}

.hero-content {
  text-align: center; /* จัดให้ข้อความอยู่กลาง */
  color: white; /* เปลี่ยนสีข้อความ */
  z-index: 10; /* ให้เนื้อหาขึ้นอยู่ด้านหน้า */
  
}

.cta-button {
  margin-top: 15px; /* เพิ่มระยะห่างด้านบนปุ่ม */
}

/* เพิ่มการปรับให้เหมาะกับหน้าจอเล็ก */
@media (max-width: 1024px) {
  .hero-content h1 {
      font-size: 1.5rem; /* ปรับขนาดตัวอักษรสำหรับหน้าจอเล็ก */
  }
  
  .hero-content p {
      font-size: 1rem; /* ปรับขนาดข้อความสำหรับหน้าจอเล็ก */
  }

  .cta-button {
      padding: 10px 20px; /* ปรับขนาดปุ่ม */
  }
}


.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  margin-top: 10px;
}

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

.carousel-slide img {
  width: 100%;
  height: auto;
}

/* Responsive styles */
@media (max-width: 1024px) {
  body {
      font-size: 14px; /* Smaller font size for mobile */
  }

  .navbar a {
      padding: 10px 15px; /* Reduce spacing for navbar links */
      font-size: 16px; /* Font size for navbar links */
  }

  .cta-button {
      padding: 8px 16px; /* Smaller size for CTA button */
      font-size: 14px; /* Font size for CTA button */
  }

  .hero-content {
      padding: 10px; /* Reduce padding for hero content */
      font-size: 14px; /* Font size for hero content */
      
  }

  .feature-card {
      width: 100%; /* Full width for feature cards */
      margin: 10px 0; /* Add margin between cards */
  }

  .service-content {
      flex-direction: column; /* Stack service content vertically */
      align-items: center; /* Center align */
  }

  .map-section,
  .schedule-section {
      width: 100%; /* Full width for map and schedule */
  }

  .math-login-button {
      padding: 8px 15px; /* Smaller size for login button */
      font-size: 16px; /* Font size for login button */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body {
      font-size: 15px; /* Font size for tablet */
  }

  .navbar a {
      padding: 10px 18px; /* Spacing for navbar links */
      font-size: 17px; /* Font size for navbar links */
  }

  .cta-button {
      padding: 9px 18px; /* Size for CTA button */
      font-size: 15px; /* Font size for CTA button */
  }

  .hero-content {
      padding: 15px; /* Padding for hero content */
      font-size: 16px; /* Font size for hero content */
  }
}

/* Styles for the hamburger menu */
.hamburger {
  display: none; /* Hide hamburger menu by default */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
}

/* Show hamburger on small screens */
/* Hide nav links on small screens */
@media (max-width: 1024px) {
  .nav-links {
      display: none; /* Hide nav links */
      flex-direction: column; /* Stack links vertically */
      position: absolute; /* Position it absolutely */
      background-color: #1E78AE; /* Background color */
      width: 100%; /* Full width */
      top: 60px; /* Adjust according to your navbar height */
      z-index: 999; /* Ensure it appears above other content */
  }

  .nav-links.active {
      display: flex; /* Show nav links when active */
  }

  .hamburger {
      display: flex; /* Show hamburger menu */
  }
}

/* Additioaval responsive styles can be added as needed */
/* Hero Section with Background Carousel */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-image: url("img/10.png");
  animation: slideBackground 15s infinite;
}

@keyframes slideBackground {
  0% { background-image: url("img/10.png"); }
  33% { background-image: url("img/11.png"); }
  66% { background-image: url("img/12.png"); }
  100% { background-image: url("img/10.png"); }
}

/* Content Container */
.content-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* Content Styling */
.content {
  max-width: 100%;
}

h1 {
  font-size: 4.5em;
  color: #073355;
  margin-bottom: 0.2em;
}

p {
  color: #073355;
  margin: 1em 0;
}

.primary-button, .secondary-button {
  padding: 0.5em 1.5em;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  margin: 0.5em;
  font-weight: bold;
}

.primary-button {
  background-color: #aedff7;
  color: #073355;
}

.secondary-button {
  background-color: #073355;
  color: #aedff7;
  border: 1px solid #aedff7;
}

/* Announcement */
.announcement {
  color: #073355;
  font-size: 0.9em;
  margin-top: 1em;
  font-style: italic;
}
