/*
 * DIVYANG FOUNDATION (Reg.)
 * Main Stylesheet
 * Brand Colors:
 * - Royal Blue: #0b3c8c (Primary)
 * - Warm Orange: #f37021 (Accent / Action)
 * - Forest Green: #198754 (Hope / Impact)
 * - Pure White / Clean Slate: #ffffff / #f8fafc
 */

:root {
  --df-royal-blue: #0b3c8c;
  --df-royal-blue-dark: #07265a;
  --df-royal-blue-light: #185ec2;
  --df-orange: #f37021;
  --df-orange-hover: #d95e14;
  --df-green: #198754;
  --df-green-dark: #11613c;
  --df-light-bg: #f8fafc;
  --df-card-bg: #ffffff;
  --df-text-main: #212529;
  --df-text-muted: #64748b;
  --df-border: #e2e8f0;
  --df-shadow-sm: 0 2px 8px rgba(11, 60, 140, 0.06);
  --df-shadow-md: 0 6px 20px rgba(11, 60, 140, 0.1);
  --df-shadow-lg: 0 12px 32px rgba(11, 60, 140, 0.15);
  --df-radius: 12px;
  --df-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: 'Poppins', 'Segoe UI', Roboto, sans-serif;
  color: var(--df-text-main);
  background-color: #ffffff;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--df-royal-blue-dark);
}

a {
  text-decoration: none;
  transition: var(--df-transition);
}

/* Top Bar */
.df-topbar {
  background: var(--df-royal-blue-dark);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 2px solid var(--df-orange);
}
.df-topbar a {
  color: #e2e8f0;
}
.df-topbar a:hover {
  color: var(--df-orange);
}
.df-topbar .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-left: 6px;
  font-size: 0.75rem;
  transition: var(--df-transition);
}
.df-topbar .social-links a:hover {
  background: var(--df-orange);
  color: #fff;
  transform: translateY(-2px);
}

/* Navbar */
.df-navbar {
  background: #ffffff;
  box-shadow: var(--df-shadow-sm);
  padding: 12px 0;
  transition: var(--df-transition);
}
.df-navbar.scrolled {
  box-shadow: var(--df-shadow-md);
  padding: 8px 0;
}
.df-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.df-navbar .navbar-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.df-navbar .brand-text {
  display: flex;
  flex-direction: column;
}
.df-navbar .brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--df-royal-blue);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.df-navbar .brand-name span {
  color: var(--df-orange);
}
.df-navbar .brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--df-green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.df-navbar .nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: #334155;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: var(--df-transition);
}
.df-navbar .nav-link:hover,
.df-navbar .nav-link.active {
  color: var(--df-royal-blue);
  background: rgba(11, 60, 140, 0.05);
}
.df-navbar .dropdown-menu {
  border: none;
  box-shadow: var(--df-shadow-lg);
  border-radius: var(--df-radius);
  padding: 10px;
  animation: fadeInDown 0.3s ease;
}
.df-navbar .dropdown-item {
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: 6px;
  padding: 8px 14px;
}
.df-navbar .dropdown-item:hover {
  background: rgba(11, 60, 140, 0.08);
  color: var(--df-royal-blue);
  padding-left: 18px;
}

