/* =========================================
   GLOBAL FONTS & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================= */
:root {
  --color-bg-dark:      #001A1B;
  --color-bg-light:     #f4fcfd;
  --color-primary:      #114040;
  --color-primary-mid:  #196a70;
  --color-primary-light:#55B9C2;
  --color-accent:       #fd4d40;
  --color-accent-teal:  #15e9f4;
  --color-white:        #ffffff;
  --color-text:         #2d3748;
  --color-text-muted:   #6c757d;
  --color-border:       #dee2e6;



  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Breakpoints (for reference in comments) */
  /* xs: < 576px | sm: 576-767px | md: 768-991px | lg: 992-1199px | xl: ≥ 1200px */
}

/* =========================================
   BASE / GLOBAL
   ========================================= */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* Fluid type scale: shrinks slightly on small screens */
@media (max-width: 575.98px) {
  html { font-size: 14px; }
}

body {
  background: #f4f7f6;
  font-family: "Roboto", sans-serif !important;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

/* Links */
a {
  text-decoration: none !important;
    font-family: "Roboto", sans-serif !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}



  .main-container {
    padding-top: 0;
    background: #ffffff78 !important;
    box-shadow: 0 0 20px #808080ba;
  }
  
  
/* =========================================
   HEADER / NAVBAR
   ========================================= */
.top-bar {
  border-bottom: 1px solid #e9ecef !important;
}

.header {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.site-navbar {
  position: fixed;          /* keeps nav on screen while scrolling */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1999;
  padding: 1rem 0 0;
  margin-bottom: 0;
  text-align: center;
  background: url('images/header-bg.jpg') center/cover no-repeat !important;

  transition: box-shadow 0.3s ease;
}



/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: linear-gradient(180deg,
    var(--color-bg-dark) 5%,
    #1f4a49 50%,
    #478985 100%);
  color: var(--color-white);

  padding: var(--space-3xl) 0;
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .site-footer {
    padding: var(--space-2xl) var(--space-lg);
  }
}

@media (max-width: 575.98px) {
  .site-footer {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
  }

  /* Stack footer columns */
  .site-footer .row > [class*="col-"] {
    margin-bottom: var(--space-xl);
  }
}

.site-footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5 {
  color: var(--color-white);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
  color: var(--color-white);
}

.site-footer ul {
  padding-left: 0;
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer .footer-heading {
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  font-weight: bold;
  color: var(--color-accent-teal);
}


/* =========================================
   QUICK LINKS SIDEBAR
   ========================================= */
.quick-links {
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
}

.quick-links h3 {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 15px 20px;
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 500;
}

.quick-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links li {
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
}

.quick-links li:last-child {
  border-bottom: none;
}

.quick-links li:hover {
  background-color: rgba(1, 52, 56, 0.05);
  padding-left: 25px;
  color: #013438;
}

.quick-links li.active {
  background-color: rgba(1, 52, 56, 0.08);
  border-left: 3px solid var(--color-primary);
  font-weight: 600;
  color: var(--color-primary);
}

.quick-links li i {
  width: 24px;
  flex-shrink: 0;
  color: var(--color-primary-light);
  font-size: 1.1rem;
}

/* On tablet/mobile: quick-links becomes a horizontal scrollable strip */
@media (max-width: 991.98px) {
  .quick-links {
    margin-bottom: var(--space-lg);
  }

  .quick-links ul {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-light) transparent;
  }

  .quick-links ul::-webkit-scrollbar {
    height: 4px;
  }

  .quick-links ul::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 2px;
  }

  .quick-links li {
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid var(--color-border);
    padding: 12px 16px;
    white-space: nowrap;
    font-size: 0.85rem;
  }

  .quick-links li:last-child {
    border-right: none;
  }

  .quick-links li.active {
    border-left: none;
    border-bottom: 3px solid var(--color-primary);
    background-color: rgba(1, 52, 56, 0.08);
  }

  .quick-links li:hover {
    padding-left: 16px; /* override desktop indent */
  }
}

@media (max-width: 575.98px) {
  .quick-links li {
    padding: 10px 14px;
    gap: 8px;
  }
}




  /* =============================================
           SECTION HEADING
        ============================================= */
        .section-heading {
            margin-bottom: 20px ;
            padding: 20px 0px;
            border-bottom: 2px solid var(--color-primary);
        }

        .section-heading h4 {
            color: var(--color-primary);
          
            font-size: clamp(1rem, 3vw, 1.25rem);
            line-height: 1.4;
        }
/* =========================================
   TABLE — BASE BOOTSTRAP OVERRIDE
   ========================================= */
.table {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  width: 100%;
  margin-bottom: 0;
}

.table thead tr th {
  background-color: var(--color-primary);
  color: #f0f2f3;
  white-space: nowrap;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}

/* Scrollable wrapper for bootstrap tables on mobile */
.table-responsive-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

/* =========================================
   COMMITTEE TABLE
   ========================================= */
.committee-table-container {
  background: var(--color-white);
  border-radius: 8px;
  padding: 15px;
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .committee-table-container {
    padding: 10px;
    border-radius: 6px;
  }
}

/* Table base */
.committee-table {
  width: 100%;
  border-collapse: collapse;
}

/* Header */
.committee-table thead {
  background-color: var(--color-primary-mid);
  color: var(--color-white);
}

.committee-table thead th {
  font-weight: 600;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

/* Body cells */
.committee-table tbody td {
  font-size: clamp(0.75rem, 1.4vw, 0.85rem);
  color: var(--color-text);
  padding: 10px 12px;
  vertical-align: middle;
}

/* Zebra striping */
.committee-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Hover */
.committee-table tbody tr:hover {
  background-color: #e6f7f9;
  transition: background-color 0.2s ease;
}

/* Borders */
.committee-table th,
.committee-table td {
  border: 1px solid var(--color-border);
}

/* ---- Tablet: add horizontal scroll ---- */
@media (min-width: 576px) and (max-width: 991.98px) {
  .committee-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .committee-table {
    min-width: 600px; /* prevents squishing */
  }
}

/* ---- Mobile: card layout ---- */
@media (max-width: 575.98px) {
  .committee-table thead {
    display: none;
  }

  .committee-table,
  .committee-table tbody,
  .committee-table tr,
  .committee-table td {
    display: block;
    width: 100%;
  }

  .committee-table tbody tr {
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--color-white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }

  .committee-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 9px 12px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
  }

  .committee-table tbody td:last-child {
    border-bottom: none;
  }

  .committee-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #013438;
    min-width: 120px;
    flex-shrink: 0;
    font-size: 0.8rem;
  }
}

/* =========================================
   EMPTY STATE
   ========================================= */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.empty-state i {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 20px;
  opacity: 0.5;
  display: block;
}

@media (max-width: 575.98px) {
  .empty-state {
    padding: 40px 16px;
  }
}

/* =========================================
   UTILITY: RESPONSIVE GRID HELPERS
   ========================================= */

/* Two-column layout used for sidebar + content */
.layout-sidebar-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .layout-sidebar-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .layout-sidebar-content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
  .site-navbar,
  .quick-links,
  .toggle-button {
    display: none !important;
  }

  .main-container {
    padding-top: 0;
    background: #fff !important;
  }

  .committee-table-container {
    box-shadow: none;
    border: 1px solid #000;
    overflow: visible;
  }

  .committee-table thead {
    display: table-header-group !important;
  }

  .committee-table tbody tr {
    display: table-row !important;
    page-break-inside: avoid;
  }

  .committee-table tbody td {
    display: table-cell !important;
  }

  .site-footer {
    background: #f0f0f0 !important;
    color: #000 !important;
  }
}