/* Original CSS Styles with Header Size Fixes */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles - FIXED SIZE ISSUES */
header {
  background-color: rgba(255, 255, 255, 0.9);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px; /* Reduced from 50px */
  margin-right: 10px;
}

/* IMPORTANT FIX - Logo text size */
.logo h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem; /* Added size control for nav links */
}

nav ul li a:hover {
  color: #0096ff;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
}

.motto {
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.2rem; /* Reduced from 2.5rem */
  margin-bottom: 20px;
  line-height: 1.3;
}

.btn-a {
  display: inline-block;
  background-color: #0096ff;
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s;
  margin-top: 20px;
}

.btn-a:hover {
  background-color: #0077cc;
}

.icon-bg {
  background-color: rgb(9, 202, 227);
  border-radius: 50%;
  width: 30px;
  height: 30px;
}

.icon-bg i {
  font-size: 14px;
}

/* Welcome Section */
.welcome {
  padding: 80px 0;
}

.welcome-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.welcome-img {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.welcome-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Play Button Styles */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(0, 150, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 5;
}

.play-button:hover {
  background-color: rgba(0, 119, 204, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
  color: white;
  font-size: 36px;
  margin-left: 5px; /* Adjust to center the play icon */
}

/* Video modal styles */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.video-container {
  width: 80%;
  max-width: 900px;
  position: relative;
}

.video-container iframe {
  width: 100%;
  height: 506px; /* 16:9 aspect ratio for width of 900px */
  border: none;
}

.close-video {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.welcome-text {
  flex: 1;
}

.welcome-text h2 {
  font-size: 1.8rem; /* Reduced from 2rem */
  margin-bottom: 15px;
  color: #333;
}

.welcome-text p {
  margin-bottom: 20px;
  color: #666;
}

/* Slider Styles */
.welcome-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  display: none;
}

.slide.active {
  display: flex;
}

/* Dots Navigation */
.dots-nav {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.dot {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #0096ff;
}

/* New Combined Features & Profile Section */
.features-profile {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.features-profile-container {
  display: flex;
  gap: 30px;
}

/* Profile Sekolah on Left */
.profile-column {
  flex: 1;
}

.profile-card {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.profile-card h3 {
  font-size: 1.6rem; /* Reduced from 1.8rem */
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.profile-card p {
  color: #666;
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Features on Right */
.features-column {
  flex: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  margin-bottom: 20px;
  text-align: center;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem; /* Reduced from 1.5rem */
  text-align: center;
}

.feature-card p {
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.text-center {
  text-align: center;
}

/* Gallery Section */
.gallery {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.8rem; /* Reduced from 2rem */
  margin-bottom: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  height: 200px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Dots Navigation */
.dots-nav {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.dot {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: #0096ff;
}

/* Footer Styles */
#tailwind-footer {
  background-color: #333;
  color: white;
  padding: 60px 0 30px;
}

/* Social Media Icon Styles */
.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s;
  color: white;
}

.social-icon:hover {
  background-color: #0096ff;
}

/* Footer specific styles */
.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  margin-right: 15px;
}

.footer-logo h3 {
  font-size: 1.3rem;
  font-weight: bold;
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer-contact i {
  color: #0096ff;
  margin-right: 12px;
  margin-top: 4px;
  font-size: 18px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-header {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-weight: bold;
  display: inline-block;
}

.footer-header::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: #0096ff;
  bottom: 0;
  left: 0;
}

.footer-link {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-link i {
  margin-right: 10px;
  color: #0096ff;
  font-size: 14px;
}

.footer-link a {
  transition: color 0.3s;
}

.footer-link a:hover {
  color: #0096ff;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 30px;
}
.feature-card {
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
/* Active nav link */
nav ul li a.active {
  color: #0096ff;
  font-weight: 700;
}

/* Facilities Slider Styles */
.facilities-slider-container {
  width: 80%;
  max-width: 1000px;
  margin: 30px auto;
  position: relative;
  overflow: hidden;
}

.facilities-slider {
  width: 100%;
  position: relative;
}

.btn-small {
  background-color: #0096ff;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
  font-size: 14px;
}

.btn-small:hover {
  background-color: #0077cc;
}

/* Modal Styles */
.feature-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  margin: 50px auto;
  width: 90%;
  max-width: 900px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s;
}

.slider-controls {
  text-align: center;
  margin-top: 20px;
}

.slider-arrow {
  background-color: #0096ff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  margin: 0 10px;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background-color: #007acc;
}

/* Teacher Page Specific Styles - FIXED */
.search-container {
  margin: 40px auto;
}

.search-bar {
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 5px;
}

.search-bar .form-control {
  border: none;
  border-radius: 30px 0 0 30px;
  padding: 10px 20px;
}

.search-bar .input-group-text {
  border: none;
  border-radius: 0 30px 30px 0;
  padding: 0 20px;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.teacher-card {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.teacher-img-container {
  position: relative;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
}


.teacher-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-bottom: 3px solid #0096ff;
}

.teacher-info {
  padding: 15px;
  background-color: #fff;
  flex-grow: 1;
}

.teacher-info p {
  margin-bottom: 8px;
  color: #555;
  font-size: 14px;
}

.teacher-info strong {
  color: #333;
}

.hero {
  height: 400px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("assets/img/header.png");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 70px;
}

.about-hero .hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.about-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.about-hero p {
  font-size: 1.1rem; /* Reduced from 1.2rem */
  color: rgba(255, 255, 255, 0.9);
}

/* About Page Main Content */
.about-page {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.about-content {
  margin: 40px 0;
}

.about-content.single-column {
  max-width: 900px;
  margin: 40px auto;
}

.about-text-full p {
  margin-bottom: 20px;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
}

.about-full-width {
  margin: 30px 0;
}

.about-full-width p {
  margin-bottom: 20px;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
}

/* About Cards */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.about-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-card i {
  font-size: 2.5rem;
  color: #0096ff;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 1.4rem; /* Reduced from 1.5rem */
  margin-bottom: 15px;
  color: #333;
}

.about-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.teachers-section {
  padding: 50px 0;
}

/* Header and Footer Text Color Fix */
nav ul li a {
  font-weight: 500;
  transition: color 0.3s;
  color: #333;
  text-decoration: none !important;
}

nav ul li a:hover {
  color: #0096ff;
  border-bottom: 2px solid #0096ff;
}

nav ul li a.active {
  color: #0096ff;
  font-weight: 700;
}

#tailwind-footer {
  background-color: #333;
  color: white;
}

#tailwind-footer a {
  color: white;
  transition: color 0.3s;
  text-decoration: none !important;
}

#tailwind-footer a:hover {
  color: #0096ff;
}

#tailwind-footer p,
#tailwind-footer h3,
#tailwind-footer li,
#tailwind-footer div {
  color: white;
}

#tailwind-footer .footer-copyright p,
#tailwind-footer .footer-contact p {
  color: rgba(255, 255, 255, 0.7);
}

/* NEW GALLERY PAGE STYLES */
/* Gallery-specific navbar (if different from main site) */
.navbar {
  background-color: #ffffff;
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  margin-left: 50px;
}

.navbar .logo img {
  width: 40px; /* Reduced from 50px */
  height: 40px; /* Reduced from 50px */
}

.navbar .menu {
  margin-right: 50px;
}

.navbar .menu a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  margin: 0 10px;
  padding: 5px 10px;
  font-size: 14px;
}

.navbar .menu a.active {
  border-bottom: 2px solid white;
}

/* Gallery Header */
.gallery-header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/img/header.png");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.header-content {
  position: relative;
  z-index: 1;
}

.gallery-header h1 {
  font-size: 2rem; /* Reduced from 36px */
  margin-bottom: 20px;
}

.gallery-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
}

/* Gallery Container */
.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.gallery-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

/* Gallery Item Cards */
.gallery-card {
  width: 45%;
  max-width: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(37, 29, 29, 0.05);
  transition: transform 0.3s;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0096ff;
  color: white;
  padding: 10px 15px;
  font-size: 16px; /* Reduced from 18px */
  font-weight: bold;
}

.gallery-desc {
  padding: 15px;
  background-color: white;
}

.gallery-desc p {
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.gallery-desc a {
  color: #0096ff;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: color 0.3s;
}

.gallery-desc a:hover {
  color: #0077cc;
  text-decoration: underline;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.pagination a {
  color: #333;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
  margin: 0 5px;
  transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover:not(.active) {
  background-color: #ddd;
}

.pagination a.active {
  background-color: #0096ff;
  color: white;
}

/* Copyright Section */
.copyright {
  background-color: white;
  text-align: center;
  padding: 20px;
  color: #333;
  font-size: 14px;
  border-top: 1px solid #eee;
}

/* ENHANCED RESPONSIVE STYLES - BETTER SIZE CONTROL */
@media (max-width: 1200px) {
  .container,
  .footer-container {
    max-width: 100%;
    padding: 0 20px;
  }

  .gallery-card {
    width: 48%;
  }

  .navbar .logo {
    margin-left: 20px;
  }

  .navbar .menu {
    margin-right: 20px;
  }
}

@media (max-width: 992px) {
  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .welcome-content {
    flex-direction: column;
  }

  .welcome-img,
  .welcome-text {
    width: 100%;
  }

  .features-profile-container {
    flex-direction: column;
  }

  .profile-column,
  .features-column {
    width: 100%;
  }

  .facilities-slider-container {
    width: 90%;
  }

  .hero h1 {
    font-size: 2rem; /* Reduced */
  }

  .about-hero h1 {
    font-size: 2rem; /* Reduced */
  }
}

@media (max-width: 768px) {
  /* Mobile navigation */
  .mobile-menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
    text-align: center;
  }

  /* Section spacing */
  .welcome,
  .features-profile,
  .gallery,
  .about-page {
    padding: 50px 0;
  }

  .hero,
  .about-hero {
    height: auto;
    min-height: 40vh; /* Reduced from 50vh */
    padding: 80px 0 40px; /* Adjusted padding */
  }

  .hero h1 {
    font-size: 1.8rem; /* Reduced */
  }

  .hero .btn {
    padding: 10px 20px;
  }

  /* About section */
  .about-hero h1 {
    font-size: 1.8rem; /* Reduced */
  }

  .about-hero {
    height: auto;
    min-height: 30vh; /* Reduced from 40vh */
    margin-top: 60px;
  }

  /* Cards and grids */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-item {
    height: 180px;
  }

  .gallery-card {
    width: 100%;
  }

  .teacher-img {
    height: 200px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Gallery page */
  .gallery-header h1 {
    font-size: 1.8rem; /* Reduced from 28px */
  }

  .gallery-row {
    gap: 20px;
  }

  .navbar .menu a {
    margin: 0 5px;
  }

  /* Header logo text */
  .logo h3 {
    font-size: 1.1rem; /* Further reduced for mobile */
  }
}

@media (max-width: 576px) {
  /* Typography */
  .section-header h2,
  .welcome-text h2,
  .profile-card h3 {
    font-size: 1.5rem; /* Reduced */
  }

  .feature-card h3 {
    font-size: 1.2rem; /* Reduced */
  }

  /* Layout */
  .about-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-card {
    padding: 25px;
  }

  .profile-card,
  .feature-card {
    padding: 25px;
  }

  .gallery-image {
    height: 200px;
  }

  .btn {
    padding: 10px 15px;
    font-size: 14px;
  }

  /* Spacing */
  .welcome,
  .features-profile,
  .gallery,
  .about-page {
    padding: 40px 0;
  }

  .gallery-header {
    padding: 40px 0;
  }

  /* Pagination */
  .pagination a {
    padding: 6px 12px;
    margin: 0 3px;
  }

  /* Logo */
  .logo img {
    height: 35px;
  }

  .about-hero h1 {
    font-size: 1.5rem;
  }

  .about-hero p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  /* Typography */
  body {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 1.5rem; /* Reduced */
  }

  .about-hero h1 {
    font-size: 1.4rem; /* Reduced */
  }

  .motto {
    font-size: 14px;
  }

  /* Layout */
  .gallery-item {
    height: 160px;
  }

  .teacher-img {
    height: 180px;
  }

  /* Utilities */
  .container,
  .footer-container {
    padding: 0 15px;
  }

  /* Footer */
  #tailwind-footer {
    padding: 40px 0 20px;
  }

  .footer-header {
    font-size: 1.2rem;
  }

  .footer-social {
    gap: 10px;
  }

  .social-icon {
    width: 35px;
    height: 35px;
  }

  /* School name in header */
  .logo h3 {
    font-size: 1rem; /* Smallest size for very small screens */
  }
}

/* Mobile menu JavaScript support */
.js-enabled nav ul {
  transition: all 0.3s ease;
}

.js-enabled nav ul.show {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
}

.js-enabled nav ul.hide {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}

/* Make all images responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Touch-friendly elements for mobile */
button,
.btn,
.social-icon,
nav ul li a {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Support for dark mode */
@media (prefers-color-scheme: dark) {
  /* Optional: Add dark mode styles here if needed */
}

/* Print styles */
@media print {
  header,
  footer,
  .btn,
  .slider-controls {
    display: none;
  }

  body {
    background-color: white;
    color: black;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .features-profile-container {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-container iframe {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .welcome-content {
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .video-container iframe {
    height: 350px;
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .video-container iframe {
    height: 250px;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .play-button i {
    font-size: 24px;
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background-color: #0096ff;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.close-modal {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #f0f0f0;
}

.modal-body {
  padding: 20px;
}

.feature-image {
  margin-bottom: 20px;
}

.feature-image img {
  width: 100%;
  border-radius: 5px;
}

.feature-description {
  color: #333;
}

.feature-description h3 {
  margin: 20px 0 10px;
  color: #0096ff;
}

.feature-description ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.feature-description li {
  margin-bottom: 5px;
}

/* Slider in Modal */
.modal-slider {
  position: relative;
  margin-bottom: 20px;
}

.modal-slides {
  display: flex;
  overflow: hidden;
  position: relative;
  border-radius: 5px;
}

.modal-slide {
  display: none;
  width: 100%;
}

.modal-slide.active {
  display: block;
}

.modal-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  text-align: center;
}

.slide-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
}

.slide-control:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.modal-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.modal-dot {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-dot.active {
  background-color: #0096ff;
}

/* Map container */
.map-container {
  margin-bottom: 20px;
}

.location-map {
  width: 100%;
  border-radius: 5px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 30px auto;
  }

  .modal-slide img {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .modal-slide img {
    height: 200px;
  }

  .slide-control {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}