/* Custom Buttons */
.btn-df-donate {
  background: linear-gradient(135deg, var(--df-orange) 0%, #ff8a3d 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 9px 22px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 14px rgba(243, 112, 33, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--df-transition);
}
.btn-df-donate:hover {
  background: linear-gradient(135deg, #e05e12 0%, var(--df-orange) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 112, 33, 0.45);
}

.btn-df-primary {
  background: var(--df-royal-blue);
  color: #ffffff;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 50px;
  border: 2px solid var(--df-royal-blue);
  transition: var(--df-transition);
}
.btn-df-primary:hover {
  background: var(--df-royal-blue-dark);
  border-color: var(--df-royal-blue-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-df-outline {
  background: transparent;
  color: var(--df-royal-blue);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid var(--df-royal-blue);
  transition: var(--df-transition);
}
.btn-df-outline:hover {
  background: var(--df-royal-blue);
  color: #ffffff;
}

.btn-df-green {
  background: var(--df-green);
  color: #ffffff;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 50px;
  border: none;
  transition: var(--df-transition);
}
.btn-df-green:hover {
  background: var(--df-green-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Hero Carousel */
.df-hero-carousel {
  position: relative;
  background: #000;
}
.df-hero-carousel .carousel-item {
  height: 560px;
  min-height: 480px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}
.df-hero-carousel .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(7, 38, 90, 0.88) 0%, rgba(11, 60, 140, 0.72) 45%, rgba(0, 0, 0, 0.4) 100%);
}
.df-hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 680px;
  padding: 40px 0;
}
.df-hero-badge {
  display: inline-block;
  background: rgba(243, 112, 33, 0.95);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.df-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.df-hero-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 28px;
}

/* Page Header / Banner */
.df-page-banner {
  background: linear-gradient(135deg, var(--df-royal-blue-dark) 0%, var(--df-royal-blue) 100%);
  color: #ffffff;
  padding: 65px 0 50px;
  position: relative;
  overflow: hidden;
}
.df-page-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(243, 112, 33, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.df-page-banner h1 {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.df-breadcrumb a {
  color: #cbd5e1;
}
.df-breadcrumb a:hover {
  color: var(--df-orange);
}
.df-breadcrumb .active {
  color: var(--df-orange);
  font-weight: 600;
}

/* Section Headings */
.df-section-heading {
  margin-bottom: 45px;
  position: relative;
}
.df-section-subtitle {
  display: inline-block;
  color: var(--df-orange);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.df-section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--df-royal-blue-dark);
  line-height: 1.25;
}
.df-divider {
  width: 70px;
  height: 4px;
  background: linear-gradient(to right, var(--df-orange), var(--df-green));
  border-radius: 2px;
  margin-top: 14px;
}
.text-center .df-divider {
  margin-left: auto;
  margin-right: auto;
}

/* Activity Cards (3-column layout) */
.df-activity-card {
  background: #ffffff;
  border-radius: var(--df-radius);
  border: 1px solid var(--df-border);
  overflow: hidden;
  box-shadow: var(--df-shadow-sm);
  transition: var(--df-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.df-activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--df-shadow-lg);
  border-color: rgba(11, 60, 140, 0.2);
}
.df-activity-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.df-activity-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.df-activity-card:hover .df-activity-img-wrapper img {
  transform: scale(1.08);
}
.df-activity-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--df-royal-blue);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.df-activity-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.df-activity-meta {
  font-size: 0.8rem;
  color: var(--df-text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.df-activity-meta i {
  color: var(--df-orange);
}
.df-activity-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}
.df-activity-title a {
  color: var(--df-royal-blue-dark);
}
.df-activity-title a:hover {
  color: var(--df-orange);
}
.df-activity-summary {
  font-size: 0.9rem;
  color: var(--df-text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Impact Counter Stats */
.df-impact-section {
  background: linear-gradient(135deg, var(--df-royal-blue-dark) 0%, var(--df-royal-blue) 100%);
  color: #ffffff;
  padding: 70px 0;
  position: relative;
}
.df-stat-card {
  text-align: center;
  padding: 20px;
  border-radius: var(--df-radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--df-transition);
}
.df-stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}
.df-stat-icon {
  font-size: 2.5rem;
  color: var(--df-orange);
  margin-bottom: 14px;
}
.df-stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}
.df-stat-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
}

/* Campaign Cards */
.df-campaign-card {
  background: #ffffff;
  border-radius: var(--df-radius);
  border: 1px solid var(--df-border);
  box-shadow: var(--df-shadow-sm);
  overflow: hidden;
  transition: var(--df-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.df-campaign-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--df-shadow-lg);
}
.df-campaign-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}
.df-progress-bar-wrapper {
  background: #e2e8f0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0 16px;
}
.df-progress-bar-fill {
  background: linear-gradient(to right, var(--df-orange), var(--df-green));
  height: 100%;
  border-radius: 4px;
}

/* Gallery Filtering */
.df-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 35px;
}
.df-filter-btn {
  background: #ffffff;
  border: 1px solid var(--df-border);
  color: var(--df-text-main);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--df-transition);
}
.df-filter-btn:hover,
.df-filter-btn.active {
  background: var(--df-royal-blue);
  color: #ffffff;
  border-color: var(--df-royal-blue);
  box-shadow: var(--df-shadow-sm);
}
.df-gallery-item {
  position: relative;
  border-radius: var(--df-radius);
  overflow: hidden;
  box-shadow: var(--df-shadow-sm);
  height: 260px;
  cursor: pointer;
}
.df-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.df-gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(7, 38, 90, 0.9) 0%, rgba(7, 38, 90, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--df-transition);
}
.df-gallery-item:hover img {
  transform: scale(1.08);
}
.df-gallery-item:hover .df-gallery-overlay {
  opacity: 1;
}
.df-gallery-overlay h5 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.df-gallery-overlay p {
  color: #cbd5e1;
  font-size: 0.82rem;
  margin-bottom: 0;
}

