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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.slide-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  animation: slideInLeft 1s ease-out;
}

.slide-in-right {
  animation: slideInRight 1s ease-out;
}

.pulse-btn {
  animation: pulse 2s infinite;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #2d5016;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  width: 70px;
  height: 50px;
  transition: transform 0.3s ease;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 16px;
  position: relative;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
  background-color: #1c700e;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
  width: auto;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero header {
  margin-top: 80px;
  text-align: center;
  padding-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.hero-top-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Statistics Section */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  justify-items: center;
}

.stat-box {
  text-align: center;
  max-width: 270px;
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-10px);
}

.icon-circle {
  width: 130px;
  height: 130px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #fecd28 0%, #ffd700 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 5px dotted #2d5016;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.icon-circle::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.stat-box:hover .icon-circle::before {
  opacity: 1;
  animation: shine 1s ease-in-out;
}

.icon-circle img {
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease;
}

.stat-box:hover .icon-circle img {
  transform: scale(1.1);
}

.stat-box h2 {
  font-size: 2.5rem;
  margin: 15px 0 5px;
  font-weight: 700;
  color: #2d5016;
  transition: color 0.3s ease;
}

.stat-box p {
  font-size: 1.2rem;
  color: #666;
  font-weight: 500;
}

/* Classes Section */
.classes-section {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
}

.classes-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.classes-section h2 span {
  color: #28a745;
  position: relative;
}

.classes-section h2 span::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1c700e;
  border-radius: 2px;
}

