/* PFM VEDA - Modern Responsive Design System */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #006b7b;
  --primary-light: #008e9b;
  --primary-dark: #004854;
  --accent: #c59b27;
  --accent-hover: #d4af37;
  --accent-soft: rgba(197, 155, 39, 0.12);
  --bg-page: #f2f8f9;
  --bg-card: #ffffff;
  --bg-dark: #01262d;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 107, 123, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 107, 123, 0.09);
  --shadow-lg: 0 16px 36px rgba(0, 107, 123, 0.14);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Top Announcement Bar */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-contacts {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.top-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

.top-contact-item a {
  color: #ffffff;
}

.top-contact-item a:hover {
  color: var(--accent);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-switch a {
  padding: 3px 12px;
  font-size: 0.775rem;
  font-weight: 700;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.lang-switch a.active {
  background: var(--accent);
  color: var(--primary-dark);
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.current::after {
  width: 100%;
}

.nav-link.current {
  color: var(--primary);
  font-weight: 700;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-emergency {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(13, 59, 46, 0.25);
  transition: var(--transition);
}

.btn-emergency:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.35);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Hero Section & Animated Slider */
.hero-section {
  position: relative;
  color: #ffffff;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 4px solid var(--accent);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Static Tree Background Layer (Preserved as requested) */
.hero-tree-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/backgrounds/bg_image2.jpg') center/cover no-repeat;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
}

/* Animated Slides Layer */
.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 5.5s ease-out;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 0.92;
  transform: scale(1);
  pointer-events: auto;
}

/* Semi-transparent Overlay for optimal image visibility & text contrast */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 37, 29, 0.65) 0%, rgba(13, 59, 46, 0.55) 100%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 860px;
  margin: 0 auto;
}

/* Slide Text Items (Synchronized with images) */
.hero-text-item {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-text-item.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Arrow Buttons */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(13, 59, 46, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.prev-arrow { left: 1.25rem; }
.next-arrow { right: 1.25rem; }

/* Indicator Dots */
.hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 10px;
}

.hero-title {
  font-family: 'Amiri', 'Cinzel', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #f1f5f9;
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Verse Callout Box */
.verse-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 5px solid var(--accent);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  margin: 2rem auto;
  max-width: 780px;
  text-align: center;
}

.verse-text {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.verse-source {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-style: italic;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Page Header / Breadcrumb Banner for Subpages */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 3rem 0;
  border-bottom: 3px solid var(--accent);
}

.page-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title {
  font-family: 'Amiri', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Page Content Layout */
.section-padding {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Amiri', 'Plus Jakarta Sans', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Content Box & Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent-soft);
}

.card-img-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
  
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* Service Grid Layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.grid-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

/* Widgets & Sidebar */
.widget-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-color);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
}

.widget-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.widget-list li:last-child {
  border-bottom: none;
}

.widget-list a {
  color: var(--text-main);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-list a::before {
  content: '›';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.widget-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 107, 123, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.925rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-info p {
  margin-bottom: 0.75rem;
  font-size: 0.925rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-contact-info svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.copyright-bar a {
  color: var(--accent);
}

/* Info Lists / Bullet Points */
.styled-list {
  margin: 1.25rem 0;
}

.styled-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.styled-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}

/* Map Iframe Wrapper */
.map-responsive {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  height: 380px;
  width: 100%;
}

.map-responsive iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
  .grid-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 868px) {
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
  
  .navbar-inner {
    height: 75px;
  }

  .nav-menu {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
  }

  .nav-menu.active {
    clip-path: circle(140% at 100% 0);
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .verse-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    padding: 3.5rem 0 2.5rem;
  }

  .btn {
    width: 100%;
  }

  .top-contacts {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.65);
  color: #ffffff;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: whatsappPulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  border: 1px solid var(--accent);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--primary-dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 576px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
  .whatsapp-tooltip {
    display: none;
  }
}