/* Floating WhatsApp Button */
.df-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: #25d366;
  color: #ffffff !important;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--df-transition);
}
.df-whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

/* Footer */
.df-footer {
  background: #081d3d;
  color: #94a3b8;
  font-size: 0.9rem;
  padding-top: 60px;
  border-top: 4px solid var(--df-orange);
}
.df-footer h4, .df-footer h5 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
}
.df-footer h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--df-green);
  border-radius: 2px;
}
.df-footer-links li {
  margin-bottom: 10px;
}
.df-footer-links a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.df-footer-links a:hover {
  color: var(--df-orange);
  padding-left: 6px;
}
.df-footer-bank-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--df-radius);
  padding: 16px;
  margin-top: 15px;
}
.df-footer-bottom {
  background: #05142b;
  padding: 20px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ======================================================== */

/* Prevent iOS input zoom and ensure smooth touch scrolling */
@media screen and (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
  }
}

/* Tablet & Mobile (under 992px) */
@media (max-width: 991.98px) {
  /* Navbar */
  .df-navbar {
    padding: 10px 0;
  }
  .df-navbar .navbar-collapse {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-top: 12px;
    border: 1px solid #e2e8f0;
    max-height: 80vh;
    overflow-y: auto;
  }
  .df-navbar .nav-link {
    padding: 10px 14px !important;
    font-size: 0.95rem;
  }
  .df-navbar .dropdown-menu {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    margin-top: 4px;
    margin-bottom: 8px;
    padding-left: 10px;
  }
  .df-navbar .btn-df-donate {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    padding: 11px;
    font-size: 1rem;
  }

  /* Hero Slider */
  .df-hero-carousel .carousel-item {
    height: auto;
    min-height: 480px;
    display: flex;
    align-items: center;
  }
  .df-hero-title {
    font-size: 2.1rem;
  }
  .df-hero-subtitle {
    font-size: 1.05rem;
  }

  /* WhatsApp Float */
  .df-whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    font-size: 28px;
  }
}

