/* ---------------------------
   MODERN DARK THEME
----------------------------*/

:root {
  --bg: #0b0f14;
  --panel-bg: rgba(255, 255, 255, 0.03);
  --text-primary: #e6f0ff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #00f0ff;
  --accent-hover: #00c4cc;
  --radius: 12px;
  --ease: cubic-bezier(.2, .9, .3, 1);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: linear-gradient(-45deg, #0b0f14, #1a202c, #0b0f14, #2d3748);
  /* background-size: 400% 400%; */ /* Animation removed for performance */
  /* animation: gradientBG 15s ease infinite; */ /* Animation removed for performance */
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
}
@keyframes gradientBG {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  /* New diagonal cross-hatch pattern */
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 1px, transparent 1px, transparent 35px),
                    repeating-linear-gradient(-45deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 1px, transparent 1px, transparent 35px);
  z-index: -10;
  pointer-events: none;
}

/* --- New Tech Design Elements --- */

/* 1. Animated Background Grid */
@keyframes moveGrid {
  from { background-position: 0 0; }
  to { background-position: 30px 30px; }
}
/* body::after {
  /* animation: moveGrid 4s linear infinite; */ /* Removed for performance */
/* } */

/* 2. Scanline Overlay */
/* body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 240, 255, 0.05) 3px, rgba(0, 240, 255, 0.05) 3px);
  z-index: -9;
  pointer-events: none; /* This effect can also impact performance. Consider removing if issues persist. */
} */
/* --- End of New Tech Design Elements --- */

a {
  color: inherit;
  text-decoration: none;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6%;
  gap: 12px;
  background: rgba(11, 15, 20, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  object-fit: cover;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand h1 {
  font-size: 18px;
}

/* There were duplicate .nav-links rules, I've merged and cleaned them up. */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  position: relative;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 600;
  transition: all .18s var(--ease);
  overflow: hidden;
  text-decoration: none; /* Remove underline from nav links */
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #ff0000);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.nav-links a:hover::after {
  width: 100%;
}

/* MENU DROPDOWN */
.menu {
  position: relative;
}

.menu-btn {
  cursor: pointer;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;  
  background-color: #1a1a1a; /* Dark background color */
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: none;
  flex-direction: column;
  z-index: 80;
  box-shadow: var(--shadow-lg);
}
.menu-list.show {
  display: flex;
}

.menu-list a {
  display: block;
  padding: 8px;
  transition: all .18s var(--ease);
  border-radius: 8px;  
  color: #f0f0f0; /* Light text color for contrast */
  text-decoration: none; /* Remove underline from menu links */
}

/* Change color on hover/focus */
.menu-list a:hover,
.menu-list a:focus {
  background-color: #333; /* Darker background on hover */
  color: #fff; /* White text on hover */
}

/* Side Panel Navigation (for Student Corner, Academics) */
.side-panel {
  height: 100%;
  width: 0; /* Start hidden */
  position: fixed;
  z-index: 10001; /* Above navbar */
  top: 0;
  right: 0; /* Changed from left to right */
  background-color: #111; /* Dark background */
  overflow-x: hidden;
  transition: 0.5s var(--ease);
  padding-top: 60px;
  box-shadow: -5px 0 15px rgba(0,0,0,0.5); /* Adjusted shadow for right side */
}

.side-panel a {
  padding: 10px 15px 10px 32px;
  text-decoration: none;
  font-size: 18px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.side-panel a:hover {
  color: var(--accent);
}

.side-panel h3 {
  padding: 0 32px 20px 32px;
  font-size: 24px;
  color: #fff;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.side-panel .close-btn {
  position: absolute;
  top: 15px;
  left: 25px; /* Changed from right to left */
  font-size: 36px;
  padding: 0;
}

/* Overlay for when panel is open */
.panel-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 10000;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 56px 6%;
  min-height: 56vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(11, 15, 20, 0.7), rgba(11, 15, 20, 0.7)), url('../images/bg.png');
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, rgba(0, 240, 255, 0) 60%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: pulse 5s ease-in-out infinite;
}

