:root {
  /* Theme Variables */
  --primary-color: #1E3A8A;
  /* Deep Navy Blue */
  --secondary-color: #FFFFFF;
  /* White */
  --tertiary-color: #EFF6FF;
  /* Very Light Blue Background */
  --text-primary: #111827;
  /* Almost Black */
  --text-secondary: #4B5563;
  /* Cool Gray */
  --bg-color: #F3F4F6;
  /* Light Gray */
  --accent-color: #1D4ED8;
  /* Brighter Royal Blue for hover/actions */

  /* Spacing & Layout */
  --section-padding: 2rem 1rem;
  --container-width: 1500px;
  --content-width: 1200px;
  --border-radius: 8px;

  --bg-size: 150px;
  --bg-color-1: #E0E7FF; /* Dark Blue */
  --bg-color-2: #F3F4F6;  /* Light Blue */
  --bg-color-3: #FFFFFF; /* Medium Blue */

  --hex-pattern: 
      repeating-conic-gradient(from 30deg,#0000 0 120deg,var(--bg-color-3) 0 50%) 
        calc(var(--bg-size)/2) calc(var(--bg-size)*tan(30deg)/2),
      repeating-conic-gradient(from 30deg,var(--bg-color-1) 0 60deg,var(--bg-color-2) 0 120deg,var(--bg-color-3) 0 50%);
  --hex-pattern-size: var(--bg-size) calc(var(--bg-size)*tan(30deg));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Backbone Styles */
.glass-effect {
  background-color: hsl(from var(--bg-color) hue saturation lightness / 0.05);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); */
  border-radius: 15px;
}

.bg-white {
  /* background: var(--hex-pattern);
  background-size: var(--hex-pattern-size); */
  /* background-color: var(--secondary-color); */
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;

  background: var(--hex-pattern);
  background-size: var(--hex-pattern-size);
  /* background-color: var(--bg-color); */
}

h1,
h2,
h3,
h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  background-color: hsl(from var(--bg-color) hue saturation lightness / 0.05);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); */
  border-radius: 15px;

  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem 1rem;
}

/* Header */
header {
  background-color: var(--secondary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 2px;
  margin-bottom: 2px;
}

.brand-catchphrase {
  font-family: 'Dancing Script', cursive;
  color: var(--text-secondary);
}

.logo-placeholder {
  width: 64px;
  height: 64px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Navigation */
#main-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: var(--tertiary-color);
  color: var(--primary-color);
}

.active-link,
.active-link:hover {
  background-color: var(--primary-color);
  color: white !important;
  /* Force white text on active */
}

/* View Switching Utility */
.hidden {
  display: none !important;
}

/* Hero Section */
.hero-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-image {
  max-width: 200px;
  height: auto;
}

.hero {
  background-color: hsl(from var(--accent-color) hue saturation lightness / 0.05);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 15px;

  color: var(--text-primary);
  padding: 2rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: justify;
}

/* Standards Sections (About, Values, Philosophy) */
section {
  padding: var(--section-padding);
}

.text-center {
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Values & Philosophy Combined Style */
.text-section p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

/* Team Section */
.team-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.team-member {
  background: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 12px;
  /* Changed from pill to rounded rect to accommodate text */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  /* Changed to column to stack details */
  align-items: flex-start;
  /* Align left */
  min-width: 350px;
  max-width: 500px;
  /* Constrain width */
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}


.team-member:hover,
.team-member.active {
  border-color: var(--primary-color);
  transform: scale(1.02);
  box-shadow: 0 10px 15px rgba(16, 185, 129, 0.1);
}

.team-member.active {
  background-color: var(--tertiary-color);
}

.member-avatar {
  width: 60px;
  height: 60px;
  background-color: var(--tertiary-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.member-info h4 {
  margin: 0;
  color: var(--text-primary);
}

.member-info p {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin: 0;
}

/* Details Content (Hidden by default) */
.details-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease-out, opacity 0.3s ease, margin-top 0.3s ease;
  width: 100%;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0;
}

.details-content p {
  text-align: justify;
}

/* Divisions & Services */
/* Static Full Page List (Divisions and Services Pages) */
.full-page-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  max-width: var(--content-width);
  /* Optimization for reading width */
  margin-left: auto;
  margin-right: auto;
}

.static-list-item {
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.static-list-item .list-item-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.static-details-content {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

.ds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

@media (max-width: 768px) {
  .ds-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.list-group {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.list-item {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  display: flex;
  flex-direction: column;
  /* Stack content */
  cursor: pointer;
  transition: background-color 0.2s;
}

.list-item:hover,
.list-item.active {
  background-color: #f3f4f6;
}

.list-item.active {
  background-color: var(--tertiary-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.list-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.list-item h4 {
  margin: 0;
}


/* Partners */
.partner-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.partner {
  background: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 12px;
  /* Changed from pill to rounded rect to accommodate text */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  /* Changed to column to stack details */
  align-items: flex-start;
  /* Align left */
  max-width: 500px;
  /* Constrain width */
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.partner-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.partner:hover,
.partner.active {
  border-color: var(--primary-color);
  transform: scale(1.02);
  box-shadow: 0 10px 15px rgba(16, 185, 129, 0.1);
}

.partner.active {
  background-color: var(--tertiary-color);
}

.partner-info h4 {
  margin: 0;
  color: var(--text-primary);
}

.partner-info p {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin: 0;
}

.partner-logo {
  width: 120px;
  opacity: 0.6;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

/* Footer */
footer {
  background-color: #111827;
  /* Very dark gray, almost black */
  color: #9CA3AF;
  padding: 2rem 0 1rem;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  /* Responsive Nav */
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  #main-nav {
    width: 100%;
    justify-content: center;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .team-member {
    min-width: 100%;
  }

  .partner-logo {
    width: 50px;
  }
}