/* =========================================================
   MKHAMBATHINI LOCAL MUNICIPALITY — PORTAL STYLESHEET
   Layout: Faithful recreation of e-uMhlathuze structure
   Typography: Inter (headings) + Roboto (body)
   Colors: Solid flat — no gradients whatsoever
   Icons: Feather Icons (SVG line icons, green stroke)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* ---------------------------------------------------------
   1. RESET & BASE
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; scroll-behavior: smooth; min-height: 100%; }

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  background: #f4f7f4;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

a { color: #185a37; text-decoration: none; }
a:hover { text-decoration: underline; color: #0f3d24; }

p { margin-bottom: 10px; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ---------------------------------------------------------
   2. LAYOUT — CONTAINER & GRID
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

[class^="col-"] {
  padding: 0 15px;
  min-width: 0;
}

.col-1  { width: 8.333%; }
.col-2  { width: 16.667%; }
.col-3  { width: 25%; }
.col-4  { width: 33.333%; }
.col-5  { width: 41.667%; }
.col-6  { width: 50%; }
.col-7  { width: 58.333%; }
.col-8  { width: 66.667%; }
.col-9  { width: 75%; }
.col-10 { width: 83.333%; }
.col-12 { width: 100%; }

/* ---------------------------------------------------------
   3. SITE HEADER  (white bar — logo / title / notice)
   --------------------------------------------------------- */
#layout-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.site-logo-link {
  flex-shrink: 0;
  display: block;
}

.site-logo-img {
  height: 98px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Central Heading */
.site-heading {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: #333;
  text-align: center;
  letter-spacing: -0.5px;
  flex: 1;
}

/* Urgent Notice */
.notice-block {
  flex-shrink: 0;
  text-align: right;
  max-width: 260px;
}

.notice-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: #c0392b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.notice-text {
  font-size: 0.8rem;
  color: #444;
  line-height: 1.4;
}

.notice-text a { color: #185a37; font-weight: 600; }

/* ---------------------------------------------------------
   4. NAVBAR (solid green — mimics e-uMhlathuze bar)
   --------------------------------------------------------- */
#main-nav {
  background: #185a37;
  border: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

/* Left nav links */
.navbar-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.navbar-nav li {
  position: relative;
}

.navbar-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 13px;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
  background: #0f3d24;
  border-bottom-color: #c8a84b;
  text-decoration: none;
  color: #fff;
}

/* Dropdown Level 1 */
.has-dropdown > a::after {
  content: " ▾";
  font-size: 0.72em;
  opacity: 0.85;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid #ddd;
  border-top: 3px solid #185a37;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  z-index: 999;
  list-style: none;
  padding: 4px 0;
}

.nav-dropdown li {
  position: relative;
  width: 100%;
}

.nav-dropdown a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 15px !important;
  color: #333 !important;
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  background: #fff !important;
  border-bottom: 1px solid #f1f4f1 !important;
  white-space: normal !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  transition: background 0.12s ease, padding-left 0.12s ease;
}

.nav-dropdown li:last-child > a { border-bottom: none !important; }

.nav-dropdown a:hover {
  background: #edf7f0 !important;
  color: #185a37 !important;
  padding-left: 19px !important;
  text-decoration: none !important;
}

.has-dropdown:hover > .nav-dropdown { display: block; }

/* Dropdown Level 2 Submenu (Flyout to Right) */
.has-submenu {
  position: relative;
}

.has-submenu > a .submenu-arrow {
  margin-left: auto;
  padding-left: 8px;
  font-size: 0.75rem;
  color: #888;
  font-weight: bold;
}

.dropdown-sub-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: -4px;
  min-width: 240px;
  background: #fff;
  border: 1px solid #ddd;
  border-top: 3px solid #185a37;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  z-index: 1001;
  list-style: none;
  padding: 4px 0;
}

.has-submenu:hover > .dropdown-sub-menu {
  display: block;
}

/* Dropdown Level 3 Submenu (Flyout to Right) */
.has-sub-submenu {
  position: relative;
}

.dropdown-sub-sub-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: -4px;
  min-width: 240px;
  background: #fff;
  border: 1px solid #ddd;
  border-top: 3px solid #185a37;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  z-index: 1002;
  list-style: none;
  padding: 4px 0;
}

