/* Enhanced Education Page Styles */
.education-hero {
  padding: 130px 0 40px;
  background: linear-gradient(135deg, rgba(0, 113, 196, 0.9), rgba(23, 162, 184, 0.9));
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Prevent fixed navbar from covering logos when page loads */
  scroll-margin-top: 100px;
}

/* Logo styling */
.logo-circle {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 0 10px;
}

.logo-circle img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
}

.ics-logo {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 0 10px;
}

.ics-logo img {
  max-width: 84px;
  max-height: 84px;
  object-fit: contain;
  border-radius: 5px;
}

/* Add margin between hero content and navbar */
.hero-content {
  margin-top: 20px;
}

.education-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.gpa-showcase {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.gpa-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  min-width: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.gpa-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gpa-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  display: block;
}

.gpa-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.section-navigation {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  margin: 1.5rem auto;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  max-width: fit-content;
}

/* Section Navigation Links (not navbar) */
.section-navigation .section-nav-link {
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.section-navigation .section-nav-link:hover,
.section-navigation .section-nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive navigation - vertical on small screens */
@media (max-width: 768px) {
  .section-navigation {
    flex-direction: column;
    width: 200px;
    padding: 1rem;
  }

  .section-navigation .nav-link {
    text-align: center;
    margin: 0.25rem 0;
  }
}

.course-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.course-section:nth-child(even) {
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  color: var(--primary-text);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.section-title .title-underline {
  height: 4px;
  width: 80px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  margin: 0 auto;
}

.course-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(10, 36, 99, 0.1);
  /* Center card in viewport when scrolling to anchor */
  scroll-margin-top: 250px;
  border: 1px solid rgba(33, 150, 243, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  transition: width 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(10, 36, 99, 0.15);
  border-color: rgba(33, 150, 243, 0.3);
}

.course-card:hover::before {
  width: 8px;
}

.course-header {
  margin-bottom: 1rem;
}

.course-code {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.course-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 0.5rem;
}


.course-description {
  color: var(--secondary-text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.course-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tag {
  background: rgba(23, 162, 184, 0.1);
  color: var(--cyan);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(23, 162, 184, 0.2);
}

.concentration-overview {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(0, 123, 255, 0.1));
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(23, 162, 184, 0.2);
}

.vision-alignment {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(23, 162, 184, 0.1));
  border-radius: 15px;
  padding: 2rem;
  margin-top: 3rem;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.achievements-section {
  background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
  padding: 3rem 0;
}

.honor-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(10, 36, 99, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.2);
  transition: all 0.3s ease;
  height: 100%;
}

.honor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(10, 36, 99, 0.15);
}

.honor-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-category {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(10, 36, 99, 0.1);
  border: 1px solid rgba(33, 150, 243, 0.1);
}

.skill-category h4 {
  color: var(--blue);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.skill-list li:last-child {
  border-bottom: none;
}

.skill-list li i {
  color: var(--cyan);
  margin-right: 0.75rem;
  width: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gpa-showcase {
    flex-direction: column;
    align-items: center;
  }

  .gpa-item {
    width: 100%;
    max-width: 300px;
    flex-direction: column;
  }

  .section-navigation {
    width: 100%;
    overflow-x: auto;
    justify-content: center;
  }

}

/* Smooth scrolling removed to avoid conflicts with JavaScript */

/* Loading animations */
.course-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
.course-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Program Overview Styles */
.program-overview {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(10, 36, 99, 0.1);
  border: 1px solid rgba(33, 150, 243, 0.1);
}

.program-overview h4 {
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.program-overview h4:first-child {
  margin-top: 0;
}

.program-overview ul {
  padding-left: 1.5rem;
}

.program-overview li {
  margin-bottom: 0.5rem;
  color: var(--secondary-text);
}

/* Important Course Styling */
.course-card.important-course {
  background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
  border: 2px solid #ffc107;
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
  position: relative;
  overflow: visible;
}

.course-card.important-course::before {
  background: linear-gradient(135deg, #ffc107, #ff9800);
  width: 6px;
}

.course-card.important-course:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(255, 193, 7, 0.4);
  border-color: #ff9800;
}

.course-card.important-course:hover::before {
  width: 10px;
}

.important-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
  z-index: 10;
  animation: pulse 2s infinite;
}

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

.important-course .course-code {
  color: #ff6f00;
  font-weight: 800;
}

.important-course .course-title {
  color: #e65100;
  font-weight: 700;
}