.hero .left {
  max-width: 680px;
  z-index: 2;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  animation: pulse 3s ease-in-out infinite;
}

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

h1.hero-title {
  font-size: 44px;
  margin: 14px 0;
  line-height: 1.2;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(252, 112, 6, 0.3); /* Add a subtle glow to the main text */
  position: relative;
}

h1.hero-title::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  z-index: -1;
  -webkit-background-clip: unset;
  background: none;
  filter: blur(4px); /* Increase the blur for a wider glow */
  opacity: 0.8; /* Re-enable the glowing layer */
  /* animation: glitch 5s infinite; */ /* Keep glitch animation disabled for performance */
}

@keyframes glitch {
  0%, 5%, 100% { clip-path: inset(0 0 0 0); }
  1% { clip-path: inset(20% 0 60% 0); transform: translateX(-5px); }
  2% { clip-path: inset(80% 0 5% 0); transform: translateX(5px); }
  3% { clip-path: inset(10% 0 75% 0); transform: translateX(-3px); }
  4% { clip-path: inset(90% 0 2% 0); transform: translateX(3px); }
}

.lead {
  color: var(--text-muted);
  font-size: 16px;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s var(--ease);
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: linear-gradient(90deg, #b62303, #890000);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-ghost:hover {
  /* A slightly darker gradient for hover */
  background: linear-gradient(90deg, #01075a, #130164);
  transform: translateY(-2px);
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  z-index: 2
}

.card {
  width: 420px;
  padding: 18px;
  border-radius: var(--radius);
  background: #1a202c;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* HIGHLIGHTS SCROLLER */
.highlights-scroller {
  height: 250px; /* Adjust height as needed */
  overflow: hidden;
  position: relative;
  margin-top: 10px;
}
.highlights-scroller .highlights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: scroll-up 10s linear infinite;
}
@keyframes scroll-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
.highlights-scroller:hover .highlights-list {
  animation-play-state: paused;
}

/* Red Side-Glow for Highlights */
.highlights-scroller .glass {
  overflow: hidden; /* Contain the glow */
  border-color: rgba(255, 45, 45, 0.5); /* Red border */
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.3); /* Red glow around the card */
}
.highlights-scroller .glass::before,
.highlights-scroller .glass::after {
  content: '';
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: #ff2d2d; /* Red color */
  box-shadow: 0 0 8px #ff2d2d, 0 0 15px #ff2d2d;
  transform: scaleY(1); /* Make the glow always visible */
}
.highlights-scroller .glass::before {
  left: 0;
}
.highlights-scroller .glass::after {
  right: 0;
}

/* GRID & SECTIONS */
.container {
  padding: 48px 6%
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px
}

.glass {
  padding: 40px;
  position: relative;
  border-radius: var(--radius);
  background: #1a202c;
  border: 1px solid var(--border);
  transition: all .2s var(--ease);
  text-align: center;
}

.glass h3 + * {
  /* Add space between heading and the content below it */
  margin-top: 24px;
}

.glass ul {
  /* Center the list block, but align text inside it to the left */
  display: inline-block;
  text-align: left;
  list-style-position: inside;
}

.glass ul li {
  margin-bottom: 8px; /* Add space between mission points */
}

.glass::before, .glass::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0;
  transition: all 0.3s var(--ease);
}
.glass::before {
  top: 10px; left: 10px;
  border-width: 1px 0 0 1px;
}
.glass::after {
  bottom: 10px; right: 10px;
  border-width: 0 1px 1px 0;
}

.glass:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.2);
}
.glass:hover::before, .glass:hover::after {
  opacity: 1;
}