.has-sub-submenu:hover > .dropdown-sub-sub-menu {
  display: block;
}

/* Feather icons in dropdown */
.nav-dropdown a .feather {
  stroke: #185a37;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-right: 6px;
}

/* Right nav (e.g. Report Fault) */
.navbar-right {
  display: flex;
  align-items: center;
}

.navbar-right a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #c8a84b;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border-left: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
  align-self: stretch;
  align-items: center;
}

.navbar-right a .feather {
  stroke: #1a1a1a;
  width: 14px;
  height: 14px;
}

.navbar-right a:hover {
  background: #b8943b;
  text-decoration: none;
}

/* Mobile toggle */
.navbar-toggle {
  display: none;
  background: #0f3d24;
  border: none;
  color: #fff;
  padding: 10px 12px;
  cursor: pointer;
  align-self: stretch;
}

.navbar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
}

/* ---------------------------------------------------------
   5. LATEST ANNOUNCEMENTS BAR
   --------------------------------------------------------- */
.news-panel {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.news-panel-inner {
  display: flex;
  align-items: stretch;
  min-height: 38px;
}

.news-label {
  background: #2d6a4f;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 16px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.news-ticker {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.82rem;
  color: #444;
  background: #fafafa;
}

.news-ticker marquee { display: block; }

/* ---------------------------------------------------------
   6. HERO SLIDER (full-width, image with text overlay)
   --------------------------------------------------------- */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
}

.slide {
  display: none;
  position: relative;
  width: 100%;
  height: 460px;
  background-size: cover;
  background-position: center;
}

.slide.active { display: block; }

