/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}
a {
  color: #333;
  transition: var(--transition);
  text-decoration: none;
}
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #3498db, #2980b9);
  --gradient-secondary: linear-gradient(135deg, #2c3e50, #34495e);
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  background-color: #f5f6fa;
}
.mobile-menu{
  color: #fff;
}
/* Top Bar */
.top-bar {
  background-color: var(--secondary-color);
  padding: 10px 0;
  position: fixed;
  width: 100vw;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(50px);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-evenly;
}
.detail {
  display: flex;
  color: #fff;
  gap: 20px;
}
.email:hover,
.phone:hover,
.address:hover {
  filter: drop-shadow(0 0 20px #fff);
}
.test-mode {
  display: flex;
  gap: 5px;
  align-items: center;
  border: 1px solid #ccc;
  padding: 0px 10px;
  border-radius: 5px;
  transition: var(--transition);
  filter: drop-shadow(0 0 20px #fff);
}
.test-mode i,
.test-mode p {
  animation: rainbow 7s linear infinite;
}
.test-mode p {
  animation-delay: 0.5s;
}
.social-links-top {
  display: flex;
  color: #fff;
  gap: 20px;
  align-items: center;
  transition: var(--transition);
}
.social-links-top:hover {
  transform: scale(1.1);
}

.language-selector {
  position: relative;
  cursor: pointer;
  height: 100%;
}
.selected-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.selected-lang img {
  width: 20px;
  height: 15px;
  object-fit: cover;
}
.selected-lang span {
  color: #fff;
  font-size: 14px;
}
.selected-lang i {
  color: #fff;
  font-size: 12px;
  margin-left: 5px;
}
.lang-list {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 4px;
  margin-top: 5px;
  padding: 5px 0;
  display: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 10000;
}
.language-selector:hover .lang-list {
  display: block;
  z-index: 100000;
}
.lang-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 100000;
}
.lang-list li:hover {
  background: #f5f5f5;
}
.lang-list li img {
  width: 20px;
  height: 15px;
  object-fit: cover;
}
.lang-list li span {
  color: #333;
  font-size: 14px;
}
.time {
  display: flex;
  color: #fff;
  gap: 20px;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  /* border: 1px solid #ccc; */
  padding: 0px 5px;
  border-radius: 5px;
  background-color: #cccccc27;
}

/* Navigation */
.navbar {
  background-color: var(--secondary-color);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 45px;
  z-index: 10;
  transition: var(--transition);
  backdrop-filter: blur(200px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.1);
}

.logo h1 {
  color: #f5f6fa;
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #f5f6fa;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(../images/school.jpg) center/cover;
  background-position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(52, 152, 219, 0.3),
    rgba(44, 62, 80, 0.3)
  );
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.5;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

.hero-content h2 {
  margin-top: 2.5rem;
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--white);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.stat-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.stat-item h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

/* Sections */
section {
  padding: 6rem 10%;
  position: relative;
}

section h2 {
  text-align: center;
  margin-bottom: 4rem;
  color: var(--secondary-color);
  font-size: 2.5rem;
  position: relative;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
}

/* Programs Section */
.program-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.program-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.program-card:hover i {
  transform: scale(1.2);
}

.program-features {
  list-style: none;
  margin-top: 1.5rem;
  text-align: left;
}

.program-features li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  transition: var(--transition);
}

