/* ============================================
   RUMPHI DISTRICT COUNCIL - MAIN STYLES
   ============================================ */

/* CSS Custom Properties for Theming */
:root {
  --primary-color: #1e40af;
  --secondary-color: #059669;
  --accent-color: #f59e0b;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
  --border-radius: 12px;
  --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s ease;
}


/* General mobile adjustments for smaller screens */

@media screen and (max-width: 768px){
	body .topbar {
		display: none !important;
	}
}



/* General styles */
* {
    padding: 0;
    margin: 0;
}

body {
  top: auto;
}

/* Topbar styling */
.topbar {
    font-family: "century gothic", inter, Arial, Helvetica, sans-serif !important;
    background-color: #f5f3f3 !important;
    color: white !important;
}

/* Navbar styling */
header nav .navbar {
  position: sticky !important;
  top: 0;
  z-index: 1050;
  background: #fff;
}

.navbar-brand {
    font-family: "century gothic", inter, Arial, Helvetica, sans-serif !important;
    font-weight: bold !important;
    color: #202020 !important;
}

.navbar-nav .nav-link {
    color: #202020 !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #545E5E !important;
    transition: color 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #545E5E;
    color: white !important;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Hero Carousel Styling */
.hero {
  position: relative;
  min-height: 85vh;
}

.hero .carousel-item {
  height: 85vh;
  background-position: top;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.35));
}

.hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
  padding: 1rem;
}

.hero-caption h1 {
  font-size: 2.5rem;
  font-weight: bold;
}

.hero-caption p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* About Section Styling */
.about-card {
    background-color: rgba(228, 252, 250, 0.12);
    transition: all 0.3s ease-in-out;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Custom colors for about section icons */
/* .bg-mission { color: #030303 !important; }
.bg-vision { color: #AA0007 !important; }
.bg-values { color: #1E8921 !important; } */


/* Project Cards Styling */
.project-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.project-card .card-img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-in-out;
}

.project-card:hover .card-img {
  transform: scale(1.08);
}

/* Glassmorphism container */
.glass-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0 5rem 1rem 1rem;
  padding: 1.5rem;
  transition: max-height 0.9s ease, padding 0.3s ease;
  max-height: 100px;
  overflow: hidden;
}

.project-card:hover .glass-container {
  max-height: 220px;
  padding: 1.25rem;
}

.card-expandable-content {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.4s ease;
}

.project-card:hover .card-expandable-content {
  opacity: 1;
  transform: translateY(0);
}

.text-accent {
  color: #303030;
  letter-spacing: 0.5px;
}

.glass-container h6 {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.glass-container p {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  line-height: 1.4;
}

.glass-container .btn {
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  transition: background 0.3s ease;
}

.glass-container .btn:hover {
  background: #c4c4c4;
  color: #000;
}



/* News Section Styling */
#news {
  background-color: rgba(228, 252, 250, 0.12);
  padding: 1.5rem;
}

#news .section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

#news .card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

#news .card-title {
  font-size: 1rem;
  font-weight: bold;
}

#news .card-text {
    color: #555;
    font-size: 0.9rem;
    text-align: left;
}

#news .card-footer {
  background-color: transparent;
  border-top: none;
}

/* Services Section Styling */
#services {
  background-position: cover;
  background-attachment: fixed;
  padding: 1.5rem;
}

#services .section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.banner_address_bg{
    background-color: rgba(205, 248, 235, 0.144)!important;
}

/* Banner address styling */
.banner_address_bg p {
  background-color: #e9f4ff;
  font-family: "inter";
  color: rgb(131, 131, 131);
  font-style: italic;
  font-weight: light;
  box-shadow: 2px 1px 2px rgba(26, 25, 25, 0.158) !important;
}

/* Scrolling News Animation */
.scrolling-wrapper {
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.scrolling-content {
  display: inline-block;
  animation: scroll-left var(--scroll-duration) linear infinite;
  animation-play-state: running;
}

.scrolling-wrapper:hover .scrolling-content {
  animation-play-state: paused;
}

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

.scroll-duration-fast { --scroll-duration: 20s; }
.scroll-duration-medium { --scroll-duration: 50s; }
.scroll-duration-slow { --scroll-duration: 80s; }

.scrolling-content > .col-12 {
  display: inline-block;
  vertical-align: top;
  margin-right: 20px;
}

.card-body .card-title,
.card-body .card-text {
  white-space: normal;
}

/* Back to Top Button */
#backToTopBtn {
   transition: all 0.3s ease;
}

#backToTopBtn:hover {
   transform: translateY(-3px);
   box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

@media (max-width: 768px) {
   #backToTopBtn {
       bottom: 15px;
       right: 15px;
       width: 45px;
       height: 45px;
   }
}

/* Footer styling */
footer {
    font-family: "century gothic", inter, Arial, Helvetica, sans-serif !important;
    background-color: #24292e !important;
    color: white !important;
    padding: 20px 40px;
    width: 100%;
    z-index: 1000;
    font-size: 14px;
}

footer .nav-item:hover {
    color: rgb(160, 158, 158) !important;
    transition: color 0.3s ease;
}

footer .nav-item:focus {
    color: #bbbaba !important;
}

/* Section Titles */
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  margin-bottom: 3rem;
  position: relative;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Button Styles */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  padding: 0.5rem 1.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #3b82f6);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e3a8a, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30, 64, 175, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .topbar .row > div {
    text-align: center;
  }

  .topbar .d-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  .display-6 {
    font-size: 2rem;
  }

  .hero-caption h1 {
    font-size: 2rem;
  }

  .hero-caption p {
    font-size: 1rem;
  }
}

/* Accessibility Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus {
  outline: none !important;
}

.nav-link:focus,
.dropdown-item:focus,
.btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Dark Mode Support */
[data-theme="dark"] {
  --bs-body-bg: #1a1a1a;
  --bs-body-color: #ffffff;
  --dark-color: #f8fafc;
  --primary-color: #3b82f6;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
}

[data-theme="dark"] .navbar {
  background: rgba(26, 26, 26, 0.95) !important;
  color: white !important;
}

[data-theme="dark"] .footer-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .dropdown-menu {
  background-color: #2d2d2d;
  border: 1px solid #404040;
}

[data-theme="dark"] .dropdown-item {
  color: #ffffff;
}

[data-theme="dark"] .dropdown-item:hover {
  background-color: rgba(59, 130, 246, 0.2);
  color: var(--primary-color);
}

[data-theme="dark"] .card {
  background-color: #2d2d2d;
  color: #ffffff;
  border: 1px solid #404040;
}

[data-theme="dark"] .topbar {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
}

[data-theme="dark"] .text-muted {
  color: #9ca3af !important;
}

/* Event Cards */
.event-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.event-image-container {
    position: relative;
    overflow: hidden;
}

.event-image-container img {
    transition: transform 0.3s ease;
}

.event-card:hover .event-image-container img {
    transform: scale(1.05);
}

/* Date Badge */
.date-badge {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

/* ============================================
   END OF RUMPHI DISTRICT COUNCIL STYLES
   ============================================ */