/* Dark overlay for legibility */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.slide-container {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.slide-box {
  background: rgba(14, 28, 20, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid #c8a84b;
  padding: 28px 32px;
  max-width: 550px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  border-radius: 3px;
}

.slide-tagline {
  display: inline-block;
  color: #c8a84b;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.slide-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.25;
}

.slide-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 20px;
}

.slide-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.slide-actions .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Slider controls */
.slider-nav {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.slider-prev,
.slider-next {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(255,255,255,0.4);
}

.slider-prev .feather,
.slider-next .feather {
  stroke: #fff;
  width: 16px;
  height: 16px;
}

.slider-dots {
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
}

.slider-dot.active {
  background: #c8a84b;
  width: 22px;
  border-radius: 4px;
}

/* ---------------------------------------------------------
   7. HOME WELLS (three boxes below hero — e-uMhlathuze style)
   --------------------------------------------------------- */
.home-wells-section {
  background: #fff;
  padding: 0;
}

.home-wells-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: none;
}

.home-well {
  padding: 28px 24px;
  border: 1px solid #e5e5e5;
  border-top: 3px solid #e0e0e0;
  background: #fff;
  position: relative;
}

.home-well:not(:last-child) {
  border-right: none;
}

.home-well-heading {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #185a37;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.home-well p {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
}

.home-well hr {
  margin: 16px 0 0;
  border: none;
  border-top: 1px solid #eee;
}

/* ---------------------------------------------------------
   8. SERVICE TILES (4 quick-access cards below the wells)
   --------------------------------------------------------- */
.service-tiles-section {
  background: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
}

.service-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.service-tile {
  background: #fff;
  border-right: 1px solid #e0e0e0;
  padding: 30px 24px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-tile:last-child {
  border-right: none;
}

.service-tile-icon {
  width: 46px;
  height: 46px;
  border: 1.5px solid #185a37;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.service-tile-icon .feather {
  stroke: #185a37;
  width: 22px;
  height: 22px;
}

.service-tile-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #185a37;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.service-tile-text {
  font-size: 0.84rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.service-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #185a37;
  text-decoration: none;
  border-top: 1px solid #e5e5e5;
  padding-top: 12px;
  margin-top: auto;
}

.service-tile-link .feather {
  stroke: #185a37;
  width: 13px;
  height: 13px;
}

.service-tile-link:hover {
  color: #0f3d24;
  text-decoration: none;
}

.service-tile-link:hover .feather {
  stroke: #0f3d24;
}

/* ---------------------------------------------------------
   9. PAGE TITLE BANNER + BREADCRUMBS (inner pages)
   --------------------------------------------------------- */
.page-banner {
  background: #185a37;
  padding: 28px 0 24px;
  border-bottom: 3px solid #c8a84b;
}

.page-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-banner-left {
  flex: 1;
  min-width: 280px;
}

.banner-tag {
  display: inline-block;
  color: #c8a84b;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.page-banner h1 {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.banner-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.45;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 14px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb .feather {
  width: 13px;
  height: 13px;
  stroke: #c8a84b;
}

.breadcrumb a { color: #c8a84b; font-weight: 500; }
.breadcrumb a:hover { color: #fff; text-decoration: none; }
.breadcrumb .sep { color: rgba(255,255,255,0.4); font-size: 0.75rem; }
.breadcrumb span.current { color: #fff; font-weight: 500; }

/* ---------------------------------------------------------
   10. INNER PAGE LAYOUT — 2 COLUMN (main + sidebar)
   --------------------------------------------------------- */
.page-content {
  flex: 1 0 auto;
  padding: 24px 0 36px;
  background: #f4f7f4;
}

.page-layout-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
  align-items: start;
}

.page-layout-grid > main {
  min-width: 0;
}

/* Sticky sidebar attached as user scrolls */
.page-layout-grid > aside,
aside.sidebar-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 60px;
  align-self: start;
  max-height: calc(100vh - 75px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bfe2cc #f4f7f5;
  padding-right: 2px;
}

.page-layout-grid > aside::-webkit-scrollbar {
  width: 5px;
}
.page-layout-grid > aside::-webkit-scrollbar-thumb {
  background-color: #bfe2cc;
  border-radius: 3px;
}
.page-layout-grid > aside::-webkit-scrollbar-track {
  background: #f4f7f5;
}

/* ---------------------------------------------------------
   11. CONTENT WELL (white box with heading)
   --------------------------------------------------------- */
.content-well {
  background: #fff;
  border: 1px solid #e0e6e2;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
  overflow: hidden;
}

.content-well:last-child { margin-bottom: 0; }

.well-header {
  padding: 16px 22px;
  border-bottom: 1px solid #e4ede6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafcfa;
  border-left: 4px solid #185a37;
}

.well-header h2, .well-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #185a37;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.well-header .well-link {
  font-size: 0.82rem;
  color: #185a37;
  font-weight: 600;
}

.well-body {
  padding: 24px 22px;
}

.well-body p {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.68;
}

/* ---------------------------------------------------------
   12. SIDEBAR WIDGETS
   --------------------------------------------------------- */
.sidebar-search-widget {
  margin-bottom: 14px;
}

.sidebar-search-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.sidebar-search-widget .sidebar-search-form {
  display: flex;
  border: 1px solid #c2d6c9;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.sidebar-search-widget input {
  flex: 1;
  border: none;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-style: italic;
  outline: none;
  color: #333;
}

.sidebar-search-widget button {
  background: #185a37;
  border: none;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.sidebar-search-widget button:hover {
  background: #0f3d24;
}

/* Social & Action Button Banners */
.sidebar-banners {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.sidebar-banner-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid #dbe6df;
  border-radius: 3px;
  text-decoration: none !important;
  color: #333;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.sidebar-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #185a37;
}

.sidebar-banner-icon-official {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-banner-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #444;
}

.sidebar-banner-text .brand-text {
  font-weight: 800;
}

.sidebar-banner-text .brand-text.fb { color: #1877F2; }
.sidebar-banner-text .brand-text.tiktok { color: #000; }
.sidebar-banner-text .brand-text.vacancies { color: #0284c7; }

/* Procurement Box */
.sidebar-procurement-widget {
  background: #fff;
  border: 1px solid #dbe6df;
  border-radius: 3px;
  padding: 14px 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.sidebar-procurement-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #185a37;
  margin-bottom: 10px;
}

.sidebar-procurement-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-procurement-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #185a37;
  color: #fff !important;
  padding: 9px 12px;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.sidebar-procurement-btn:hover {
  background: #0f3d24;
}

/* Standard Widget */
.sidebar-widget {
  background: #fff;
  border: 1px solid #e0e6e2;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 18px;
  overflow: hidden;
}

.sidebar-widget:last-child { margin-bottom: 0; }

.sidebar-header {
  background: #185a37;
  color: #fff;
  padding: 11px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  border-bottom: 3px solid #c8a84b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-body {
  padding: 14px 16px;
}

.sidebar-list li {
  border-bottom: 1px solid #f0f4f1;
}

.sidebar-list li:last-child { border-bottom: none; }

.sidebar-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 4px;
  font-size: 0.84rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.12s, padding-left 0.12s, background 0.12s;
}

.sidebar-list a .feather {
  stroke: #185a37;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.sidebar-list a:hover {
  color: #185a37;
  padding-left: 8px;
  background: #f7faf8;
}

.sidebar-info-item {
  margin-bottom: 11px;
  font-size: 0.84rem;
  color: #555;
  line-height: 1.45;
  padding-bottom: 9px;
  border-bottom: 1px solid #f0f4f1;
}

.sidebar-info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-info-item strong {
  display: block;
  color: #185a37;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.sidebar-emergency {
  background: #fff;
  border: 1px solid #fecdd3;
  margin-bottom: 18px;
}

.sidebar-emergency .sidebar-header {
  background: #c0392b;
  border-bottom: 3px solid #991b1b;
}

.sidebar-emergency .sidebar-info-item strong {
  color: #c0392b;
}

.sidebar-emergency .sidebar-list a .feather { stroke: #c0392b; }

/* ---------------------------------------------------------
   13. DATA TABLE
   --------------------------------------------------------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e0e6e2;
  border-radius: 4px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  table-layout: auto;
}

thead th {
  background: #185a37;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 10px 8px;
  text-align: left;
  border: none;
  white-space: normal;
  vertical-align: middle;
}

tbody td {
  padding: 9px 8px;
  border-top: 1px solid #e6ede8;
  color: #333;
  vertical-align: middle;
  font-size: 0.8rem;
  line-height: 1.35;
}

tbody tr:nth-child(even) td { background: #f9fbf9; }
tbody tr:hover td { background: #edf7f0; }

.table-wrap .btn-sm {
  padding: 4px 7px;
  font-size: 0.74rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.table-wrap .btn-sm .feather {
  width: 12px;
  height: 12px;
}

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-open  { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-closed { background: #fee2e2; color: #991b1b; border: 1px solid #fecdd3; }

/* ---------------------------------------------------------
   14. FORMS
   --------------------------------------------------------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccd6ce;
  border-radius: 3px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.88rem;
  color: #333;
  background: #fff;
  outline: none;
}

.form-control:focus {
  border-color: #185a37;
  box-shadow: 0 0 0 2px rgba(24,90,55,0.15);
}

textarea.form-control { resize: vertical; }

/* ---------------------------------------------------------
   15. BUTTONS
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}

.btn .feather { width: 14px; height: 14px; }

.btn-green {
  background: #185a37;
  color: #fff;
  border-color: #185a37;
}
.btn-green:hover { background: #0f3d24; color: #fff; text-decoration: none; }
.btn-green .feather { stroke: #fff; }

.btn-gold {
  background: #c8a84b;
  color: #1a1a1a;
  border-color: #c8a84b;
}
.btn-gold:hover { background: #b49640; color: #1a1a1a; text-decoration: none; }

.btn-outline-green {
  background: #fff;
  color: #185a37;
  border-color: #185a37;
}
.btn-outline-green:hover { background: #185a37; color: #fff; text-decoration: none; }
.btn-outline-green .feather { stroke: #185a37; }
.btn-outline-green:hover .feather { stroke: #fff; }

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.btn-outline-light .feather { stroke: #fff; }

.btn-danger {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}

.btn-sm { padding: 5px 12px; font-size: 0.78rem; }

/* ---------------------------------------------------------
   16. COUNCIL MEMBER CARDS
   --------------------------------------------------------- */
.council-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: #e0e0e0;
  border: 1px solid #e0e0e0;
}

.council-card {
  background: #fff;
  text-align: center;
  padding: 0 0 16px;
}

.council-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  background: #f0f0f0;
  display: block;
}

.council-card-body { padding: 12px 10px 0; }

.council-role {
  font-size: 0.72rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #185a37;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.council-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2px;
}

.council-ward {
  font-size: 0.78rem;
  color: #888;
}

/* ---------------------------------------------------------
   17. FOOTER (dark charcoal — 4 columns)
   --------------------------------------------------------- */
footer {
  background: #2d2d2d;
  color: #ccc;
  padding: 36px 0 20px;
  border-top: 3px solid #185a37;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #bbb;
  font-size: 0.84rem;
  text-decoration: none;
}

.footer-links a .feather {
  stroke: #c8a84b;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-contact-text { font-size: 0.84rem; line-height: 1.55; }
.footer-contact-text p { margin-bottom: 6px; color: #bbb; }
.footer-contact-text a { color: #c8a84b; }
.footer-contact-text a:hover { color: #fff; }

.footer-phone-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 6px;
  border-radius: 2px;
  overflow: hidden;
}

.footer-phone-icon {
  background: rgba(255,255,255,0.08);
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.footer-phone-icon .feather {
  stroke: #c8a84b;
  width: 13px;
  height: 13px;
}

.footer-phone-text {
  padding: 7px 10px;
  font-size: 0.82rem;
  color: #ddd;
}

/* Sub-footer */
.sub-footer {
  background: #222;
  color: #777;
  padding: 12px 0;
  font-size: 0.78rem;
}

.sub-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-footer a { color: #888; text-decoration: none; }
.sub-footer a:hover { color: #ccc; }

/* ---------------------------------------------------------
   18. UTILITY
   --------------------------------------------------------- */
.text-green { color: #185a37; }
.text-gold { color: #c8a84b; }
.text-red { color: #c0392b; }
.text-muted { color: #777; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }

.feather-sm { width: 14px; height: 14px; }
.feather-md { width: 18px; height: 18px; }
.feather-lg { width: 28px; height: 28px; }
.feather-xl { width: 40px; height: 40px; }

.feather-green { stroke: #185a37; fill: none; }

/* Inline alert/highlight box */
.info-box {
  border-left: 4px solid #185a37;
  background: #edf7f0;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 0.875rem;
  color: #333;
}

.info-box.warning {
  border-left-color: #c8a84b;
  background: #fdf6e7;
}

.info-box.danger {
  border-left-color: #c0392b;
  background: #fff5f5;
}

/* ---------------------------------------------------------
   19. RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-layout-grid { grid-template-columns: 1fr; }
  .home-wells-row { grid-template-columns: 1fr 1fr; }
  .service-tiles-grid { grid-template-columns: 1fr 1fr; }
  .navbar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #0f3d24;
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav li a { border-bottom-width: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-inner { flex-wrap: wrap; }
  .navbar-toggle { display: block; }
  .navbar-right { width: 100%; }
  .navbar-right a { width: 100%; justify-content: center; }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: #092817;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: none;
  }
  .has-dropdown.open > .nav-dropdown { display: block; }
  .nav-dropdown a { color: #ccc !important; padding-left: 24px !important; background: #092817 !important; }
  .nav-dropdown a:hover { background: #0f3d24 !important; color: #fff !important; padding-left: 28px !important; }
  .nav-dropdown a .feather { stroke: #c8a84b !important; }
  
  .dropdown-sub-menu, .dropdown-sub-sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: #061c10;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: none;
  }
  .has-submenu.open > .dropdown-sub-menu { display: block; }
  .has-sub-submenu.open > .dropdown-sub-sub-menu { display: block; }
  .dropdown-sub-menu a { color: #b7e0c4 !important; padding-left: 36px !important; background: #061c10 !important; }
  .dropdown-sub-sub-menu a { color: #e2f5e8 !important; padding-left: 48px !important; background: #031109 !important; }
  
  .slide { height: auto; min-height: 380px; padding: 30px 0; }
  .slide-heading { font-size: 1.4rem; }
  .slide-box { padding: 20px 24px; max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .site-logo-img { height: 75px; }
  .site-heading { font-size: 1.25rem; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .notice-block { max-width: none; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .home-wells-row { grid-template-columns: 1fr; }
  .slide { height: auto; min-height: 340px; padding: 24px 0; }
  .slide-heading { font-size: 1.25rem; }
  .slide-box { padding: 18px 20px; }
  .slide-actions .btn { width: 100%; justify-content: center; }
  .council-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .service-tiles-grid { grid-template-columns: 1fr; }
  .service-tile { border-right: none; border-bottom: 1px solid #e0e0e0; }
  .service-tile:last-child { border-bottom: none; }
}

/* ---------------------------------------------------------
   20. AUTH BUTTONS & MODAL (Community Login & Register)
   --------------------------------------------------------- */
.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 14px;
  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  background: transparent;
  border-top: none;
  border-right: none;
  border-bottom: none;
}

.nav-auth-btn:hover {
  background: #0f3d24;
  color: #fff !important;
  text-decoration: none;
}

.nav-auth-btn .feather {
  width: 13px;
  height: 13px;
  stroke: #c8a84b;
}

.nav-fault-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #c8a84b;
  color: #1a1a1a !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.nav-fault-btn .feather {
  stroke: #1a1a1a;
  width: 14px;
  height: 14px;
}

.nav-fault-btn:hover {
  background: #b8943b;
  text-decoration: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.auth-modal-card {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 460px;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  padding: 26px 28px 22px;
  z-index: 2;
  border-top: 4px solid #185a37;
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
}

.auth-modal-close:hover { color: #111; }

.auth-modal-header {
  text-align: center;
  margin-bottom: 18px;
}

.auth-modal-logo {
  height: 52px;
  width: auto;
  margin: 0 auto 6px;
}

.auth-modal-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #185a37;
  margin-bottom: 2px;
}

.auth-modal-header p {
  font-size: 0.78rem;
  color: #666;
  margin: 0;
  font-weight: 500;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 9px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  text-align: center;
}

.auth-tab.active {
  color: #185a37;
  border-bottom-color: #185a37;
  font-weight: 700;
}

/* ---------------------------------------------------------
   PAGINATION & DOCUMENT LISTING SYSTEM
   --------------------------------------------------------- */
.doc-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #f8faf8;
  border: 1px solid #e2ece4;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.doc-filter-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  font-weight: 500;
}

.doc-filter-left select {
  padding: 5px 10px;
  border: 1px solid #d1ded5;
  border-radius: 3px;
  background: #fff;
  font-size: 0.85rem;
  color: #333;
  outline: none;
  cursor: pointer;
}

.doc-filter-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 380px;
  margin-left: auto;
}

.doc-search-wrapper {
  position: relative;
  width: 100%;
}

.doc-search-wrapper .feather {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: #888;
  pointer-events: none;
}

.doc-search-input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  border: 1px solid #d1ded5;
  border-radius: 3px;
  font-size: 0.85rem;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.doc-search-input:focus {
  border-color: #185a37;
  box-shadow: 0 0 0 3px rgba(24, 90, 55, 0.1);
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-list li {
  border-bottom: 1px solid #edf2ee;
  transition: background 0.15s ease;
}

.doc-list li:hover {
  background: #fafdfa;
}

.doc-list li:last-child {
  border-bottom: none;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 10px;
  gap: 14px;
  flex-wrap: wrap;
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.doc-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf7f0;
  border: 1px solid #bfe2cc;
  border-radius: 4px;
  flex-shrink: 0;
}

.doc-icon .feather {
  stroke: #185a37;
  width: 18px;
  height: 18px;
}

.doc-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1b2e21;
  margin: 0 0 3px 0;
  line-height: 1.35;
}

.doc-size {
  font-size: 0.78rem;
  color: #6c757d;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.doc-size .doc-date-badge {
  display: inline-block;
  background: #eef3ef;
  color: #185a37;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.75rem;
}

.pagination-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px 6px;
  margin-top: 14px;
  border-top: 1px solid #edf2ee;
  flex-wrap: wrap;
}

.pagination-info {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d6ded8;
  background: #fff;
  color: #333;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.pagination-btn:hover:not(:disabled) {
  background: #edf7f0;
  border-color: #185a37;
  color: #185a37;
}

.pagination-btn.active {
  background: #185a37;
  border-color: #185a37;
  color: #fff;
  font-weight: 700;
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: #e5e5e5;
  background: #f8f8f8;
}

.doc-no-results {
  text-align: center;
  padding: 36px 16px;
  color: #777;
  font-size: 0.9rem;
}

