/* 
   Puskesmas Kebayoran Lama - Premium Glassmorphism 2.0 Styles
   Modularized from monolithic index.html
*/

:root {
  --primary: #10B981;
  --primary-dark: #059669;
  --secondary: #3B82F6;
  --accent: #F59E0B;
  --surface: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --main-gradient: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
  --shadow-soft: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-premium: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.01);
  --shadow-lg: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--surface);
  padding-top: 130px; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: var(--main-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.lead {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Glassmorphism 2.0 Refined */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--shadow-premium);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.5);
}

.btn-accent, .btn-accent:focus {
  background: var(--main-gradient);
  color: white !important;
  border: none;
  border-radius: 14px;
  padding: 14px 32px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  filter: brightness(1.1);
}

.card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
  border: none;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* =============================================
   HEADER & NAVBAR
   ============================================= */

.header-area {
  transition: transform 0.3s ease, border-color 0.3s ease;
  z-index: 1030;
}

/* Header top bar: info kontak + sosmed */
.header-top {
  background: var(--primary-dark) !important;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.header-top a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-top a:hover {
  color: #fff;
}

.header-top .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Active state */
.nav-item.active .nav-link,
.navbar-nav .nav-item.active .nav-link {
  color: var(--primary) !important;
  font-weight: 700;
}

.rounded-24 {
  border-radius: 24px;
}

.badge-success-soft {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.card:hover::before {
  left: 100%;
}

.footer-logo {
  height: 40px;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.section-title-icon {
  margin-right: 12px;
  font-size: 1.2em;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Enhanced animations */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Reduced motion: hormati preferensi aksesibilitas user */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .emergency-btn,
  .whatsapp-float.pulse,
  .emergency-notice,
  .section-title-icon {
    animation: none !important;
  }

  .glass-card,
  .card,
  .btn-accent,
  .dropdown-item,
  .navbar-brand,
  .nav-link {
    transition-duration: 0.01ms !important;
  }
}

/* Parallax effect */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Enhanced spacing */
.section-padding {
  padding: 80px 0;
}

/* Glowing effect */
.glow {
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.glow:hover {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

/* Text gradient */
.text-gradient {
  background: var(--main-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =============================================
   NAVBAR UTAMA
   ============================================= */

/* Navbar: white solid, clean border */
.navbar,
.glass-navbar {
  background: #ffffff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  z-index: 1030;
}

/* Navbar saat discroll: tambah depth */
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

/* Brand logo */
.navbar-brand {
  transition: opacity 0.2s ease;
}

.navbar-brand:hover {
  opacity: 0.85;
}

.navbar-brand img {
  transition: transform 0.25s ease;
}

.navbar-brand:hover img {
  transform: scale(1.04);
}

/* Nav links */
.navbar-nav .nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main) !important;
  padding: 10px 14px !important;
  margin: 0 2px;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

/* Underline indicator: tumbuh dari tengah */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
  background: rgba(16, 185, 129, 0.07);
}

.navbar-nav .nav-link:hover::after {
  width: 60%;
}

/* Active state */
.navbar-nav .nav-item.active .nav-link {
  color: var(--primary) !important;
  font-weight: 700;
}

.navbar-nav .nav-item.active .nav-link::after {
  width: 60%;
}

/* Dropdown caret — override Bootstrap default */
.navbar-nav .nav-link.dropdown-toggle::after {
  all: unset; /* hapus arrow bawaan Bootstrap */
  position: static;
  width: auto;
  height: auto;
  background: none;
  display: inline-block;
  content: '\f107'; /* Font Awesome chevron-down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  margin-left: 5px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.navbar-nav .nav-item.show .nav-link.dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
  z-index: 1040;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 12px 12px;
  padding: 8px;
  min-width: 230px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
  animation: dropdownFadeIn 0.2s ease;
  background: #fff;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-main);
  border-radius: 6px;
  padding: 9px 14px;
  margin: 2px 0;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
  white-space: normal;
  word-wrap: break-word;
}

.dropdown-item i,
.dropdown-item .ph {
  width: 18px;
  text-align: center;
  margin-right: 8px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(16, 185, 129, 0.08);
  color: var(--primary);
  padding-left: 20px; /* subtle indent on hover */
}

.dropdown-item:hover i,
.dropdown-item:hover .ph {
  transform: scale(1.15);
}

.dropdown-header {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 10px 14px 4px;
}

.dropdown-divider {
  border-color: rgba(0, 0, 0, 0.05);
  margin: 4px 8px;
}

/* Dropdown besar (multi-kolom) */
.dropdown-menu-lg {
  min-width: 560px;
  max-width: 680px;
  padding: 16px;
  left: auto;
  right: 0;
}

/* Tombol darurat */
.emergency-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulse 2.5s infinite;
}

.emergency-btn:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 53, 69, 0.4);
  animation: none;
}

/* Toggler mobile */
.navbar-toggler {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  outline: none;
}

.navbar-toggler:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--primary);
}

