/* Department Page Styles */
main {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #000000;
  background-color: #ffffff;
  margin: 1rem 0;
  padding: 0;
}
/* Section Styling */
main section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

main section:nth-child(even) {
  background: #fafafa;
}

main section h2 {
  font-size: 2.5rem;
  color: #dc143c;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

main section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #dc143c, #ff4500);
  border-radius: 2px;
}

/* Hero Section */
.hero-container {
  position: relative;
  height:100vh;
  background-size: fill;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:0.5rem 1rem;
  margin:1rem auto;
  filter:brightness(90%);
  border-radius:2rem;
}
.hero-overlay img.hero-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
  z-index: 0; 
  filter: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  inset:0;
  gap:1rem;
  display:flex;
  flex-direction:column;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.4rem;
  color: #ffffff;
  margin: 0 0 2rem 0;
  max-width: 600px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  background: #ffffff;
  color: #dc143c;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #ff4500;
  color: #ffffff;
}



/* Introduction Section */
.introduction {
  text-align: center;
}

.introduction p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.highlights {
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  border-left: 5px solid #ff4500;
}

.highlights h3 {
  color: #dc143c;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.highlights ul {
  list-style: none;
  padding: 0;
}

.highlights li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
  font-size: 1.1rem;
}

.highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ff4500;
  font-weight: bold;
  font-size: 1.2rem;
}

/* HOD Section */
.hod-section {
  background: #ffffff;
}

.hod-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
  background: #fafafa;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hod-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hod-info h3 {
  font-size: 2rem;
  color: #dc143c;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hod-title {
  font-size: 1.2rem;
  color: #ff4500;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.qualifications,
.hod-contact {
  margin: 1.5rem 0;
}

.qualifications h4,
.hod-contact h4 {
  color: #dc143c;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.qualifications ul {
  list-style: none;
  padding: 0;
}

.qualifications li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.qualifications li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #ff4500;
  font-weight: bold;
}

.experience {
  color: #666666;
  font-weight: 500;
  font-style: italic;
}

.hod-message {
  background: #ffffff;
  padding: 1.5rem;
  border-left: 4px solid #ff4500;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.1rem;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hod-contact a {
  color: #dc143c;
  text-decoration: none;
}

.hod-contact a:hover {
  color: #ff4500;
  text-decoration: underline;
}

/* Grid Layouts */
.programs-grid,
.faculty-grid,
.facilities-grid,
.requirements-grid,
.achievements-grid,
.partners-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Card Styling */
.program-card,
.faculty-card,
.facility-card,
.requirement-card,
.achievement-card,
.partner-card,
.project-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid #dc143c;
  position: relative;
  overflow: hidden;
}

.program-card::before,
.faculty-card::before,
.facility-card::before,
.requirement-card::before,
.achievement-card::before,
.partner-card::before,
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc143c, #ff4500);
}

.program-card:hover,
.faculty-card:hover,
.facility-card:hover,
.requirement-card:hover,
.achievement-card:hover,
.partner-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.program-card h3,
.faculty-card h3,
.facility-card h3,
.requirement-card h3,
.achievement-card h3,
.partner-card h3,
.project-card h3 {
  color: #dc143c;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.program-level,
.program-duration,
.faculty-title,
.partner-type {
  color: #ff4500;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.program-description,
.facility-description,
.achievement-description,
.partner-description,
.project-description {
  color: #333333;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Faculty Images */
.faculty-image,
.facility-image,
.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.partner-logo {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 1rem;
}

/* Lists in Cards */
.specializations ul,
.career-prospects ul,
.research-interests ul,
.facility-features ul,
.academic-requirements ul,
.document-requirements ul,
.special-requirements ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.specializations li,
.career-prospects li,
.research-interests li,
.facility-features li,
.academic-requirements li,
.document-requirements li,
.special-requirements li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #333333;
}

.specializations li::before,
.career-prospects li::before,
.research-interests li::before,
.facility-features li::before,
.academic-requirements li::before,
.document-requirements li::before,
.special-requirements li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #ff4500;
  font-weight: bold;
}

.specializations h4,
.career-prospects h4,
.research-interests h4,
.facility-features h4,
.academic-requirements h4,
.document-requirements h4,
.special-requirements h4 {
  color: #dc143c;
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem 0;
  font-weight: 600;
}

/* Contact Information */
.contact-info {
  background: #fafafa;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-details h3 {
  color: #dc143c;
  font-size: 1.3rem;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.contact-details p {
  margin: 0.5rem 0;
  color: #333333;
}

.contact-details a {
  color: #dc143c;
  text-decoration: none;
}

.contact-details a:hover {
  color: #ff4500;
  text-decoration: underline;
}

/* Special Elements */
.capacity,
.publications,
.age-limit,
.experience,
.achievement-amount,
.awarding-body,
.project-student,
.project-year {
  font-weight: 500;
  color: #666666;
  font-size: 0.95rem;
}

.specialization {
  color: #ff4500;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    height: 60vh; 
    min-height: 400px;
    padding:0;
  }

  main section {
    padding: 1rem;
  }

   .hero-overlay img.hero-container {
    border-radius: 1rem; 
  }
  
  .hero {
    height: 50vh;
    min-height: 300px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  main section h2 {
    font-size: 2rem;
  }
  
  .hod-profile {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hod-image {
    max-width: 250px;
    justify-self: center;
  }
  
  .programs-grid,
  .faculty-grid,
  .facilities-grid,
  .requirements-grid,
  .achievements-grid,
  .partners-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .program-card,
  .faculty-card,
  .facility-card,
  .requirement-card,
  .achievement-card,
  .partner-card,
  .project-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
   .hero-container {
    height: 50vh; 
    min-height: 300px; 
    margin: 0.3rem auto; 
    padding:0;
  }
  main section{
    padding:0.5rem;
  }
   .hero-overlay img.hero-container {
    border-radius: 0.5rem; 
  }
  .hero-content {
    padding: 1.5rem; 
  }

  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  main section h2 {
    font-size: 1.8rem;
  }
  
  .introduction p {
    font-size: 1.1rem;
  }
  
  .highlights {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .hero {
    height: auto;
    background: #dc143c;
  }
  
  .hero-overlay {
    position: static;
    background: none;
    color: #000000;
  }
  
  .cta-button {
    display: none;
  }
  
  main section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .program-card,
  .faculty-card,
  .facility-card,
  .requirement-card,
  .achievement-card,
  .partner-card,
  .project-card {
    box-shadow: none;
    border: 1px solid #cccccc;
    page-break-inside: avoid;
  }
}