/* =========================================
   COLOR VARIABLES (From Figma)
   ========================================= */
:root {
  --primary-dark: #162839;   /* Navigation and titles */
  --accent-orange: #FFB961;  /* Buttons and stats */
  --bg-light: #F8FAFC;       /* Background section */
  --theme-blue: #4A70A9;     /* Blue theme */
  --text-gray: #475569;      /* Standard readable text color */
}

/* =========================================
   GLOBAL RESET & HEADER
   ========================================= */
body {
  background-color: var(--bg-light);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--primary-dark);
  -webkit-font-smoothing: antialiased;
}

.committee-header {
  padding: 16px 40px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.header-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.back-home-link {
  color: var(--theme-blue);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.back-home-link:hover {
  color: var(--primary-dark);
}

/* =========================================
   LAYOUT & CONTAINER
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.highlight {
  color: var(--theme-blue);
}

/* =========================================
   MAIN HEADING STYLES
   ========================================= */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 50px auto 35px auto; 
  position: relative;
  transition: all 0.4s ease;
}

/* Deep Navy Underline */
.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background-color: #2c3e50; /* Deep Navy */
  margin: 14px auto 0 auto; /* Centers the underline */
  border-radius: 2px;
  transition: all 0.4s ease;
}

.section-title:hover::after {
  background-color: var(--theme-blue);
  box-shadow: 0 0 12px rgba(74, 112, 169, 0.5);
}

/* =========================================
   COMMITTEE FULL PAGE STYLES
   ========================================= */
.full-committee-section {
  padding-bottom: 100px;
}

.tier-group {
  margin-bottom: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tier-title {
  color: var(--primary-dark);
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.section-divider {
  border: none;
  border-top: 1px solid #E2E8F0;
  margin: 50px auto;
  width: 75%;
  max-width: 900px;
}

/* --- Centered Grids for Patrons & Leadership --- */
.patrons-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* UPDATED: Converted to CSS Grid to enforce a straight line */
.conveners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px; /* Slightly reduced gap to ensure perfect fit */
  width: 100%;
  max-width: 1200px; /* Increased to match the main container width */
  margin: 0 auto;
  justify-items: center; /* Centers the cards within their grid cells */
}

/* Tablet Responsive Adjustment for the 4-column grid */
@media (max-width: 1100px) {
  .conveners-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }
}

/* --- Thematic Circular Photo Frames --- */
.faculty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 15px;
  border-radius: 16px;
  transition: transform 0.4s ease;
  cursor: default;
  width: 260px;
  box-sizing: border-box;
}

.faculty-img-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%; /* Perfect circle */
  
  border: 4px solid var(--theme-blue); 
  box-shadow: 0 10px 25px rgba(59, 90, 140, 0.15); 
  
  background: linear-gradient(135deg, #FFFFFF, #F1F5F9);
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--theme-blue);
  letter-spacing: 1px;
}

.faculty-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-card:hover .faculty-img-placeholder {
  border-color: var(--accent-orange);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(245, 166, 35, 0.3);
  color: var(--accent-orange);
}

.faculty-name {
  color: var(--primary-dark);
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.faculty-card:hover .faculty-name {
  color: var(--theme-blue);
}

.faculty-desc {
  color: var(--text-gray);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  width: 100%;
  min-height: 48px; /* Ensures description heights align perfectly across all cards */
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* --- Responsive Text Cards Grid --- */
.text-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.committee-text-card {
  background-color: #F1F5F9;
  padding: 24px 22px;
  border-radius: 12px;
  border: none;
  transition: all 0.4s ease-in-out;
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 110px;
  box-sizing: border-box;
  text-align: center;
}

/* Deep Navy Hover Effect */
.committee-text-card:hover {
  background-color: #2c3e50; /* Deep navy */
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(44, 62, 80, 0.22);
}

.committee-text-card:hover .committee-name,
.committee-text-card:hover .committee-desc {
  color: #FFFFFF;
}

.committee-name {
  color: var(--theme-blue);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 8px;
  transition: color 0.4s ease-in-out;
}

.committee-desc {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  transition: color 0.4s ease-in-out;
}

/* Mobile Responsive Adjustments */
@media (max-width: 900px) {
  .committee-header {
    padding: 14px 20px;
  }
  
  .patrons-grid, .conveners-grid {
    gap: 25px;
  }

  .text-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 600px) {
  .section-title {
    font-size: 2rem;
  }

  .tier-title {
    font-size: 1.5rem;
  }

  .patrons-grid, .conveners-grid, .text-cards-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: center;
  }
}