/* =============================================
   NAVBAR RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    border-radius: 12px;
    margin-top: 12px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-top: 2px solid var(--primary);
  }

  .navbar-nav .nav-link {
    padding: 12px 8px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0;
    margin: 0;
  }

  .navbar-nav .nav-link::after {
    display: none; /* sembunyikan underline di mobile */
  }

  .dropdown-menu {
    border: none;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    box-shadow: none;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.04);
    margin-top: 4px;
    padding: 6px;
  }

  .dropdown-menu-lg {
    min-width: 100%;
    max-width: 100%;
  }

  .emergency-btn {
    margin-top: 8px;
    width: 100%;
    text-align: center;
    display: block;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    height: 36px !important;
  }

  .navbar-brand .brand-text .h5 {
    font-size: 1rem !important;
  }
}

/* Preloader positioning */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hide preloader after page load */
.preloader.hidden {
  display: none;
}

/* Enhanced Footer Styling */
.footer-area {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  position: relative;
}

.footer-area::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.footer-area .container {
  position: relative;
  z-index: 2;
}

.footer-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--main-gradient);
  border-radius: 2px;
}

.footer-links a {
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  padding: 5px 0;
}

.footer-links a:hover {
  color: var(--primary) !important;
  transform: translateX(5px);
  text-decoration: none;
}

.contact-item {
  transition: all 0.3s ease;
  padding: 6px 0;
}

.contact-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 -12px;
}

