/* Hero Section */
.hero-wrapper {
  padding: 120px 1rem var(--spacing-lg);
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-wrapper {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-wrapper {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

.hero-container {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 123, 255, 0.15);
  aspect-ratio: 16/7;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: -1;
}

.hero-content {
  padding: 0 var(--spacing-xl);
  max-width: 800px;
  color: white;
  transform: translateX(50px);
  opacity: 0;
  transition: all 0.8s ease-out;
}

.hero-slide.active .hero-content {
  transform: translateX(0);
  opacity: 1;
}

.hero-content h1 {
  color: white;
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
}

.hero-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.hero-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* Feature Cards (Subjects / Services) */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.card {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 123, 255, 0.1);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--spacing-sm);
  transition: all var(--transition-fast);
}

.card:hover .card-icon {
  background: var(--primary);
  color: white;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-grade {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-dark);
  background: rgba(43, 197, 212, 0.1);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.8rem;
}

/* About / Split Section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.image-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,123,255,0.2) 0%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-container {
    aspect-ratio: auto;
    min-height: 600px;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .split-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-wrapper {
    padding: 90px var(--spacing-sm) var(--spacing-md);
  }
  .hero-content {
    padding: 0 var(--spacing-md);
  }
  .hero-content h1 {
    font-size: 2.25rem;
  }
}
