/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.section-title {
  position: relative;
  font-size: 2.5rem;
  margin-bottom: 50px;
  padding-bottom: 20px;
  display: inline-block;
  text-align: center;
  width: 100%;
  cursor: pointer;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: linear-gradient(135deg, #1a237e, #0d47a1);
  transition: width 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.section-title:hover::after {
  width: 100px;
}

.hod-cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hod-card {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.10);
  position: relative;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  align-items: center;
  margin: 0 auto;
}

.hod-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.05), rgba(13, 71, 161, 0.1));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.hod-card:hover {
  transform: scale(1.03) translateY(-10px);
  box-shadow: 0 15px 30px rgba(13, 71, 161, 0.15);
}

.hod-card:hover::after {
  opacity: 1;
}

.column-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 32px 32px 0 32px;
  gap: 12px;
}

.hod-card-row1 {
  padding: 0;
  width: 100%;
}

.hod-image {
  width: 250px;
  max-width:100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
}

.hod-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #1a237e;
  background: #f5f5f5;
}

.hod-name, .hod-role {
  text-align: center;
  width: 100%;
}

.hod-name {
  font-size: 1.3rem;
  color: #0d47a1;
  font-weight: 600;
}

.hod-role {
  color: #1a237e;
  font-weight: 500;
  font-size: 1rem;
}

.hod-card-row2 {
  width: 100%;
  padding: 24px 32px 32px 32px;
  display: flex;
  justify-content: center;
}

.hod-message {
  line-height: 1.7;
  font-size: 1.05rem;
  color: #444;
  text-align: center;
  max-width: 700px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hod-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    gap: 20px;
  }
  .hod-image img {
    width: 160px;
    height: 180px;
  }
  .hod-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .hod-card {
    padding: 20px;
  }
  .hod-card-row1, .hod-card-row2 {
    padding: 16px;
  }
  .hod-image img {
    width: 100px;
    height: 120px;
  }
  .hod-name {
    font-size: 1.1rem;
  }
  .hod-role {
    font-size: 0.95rem;
  }
  .hod-message {
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 40px 0;
  }
  .hod-card {
    padding: 10px;
    gap: 10px;
  }
  .hod-image img {
    width: 90px;
    height: 100px;
  }
  .section-title {
    font-size: 1.3rem;
    padding-bottom: 10px;
  }
}