/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #2c2c2c;
  background-color: #f8f9fa;
}

.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background-color: #ffffff;
  padding: 15px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: #2c2c2c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ff4444;
}

.admin-login-btn {
  background-color: #ff4444;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.admin-login-btn:hover {
  background-color: #cc3333;
}

/* Home Section */
.home-section {
  background: linear-gradient(135deg, #a8edea,#a8edea);
  padding: 120px 0 20px;
  text-align: center;
  color: #fff;
}

.school-logo {
  margin-bottom: 30px;
}

.logo-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.welcome-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #800000;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: bold;
}

.welcome-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  color: #090909;
  line-height: 1.6;
  padding: 30px;
}

/* Key Features Section */
.key-features-section {
  background-color: #fff;
  padding: 30px 0;
  text-align: center;
}

.features-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.features-left {
  position: relative;
}

.student-images {
  position: relative;
  height: 400px;
}

.student-img {
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(44, 44, 44, 0.3);
}

.main-student {
  width: 300px;
  height: 350px;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 3;
}

.bg-student-1 {
  width: 250px;
  height: 300px;
  object-fit: cover;
  top: 20px;
  left: 50px;
  z-index: 2;
  opacity: 0.8;
}

.bg-student-2 {
  width: 200px;
  height: 250px;
  object-fit: cover;
  top: 40px;
  left: 100px;
  z-index: 1;
  opacity: 0.6;
}

.features-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-card {
  background-color: #fff;
  padding: 10px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(13, 13, 13, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  color: #ff4444;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #2c2c2c;
  font-weight: bold;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Achievements Section */
.achievements-section {
  background-color: #fff;
  padding: 80px 0;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #ff4444;
  margin-bottom: 20px;
  font-weight: bold;
}

.section-title.yellow {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-description {
  font-size: 1.1rem;
  color: #090909;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.achievement-card {
  background-color: #fff;
  padding: 40px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(44, 44, 44, 0.1);
  text-align: center;
}

.achievement-number {
  font-size: 3rem;
  font-weight: bold;
  color: #2c2c2c;
  margin-bottom: 10px;
}

.achievement-label {
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
}

/* Education Levels Section */
.education-levels-section {
  background: linear-gradient(135deg, #b6dcda, #b6dcda);
  padding: 40px 0;
  text-align: center;
}

.grades-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.grade-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.grade-card:hover {
  transform: scale(1.05);
}

.grade-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.grade-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px;
  font-weight: bold;
  color: #2c2c2c;
}

/* Gallery Section */
.gallery-section {
  background-color: #fff;
  padding: 80px 0;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(44, 44, 44, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item.large .gallery-img {
  height: 420px;
}

/* Activities Section */
.activities-section {
  background-color: #fff;
  padding: 80px 0;
}

.activities-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.activities-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 40px;
  border-radius: 15px;
  position: relative;
  color: #fff;
}

.activities-title {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.activities-description {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.red-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #ff4444;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.activity-card {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  color: #2c2c2c;
  transition: background-color 0.3s ease;
}

.activity-card:hover {
  background-color: #e0e0e0;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.carousel-btn {
  background-color: #ddd;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: #ccc;
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #ff4444;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #2d3e5d, #2d3e5d);
  padding: 80px 0;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-input,
.form-textarea {
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fff;
  color: #2c2c2c;
}

.form-textarea {
  grid-column: span 2;
  resize: vertical;
}

.send-btn {
  background-color: #ff4444;
  color: #fff;
  border: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.send-btn:hover {
  background-color: #cc3333;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #a8edea, #a8edea);
  padding: 40px 0 20px;
  text-align: center;
  color: #2c2c2c;
}

.footer-branding {
  margin-bottom: 30px;
}

.footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #2c2c2c;
}

.footer-contact {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #060606;
}

.contact-item i {
  color: #ff4444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .welcome-title {
    font-size: 2rem;
  }

  .features-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .student-images {
    height: 300px;
  }

  .main-student {
    width: 250px;
    height: 280px;
  }

  .bg-student-1 {
    width: 200px;
    height: 240px;
    left: 30px;
  }

  .bg-student-2 {
    width: 150px;
    height: 200px;
    left: 60px;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .grades-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item.large .gallery-img {
    height: 200px;
  }

  .activities-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-textarea {
    grid-column: span 1;
  }

  .footer-contact {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .grades-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
  }
}
