:root {
  --primary-color: #c8102e;
  --secondary-color: #ffd700;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --white: #fff;
  --dark-gray: #555;
  --card-bg: #fff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Kanit', sans-serif;
  background-color: var(--light-gray);
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  color: var(--primary-color);
  font-weight: 600;
}

/* Header */
.sticky-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease-in-out;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 50px;
  height: 50px;
  background-image: url("./Logo_BTU-01.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.university-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.university-subtitle {
  font-size: 0.8rem;
  color: var(--dark-gray);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li a {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
}

/* Menu Toggle for Mobile */
.menu-toggle {
  display: none;
  /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("https://agenda.bkkthon.ac.th/index/images/2.jpg") no-repeat center center/cover;
  color: var(--white);
  text-align: center;
  padding: 10rem 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease-in-out;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeIn 1.5s ease-in-out;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  animation: slideIn 2s ease-in-out;
}

.cta-button.outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.cta-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

/* Sections */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 10px auto 0;
}

/* Why Choose Us Section */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.reason-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.reason-card i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.reason-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.reason-card p {
  color: var(--dark-gray);
}

/* Curriculum Section */
.curriculum-list {
  display: grid;
  gap: 1rem;
}

.curriculum-item {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curriculum-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.item-icon {
  background-color: var(--primary-color);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1.5rem;
}

.item-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.item-content p {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.program-year {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 3rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.social-links a {
  display: inline-block;
  margin-right: 10px;
  font-size: 1.2rem;
  color: var(--white);
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Image section */
#show-images {
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem; */
  display: flex;
  flex-direction: column;
}

.src-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    /* Allow items to wrap */
    justify-content: space-between;
    padding: 1rem;
  }

  .logo-container {
    flex-grow: 1;
    /* Allow logo to take more space */
    justify-content: flex-start;
  }

  nav {
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    /* Show menu toggle on mobile */
    order: 2;
    /* Position toggle after logo */
    margin-left: auto;
    /* Push to the right */
  }

  .nav-menu {
    display: none;
    /* Hide navigation links by default on mobile */
    flex-direction: column;
    width: 100%;
    order: 3;
    /* Place below header content */
    margin-top: 1rem;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
  }

  .nav-menu.active {
    display: flex;
    /* Show navigation links when active */
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu li a {
    display: block;
    padding: 1rem;
  }

  .hero {
    padding: 6rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .reason-grid {
    grid-template-columns: 1fr;
    /* Stack cards vertically */
  }

  .curriculum-list {
    grid-template-columns: 1fr;
    /* Stack curriculum items vertically */
  }

  .curriculum-item {
    flex-direction: column;
    /* Stack icon and content vertically */
    text-align: center;
  }

  .item-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    /* Stack footer sections vertically */
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* Custom styles for SweetAlert2 */
.swal2-popup.swal2-toast {
  box-shadow: var(--shadow);
  border-radius: 10px;
}

.swal2-title {
  color: var(--primary-color);
}

.swal2-html-container {
  color: var(--dark-gray);
}

.swal2-confirm.swal2-styled {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  border: none !important;
}

.swal2-cancel.swal2-styled {
  background-color: var(--light-gray) !important;
  color: var(--dark-gray) !important;
  border: none !important;
}

/* .swal2-popup.no-padding-popup {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.swal2-image {
  margin: 0 !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 10px !important;
} */
.swal2-popup.no-padding-popup {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  /* max-width: 100vw !important; */
  width: 60vw;
  height: 100vh;
}

.swal2-image {
  margin: 0 !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 0 !important;
}


.carousel {
  padding: 10px;

  img {
    height: 100%;
    width: auto;
    
  }
}

.splide__list{
  gap:10px
}

@media screen and (min-width: 801px) {
  .splide__track {
    height: 60vh;
  }
}
@media screen and (max-width: 450px) {
  .hero-buttons {
   display: grid;
   gap: 10px;
  }
}