/* Ratadgaon Gram Panchayat General Layout Styles */
:root {
  --primary-color: #0b2240;
  --secondary-color: #f06424;
  --success-color: #1c8c44;
  --accent-color: #007bb6;
  --light-bg: #f8f9fa;
  --dark-text: #212529;
  --white: #ffffff;
  --gray-text: #6c757d;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: 'Outfit', 'Inter', 'Noto Sans Devanagari', sans-serif;
  color: var(--dark-text);
  background-color: #f4f6f9;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
}

/* Top Bar and Header */
.top-header {
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 0.85rem;
  padding: 6px 0;
}

.top-header a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.top-header a:hover {
  color: var(--secondary-color);
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.navbar-brand img {
  max-height: 55px;
}

.nav-link {
  font-weight: 600;
  color: var(--primary-color) !important;
  position: relative;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--secondary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 80%;
}

/* Custom Buttons */
.btn-gov-primary {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  padding: 10px 24px;
  border: 2px solid var(--primary-color);
  transition: var(--transition);
}

.btn-gov-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-gov-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  padding: 10px 24px;
  border: 2px solid var(--secondary-color);
  transition: var(--transition);
}

.btn-gov-secondary:hover {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Layout Padding */
.section-padding {
  padding: 80px 0;
}

/* Cards & Containers */
.gov-card {
  background: var(--white);
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.gov-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: #0b1a2d;
  color: #a0b2c6;
  font-size: 0.95rem;
}

footer h5 {
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
}

footer a {
  color: #a0b2c6;
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--white);
  padding-left: 5px;
}

/* Responsive Table */
.table-responsive {
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* Live News Ticker */
.news-ticker {
  background-color: var(--primary-color);
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1040;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* Floating Navigation Enhancements */
.navbar.sticky-top {
  transition: all 0.3s ease-in-out;
}

/* Add active navigation links wiggle/hover animation */
.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link {
  display: inline-block;
  transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* Mobile Friendly Responsive Map Wrapper */
.map-responsive {
  overflow: hidden;
  padding-bottom: 450px; /* Desktop Height */
  position: relative;
  height: 0;
}

@media (max-width: 768px) {
  .map-responsive {
    padding-bottom: 250px; /* Mobile Height */
  }
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}