/* 3. New "Tech Box" style for cards */
/* This creates glowing side-borders on hover */
.tech-box {
  position: relative;
  overflow: hidden; /* Keeps the glow contained within the card's rounded corners */
}
.tech-box::before, .tech-box::after {
  content: '';
  position: absolute;
  top: 0;
  width: 2px; /* Width of the glowing bar */
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 15px var(--accent);
  transform: scaleY(0); /* Start hidden (zero height) */
  transition: transform 0.4s var(--ease);
}
.tech-box::before {
  left: 0;
  transform-origin: top;
}
.tech-box::after {
  right: 0;
  transform-origin: bottom;
}
.tech-box:hover::before, .tech-box:hover::after {
  transform: scaleY(1); /* Animate to full height on hover */
}
/* --- End of Tech Box style --- */

/* HOD Message Card Layout */
.hod-message-content {
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left; /* Override the center-align from .glass */
  margin-top: 24px;
}

.hod-message-content img {
  width: 180px;
  height: auto; /* Adjust height automatically */
  border-radius: var(--radius); /* Use theme's border-radius for rounded corners */
  object-fit: cover;
  border: 2px solid var(--border);
}

.hod-photo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0; /* Prevent image from shrinking */
  width: 180px; /* Set a fixed width for the container */
}
/* --- End of HOD Message Card --- */

.muted {
  color: var(--text-muted);
  font-size: 14px
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px
}

/* ADMISSION BANNER */
.admission-banner {
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: pulse 2.5s ease-in-out infinite;
  transition: transform 0.3s var(--ease);
}
.admission-banner:hover {
  transform: scale(1.02);
}
.admission-banner a {
  color: #0b0f14; /* Dark text for contrast */
  font-size: 24px;
  font-weight: 700;
}

.h-tag {
  font-size: 24px;
  font-weight: 700;
}

/* FACULTY CARD */
.faculty {
  display: flex;
  gap: 14px;
  align-items: center
}

.faculty img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover
}

/* NEWS LIST */
.news-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

/* CONTACT FORM */
.form-row {
  display: flex;
  gap: 12px
}

.input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  font-family: inherit;
}

/* Add a glow effect on focus for a tech feel */
.input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

textarea {
  resize: vertical
}

