:root {
    --gov-green: #0f9d45;
    --gov-green-dark: #033d17;
    --ez-red: red;
    --ez-gold: #ffc107;
    --ez-dark: #212529;
}


/* General */

body {
    background: #f4f7f9;
    font-family: Arial, sans-serif;
}


/* Header */

header {
    background: linear-gradient(90deg, var(--gov-green-dark), var(--gov-green));
}


/* Hero */

.hero {
    padding: 80px 20px;
}

[data-bs-toggle="collapse"] .bi-chevron-down {
  transition: transform 0.2s ease;
}
[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.section-heading .toggle-icon {
  transition: transform 0.3s ease;
}

.section-heading[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.section-heading[aria-expanded="false"] .toggle-icon {
  transform: rotate(0deg);
}


/* Cards */

.card {
    border: none;
    border-bottom: 5px solid var(--gov-green);
    border-radius: 15px;
    transition: .3s ease;
}

.kard {
    border: none;
    border-left: 5px solid var(--gov-green);
    border-radius: 15px;
    transition: .3s ease;
}


.card:hover {
    transform: translateY(-5px);
}

/* New Card Variants */

.card-mission {
    border-left: 5px solid #0d6efd;
    border-bottom: none;
}

.card-vision {
    border-left: 5px solid #ffc107;
    border-bottom: none;
}

.card-values {
    border-left: 5px solid #dc3545;
    border-bottom: none;
}

.card-project {
    border-top: 5px solid var(--gov-green);
    border-bottom: none;
}

.card-contact {
    border-left: 5px solid var(--gov-green-dark);
    border-bottom: none;
}

.card-highlight {
    background: linear-gradient(
        135deg,
        rgba(15,157,69,.06),
        rgba(255,255,255,1)
    );
    border-left: 5px solid var(--gov-green);
    border-bottom: none;
}


/* Card headings */

.card h4 {
    color: var(--gov-green-dark);
    font-weight: 700;
}

/* Card color variations */

.card-admin {
    border-bottom-color: var(--ez-red);
}

.card-live {
    border-bottom-color: var(--ez-gold);
}

.card-queue {
    border-bottom-color: var(--ez-dark);
}

.card-comments {
    border-bottom-color: #0d6efd;
}

.card-staff {
    border-bottom-color: #28a745;
}


/* Buttons */

.btn {
    border-radius: 10px;
}


/* Tables */

table {
    background: white;
}

/* FOOTER */
footer{
    margin-top:50px;
    background:linear-gradient(90deg,var(--gov-green-dark),var(--gov-green));
    color:#fff;
    padding:30px 0 0;   /* Remove horizontal padding */
}

/* Inner footer content */
.footer-content{
    max-width:1200px;
    margin:auto;
    padding:0 20px;
}

/* Tomorrow text */
.footer-title{
    text-align:center;
    font-size:42px;
    font-weight:400;
    font-style:italic;
    letter-spacing:.25em;
    white-space:nowrap;          /* Keep on one line */
    padding:5px 0 20px;
    margin:0;
    text-shadow:
        2px 2px 6px rgba(0,0,0,.4),
        0 0 10px rgba(255,255,255,.35);
}


/* Images */
.footer-images{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:40px;
    flex-wrap:wrap;
    padding:20px;
}

.footer-images img{
    width:170px;
    height:170px;
    object-fit:cover;
    border-radius:12px;
}

/* Center text */
.footer-center-text{
    font-size:30px;
    font-weight:700;
    color:var(--ez-red);
    text-align:center;
    min-width:220px;
}

/* Copyright bar */
.footer-bottom{
    margin-top:40px;
    width:100%;
    background:var(--ez-red);
    color:#fff;
    text-align:center;
    font-size:18px;
    padding:22px 15px;
    border-top:3px solid gold;
    box-sizing:border-box;
}

.footer-bottom a{
    color:#007bff;
    font-weight:bold;
    text-decoration:none;
}

.footer-bottom a:hover{
    text-decoration:underline;
}

/* Mobile */
@media (max-width:576px){

    .footer-title{
        font-size:18px;
        letter-spacing:.50em;   /* Much smaller spacing */
        padding:0 8px;
        margin-left:-8px;
        margin-right:-8px;
        margin-top:-10px;
        margin-bottom:25px;
        width:100%;
    }

    .footer-images{
        display:flex;
        justify-content:space-between;
        align-items:center;
    }

    .footer-images img{
        width:80px;
        height:80px;
        flex-shrink:0;
    }

    .footer-center-text{
        font-size:18px;
        min-width:0;
        flex:1;
        text-align:center;
    }

    .footer-bottom{
        font-size:15px;
        padding:18px 10px;
    }
}

 /*** Team ***/
.team-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.team-track {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: teamScroll 30s linear infinite;
}

.team-item {
    min-width: 350px;
    background: #fff;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    flex-shrink: 0;
}

.team-item img {
    border-radius: 8px 60px 0 0;
    object-fit: cover;
    height: 280px;
}

.team-item .team-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #FFFFFF;
    padding-top: 15px;
}

.team-item .team-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-item h5 {
    font-weight: 700;
    color: var(--gov-green-dark);
}

.team-item span {
    color: #6c757d;
    font-size: 14px;
}

/* Force the track into a single long horizontal line */
.team-track {
    display: flex;
    width: max-content; 
    gap: 1.5rem; /* Space between cards */
    animation: teamScroll 80s linear infinite;
}
.team-track {
    display: flex;
    width: max-content; 
    gap: 1.5rem; 
    /* Animation is now handled by JS for smooth drag/resume */
    will-change: transform; /* Optimizes performance */
}

.team-item {
    cursor: grab;
    transition: transform 0.1s ease;
}

.team-item:active {
    cursor: grabbing;
}

.team-item img {
    pointer-events: none; /* Prevents browser image-drag interference */
}

@media (max-width: 576px) {
    .team-item { min-width: 280px !important; }
    .team-item img { height: 220px !important; }
    .team-track { gap: 1rem; }
}


.activity-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.activity-carousel .carousel-track {
  display: flex;              /* force horizontal row */
  flex-wrap: nowrap;          /* prevent wrapping vertically */
  animation: scroll-left 40s linear infinite;
}

.activity-item {
  flex: 0 0 180px;            /* fixed width block */
  margin-right: 15px;
  text-align: center;
}

.activity-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;          /* crop neatly */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.activity-item p {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* Animation keyframes */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile responsiveness */
@media(max-width:576px){
  .activity-item {
    flex: 0 0 120px;
    margin-right: 10px;
  }
  .activity-item img {
    height: 80px;
  }
  .activity-item p {
    font-size: 13px;
  }
}



/* ====================== PROJECT CARDS - RESPONSIVE & UNIFORM ====================== */
.card-project {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card-project:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Uniform Image with Responsive Aspect Ratio */
.card-project img {
    width: 100% !important;
    height: 220px !important;           /* Base height for larger screens */
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

/* Make it more responsive using aspect-ratio (modern browsers) */
@supports (aspect-ratio: 16/10) {
    .card-project img {
        height: auto !important;
        aspect-ratio: 16 / 10;           /* Wide landscape - good for projects */
    }
}

/* Card Body */
.card-project .p-4 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.35rem !important;
}

.card-project h5 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.35;
    font-weight: 600;
}

.card-project p {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0;
}

/* Badge */
.card-project .badge {
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 30px;
}

/* ====================== MOBILE RESPONSIVENESS ====================== */

@media (max-width: 768px) {
    .card-project img {
        height: 200px !important;
    }
    
    .card-project .p-4 {
        padding: 1.1rem !important;
    }
    
    .card-project h5 {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .card-project img {
        height: 190px !important;
    }
    
    .card-project .p-4 {
        padding: 1rem !important;
    }
}

/* Optional: Slightly larger images on very large screens */
@media (min-width: 1200px) {
    .card-project img {
        height: 245px !important;
    }
}


/* Analytics Section Styles */
.analytics-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.analytics-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%236c757d"/></svg>') no-repeat top;
  background-size: cover;
  opacity: 0.1;
  pointer-events: none;
}

.analytics-title {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.analytics-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* Stat Cards */
.stat-card-analytics {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.stat-card-analytics:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.bg-primary-soft { background: #e3f2fd; }
.bg-success-soft { background: #e8f5e9; }
.bg-info-soft { background: #e0f7fa; }
.bg-warning-soft { background: #fff3e0; }

.stat-content {
  flex-grow: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  line-height: 1;
}

.stat-label {
  color: #6c757d;
  margin: 0.5rem 0 0 0;
  font-size: 0.95rem;
}

/* Analytics Cards */
.analytics-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.card-header-analytics {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header-analytics h5 {
  font-weight: 600;
  font-size: 1.1rem;
}

.card-body-analytics {
  padding: 1.5rem;
}

/* Map Styles */
#enuguMap {
  border-radius: 0 0 16px 16px;
  z-index: 1;
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #495057;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ward Explorer Styles */
.ward-stat-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.ward-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ward-stat-card i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.ward-stat-card h4 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0.5rem 0;
}

.ward-stat-card p {
  color: #6c757d;
  margin: 0;
  font-size: 0.9rem;
}

/* Project Badge Styles */
.project-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-completed {
  background: #d4edda;
  color: #155724;
}

.badge-ongoing {
  background: #d1ecf1;
  color: #0c5460;
}

/* Progress Bar */
.progress-bar-analytics {
  height: 8px;
  border-radius: 4px;
  background: #e9ecef;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.5s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .analytics-title {
    font-size: 1.8rem;
  }
  
  .stat-card-analytics {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  #enuguMap {
    height: 400px;
  }
  
  .map-legend {
    gap: 1rem;
  }
}

/* Custom Scrollbar for Ward Projects */
#wardProjectsList {
  max-height: 400px;
  overflow-y: auto;
}

#wardProjectsList::-webkit-scrollbar {
  width: 8px;
}

#wardProjectsList::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#wardProjectsList::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#wardProjectsList::-webkit-scrollbar-thumb:hover {
  background: #555;
}