.sub-heading {
  font-size: 1.1rem;
  max-width: 1000px;
  margin: 0 auto 50px;
  line-height: 1.8;
  color: #666;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.class-card {
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.class-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.class-card:hover::before {
  left: 100%;
}

.class-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.light-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.green-card {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.class-card .icon {
  background: white;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.class-card:hover .icon {
  transform: rotate(360deg);
}

.class-card .icon img {
  width: 35px;
  height: 35px;
}

.class-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.class-card p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.visit-btn {
  display: inline-block;
  margin-top: 50px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.visit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

/* Gallery Section */
.gallery-section {
  position: relative;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-section .pencil {
  position: absolute;
  top: 10%;
  left: 0;
  transform: translateY(-50%) scaleX(-1);
  width: 100px;
  height: auto;
  z-index: 2;
}

.pencil-flip {
  transform: scaleX(-1);
  width: 80px;
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.gallery-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.gallery-section h2 span {
  color: #28a745;
}

.underline {
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  margin: 0 auto 50px;
  border-radius: 2px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.1) 0%,
    rgba(32, 201, 151, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-content {
  padding: 25px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

.card-content p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.explore-btn {
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
  color: #333;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
}

.explore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Our Works Section */
.our-works-section {
  padding: 80px 20px;
  background: #fff;
}

.containner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 50px;
}

.left {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.circle-bg img {
  width: 100%;
  max-width: 600px;
  height: auto;
  transition: transform 0.3s ease;
}

.circle-bg img:hover {
  transform: scale(1.05);
}

.right {
  flex: 1;
  min-width: 320px;
  padding: 20px;
}

.right h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: #333;
}

.right h2 span {
  color: #28a745;
  position: relative;
}

.right p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 30px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.feature-box {
  border: 2px solid #e9ecef;
  padding: 15px 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  transition: all 0.3s ease;
  background: #fff;
}

.feature-box:hover {
  border-color: #28a745;
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.05) 0%,
    rgba(32, 201, 151, 0.05) 100%
  );
  transform: translateY(-2px);
}

.feature-box svg {
  fill: #28a745;
  transition: transform 0.3s ease;
}

.feature-box:hover svg {
  transform: scale(1.2);
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

/* Staff Section */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.team .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
}

.team .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.team .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team .card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 5px solid #28a745;
  transition: transform 0.3s ease;
}

.team .card:hover img {
  transform: scale(1.1);
}

.info h3 {
  font-size: 1.3rem;
  margin: 15px 0 5px;
  color: #333;
  font-weight: 600;
}

.qual {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 10px;
}

.position {
  font-weight: 700;
  font-size: 1.2rem;
  color: #28a745;
}

/* Reviews Section */
.reviews-section {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #333;
}

.title span {
  color: #208110;
}

.title::after {
  content: "";
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  display: block;
  margin: 15px auto 0;
  border-radius: 2px;
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
  margin-top: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.review-cards .card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.review-cards .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  padding: 25px 20px 15px;
  position: relative;
}

.card-header::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ffd700;
}

.card-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  text-align: center;
  display: inline-block;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-header h3 {
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.stars {
  margin: 15px 0;
  color: #ff6b35;
  font-size: 1.3rem;
}

.review-text {
  padding: 20px 25px 25px;
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  font-style: italic;
}

/* Class Detail Pages */
.class header {
  margin-top: 80px;
  text-align: center;
  padding-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.class-top-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.class-detail {
  padding: 60px 0;
}

.class-detail.alternate {
  background: #f8f9fa;
}

.class-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.class-text {
  flex: 1;
}

.class-text h2 {
  font-size: 2rem;
  color: #2d5016;
  margin-bottom: 1rem;
}

ul.custom-list {
  list-style: none;
  padding: 8px;
}

ul.custom-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-family: sans-serif;
}

ul.custom-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #28a745;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
}

.class-image {
  flex: 1;
}

.class-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.class-image img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

.class-hero-image {
  width: 100%;
  height: 400px;
  display: block;
  margin-top: 2px;
  overflow: hidden;
  position: relative;
}

.class-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.class-hero-image img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Gallery Page Styles */
.header {
  margin-top: 80px;
  text-align: center;
  color: white;
  padding-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.gallery-top-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.title h1 {
  color: #000000;
  margin: 10px;
  font-size: 28px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title span {
  font-weight: bold;
  font-size: 34px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 30px;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 4px solid white;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: slideInLeft 0.3s ease-out;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #333;
  font-weight: bold;
}

.lightbox-close:hover {
  background: white;
  transform: scale(1.1);
}

/* About Page Styles */
h1 {
  text-align: center;
  font-size: 4rem;
  margin-top: 90px;
  margin-bottom: 30px;
  color: #333;
}

h1 span {
  color: #28a745;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 3px;
}

.about {
  max-width: 900px;
  margin: 20px auto;
  padding: 40px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
  text-align: justify;
  background: white;
  border-radius: 15px;
}

.about span {
  color: #28a745;
  font-weight: bold;
}

/* Teachers Section */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.cards .card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 20px;
  flex: 1 1 20%;
  max-width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.cards .card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 4px solid #2e7d32;
}

.cards .card h3 {
  margin: 10px 0 6px;
  font-size: 18px;
  color: #2e7d32;
  text-align: center;
}

.cards .card p {
  margin: 2px 0;
  font-size: 14px;
  color: #555;
  text-align: center;
}

.cards .card .description {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-top: 6px;
}

/* Contact Section */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  margin: 40px auto;
  max-width: 1000px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-left {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 40px;
  flex: 1;
  min-width: 300px;
}

.contact-left h2 {
  margin-bottom: 25px;
  font-size: 1.5rem;
  color: #ffd700;
}

.contact-left p {
  margin: 15px 0;
  font-size: 1.1rem;
}

.contact-left a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-left a:hover {
  color: #ffd700;
}

.contact-left i {
  margin-right: 10px;
  color: #ffd700;
  width: 20px;
}

.contact-right {
  flex: 1;
  min-width: 300px;
}

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

.form-section {
  text-align: center;
  margin-top: 60px;
  padding: 0 20px;
  position: relative;
}

.form-section .bagpack {
  position: absolute;
  bottom: -150px;
  right: 2%;
  transform: translateY(-50%);
  width: 100px;
  height: auto;
  z-index: 2;
}

.form-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #333;
}

.form-section h2 span {
  color: #28a745;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 3px;
}

.center-button {
  display: block;
  margin: 20px auto 0 auto;
}

form {
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

input,
textarea {
  padding: 15px;
  font-size: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #28a745;
  background: white;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
  color: #333;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 200px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

/* Footer */
.footer {
  background: #1c700e;
  padding: 60px 20px 20px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: #fac60f;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/footerimage/footerimg.jpg'); 
  background-size: cover;
  background-position: center;
  opacity: 0.1; 
  z-index: -1;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column h2 {
  color: #fac60f;
  margin-bottom: 25px;
  font-size: 1.4rem;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  text-decoration: none;
  color: #ffd700;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: white;
}

.footer-column p {
  margin: 12px 0;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-column address p a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column address p a:hover {
  color: #ffd700;
}

.social-icons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffd700;
  color: #333;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background: #ffed4e;
  transform: translateY(-3px);
}

.footer form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.footer form input,
.footer form textarea {
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.footer form input::placeholder,
.footer form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.footer form input:focus,
.footer form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px #ffd700;
}

.footer form textarea {
  resize: vertical;
  min-height: 100px;
}

.footer form button {
  padding: 15px;
  background: #ffd700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  margin: 0;
}

.footer form button:hover {
  background: #ffed4e;
  transform: translateY(-2px);
}

/* Loading and Error States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.error {
  border: 2px solid #dc3545 !important;
  background: rgba(220, 53, 69, 0.1) !important;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
}

.notification-error {
  background: #dc3545;
}

.notification-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid #28a745;
  outline-offset: 2px;
}

.nav-menu a:focus,
.btn:focus,
.visit-btn:focus,
.explore-btn:focus,
.cta-button:focus,
button:focus {
  outline: 3px solid #28a745;
  outline-offset: 3px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #28a745;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10001;
}

.skip-link:focus {
  top: 6px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .cards .card {
    max-width: 30%;
    flex: 1 1 30%;
  }
}

@media (max-width: 1024px) {
  .containner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .left {
    min-width: auto;
  }

  .right {
    min-width: auto;
    padding: 0;
  }

  .class-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .col-reverse {
    flex-direction: column-reverse;
  }
}

@media (max-width: 900px) {
  .cards .card {
    max-width: 45%;
    flex: 1 1 45%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .hamburger {
    display: flex;
    align-items: end;
  }

  .nav-container {
    padding: 0.8rem 1rem;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    gap: 1rem;
    height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu a {
    padding: 12px 20px;
    font-size: 1.1rem;
    display: block;
    margin: 0 20px;
  }

  .logo {
    font-size: 1rem;
  }

  .logo img {
    width: 50px;
    height: 35px;
  }

  .hero {
    margin-top: 70px;
  }
  .hero-top-image {
    width: 100%;
    height: 200px;
    object-fit: fill;
}
  .stats-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px 15px;
  }

  .icon-circle {
    width: 100px;
    height: 100px;
  }

  .icon-circle img {
    width: 50px;
    height: 50px;
  }

  .stat-box h2 {
    font-size: 2rem;
  }

  .stat-box p {
    font-size: 1rem;
  }

  .classes-section {
    padding: 60px 15px;
  }

  .class-top-image {
    width: 100%;
    height: 200px;
    object-fit: fill;
}

  .classes-section h2 {
    font-size: 2rem;
  }

  .sub-heading {
    font-size: 1rem;
  }

  .classes-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .gallery-section {
    padding: 60px 15px;
  }

  .gallery-top-image {
    width: 100%;
    height: 200px;
    object-fit: fill;
}

  .gallery-section .pencil {
    width: 60px;
    top: 5%;
    left: -1%;
  }

  .gallery-section h2 {
    font-size: 2rem;
  }

  .card-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .our-works-section {
    padding: 60px 15px;
  }

  .right h2 {
    font-size: 1.8rem;
  }

  .right p {
    font-size: 1rem;
  }

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

  .feature-box {
    padding: 12px 15px;
  }

  .team {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 60px 15px;
  }

  .team .card img {
    width: 120px;
    height: 120px;
  }

  .reviews-section {
    padding: 60px 15px;
  }

  .title {
    font-size: 2rem;
  }

  .review-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .class-detail {
    padding: 40px 0;
  }

  .class-content {
    padding: 0 15px;
  }

  .class-text h2 {
    font-size: 1.8rem;
  }

  .class-hero-image {
    margin-top: 0px;
    height: 250px;
  }

  .header {
    margin-top: 70px;
  }

  .title h1 {
    font-size: 24px;
  }

  .title span {
    font-size: 28px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding: 20px;
  }

  .gallery img {
    height: 150px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  h1 {
    font-size: 3rem;
    margin-top: 80px;
  }

  .pencil-flip {
    width: 40px;
    position: absolute;
    z-index: -1;
    pointer-events: none;
  }

  .contact-section {
    flex-direction: column;
    margin: 20px 15px;
  }

  .contact-left {
    padding: 30px 20px;
    min-width: auto;
  }

  .contact-left h2 {
    font-size: 1.3rem;
  }

  .contact-left p {
    font-size: 1rem;
  }

  .contact-right {
    min-width: auto;
  }

  .contact-right img {
    min-height: 200px;
  }

  .form-section {
    padding: 0 15px;
  }

  .form-section .bagpack {
    width: 60px;
    right: 1%;
  }

  .form-section h2 {
    font-size: 2rem;
  }

  form {
    padding: 30px 20px;
    margin: 15px;
  }

  input,
  textarea {
    padding: 12px;
    font-size: 0.9rem;
  }

  .footer {
    padding: 40px 15px 15px;
  }

  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }

  .footer-column h2 {
    font-size: 1.2rem;
  }

  .footer-column ul li a,
  .footer-column p {
    font-size: 0.9rem;
  }

  .notification {
    right: 10px;
    left: 10px;
    max-width: none;
    padding: 12px 15px;
  }

  .notification-content {
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .cards .card {
    max-width: 45%;
    flex: 1 1 45%;
    padding: 12px;
  }

  .cards .card img {
    width: 100px;
    height: 100px;
  }

  .cards .card h3 {
    font-size: 16px;
  }

  .cards .card p {
    font-size: 13px;
  }

  .cards .card .description {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 10px;
  }

  .nav-container {
    padding: 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .logo img {
    width: 50px;
    height: 40px;
  }

  .hero-image {
    height: 200px;
  }

  .stats-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 25px;
    padding: 20px 10px;
  }

  .icon-circle {
    width: 80px;
    height: 80px;
  }

  .icon-circle img {
    width: 40px;
    height: 40px;
  }

  .stat-box h2 {
    font-size: 1.5rem;
  }

  .stat-box p {
    font-size: 0.9rem;
  }

  .classes-section {
    padding: 40px 10px;
  }

  .classes-section h2 {
    font-size: 1.8rem;
  }

  .classes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .class-card {
    padding: 20px;
  }

  .class-card .icon {
    width: 60px;
    height: 60px;
  }

  .class-card .icon img {
    width: 30px;
    height: 30px;
  }

  .class-card h3 {
    font-size: 1.2rem;
  }

  .class-card p {
    font-size: 0.9rem;
  }

  .gallery-section {
    padding: 40px 10px;
  }

  .gallery-section .pencil {
    width: 40px;
  }

  .gallery-section h2 {
    font-size: 1.8rem;
  }

  .card-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-content {
    padding: 20px;
  }

  .card-content h3 {
    font-size: 1.1rem;
  }

  .card-content p {
    font-size: 0.9rem;
  }

  .our-works-section {
    padding: 40px 10px;
  }

  .right h2 {
    font-size: 1.5rem;
  }

  .right p {
    font-size: 0.9rem;
  }

  .team {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 40px 10px;
  }

  .team .card img {
    width: 100px;
    height: 100px;
  }

  .reviews-section {
    padding: 40px 10px;
  }

  .title {
    font-size: 1.8rem;
  }

  .review-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .class-content {
    padding: 0 10px;
  }

  .class-text h2 {
    font-size: 1.5rem;
  }

  .class-hero-image {
    height: 200px;
  }

  .class-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .title h1 {
    font-size: 20px;
  }

  .title span {
    font-size: 24px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 15px;
  }

  .gallery img {
    height: 120px;
  }

  h1 {
    font-size: 2rem;
    margin-top: 70px;
  }

  .pencil-flip {
    width: 40px;
    position: absolute;
    z-index: -1;
    pointer-events: none;
  }

  .cards .card {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .contact-section {
    margin: 15px 10px;
  }

  .contact-left {
    padding: 25px 15px;
  }

  .contact-left h2 {
    font-size: 1.2rem;
  }

  .contact-left p {
    font-size: 0.9rem;
  }

  .form-section {
    padding: 0 10px;
  }

  .form-section .bagpack {
    width: 50px;
    top: 500px;
  }

  .form-section h2 {
    font-size: 1.8rem;
  }

  form {
    padding: 25px 15px;
    margin: 10px;
  }

  input,
  textarea {
    padding: 10px;
    font-size: 0.85rem;
  }

  textarea {
    min-height: 100px;
  }

  button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .footer {
    padding: 30px 10px 10px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-column h2 {
    font-size: 2.1rem;
    margin-left: 20px;
  }

  .footer-column ul li a,
  .footer-column p {
    font-size: 1rem;
    margin-left: 25px;
  }

  .social-icons a {
    margin-left: 25px;
  }
}

@media (max-width: 400px) {
  .cards .card {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  .hero-image {
    height: 180px;
  }

  .stats-container {
    padding: 20px 5px;
  }

  .classes-section,
  .gallery-section,
  .reviews-section {
    padding: 30px 5px;
  }

  .our-works-section {
    padding: 30px 5px;
  }

  .team {
    padding: 30px 5px;
  }

  .footer {
    padding: 20px 5px 10px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-image {
    height: 150px;
  }

  .nav-menu {
    height: calc(100vh - 60px);
  }

  .stats-container {
    padding: 30px 20px;
  }
}

/* Ultra-wide screen support */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .nav-container,
  .footer-container {
    max-width: 1400px;
  }

  .stats-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
  }

  .classes-grid,
  .card-container,
  .review-cards {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hamburger,
  .social-icons,
  .footer form,
  .lightbox {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
  }

  .hero,
  .stats-container,
  .classes-section,
  .gallery-section,
  .reviews-section {
    page-break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }

  .card,
  .class-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .pulse-btn {
    animation: none;
  }

  .slide-up,
  .fade-in,
  .slide-in-left,
  .slide-in-right {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Utility classes for responsive design */
.hidden-mobile {
  display: block;
}

.visible-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hidden-mobile {
    display: none;
  }

  .visible-mobile {
    display: block;
  }
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.p-0 {
  padding: 0;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 1rem;
}

.p-4 {
  padding: 1.5rem;
}

.p-5 {
  padding: 3rem;
}