.program-features li::before {
  content: "✓";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.program-features li:hover {
  transform: translateX(5px);
}

/* Teachers Section */
.about-section {
  background: var(--white);
  padding: 4rem 10%;
  text-align: center;
}

.about-content h1 {
  font-size: 2.5rem;
  border-bottom: 2px solid var(--primary-color);
  transition: var(--transition);
}

.about-content h1:hover {
  transform: scale(1.1);
  transition: var(--transition);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.teacher-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  height: 600px;
}

.teacher-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.teacher-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.teacher-card:hover img {
  transform: scale(1.1);
}

.teacher-card-content {
  padding: 1.5rem;
  background: var(--white);
  position: relative;
}

.teacher-card h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.teacher-card p {
  color: #666;
  font-size: 0.9rem;
}

/* Achievements Section */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.achievement-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.achievement-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.achievement-card:hover::after {
  transform: scaleX(1);
}

.achievement-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.achievement-card:hover i {
  transform: scale(1.2) rotate(10deg);
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Contact Section */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-details {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  color: var(--secondary-color);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Footer */
footer {
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 4rem 10% 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

iframe.map {
  border-radius: 10px;
  border: 5px solid #ccc;
}

/* Responsive Design */
@media (max-width: 1300px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1.2rem 0.5rem;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.1),
      0 1.5px 6px rgba(52, 152, 219, 0.08);
    border-radius: 0 0 18px 18px;
    z-index: 1000;
    gap: 0.2rem;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    padding: 0.7rem 0;
    border-radius: 8px;
    color: var(--secondary-color);
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    letter-spacing: 0.01em;
  }
  .nav-links a:hover,
  .nav-links a:focus {
    background: var(--gradient-primary);
    color: #fff;
  }

  .mobile-menu {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }
}
@media (max-width: 1200px) {
  section {
    padding: 4rem 5%;
  }

  .hero-content h2 {
    font-size: 3rem;
  }

  .program-cards {
    flex-direction: column;
    align-items: center;
  }

  .program-card {
    width: 100%;
    max-width: 600px;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1.2rem 0.5rem;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.1),
      0 1.5px 6px rgba(52, 152, 219, 0.08);
    border-radius: 0 0 18px 18px;
    z-index: 1000;
    gap: 0.2rem;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    padding: 0.7rem 0;
    border-radius: 8px;
    color: var(--secondary-color);
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    letter-spacing: 0.01em;
  }
  .nav-links a:hover,
  .nav-links a:focus {
    background: var(--gradient-primary);
    color: #fff;
  }

  .mobile-menu {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }
}

@media (max-width: 992px) {
  .hero-content h2 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1.2rem 0.5rem;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.1),
      0 1.5px 6px rgba(52, 152, 219, 0.08);
    border-radius: 0 0 18px 18px;
    z-index: 1000;
    gap: 0.2rem;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    padding: 0.7rem 0;
    border-radius: 8px;
    color: var(--secondary-color);
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    letter-spacing: 0.01em;
  }
  .nav-links a:hover,
  .nav-links a:focus {
    background: var(--gradient-primary);
    color: #fff;
  }

  .mobile-menu {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .stat-item {
    width: 35%;
    margin: 1rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .map {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 5%;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1.2rem 0.5rem;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.1),
      0 1.5px 6px rgba(52, 152, 219, 0.08);
    border-radius: 0 0 18px 18px;
    z-index: 1000;
    gap: 0.2rem;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    padding: 0.7rem 0;
    border-radius: 8px;
    color: var(--secondary-color);
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    letter-spacing: 0.01em;
  }
  .nav-links a:hover,
  .nav-links a:focus {
    background: var(--gradient-primary);
    color: #fff;
  }

  .mobile-menu {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: row !important;
    gap: 1rem;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stat-item {
    width: 40%;
    margin: 0.5rem 0;
  }

  section {
    padding: 3rem 5%;
  }

  .about-cards,
  .features-grid,
  .teacher-grid,
  .achievements-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .logo {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-shrink: 1;
  }
  .logo-img {
    width: 30px;
    height: 30px;
  }
  .logo h1 {
    font-size: 0.95rem;
    max-width: 70vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    min-width: 0;
    flex-shrink: 1;
  }

  .hero {
    min-height: 100vh;
    padding-top: 90px;
    padding-bottom: 40px;
  }
  .hero-content {
    padding-top: 30px;
    padding-bottom: 30px;
    z-index: 2;
    text-align: center;
  }
  .hero-content h2 {
    font-size: 2rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  }
  .hero-content p {
    font-size: 0.95rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  }

  .about-card,
  .feature-card,
  .program-card,
  .teacher-card,
  .achievement-card {
    padding: 1.5rem;
  }

  .card-icon {
    width: 50px;
    height: 50px;
  }

  .card-icon i {
    font-size: 1.5rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 0.8rem;
  }

  .submit-button {
    padding: 0.8rem;
  }

  .footer-section {
    padding: 1rem;
  }

  section h2 {
    margin-top: 2.5rem;
  }
}
@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.5rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-item i {
    font-size: 2rem;
  }

  .stat-item h3 {
    font-size: 1.5rem;
  }

  .gallery-item img {
    height: 200px;
  }
}

