/*
 * Main Styles for School Website
 * Using GCSS Framework variables and components
 */
/* ====== Base & Typography ====== */
:root {
  --accent-color: var(--color-orange);
  --heading-font: 'Noto Sans Thai', sans-serif;
  --body-font: 'Noto Sans Thai', sans-serif;
  --section-padding: 5rem 0;
  --container-width: 1200px;
  --header-height: 80px;
  --border-radius: 8px;
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition-duration: 0.3s;
}
body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--color-text);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}
p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
/* ====== Header & Navigation ====== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-duration) ease;
}
.site-header.scrolled {
  background-color: white;
}
.backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: -1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.school-name {
  line-height: 1.2;
}
.school-name h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--color-primary);
}
.school-name p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--gray);
}
.main-nav {
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  transition: color var(--transition-duration) ease;
  padding: 0.5rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-duration) ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: transform var(--transition-duration) ease;
}
.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color var(--transition-duration) ease;
}
.indicator.active {
  background-color: var(--color-light);
}
/* ====== Announcement Section ====== */
.announcement {
  padding: 0.75rem 0;
  color: var(--color-light);
}
.announcement-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.announcement-list {
  flex-grow: 1;
  overflow: hidden;
}
.announcement-icon {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0 0.75rem;
  font-size: 0.8rem;
  border-radius: 3px;
}
.announcement-link {
  margin: 0 1rem;
}
/* ====== Section Styling ====== */
section {
  padding: var(--section-padding);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}
