* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #fff;
  color: #333;
  overflow-x: hidden;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}


/* NAVBAR */
.navbar {
  background: white;
  border-bottom: 1px solid #000000;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 70px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover {
  color: #1f7a3f;
}

/* HERO */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
    url('school.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 48px;
}

.btn {
  margin-top: 20px;
  padding: 12px 28px;
  background: #6b1e1e;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  border-radius: 10px;
}

/* TOP LEARNERS */
.learners {
  padding: 50px 20px;
}

.ticker {
  overflow: hidden;
  margin-top: 30px;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.learner {
  min-width: 200px;
  margin: 0 20px;
  text-align: center;
}

.learner img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #6b1e1e;
}

/* SECTIONS */
.section {
  padding: 60px 20px;
  text-align: center;
}

.alt {
  background: #f4f4f4;
}

/* ACADEMICS */
.academics-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.academic-card {
  padding: 20px;
  border-left: 5px solid #1f7a3f;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ACTIVITIES */
/* ACTIVITIES GRID */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.activity-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.activity-item:hover {
  transform: translateY(-5px);
}

.activity-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 3px solid #1f7a3f;
}

.activity-item p {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* CONTACT SECTION */
.contact-section {
  padding: 60px 20px;
  background: #fff;
}

.contact-container {
  max-width: 1200px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-form {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h3 {
  color: #1f7a3f;
  margin-bottom: 25px;
  font-size: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1f7a3f;
}

.submit-btn {
  background: #1f7a3f;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.submit-btn:hover {
  background: #165a2f;
}

.contact-info {
  padding: 20px;
}

.contact-info h3 {
  color: #1f7a3f;
  margin-bottom: 25px;
  font-size: 24px;
}

.info-item {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 5px;
  border-left: 4px solid #1f7a3f;
}

.info-item p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.map-container {
  margin-top: 40px;
}

.map-container h3 {
  margin-bottom: 15px;
  color: #333;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .activity-item img {
    height: 150px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }
}

/* GALLERY */
/* GALLERY SECTION */
.gallery {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: #1f7a3f;
  position: relative;
}

.gallery h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #6b1e1e;
}

/* GALLERY GRID - MASONRY STYLE */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  grid-gap: 20px;
  grid-auto-flow: dense;
  max-width: 1200px;
  margin: 0 auto;
}

/* Different sizes for masonry effect */
.gallery-item:nth-child(3n) {
  grid-row: span 2;
}

.gallery-item:nth-child(5n) {
  grid-column: span 2;
}

.gallery-item:nth-child(7n) {
  grid-row: span 2;
  grid-column: span 2;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay span {
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1001;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox.active {
  display: flex;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1002;
}

.close-lightbox:hover {
  color: #1f7a3f;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-caption {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 0 0 10px 10px;
  text-align: center;
}

.lightbox-caption h3 {
  color: #1f7a3f;
  margin-bottom: 10px;
}

.lightbox-caption p {
  color: #666;
  font-size: 0.9rem;
}

/* Lightbox Navigation Buttons */
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.lightbox-btn:hover {
  background: rgba(31, 122, 63, 0.8);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 2px solid #1f7a3f;
  background: transparent;
  color: #1f7a3f;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: #1f7a3f;
  color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 220px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 180px;
  }
  
  .gallery-item:nth-child(5n),
  .gallery-item:nth-child(7n) {
    grid-column: span 1;
  }
  
  .lightbox-btn {
    padding: 10px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  
  .gallery-item:nth-child(3n),
  .gallery-item:nth-child(5n),
  .gallery-item:nth-child(7n) {
    grid-row: span 1;
    grid-column: span 1;
  }
}

/* Loading Animation */
.gallery-item {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animations */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }

/* FOOTER */
.footer {
  background: #ffffff;
  color: #000000;
  padding: 60px 20px 20px;
  border-top: 2px solid black;
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 40px;
}

.footer a {
  display: block;
  color: #000000;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer h4 {
  color: #1f7a3f;
  margin-bottom: 15px;
}

.footer-logo {
  width: 80px;
  margin-bottom: 15px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
}

/* ANIMATION */
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 30px;
  }
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #000;
  margin: 4px 0;
  transition: 0.3s;
}

/* MOBILE NAV */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    display: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .nav-links.active {
    display: flex;
  }
}