@media (max-width: 360px) {
  .logo h1 {
    font-size: 0.8rem;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 6rem 1rem;
  }

  .hero-content {
    margin-top: 2rem;
  }

  .hero-stats {
    margin-top: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .program-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .teacher-grid,
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .program-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .teacher-grid,
  .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img {
    image-rendering: -webkit-optimize-contrast;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Improved About & Feature Cards --- */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.about-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.1),
    0 1.5px 6px rgba(52, 152, 219, 0.08);
  transition: transform 0.35s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.35s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUpCard 0.7s forwards;
}

.about-card:nth-child(1) {
  animation-delay: 0.1s;
}
.about-card:nth-child(2) {
  animation-delay: 0.2s;
}

.about-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 16px 40px rgba(44, 62, 80, 0.18),
    0 2px 8px rgba(52, 152, 219, 0.12);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 2, 0.6, 1);
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.1);
}

.about-card:hover .card-icon {
  transform: rotateY(360deg) scale(1.08);
}

.card-icon i {
  font-size: 2rem;
  color: var(--white);
}

.about-card h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  font-weight: 600;
}

.about-card p {
  color: #444;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Features Grid Improved */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.1),
    0 1.5px 6px rgba(52, 152, 219, 0.08);
  transition: transform 0.35s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.35s;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUpCard 0.7s forwards;
}

.feature-card:nth-child(1) {
  animation-delay: 0.3s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.4s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.5s;
}
.feature-card:nth-child(4) {
  animation-delay: 0.6s;
}

.feature-card:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 16px 40px rgba(44, 62, 80, 0.18),
    0 2px 8px rgba(52, 152, 219, 0.12);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.4, 2, 0.6, 1);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.1);
}