.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}
.subtitle {
  font-size: 1.25rem;
  color: var(--gray);
  margin-top: 0.75rem;
}
/* ====== About Section ====== */
.about {
  background-color: var(--light);
}
.about-content {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: center;
}
.about-image {
  flex: 1;
}
.about-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}
.about-text {
  flex: 1;
}
.about-text h3 {
  color: var(--color-secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.about-text h3:first-child {
  margin-top: 0;
}
.about-text ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}
.about-text li {
  margin-bottom: 0.5rem;
}
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-card {
  background-color: white;
  padding: 2rem 1rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-duration) ease;
}
.stat-card:hover {
  transform: translateY(-10px);
}
.bg-gradient-blue {
  background-image: linear-gradient(135deg, blue 0%, #4e95ed 100%);
  color: var(--color-light);
}
.bg-gradient-green {
  background-image: linear-gradient(135deg, green 0%, #8ad38a 100%);
  color: var(--color-light);
}
.bg-gradient-purple {
  background-image: linear-gradient(135deg, purple 0%, #9b74db 100%);
  color: var(--color-light);
}
.bg-gradient-orange {
  background-image: linear-gradient(135deg, orange 0%, #ffae5b 100%);
  color: var(--color-light);
}
.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat-label {
  font-size: 1.25rem;
}
/* ====== Programs Section ====== */
.program-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  gap: 0.75rem;
}
.filter-btn {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-duration) ease;
}
.filter-btn.active,
.filter-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-light);
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.program-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-duration) ease;
}
.program-card:hover {
  transform: translateY(-10px);
}
.program-image {
  height: 200px;
  overflow: hidden;
}
.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-duration) ease;
}
.program-card:hover .program-image img {
  transform: scale(1.1);
}
.program-content {
  padding: 1.5rem;
}
.program-category {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-light);
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.program-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.program-description {
  color: var(--gray);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.program-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.program-meta {
  font-size: 0.9rem;
  color: var(--dark-gray);
}
.program-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
  transition: color var(--transition-duration) ease;
}
.program-link:hover {
  color: var(--color-secondary);
}
/* ====== CTA Section ====== */
.cta {
  background-image: url('../img/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding: 5rem 0;
  color: #FFF;
}
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-light);
  max-width: 800px;
  margin: 0 auto;
}
.cta-content h2 {
  color: var(--color-light);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
/* ====== News Section ====== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.news-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-duration) ease;
}
.news-card:hover {
  transform: translateY(-10px);
}
.news-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.news-date {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: bold;
  z-index: 1;
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-duration) ease;
}
.news-card:hover .news-image img {
  transform: scale(1.1);
}
.news-content {
  padding: 1.5rem;
}
.news-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-excerpt {
  color: var(--gray);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.author-name {
  font-size: 0.9rem;
  color: var(--dark-gray);
}
.news-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
  transition: color var(--transition-duration) ease;
}
.news-link:hover {
  color: var(--color-secondary);
}
/* ====== Activities Section ====== */
.activities {
  background-color: var(--light);
}
.activities-tabs {
  max-width: 1000px;
  margin: 0 auto;
}
.tabs-header {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tab-button {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-duration) ease;
  border-radius: 30px;
}
.tab-button.active,
.tab-button:hover {
  background-color: var(--color-primary);
  color: var(--color-light);
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.activity-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
}
.activity-image {
  width: 120px;
  flex-shrink: 0;
}
.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.activity-content {
  padding: 1rem;
  flex-grow: 1;
}
.activity-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.activity-description {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}
/* ====== Gallery Section ====== */
/* ====== Gallery Section Enhancements ====== */
#gallery {
  background-color: #f8f9fa;
}
.gallery-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
/* Filter Controls Improvement */
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.filter-controls .filter-btn {
  background-color: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.filter-controls .filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.filter-controls .filter-btn.active {
  color: #FFF;
  background-color: var(--color-primary);
  box-shadow: 0 4px 8px rgba(var(--color-primary-rgb), 0.3);
}
/* Grid Container Improvement */
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
/* Gallery Item Improvement */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  aspect-ratio: 1;
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover .gallery-image {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-item button {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease 0.1s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.gallery-item:hover button {
  transform: scale(1);
  opacity: 1;
}
.gallery-item button:hover {
  background-color: var(--accent-color);
  transform: scale(1.1);
}
/* Scroll Reveal Animation Enhancement */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-scroll-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Add reveal delay for staggered animation */
.gallery-item:nth-child(2) {
  transition-delay: 0.1s;
}
.gallery-item:nth-child(3) {
  transition-delay: 0.2s;
}
.gallery-item:nth-child(4) {
  transition-delay: 0.3s;
}
.gallery-item:nth-child(5) {
  transition-delay: 0.1s;
}
.gallery-item:nth-child(6) {
  transition-delay: 0.2s;
}
.gallery-item:nth-child(7) {
  transition-delay: 0.3s;
}
.gallery-item:nth-child(8) {
  transition-delay: 0.1s;
}
/* Loading and Error States */
.gallery-loading {
  text-align: center;
  padding: 3rem;
  font-style: italic;
  color: var(--gray);
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  margin: 2rem 0;
}
.gallery-error,
.gallery-empty {
  text-align: center;
  padding: 2.5rem;
  background-color: var(--light);
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.gallery-error {
  color: var(--red);
  border: 1px solid rgba(var(--red-rgb), 0.2);
}
.gallery-empty {
  color: var(--gray);
}
/* Responsive Adjustments */
@media (max-width: 1200px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 992px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 768px) {
  .filter-controls {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  .filter-controls .filter-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}
@media (max-width: 576px) {
  .grid-container {
    grid-template-columns: repeat(1, 1fr);
    max-width: 350px;
    margin: 0 auto;
  }
  .gallery-item {
    aspect-ratio: 4/3;
  }
}
/* Add animation keyframes for gallery transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ====== Testimonials Section ====== */
.testimonials {
  background-color: var(--color-primary);
  color: var(--color-light);
}
.testimonials .section-header h2 {
  color: var(--color-light);
}
.testimonials .section-header h2::after {
  background-color: var(--color-light);
}
.testimonials .subtitle {
  color: rgba(255, 255, 255, 0.8);
}
.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
}
.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  padding: 0 2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.testimonial-quote::before,
.testimonial-quote::after {
  content: '"';
  font-size: 3rem;
  position: absolute;
  opacity: 0.3;
}
.testimonial-quote::before {
  top: -1rem;
  left: 0;
}
.testimonial-quote::after {
  bottom: -2.5rem;
  right: 10px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 70px;
}
.testimonial-avatar {
  width: 70px !important;
  height: 70px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-light);
}
.author-name {
  font-size: 1.1rem;
  font-weight: bold;
}
.author-role {
  opacity: 0.8;
}
.testimonial-slider {
  height: 290px;
}
/* ====== Contact Section ====== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}
.contact-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light);
  font-size: 1.25rem;
}
.contact-card-header h3 {
  margin-bottom: 0;
  color: var(--color-primary);
}
.contact-card-content p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.contact-card-content p:last-child {
  margin-bottom: 0;
}
.contact-form-container {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}
.contact-form h3 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.required {
  color: var(--red);
}
.form-actions {
  margin-top: 1.5rem;
  text-align: center;
}
.school-map h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}
.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
/* ====== Footer ====== */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding-top: 4rem;
}
.footer-top {
  padding-bottom: 3rem;
}
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-logo {
  display: flex;
  align-items: center;
}
.logo-footer {
  width: 50px;
  height: 50px;
}
.footer-widget {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-widget h3,
.footer-widget h4 {
  color: var(--color-light);
  position: relative;
  margin-bottom: 0;
}
.footer-widget h4 {
  padding-bottom: 0.75rem;
}
.footer-widget h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}
.footer-description {
  opacity: 0.8;
  font-size: 0.95rem;
  margin-bottom: 0;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light);
  text-decoration: none;
  font-size: 1.25rem;
  transition: background-color var(--transition-duration) ease;
}
.social-link:hover {
  background-color: var(--color-primary);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: var(--color-light);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity var(--transition-duration) ease, color var(--transition-duration) ease;
}
.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}
.footer-news {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-news li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}
.footer-news li:last-child {
  border-bottom: none;
}
.footer-news-date {
  font-size: 0.8rem;
  opacity: 0.6;
}
.footer-news-title {
  font-size: 0.95rem;
}
.footer-news-title a {
  color: var(--color-light);
  text-decoration: none;
  transition: color var(--transition-duration) ease;
}
.footer-news-title a:hover {
  color: var(--accent-color);
}
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  text-align: center;
}
.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}
.scroll-top-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-light);
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-duration) ease, background-color var(--transition-duration) ease;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.scroll-top-button.visible {
  opacity: 1;
}
.scroll-top-button:hover {
  background-color: var(--accent-color);
}
/* ====== Animations ====== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@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);
  }
}
.animate-in {
  animation: fadeIn 1s forwards;
}
/* ====== Responsive Design ====== */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .programs-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3rem;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  :root {
    --header-height: 70px;
  }
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }
  .about-image {
    text-align: center;
  }
  .about-image img {
    max-width: 100%;
  }
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --section-padding: 4rem 0;
  }
  .container {
    max-width: 540px;
  }
  .site-header {
    background-color: white;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left var(--transition-duration) ease;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 2rem 0;
  }
  .nav-links.active {
    left: 0;
  }
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  .slide-content h2 {
    font-size: 2.5rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .stats-container {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .programs-grid,
  .news-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-info {
    grid-template-columns: 1fr;
  }
  .footer-widgets {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
  .contact-form-container {
    max-width: 500px;
    margin: 0 auto;
  }
}
@media (max-width: 576px) {
  :root {
    --section-padding: 3rem 0;
  }
  .school-name h1 {
    font-size: 1.25rem;
  }
  .school-name p {
    font-size: 0.8rem;
  }
  .slide-content h2 {
    font-size: 2rem;
  }
  .slide-content p {
    font-size: 1.1rem;
  }
  .section-header h2 {
    font-size: 1.75rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .tabs-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .tab-button {
    width: 100%;
  }
  .testimonial-quote {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  .testimonial-quote::before,
  .testimonial-quote::after {
    font-size: 2rem;
  }
}
/* Hero Slideshow Styling */
section.hero {
  padding: 0;
}
.hero-slider {
  height: 90vh;
  /* ความสูง 90% ของหน้าจอ */
  min-height: 500px;
  /* ความสูงขั้นต่ำ */
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  /* แก้ไขค่า margin-bottom ของ slideshow */
}
.hero-slider .slideshow-slide {
  background-color: #2c3e50;
  /* สีพื้นหลังเริ่มต้น */
}
/* กำหนดพื้นหลังสำหรับแต่ละสไลด์ */
.slide-1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/4.jpg');
}
.slide-2 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/5.jpg');
}
.slide-3 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/6.jpg');
}
/* จัดการ Container */
.hero-slider .container {
  height: 100%;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* จัดการเนื้อหาของสไลด์ */
.slide-content {
  color: white;
  max-width: 600px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
/* เมื่อสไลด์แสดงผล */
.slideshow-slide[aria-hidden="false"] .slide-content {
  opacity: 1;
  transform: translateY(0);
}
.slide-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.slide-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
/* จัดการปุ่มควบคุม */
.hero-slider .slideshow-controls {
  position: absolute;
  bottom: 30px;
  top: auto;
  transform: none;
  display: flex;
  justify-content: center;
}
.hero-slider .slideshow-prev,
.hero-slider .slideshow-next {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  border-radius: 50%;
  margin: 0 10px;
  font-size: 20px;
  transition: background-color 0.3s ease;
}
.hero-slider .slideshow-prev:hover,
.hero-slider .slideshow-next:hover {
  background-color: rgba(255, 255, 255, 0.5);
}
/* จัดการจุดบอกสถานะ */
.hero-slider .slideshow-indicators {
  position: static;
  transform: none;
}
.hero-slider .slideshow-indicator {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid white;
  transition: all 0.3s ease;
}
.hero-slider .slideshow-indicator.active {
  background: white;
  transform: scale(1.2);
}
/* Responsive */
@media (max-width: 768px) {
  .hero-slider {
    height: 80vh;
  }
  .slide-content h2 {
    font-size: 2.2rem;
  }
  .slide-content p {
    font-size: 1.2rem;
  }
}
@media (max-width: 480px) {
  .hero-slider {
    height: 70vh;
  }
  .slide-content h2 {
    font-size: 1.8rem;
  }
  .slide-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .hero-slider .slideshow-controls {
    bottom: 15px;
  }
}
/* Additional Gallery Styles */
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1rem;
  background-color: var(--light-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-duration) ease;
}
.filter-btn.active {
  background-color: var(--primary);
  color: var(--color-light);
  border-color: var(--primary);
}
.filter-btn:hover:not(.active) {
  background-color: var(--light-hover);
}
/* Animation for gallery items */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-scroll-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Lightbox Modal Style */
.modal-lightbox {
  background-color: rgba(0, 0, 0, 0.95) !important;
  /* Darker backdrop */
}
.modal-lightbox .modal-content {
  background: transparent;
  box-shadow: none;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.modal-lightbox .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 1060;
  transition: background 0.3s;
}
.modal-lightbox .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.modal-lightbox .modal-close:before {
  background-color: white;
}
.modal-lightbox .lightbox-body {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-lightbox img[data-modal-target="image"] {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.modal-lightbox .lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}
.modal-lightbox .lightbox-caption h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}
.modal-lightbox .lightbox-caption p {
  font-size: 1rem;
  opacity: 0.8;
  color: #ddd;
}
.modal-lightbox .modal-prev,
.modal-lightbox .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-lightbox .modal-prev:hover,
.modal-lightbox .modal-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}
.modal-lightbox .modal-prev {
  left: 30px;
}
.modal-lightbox .modal-next {
  right: 30px;
}