/* Custom About Page Styles */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --accent-color: #ffc107;
  --light-bg: #f8f9fa;
  --dark-bg: #212529;
  --success-color: #198754;
}

main {
  margin-top: 100px;
}

.about-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: center bottom;
}

.about-hero h1 {
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.value-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
}

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

.value-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: block;
}

/* Stats Counter */
.stats-counter {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
  color: white;
  padding: 2.5rem 0;
  text-align: center;
}

.stat-item {
  margin-bottom: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Welcome Section */
.welcome-section {
  padding: 3rem 0;
}

.welcome-content {
  padding-right: 2rem;
}

.college-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 10px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  width: 25px;
  height: 25px;
  right: -13px;
  background-color: white;
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  z-index: 1;
  top: 15px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -12px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.timeline-content h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 5px;
}

.timeline-content h5 {
  margin-bottom: 15px;
  font-weight: 600;
}

/* Departments Section */
.departments-section {
  padding: 2rem 0;
}

.department-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  background: white;
}

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

.department-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Section backgrounds */
.vision-mission-section {
  padding: 3rem 0;
}

.history-section {
  padding: 3rem 0;
  background-color: var(--light-bg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-dot {
    left: 18px;
    right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: 18px;
  }
  
  .about-hero {
    padding: 3rem 0;
  }
  
  .about-hero h1 {
    font-size: 2rem;
  }
  
  .about-hero .lead {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .value-card {
    padding: 1.5rem 1rem;
  }
  
  .value-icon {
    font-size: 2.5rem;
  }
  
  .welcome-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .college-image {
    max-height: 300px;
  }
}

@media (max-width: 576px) {
  .about-hero h1 {
    font-size: 1.8rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-dot {
    left: 18px;
    right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: 18px;
  }
}