.feature-card:hover .feature-icon {
  transform: rotate(10deg) scale(1.1);
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.feature-content h4 {
  color: var(--secondary-color);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.feature-content p {
  color: #555;
  font-size: 0.98rem;
  line-height: 1.6;
}

@keyframes fadeInUpCard {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .about-cards,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .about-card,
  .feature-card {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 1300px) {
  .nav-links {
    display: none;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1.2rem 0.5rem;
    align-items: center;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.1),
      0 1.5px 6px rgba(52, 152, 219, 0.08);
    border-radius: 0 0 18px 18px;
    z-index: 1000;
    gap: 0.2rem;
  }
  .mobile-menu {
    display: block;
  }
}

@media (min-width: 1301px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    gap: 2rem;
  }
  .mobile-menu {
    display: none;
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.time p span {
  display: inline-block;
}

.time p span.animate {
  animation: fadeUp 0.3s ease-out;
}

@keyframes rainbow {
  0% {
    color: #ff0000;
  }
  17% {
    color: #ff8000;
  }
  33% {
    color: #ffff00;
  }
  50% {
    color: #00ff00;
  }
  67% {
    color: #0000ff;
  }
  83% {
    color: #8000ff;
  }
  100% {
    color: #ff0000;
  }
}

/* Responsive Top Bar and Language Selector */
@media (max-width: 1200px) {
  .email {
    display: none;
  }
  .top-bar {
    align-items: center;
  }
}

@media (max-width: 900px) {
  .phone {
    display: none;
  }
  /* .top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 2vw;
  } */
  .detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .social-links-top {
    justify-content: flex-start;
  }
  .language-selector {
    align-self: flex-start;
    margin-bottom: 8px;
  }
}
@media (max-width: 800px) {
  .test-mode {
    display: none;
  }
  .about,
  .contact,
  .achievements,
  .gallery,
  .programs,
  .teachers {
    padding: 150px 50px;
  }
}

@media (max-width: 600px) {
  /* .lang-list {
    left: 0;
    right: auto;
    min-width: 100px;
    font-size: 14px;
  }
  .selected-lang span {
    font-size: 14px;
  } */
  .social-links-top {
    display: none;
  }
}

@media (max-width: 400px) {
  /* .selected-lang span,
  .lang-list li span {
    font-size: 12px;
  } */
  .detail p {
    font-size: 12px;
  }
  .test-mode p {
    display: none;
  }
  .test-mode i {
    font-size: 12px;
  }
  .about,
  .contact,
  .achievements,
  .gallery,
  .programs,
  .teachers {
    padding: 150px 10px;
  }
}

.about,
.contact,
.achievements,
.gallery,
.programs,
.teachers {
  padding: 150px 50px;
}
.lightbox {
  margin-top: 50px;
  z-index: 10001000000;
}

/* Animate cards */
.animate-cards-section {
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)); */
}

.animate-cards {
  width: 200px;
  height: 350px;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  animation: rotate3d 60s linear infinite;
  transform-origin: center;
}

.animate-card {
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * calc(360deg / 29))) translateZ(1000px);
  transition: transform 1s ease-in-out;
}

.card-content {
  width: 200px;
  height: 350px;
  background-color: #cccccc27;
  border-radius: 10px;
  box-shadow: 0 15px 20px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 10px 10px 15px crimson;
  border-radius: 24px;
  overflow: hidden;
}

.card-content img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.card-content h3 {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 0.9;
}

.card-content p {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
  line-height: 0.9;
}

@keyframes rotate3d {
  from {
    transform: perspective(4000px) rotateY(0deg);
  }
  to {
    transform: perspective(4000px) rotateY(360deg);
  }
}

/* Responsive styles for animate-cards */
@media (max-width: 1200px) {
  .animate-cards {
    transform: perspective(4000px) scale(0.8);
  }
  .animate-card {
      transform: rotateY(calc(var(--i) * calc(360deg / 29))) translateZ(1200px);
  }
}

@media (max-width: 992px) {
  .animate-cards {
    transform: perspective(4000px) scale(0.7);
  }
  .animate-card {
    transform: rotateY(calc(var(--i) * calc(360deg / 29))) translateZ(1100px);
  }
}

@media (max-width: 768px) {
  .animate-cards-section {
    padding: 30px;
  }
  .animate-cards {
    transform: perspective(4000px) scale(0.6);
    animation: rotate3d 60s linear infinite;
  }
  .animate-card {
    transform: rotateY(calc(var(--i) * calc(360deg / 30))) translateZ(1100px) scale(0.9);
  }
  .director {
    --i: 30;
  }
}

@media (max-width: 576px) {
  .animate-cards-section {
    padding: 20px;
  }
  .animate-cards {
    transform: perspective(4000px) scale(0.5);
    transition-duration: 30s;
  }
  .animate-card {
    transform: rotateY(calc(var(--i) * calc(360deg / 30))) translateZ(1100px) scale(0.8);
  }
  .card-content h3 {
    font-size: 0.9rem;
  }
  .card-content p {
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .animate-cards {
    transform: perspective(4000px) scale(0.4);
  }
  .animate-card {
    transform: rotateY(calc(var(--i) * calc(360deg / 30))) translateZ(1100px) scale(0.8);
  }
}