/* Mobile Devices (under 768px) */
@media (max-width: 767.98px) {
  /* Brand */
  .df-navbar .navbar-brand img {
    height: 44px;
  }
  .df-navbar .brand-name {
    font-size: 1.18rem;
  }
  .df-navbar .brand-sub {
    font-size: 0.68rem;
  }

  /* Page Banners */
  .df-page-banner {
    padding: 45px 0 35px;
    text-align: center;
  }
  .df-page-banner h1 {
    font-size: 1.85rem;
  }
  .df-breadcrumb {
    margin-top: 12px;
  }
  .df-breadcrumb .breadcrumb {
    justify-content: center !important;
  }

  /* Section Headings */
  .df-section-heading {
    margin-bottom: 30px;
  }
  .df-section-title {
    font-size: 1.75rem;
  }
  .df-section-subtitle {
    font-size: 0.8rem;
    letter-spacing: 1.2px;
  }

  /* Hero Carousel Mobile */
  .df-hero-carousel .carousel-item {
    min-height: 440px;
    padding: 50px 0 40px;
  }
  .df-hero-content {
    text-align: center;
    padding: 15px 0;
  }
  .df-hero-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
  }
  .df-hero-title {
    font-size: 1.8rem;
    line-height: 1.22;
    margin-bottom: 12px;
  }
  .df-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 22px;
  }
  .df-hero-content .d-flex {
    justify-content: center;
  }

  /* Activity Cards */
  .df-activity-img-wrapper {
    height: 190px;
  }
  .df-activity-body {
    padding: 18px 16px;
  }
  .df-activity-title {
    font-size: 1.15rem;
  }

  /* Impact Statistics */
  .df-impact-section {
    padding: 45px 0;
  }
  .df-stat-card {
    padding: 18px 12px;
  }
  .df-stat-number {
    font-size: 2.1rem;
  }
  .df-stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  /* Gallery Item */
  .df-gallery-item {
    height: 220px;
  }
  .df-gallery-filters {
    gap: 6px;
    margin-bottom: 25px;
  }
  .df-filter-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  /* Footer */
  .df-footer {
    padding-top: 45px;
  }
  .df-footer h4, .df-footer h5 {
    margin-bottom: 15px;
    font-size: 1.1rem;
  }
  .df-footer-bottom {
    margin-top: 35px;
    padding: 18px 0;
    text-align: center;
  }
  .df-footer-bottom .text-md-end {
    text-align: center !important;
    margin-top: 10px;
  }
  .footer-social-box .d-flex {
    justify-content: flex-start;
  }

  /* WhatsApp Float Mobile */
  .df-whatsapp-float {
    bottom: 18px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 25px;
  }
}

/* Extra Small Mobile Devices (under 576px - iPhone SE, Galaxy, Pixel) */
@media (max-width: 575.98px) {
  /* Brand Extra Small */
  .df-navbar .navbar-brand {
    gap: 8px;
  }
  .df-navbar .navbar-brand img {
    height: 38px;
  }
  .df-navbar .brand-name {
    font-size: 1.05rem;
    letter-spacing: -0.3px;
  }
  .df-navbar .brand-sub {
    font-size: 0.62rem;
    letter-spacing: 0.5px;
  }

  /* Hero Slider Buttons */
  .df-hero-title {
    font-size: 1.55rem;
    line-height: 1.25;
  }
  .df-hero-content .d-flex.gap-3 {
    flex-direction: column;
    gap: 10px !important;
  }
  .df-hero-content .d-flex.gap-3 a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Section Title Extra Small */
  .df-section-title {
    font-size: 1.5rem;
  }

  /* Forms & Cards */
  .card.p-4, .card.p-md-5 {
    padding: 20px 15px !important;
  }

  /* Donation Form Tabs & Buttons */
  .df-amount-btn {
    padding: 8px 2px;
    font-size: 0.9rem;
  }
  #paymentMethodTabs .nav-link {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  /* Receipt Modal / Page */
  .receipt-container {
    padding: 20px 14px;
    margin: 15px auto;
    border-width: 1px;
  }
  .receipt-watermark {
    font-size: 2.2rem;
  }
  .stamp-box {
    width: 100%;
    margin: 15px auto 0;
  }

  /* Floating WhatsApp Button Position on XS */
  .df-whatsapp-float {
    bottom: 16px;
    right: 14px;
    width: 46px;
    height: 46px;
    font-size: 24px;
  }
}
