/* Hero Banner */
.hero-banner {
  background: var(--primary-dark);
  color: var(--white);
  position: relative;
  margin-bottom: var(--space-xl);
  overflow: hidden;
}
.hero-slider {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
}
.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s;
  display: flex;
  align-items: center;
}
.hero-slide.active {
  opacity: 1;
}
.slide-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.slide-content {
  flex: 0 0 30%;
  padding: var(--space-xl);
  background: rgba(0, 0, 0, 0.6);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slide-content h2 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
  color: var(--white);
}
.slide-content p {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: rgba(255,255,255,0.9);
}
.slider-controls {
  position: absolute;
  bottom: var(--space-md);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  gap: var(--space-md);
}
.slider-prev,
.slider-next {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  backdrop-filter: blur(5px);
}
.slider-prev:hover,
.slider-next:hover,
.slider-prev:focus,
.slider-next:focus {
  background: var(--secondary);
  color: var(--dark);
  outline: none;
}
.slider-dots {
  display: flex;
  gap: var(--space-xs);
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: 0.2s; 
  padding: 0;
}
.slider-dot.active {
  background: var(--secondary);
  transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-slider {
    height: 400px;
  }
  .hero-slide {
    flex-direction: column;
  }
  .slide-content {
    padding: var(--space-lg);
    height: 40%;
  }
  .slide-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-slider {
    height: 350px;
  }
  .slide-content h2 {
    font-size: 1.3rem;
  }
  .slide-content p {
    font-size: 1rem;
  }
}

/* Main Content */
.main-content {
  padding-bottom: 2rem;
}
.content-grid {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    top: auto;
  }
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--space-xl) + 100px);
  align-self: start;
}
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.sidebar-card h3 {
  font-size: 1.125rem;
  color: var(--dark);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.sidebar-card.quick-links h3,
#about-heading,
#about-heading-hi {
  font-size: 1.5rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.sidebar-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-card li {
  margin-bottom: var(--space-xs);
}
.sidebar-card li:last-child {
  margin-bottom: 0;
}
.sidebar-card a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs);
  color: var(--dark);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: 0.2s;
}
.sidebar-card a:hover,
.sidebar-card a:focus {
  background: var(--primary-light);
  color: var(--primary);
  outline: none;
}
.sidebar-card a i {
  width: 20px;
  text-align: center;
  color: var(--primary);
}
.emergency-contacts li {
  padding: var(--space-xs) var(--space-sm);
}
.sidebar-help {
  background-color: var(--primary-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}
.sidebar-help h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--dark);
}
.help-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: 0.2s;
  font-weight: 500;
}
.help-button:hover {
  background-color: var(--primary-dark);
}

/* Primary Content */
.primary-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
}
.content-card h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--primary);
}
.content-card h2 i {
  color: var(--primary);
}

/* About Section */
.about-content {
  margin-bottom: var(--space-md);
}
.about-actions {
  margin-top: var(--space-md);
}
.about-section h2,
#about-heading,
#about-heading-hi {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.updates-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.section-header h2 {
  font-size: 1.5rem;
  color: #1a365d;
  margin: 0;
  font-weight: 600;
}
.view-all {
  color: #3182ce;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.view-all:hover {
  color: #2b6cb0;
  text-decoration: underline;
}
.view-all i {
  font-size: 0.9rem;
}
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.update-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  background: white;
  display: flex;
  flex-direction: column;
}
.update-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e0;
}
.update-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background: #e53e3e !important; 
  color: #fff !important;       
  border: none !important;
}

.update-badge.New {
  background: #ebf8ff;
  color: #3182ce;
  border: 1px solid #bee3f8;
}
.update-badge.Report {
  background: #fff5f5;
  color: #e53e3e;
  border: 1px solid #fed7d7;
}
.update-content {
  padding: 1.75rem;
  padding-top: 3.25rem;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.update-card h3 {
  font-size: 1.25rem;
  color: #2d3748;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  padding-right: 6rem;
}
.update-date {
  color: #718096;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.update-date::before {
  content: "🗓";
  font-size: 0.9rem;
}
.update-summary {
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.update-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.update-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.update-actions .btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.update-actions .btn.primary {
  background: #3182ce;
  color: white;
}
.update-actions .btn.primary:hover {
  background: #2b6cb0;
  transform: translateY(-2px);
}
.update-actions .btn.secondary {
  background: white;
  color: #3182ce;
  border: 1px solid #3182ce;
}
.update-actions .btn.secondary:hover {
  background: #ebf8ff;
  transform: translateY(-2px);
}

.subjects-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.subject-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--light);
  border-radius: var(--radius-sm);
  transition: 0.2s;
  border-bottom: 1px solid #eee;
}
.subject-item:hover,
.subject-item:focus-within {
  background: var(--primary-light);
}
.subject-item i {
  color: var(--primary);
  width: 24px;
  text-align: center;
}
.additional-subject {
  display: none;
}
.view-all-subjects-btn, .show-less-subjects-btn {
  margin-top: 20px;
  cursor: pointer;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.service-card {
  background: var(--light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: 0.2s;
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}
.service-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}
.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}
.service-card p {
  color: var(--gray);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
}

/* Emergency Contacts Logos */
.emergency-contacts {
  text-align: center;
}
.emergency-logos {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.emergency-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  border-radius: 50%;
  padding: 3px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  width: 80px;
  height: 80px;
  position: relative;
}
.emergency-logo:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}
.emergency-logo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.2s;
}
.emergency-logo:hover img {
  transform: scale(1.15);
}
.emergency-logo::after {
  content: attr(title);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 10;
}
.emergency-logo:hover::after {
  opacity: 1;
}
@media (max-width: 768px) {
  .emergency-logos {
    justify-content: center;
    gap: var(--space-lg);
  }
  .emergency-logo {
    width: 70px;
    height: 70px;
  }
  .emergency-logo img {
    width: 85%;
    height: 85%;
  }
  .emergency-logo::after {
    font-size: 0.7rem;
    bottom: -35px;
  }
}

@media (max-width: 576px) {
  .emergency-logo::after {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
  border: none;
}
.btn:focus {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}
.btn.primary {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}
.btn.primary:hover,
.btn.primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn.secondary:hover,
.btn.secondary:focus {
  background: var(--primary-light);
}
.btn.outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn.outline:hover,
.btn.outline:focus {
  background: var(--primary-light);
}

.sidebar {
  position: sticky;
  top: calc(var(--space-xl) + 100px);
  align-self: start;
}

.hod-profile {
  text-align: center;
}
.hod-image {
  margin-bottom: var(--space-xs);
}
.hod-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin: 0 auto;
}

@media (max-width: 992px) {
  .sidebar {
    position: static;
    top: auto;
  }

  .content-grid > * {
    min-width: 0;
  }
}
.hod-details h4 {
  color: var(--primary);
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}
.hod-designation {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}
.hod-contact {
  margin: var(--space-md) 0;
  text-align: left;
}
.hod-contact p {
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.9rem;
}
.hod-contact i {
  color: var(--primary);
  width: 20px;
  text-align: center;
}
.hod-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray);
  text-align: left;
}
img {
  max-width: 100%;
  height: auto;
}