.hero-section {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent) 50%,
    var(--primary-dark) 100%
  );
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  padding: 0 1.5rem;
}

.hero-section h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
  font-weight: 300;
  padding: 0 1rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1rem;
}

/* Main Content Container */
.container {
  padding: 0 1.5rem;
}

/* Subject Overview Section */
.subject-overview {
  margin: 3rem 0;
  padding: 0 0.5rem;
}

.overview-text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  padding: 0 0.5rem;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0 0.5rem;
}

.overview-stats .stat-item {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-stats .stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Semester-wise Subjects Section */
.semester-subjects {
  margin: 3rem 0;
  padding: 0 0.5rem;
}

.semester-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 2rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  padding-left: 0.5rem;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 0 0.5rem;
}

.subject-card {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--primary);
  margin-bottom: 1rem;
}

.subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.subject-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.subject-header i {
  font-size: 1.8rem;
  color: var(--primary);
  min-width: 50px;
  height: 50px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
}

.subject-header h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.subject-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
  padding-left: 0.5rem;
}

.subject-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
}

.credits {
  font-weight: 600;
  color: var(--primary);
}

.type {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.type.core {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.type.elective {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
}

.type.project {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.type.internship {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

/* Elective Subjects Section */
.elective-subjects {
  margin: 3rem 0;
  padding: 0 0.5rem;
}

.section-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: 1.1rem;
  padding: 0 0.5rem;
}

.elective-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 0.5rem;
}

.elective-category {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elective-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.elective-category h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.elective-category ul {
  list-style-type: none;
  padding-left: 0;
  margin-left: 0.5rem;
}

.elective-category li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.elective-category li::before {
  content: "•";
  color: var(--primary);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Call to Action Section */
.cta-section {
  margin: 3rem 0;
  text-align: center;
  padding: 0 0.5rem;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
  padding: 0 1rem;
}

.cta-section p {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  padding: 0 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1rem;
}

/* Card Styling */
.card {
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin: 1.5rem auto;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--dark);
  font-weight: 700;
  padding: 0 1rem;
}

/* Dark Mode Styles */
body.dark-mode .subject-card,
body.dark-mode .overview-stats .stat-item,
body.dark-mode .elective-category {
  background-color: rgba(30, 41, 59, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-color: #334155;
}

body.dark-mode .subject-header h4,
body.dark-mode .semester-title,
body.dark-mode .elective-category h3,
body.dark-mode .cta-section h2,
body.dark-mode .section-title {
  color: #a78bfa;
}

body.dark-mode .subject-card p,
body.dark-mode .overview-text,
body.dark-mode .section-description,
body.dark-mode .cta-section p,
body.dark-mode .elective-category li,
body.dark-mode .stat-label {
  color: #cbd5e1;
}

body.dark-mode .subject-header i {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
}

body.dark-mode .elective-category li::before {
  color: #a78bfa;
}

body.dark-mode .card {
  background-color: rgba(30, 41, 59, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid #475569;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

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

  .elective-categories {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

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

@media (max-width: 480px) {
  .hero-section {
    padding: 3.5rem 0;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .overview-stats {
    grid-template-columns: 1fr;
  }

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

  .semester-title {
    font-size: 1.3rem;
  }

  .subject-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .subject-header i {
    margin-bottom: 0.5rem;
  }

  .card {
    padding: 1rem;
  }
}
