/* SUBJECTS PAGE MIDDLE PORTION */
.subjects-page {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.subjects-page .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.subjects-page .section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.subjects-page .section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Grid */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

/* Card */
.subject-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.35s ease-out;
  transform: translateZ(0);
}

/* 3D Hover */
.subject-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* Icon */
.subject-card .icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .35s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

/* Icon hover glow */
.subject-card:hover .icon {
  transform: scale(1.12);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.subject-card .material-icons {
  font-size: 34px;
  color: #fff;
}

/* Text */
.subject-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.subject-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Color gradients for icons */
.subject-card.math .icon {
  background: linear-gradient(135deg, #ffb56b, #ff9f46);
}

.subject-card.science .icon {
  background: linear-gradient(135deg, #2bd9a8, #18bb89);
}

.subject-card.english .icon {
  background: linear-gradient(135deg, #b88cff, #9c72ff);
}

.subject-card.gk .icon {
  background: linear-gradient(135deg, #fbd645, #ffeb78);
}

.subject-card.computer .icon {
  background: linear-gradient(135deg, #5cb8ff, #2d9cff);
}

.subject-card.aptitude .icon {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
}

.subject-card.history .icon {
  background: linear-gradient(135deg, #e8b55a, #cf9839);
}

.subject-card.geography .icon {
  background: linear-gradient(135deg, #47c0ff, #3b9ee0);
}

/* Responsive */
@media (max-width: 768px) {
  .subjects-page {
    padding: 4rem 3%;
  }

  .subject-card {
    padding: 1.8rem 1.2rem;
  }
}






/* HERO PREMIUM */
.hero-premium {
  position: relative;
  padding: 6rem 5% 8rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-premium h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.hero-premium h1 .highlight {
  background: linear-gradient(90deg, #5cb8ff, #a48cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-premium p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Button glow and lift */
.hero-premium .btn-primary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius);
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(92, 184, 255, 0.4);
  transition: all 0.35s ease;
}

.hero-premium .btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(92, 184, 255, 0.6);
}

.hero-premium .btn-outline {
  padding: 1rem 2rem;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
  border-radius: var(--radius);
  font-size: 1.1rem;
  transition: all 0.35s ease;
}

.hero-premium .btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(92, 184, 255, 0.4);
}

/* Floating shapes */
.hero-premium .hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatHero 6s ease-in-out infinite alternate;
}

.shape-1 {
  width: 120px;
  height: 120px;
  background: #FFD580;
  top: -40px;
  left: 10%;
}

.shape-2 {
  width: 80px;
  height: 80px;
  background: #A48CFF;
  top: 20%;
  right: 15%;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: #FF7A7A;
  bottom: -50px;
  left: 20%;
}

.shape-4 {
  width: 60px;
  height: 60px;
  background: #52C291;
  bottom: 15%;
  right: 10%;
}

@keyframes floatHero {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(15deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-premium h1 {
    font-size: 2.2rem;
  }

  .hero-premium p {
    font-size: 1rem;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
  }

  .hero-premium .hero-shape {
    display: none;
  }
}