/* ========================================= */
/* --- 1. GLOBAL VARIABLES & RESETS --- */
/* ========================================= */
:root {
  /* Brand Colors */
  --primary-brand: #008080; 
  --header-bg: #734332;
  --gold: #D4AF37;
  
  /* Text & Backgrounds */
  --primary-text: #000000; 
  --secondary-text: #1c1c1c; 
  --callout-bg: #f1e1dd;
  --neutral-bg: #fafafa; 
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --light-teal: #f0fdfd;
  
  /* Status Colors */
  --danger-red: #d9534f;
  --success-green: #2e7d32;
  --info-blue: #0277bd;
  --warning-orange: #ff9800;
  
  /* Layout */
  --max-width: 1200px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; padding: 0; font-family: 'Roboto', sans-serif; color: var(--primary-text); background: #ffffff; overflow-x: hidden; width: 100%; }

/* FIX: Changed from `-` to `*` */
* { box-sizing: border-box; }

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; margin-top: 0; color: var(--primary-text); }
p { line-height: 1.6; margin-bottom: 1.5em; }

/* ========================================= */
/* --- 2. GLOBAL TYPOGRAPHY & LINKS --- */
/* ========================================= */
/* FIX: Targeted explicitly so it doesn't overwrite button text colors */
.page-wrapper p a, 
.page-wrapper li a,
.text-link { 
  color: var(--primary-brand); 
  text-decoration: none; 
  font-weight: 700;
}
.page-wrapper p a:hover, 
.page-wrapper li a:hover,
.text-link:hover { 
  text-decoration: underline; 
}
.disabled-link { color: #999999 !important; pointer-events: none; cursor: default; text-decoration: none; font-weight: normal; }

/* ========================================= */
/* --- 3. UNIFIED COMPONENTS --- */
/* ========================================= */

/* --- Buttons --- */
.btn { 
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; 
  padding: 12px 24px; border-radius: 4px; font-weight: bold; 
  text-decoration: none; text-align: center; transition: all 0.2s ease; cursor: pointer;
  border: 2px solid transparent; font-family: 'Montserrat', sans-serif;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background-color: var(--primary-brand); color: #ffffff; }
.btn-primary:hover { background-color: #006666; color: #ffffff; opacity: 0.9; }

.btn-secondary { background-color: var(--header-bg); color: #ffffff; }
.btn-secondary:hover { opacity: 0.9; color: #ffffff; }

.btn-outline { background-color: transparent; border-color: var(--primary-brand); color: var(--primary-brand); }
.btn-outline:hover { background-color: var(--primary-brand); color: #ffffff; }

.btn-pill { border-radius: 40px; padding: 14px 28px; } /* For Callouts / CTAs */
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; display: flex; }

/* --- Cards --- */
.card { 
  background-color: var(--card-bg); border: 1px solid var(--border-color); 
  border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); height: 100%;
}
.card-header { background-color: var(--header-bg); padding: 15px 20px; color: #ffffff; text-align: center; }
.card-header h2, .card-header h3 { margin: 0; color: #ffffff; font-size: 1.15rem; }
.card-header.primary-bg { background-color: var(--primary-brand); }
.card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }

/* Card Hover Effects (for resources/projects) */
.card.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card.card-hover:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,128,128,0.15); border-color: var(--primary-brand); }

/* --- Data Tables --- */
.table-responsive { width: 100%; overflow-x: auto; border-radius: 8px; border: 1px solid var(--border-color); margin-bottom: 30px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 14px; text-align: left; }
.data-table th, .data-table td { padding: 12px 15px; border-bottom: 1px solid var(--border-color); }
.data-table th { background-color: var(--header-bg); color: #ffffff; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.data-table tbody tr:nth-child(even) { background-color: var(--neutral-bg); }
.data-table tbody tr:hover { background-color: var(--light-teal); }
.data-table.primary-header th { background-color: var(--primary-brand); }
.total-row { font-weight: bold; background-color: var(--neutral-bg); border-top: 2px solid var(--primary-brand); }

/* --- Badges & Tags --- */
.badge { display: inline-block; padding: 4px 10px; font-size: 0.8rem; font-weight: bold; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;}
.badge-info { background-color: var(--light-teal); color: var(--primary-brand); border: 1px solid var(--primary-brand); }
.badge-warning { background-color: #fff8e1; color: #9c6c00; border: 1px solid #f5b041; }
.badge-success { background: #e8f5e9; color: var(--success-green); border: 1px solid #c8e6c9; }
.badge-danger { background: #ffebee; color: var(--danger-red); border: 1px solid #ffcdd2; }

/* --- Callouts & Alerts --- */
.callout-box { background-color: var(--callout-bg); padding: 25px; border-radius: 8px; margin-bottom: 30px; border-left: 5px solid var(--header-bg); }
.alert-box { background-color: #fff3cd; border-left: 5px solid #ffc107; padding: 15px; border-radius: 4px; margin-bottom: 20px; }
.warning-box { background-color: #fff3e0; border-left: 5px solid var(--warning-orange); padding: 15px; border-radius: 4px; }
.info-box { border-left: 5px solid var(--primary-brand); background-color: var(--light-teal); padding: 25px; border-radius: 6px; margin-bottom: 25px; border: 1px solid var(--border-color); }

/* ========================================= */
/* --- 4. LAYOUT UTILITIES --- */
/* ========================================= */
.page-wrapper { max-width: var(--max-width); margin: 0 auto; padding: 40px 20px; }
.grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.flex-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.flex-col { flex: 1; min-width: 240px; }
.text-center { text-align: center; }

/* Margins & Padding */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-15 { margin-top: 15px !important; }
.ml-30 { margin-left: 30px !important; }

/* ========================================= */
/* --- 5. NAVIGATION BAR & FOOTER --- */
/* ========================================= */
/* (Kept identical to original as these are highly specific) */
.top-nav { background-color: var(--primary-brand); color: #ffffff; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 60px; font-family: 'Roboto', sans-serif; box-shadow: 0 2px 4px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.nav-brand { display: flex; align-items: center; gap: 15px; text-decoration: none; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; color: #ffffff; }
.nav-logo { height: 36px; background-color: #ffffff; border-radius: 4px; object-fit: contain; padding: 2px; }
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; gap: 15px; }
.nav-links > li { position: relative; height: 60px; display: flex; align-items: center; }
.nav-links > li > a { color: #ffffff; text-decoration: none; font-size: 0.85rem; display: flex; align-items: center; gap: 5px; padding: 5px 10px; transition: opacity 0.2s; }
.nav-links > li > a:hover { opacity: 0.8; }
.dropdown-menu { display: none; position: absolute; top: 60px; left: 0; background-color: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); list-style: none; padding: 10px 0; margin: 0; min-width: 250px; border-top: 3px solid var(--primary-brand); border-radius: 0 0 4px 4px; }
.nav-links > li:hover > .dropdown-menu { display: block; }
.dropdown-menu li { width: 100%; position: relative; }
.dropdown-menu a { color: var(--secondary-text); text-decoration: none; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; transition: background-color 0.2s, color 0.2s; }
.dropdown-menu a:hover { background-color: var(--light-teal); color: var(--primary-brand); }

.site-footer { background-color: var(--secondary-text); color: #ffffff; padding: 50px 20px 20px; font-size: 0.9rem; margin-top: 60px; }
.footer-content { max-width: var(--max-width); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { color: var(--gold); margin-bottom: 15px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p, .footer-col a { color: #cccccc; line-height: 1.8; margin-bottom: 10px; text-decoration: none; }
.footer-col a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom { text-align: center; padding-top: 20px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); color: #888888; font-size: 0.85rem; }

/* ========================================= */
/* --- 6. PAGE-SPECIFIC UNIQUE FEATURES --- */
/* ========================================= */

/* Hero Banners */
.hero-banner { background-color: var(--primary-brand); color: #ffffff; text-align: center; padding: 60px 20px; background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 40%), radial-gradient(circle at 80% 90%, rgba(255,255,255,0.08) 0%, transparent 40%); }
.hero-banner h1 { font-size: 3.5rem; margin: 0; color: #ffffff; letter-spacing: 0.5px; }
.hero-banner p { font-size: 1.2rem; max-width: 700px; margin: 15px auto 0; opacity: 0.9; }
.hero-banner.index-hero { background-image: linear-gradient(135deg, rgba(0, 128, 128, 0.8) 0%, rgba(115, 67, 50, 0.6) 100%), url("https://i.imgur.com/AuwuQQy.jpeg") !important; background-size: cover !important; background-position: center center !important; padding: 80px 20px; border-bottom: 2px solid var(--border-color); }

/* Home Page Layout & Roadmap */
.home-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.sidebar-column { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 5px; }
.roadmap-container { position: relative; padding-left: 30px; margin-top: 20px; }
.roadmap-container::before { content: ''; position: absolute; top: 0; left: 11px; height: 100%; width: 3px; background-color: var(--border-color); }
.roadmap-item { position: relative; margin-bottom: 30px; padding: 20px; background: #ffffff; border: 1px solid var(--border-color); border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.roadmap-item::before { content: ''; position: absolute; top: 25px; left: -25px; width: 12px; height: 12px; border-radius: 50%; background-color: var(--primary-brand); border: 3px solid #ffffff; box-shadow: 0 0 0 2px var(--primary-brand); }
.roadmap-item.completed::before { background-color: var(--success-green); box-shadow: 0 0 0 2px var(--success-green); }
.roadmap-item.active::before { background-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }

/* Finance Dashboard & Progress Bars */
.donut-chart { width: 150px; height: 150px; border-radius: 50%; border: 14px solid var(--primary-brand); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 20px; }
.progress-bar-bg { height: 24px; background-color: var(--border-color); border-radius: 12px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); width: 100%; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary-brand) 0%, #00a3a3 100%); border-radius: 12px 0 0 12px; transition: width 1s ease-in-out; }

/* Balance Sheet (Requires highly specific table styling) */
.bs-table { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.bs-table td, .bs-table th { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; background-color: #ffffff; }
.bs-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
tr.bs-title-row td { position: sticky; top: 0; z-index: 3; font-weight: 700; text-transform: uppercase; padding-top: 10px; padding-bottom: 20px; box-shadow: 0 2px 2px -1px rgba(0,0,0,0.2); }
tr.bs-primary-header td { background-color: var(--header-bg); color: #ffffff; font-weight: 700; text-transform: uppercase; }
tr.bs-grand-total td { color: var(--primary-brand); font-weight: 700; text-transform: uppercase; border-top: 2px solid var(--primary-brand); border-bottom: 4px double var(--primary-brand); }

/* Image Comparison Slider */
.image-comparison { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--neutral-bg); }
.image-comparison img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.img-after { z-index: 1; }
.img-before { z-index: 2; clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
.slider-input { position: absolute; appearance: none; -webkit-appearance: none; width: 100%; height: 100%; background: transparent; outline: none; margin: 0; top: 0; left: 0; z-index: 10; cursor: ew-resize; }
.slider-input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 35px; height: 35px; background: var(--primary-brand); border-radius: 50%; border: 3px solid white; cursor: ew-resize; }
.slider-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background-color: white; z-index: 5; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 5px rgba(0,0,0,0.5); }

/* --- MEETING LIST STYLES --- */
.meeting-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}
.meeting-row:last-child {
  border-bottom: none;
}
.meeting-row.highlighted-row {
  background-color: #eaf5f5; /* Light teal to match image */
  border-left: 4px solid var(--primary-brand);
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 16px; /* Offset the 4px border to keep text aligned */
  padding-right: 20px;
}
.meeting-date {
  flex: 0 0 130px;
  font-weight: 700;
  color: var(--primary-text);
}
.meeting-details {
  flex: 1;
  min-width: 200px;
}
.meeting-time {
  color: var(--secondary-text);
  font-size: 0.95rem;
}
.meeting-subtitle {
  font-weight: 700;
  color: var(--primary-brand);
  font-size: 0.85rem;
  margin-top: 4px;
}
.meeting-links {
  flex: 0 0 auto;
  text-align: right;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ccc; /* Pipe separators color */
}
.meeting-links a.active-link {
  color: var(--primary-brand);
  text-decoration: none;
}
.meeting-links a.active-link:hover {
  text-decoration: underline;
  color: var(--header-bg);
}
.meeting-links span.disabled-link {
  color: #b0bec5;
}

@media (max-width: 600px) {
  .meeting-date { flex: 1 1 100%; margin-bottom: 5px; }
  .meeting-links { flex: 1 1 100%; text-align: left; margin-top: 10px; }
}
/* FAQs */
.vine-accordion { border: 1px solid var(--border-color); border-radius: 6px; background: var(--neutral-bg); margin-top: 15px; padding: 10px 15px; }
.vine-accordion summary { font-weight: bold; color: var(--primary-brand); cursor: pointer; padding: 5px 0; outline: none; }

/* ========================================= */
/* --- 7. MEDIA QUERIES (RESPONSIVE) --- */
/* ========================================= */
@media (max-width: 900px) {
  .home-layout { grid-template-columns: 1fr; padding: 20px 10px; }
  .sidebar-column { position: static; max-height: none; overflow-y: visible; padding-right: 0; }
  .hero-banner h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .hero-banner p { font-size: 1rem; }
  .grid-layout { grid-template-columns: 1fr; }
  .flex-row { flex-direction: column; }
  
  /* BS Table Mobile Scroll */
  .bs-table td:first-child { position: sticky; left: 0; z-index: 2; box-shadow: 2px 0 4px rgba(0,0,0,0.05); max-width: 180px; white-space: normal; }
}