/* FOOTER */
footer {
  padding: 22px 6%;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: var(--text-muted);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.social-links a:hover {
  transform: scale(1.1) translateY(-3px);
}

/* Instagram */
.social-links a.instagram { color: #f17088; }
.social-links a.instagram:hover {
  filter: drop-shadow(0 0 8px #f66f88);
}

/* YouTube */
.social-links a.youtube { color: #FF0000; }
.social-links a.youtube:hover {
  filter: drop-shadow(0 0 8px #FF0000);
}

/* LinkedIn */
.social-links a.linkedin { color: #0077B5; }
.social-links a.linkedin:hover {
  filter: drop-shadow(0 0 8px #0077B5);
}

/* Email */
.social-links a.email { color: #13ff02; }
.social-links a.email:hover {
  filter: drop-shadow(0 0 8px #5df903);
}
.social-links svg {
  width: 24px;
  height: 24px;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .nav-links>a {
    display: none
  }

  .hero {
    flex-direction: column;
    align-items: flex-start
  }

  .hero-right {
    justify-content: flex-start;
    width: 100%
  }

  .card {
    width: 100%
  }

  .menu-list {
    left: 10px;
    width: auto;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

.nav-links a.active {
  color: #fff;
  transform: translateY(-2px);
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  animation: fadeInUp 1s ease-out;
}

.container {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-right .card {
  animation: fadeInUp 1s ease-out 0.5s both;
}

/* --- News & Events Page Specific Styles --- */

/* Grid for News Items */
.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem; /* Adjust the space between cards */
  justify-content: center;
}

.news-card {
  flex-basis: 100%; /* Full width on small screens */
}

/* On screens wider than 768px, make cards side-by-side */
@media (min-width: 768px) {
  .news-card {
    flex-basis: calc(50% - 1rem); /* Two cards per row with gap */
  }
}

/* Slideshow container */
.slideshow-container {
  position: relative;
  margin: auto;
}

/* Make slideshow images clickable */
.slideshow-container img {
  cursor: pointer;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
}

/* Position the "previous button" to the left edge of the card */
.prev {
  left: 15px; /* Adjust as needed */
  border-radius: 3px 0 0 3px;
}

/* Position the "next button" to the right */
.next {
  right: 15px; /* Adjust as needed */
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* --- Image Modal Styles --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px; /* Increased from 50px to move modal down */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  position: relative;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  max-width: 900px;
  height: 80%;
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
}

.modal-prev, .modal-next {
  cursor: pointer;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.3s;
  user-select: none;
}

.modal-prev { margin-right: 20px; }
.modal-next { margin-left: 20px; }

.modal-prev:hover, .modal-next:hover {
  background-color: rgba(255,255,255,0.2);
  border-radius: 5px;
}

/* --- Clubs Page Specific Styles --- */
@keyframes animated-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.clubs-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.club-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 240, 255, 0.08), rgba(255, 255, 255, 0.05));
  background-size: 200% 200%;
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-basis: calc(33.33% - 1.5rem);
  min-width: 300px;
  animation: animated-gradient 8s ease-in-out infinite;
}

.club-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.gallery-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.gallery-images img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  cursor: pointer; /* Add cursor to indicate it's clickable */
}

.club-gallery .prev-btn, .club-gallery .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 1;
  transition: background-color 0.3s ease;
}

.club-gallery .prev-btn:hover, .club-gallery .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.club-gallery .prev-btn { left: 10px; }
.club-gallery .next-btn { right: 10px; }
.club-info h3 { margin-bottom: 0.5rem; }

@media (max-width: 1024px) {
  .club-card {
    flex-basis: calc(50% - 1rem); /* 2 cards per row on medium screens */
  }
}
@media (max-width: 768px) {
  .club-card {
    flex-basis: 100%; /* 1 card per row on small screens */
  }
}

/* Committees and Councils Page Styles */
.committee-cards-container {
  display: flex; /* Use flexbox for stacking */
  flex-direction: column; /* Stack cards vertically */
  gap: 25px; /* Space between cards */
  padding: 30px 0; /* Adjust padding */
  max-width: 1000px; /* Max width for the container */
  margin: 0 auto; /* Center the container */
}

.committee-card {
  background: var(--panel-bg, #1a202c); /* Use theme variable with fallback */
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  text-align: left; /* Align text to the left */
  display: flex;
  align-items: center; /* Vertically center content */
  gap: 30px; /* Space between heading and paragraph */
}

.committee-card h3 {
  color: var(--accent); /* Use accent color for headings */
  margin: 0;
  font-size: 1.5em;
  font-weight: 600;
  flex-basis: 30%; /* Allocate space for the title */
  flex-shrink: 0; /* Prevent title from shrinking */
  text-align: right; /* Align title to the right */
  border-right: 2px solid var(--accent-hover); /* Add a separator */
  padding-right: 30px; /* Space next to the separator */
}

.committee-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.98em;
  margin: 0;
  flex-basis: 70%; /* Allocate remaining space for description */
}

.committee-card:hover {
  transform: translateY(-5px) scale(1.02); /* Lift and slightly enlarge card */
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 240, 255, 0.4); /* Enhanced shadow with a cyan glow */
  border-color: var(--accent);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .committee-card {
    flex-direction: column; /* Stack title and description vertically */
    align-items: flex-start; /* Align to the start */
    text-align: left;
    gap: 15px;
  }

  .committee-card h3 {
    text-align: left;
    border-right: none; /* Remove separator */
    border-bottom: 2px solid var(--accent-hover); /* Use bottom border instead */
    padding-right: 0;
    padding-bottom: 10px;
    width: 100%; /* Make title full width */
  }
}