.contact-icon {
  width: 35px;
  height: 35px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-item:hover .contact-icon {
  background: rgba(16, 185, 129, 0.2);
  transform: scale(1.1);
}

.contact-item a {
  word-wrap: break-word;
  word-break: break-all;
  hyphens: auto;
  line-height: 1.4;
}

.operating-hours {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.hours-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-item:last-child {
  border-bottom: none;
}

.emergency-notice {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
  animation: pulse 2s infinite;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.social-link:hover {
  background: var(--main-gradient);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
  text-decoration: none;
}

.footer-stats {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.stat-item {
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-bottom-links a {
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--primary) !important;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .contact-item a {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .contact-item h6 {
    font-size: 1rem;
  }
  
  .alert {
    font-size: 0.85rem;
    padding: 0.75rem;
  }
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #28a745;
  backdrop-filter: blur(10px);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

/* Floating elements */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Enhanced carousel */
.owl-carousel .item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.owl-carousel .item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Statistics Section */
.stats-section {
  background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%) !important;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.counter {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 10px;
  display: block;
}

.stats-section p {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
}

.stats-section .col-md-3 {
  position: relative;
  z-index: 1;
}

@keyframes progress {
  0% { width: 0%; }
  50% { width: 100%; }
  100% { width: 0%; }
}

/* Flipbook Download Styles */
.flipbook-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flipbook-download-btn, .flipbook-fullscreen-btn {
  transition: all 0.3s ease;
  font-size: 0.85rem;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flipbook-download-btn:hover {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.flipbook-fullscreen-btn:hover {
  background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

.flipbook-download-btn i, .flipbook-fullscreen-btn i {
  transition: transform 0.3s ease;
}

.flipbook-download-btn:hover i, .flipbook-fullscreen-btn:hover i {
  transform: scale(1.2);
}

/* Download Modal Styles */
.download-modal {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.download-modal .modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.download-modal .modal-header {
  background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
  color: white;
  border-radius: 15px 15px 0 0;
  border: none;
}

.download-modal .modal-body {
  padding: 30px;
}

.download-option {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.download-option:hover {
  border-color: #20c997;
  background: rgba(32, 201, 151, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(32, 201, 151, 0.2);
}

.download-option.selected {
  border-color: #20c997;
  background: rgba(32, 201, 151, 0.1);
}

.download-option i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #20c997;
}

.download-option h6 {
  margin-bottom: 5px;
  font-weight: 600;
}

.download-option small {
  color: #6c757d;
}

/* Fullscreen Modal */
.fullscreen-modal {
  background: rgba(0, 0, 0, 0.95);
}

.fullscreen-modal .modal-content {
  background: transparent;
  border: none;
  height: 100vh;
  margin: 0;
  border-radius: 0;
}

.fullscreen-modal .modal-header {
  background: rgba(0, 0, 0, 0.8);
  border: none;
  padding: 15px 30px;
}

.fullscreen-modal .modal-body {
  padding: 0;
  height: calc(100vh - 80px);
}

.fullscreen-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
  .flipbook-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  
  .flipbook-download-btn, .flipbook-fullscreen-btn {
    width: 100%;
    font-size: 0.8rem;
    padding: 10px 15px;
  }
  
  .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .d-flex.justify-content-between h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
  }
}
.text-primary-gradient {
  background: var(--main-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Canvas background: opacity ditingkatkan agar particle lebih terasa */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white !important;
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.whatsapp-float i {
  font-size: 24px;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  background: #20BA56;
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float.pulse {
  animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 767px) {
  .whatsapp-float span {
    display: none;
  }
  .whatsapp-float {
    padding: 15px;
    bottom: 20px;
    right: 20px;
  }
}

/* Social link refinement in footer */
.footer-area .social-link {
  width: 42px;
  height: 42px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: white;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
  margin-right: 0 !important; /* Managed by gap or flex grouping */
}

.footer-area .social-link:hover {
  background: var(--main-gradient);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(16, 185, 129, 0.2);
  border-color: rgba(255,255,255,0.3);
}

/* News Card Premium Redesign */
.news-card {
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.12);
    border-color: rgba(16, 185, 129, 0.2);
}

.news-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.news-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-card:hover .card-img {
    transform: scale(1.1);
}

.news-card .card-body {
    padding: 32px;
}

.news-card .card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.news-card .card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.news-card:hover .card-title {
    color: var(--primary);
}

.news-card .read-more-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.news-card:hover .read-more-link {
    color: var(--primary);
    gap: 12px;
}

}

/* 🚀 Premium Polish & Seamless UI Enhancements */

/* 1. Scroll To Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--main-gradient);
    color: white !important;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

/* 2. Mobile Quick Action Bar (Fixed Bottom) */
.mobile-quick-action {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    z-index: 1050;
}

.quick-nav-link {
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    display: block;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.quick-nav-link i {
    font-size: 1.2rem;
}

.quick-nav-link span {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

.quick-nav-link.emergency { color: #ef4444; }
.quick-nav-link.primary   { color: var(--primary); }
.quick-nav-link.success   { color: #10b981; }

.quick-nav-link:active {
    transform: scale(0.92);
    opacity: 0.7;
}

/* 3. Button Shimmer Effect */
.btn-accent {
    position: relative;
    overflow: hidden;
}

.btn-accent::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.btn-accent:hover::after {
    left: 150%;
}

/* 4. Skeleton Loader Utility */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 5. Parallax Scroll Effect for Hero */
.hero-image-wrapper {
    transition: transform 0.1s ease-out;
}

/* Offset page content for mobile quick bar */
@media (max-width: 991.98px) {
    footer { padding-bottom: 100px !important; }
}
