/* ============================================================
   MODERN.CSS — Yayasan Mega Gotong Royong
   Modern override stylesheet for Bootstrap 3.3.7 based site
   Color Palette:
     Primary Dark Blue : #0F2B5B
     Accent Warm Red   : #C62828
     Light Section      : #F8F9FA
     White              : #FFFFFF
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* -------------------------------------------------------
   1. BASE / RESET
   ------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  overflow-x: hidden !important;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  background: #fff;
  min-height: 100%;
}

a {
  color: #0F2B5B;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #C62828;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #0F2B5B;
  line-height: 1.3;
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.9rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.65rem; }
h4 { font-size: 1.1rem; }

h3:hover {
  color: #C62828;
}

p {
  margin-bottom: 1rem;
  color: #555;
}

::selection {
  background: #0F2B5B;
  color: #fff;
}

/* -------------------------------------------------------
   2. BOOTSTRAP 3 CONTAINER OVERRIDE (large screens)
   ------------------------------------------------------- */
@media screen and (min-width: 1600px) {
  .container { width: 1400px; }
}

/* -------------------------------------------------------
   3. 5-COLUMN GRID (Bootstrap 3 extension)
   ------------------------------------------------------- */
.col-xs-5ths,
.col-sm-5ths,
.col-md-5ths,
.col-lg-5ths {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

.col-xs-5ths { width: 20%; float: left; }

@media (min-width: 768px) {
  .col-sm-5ths { width: 20%; float: left; }
}

@media (min-width: 992px) {
  .col-md-5ths { width: 20%; float: left; }
}

@media (min-width: 1200px) {
  .col-lg-5ths { width: 20%; float: left; }
}

/* -------------------------------------------------------
   4. HEADER / NAVIGATION
   ------------------------------------------------------- */
.header-wrapper {
  position: fixed;
  top: 0;
  width: 100%;
  height: auto;
  min-height: 80px;
  z-index: 88888;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 43, 91, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
}

.logo img {
  max-height: 56px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.03);
}

/* Desktop nav */
.main-nav-desktop {
  display: flex;
  align-items: center;
}

.main-nav-desktop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.main-nav-desktop ul li {
  position: relative;
  margin: 0 2px;
}

.main-nav-desktop ul li a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #0F2B5B;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.2px;
}

.main-nav-desktop ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #C62828;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.main-nav-desktop ul li a:hover,
.main-nav-desktop ul li a.active {
  color: #C62828;
}

.main-nav-desktop ul li a:hover::after,
.main-nav-desktop ul li a.active::after {
  transform: scaleX(1);
}

/* Mega dropdown */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(15, 43, 91, 0.97);
  backdrop-filter: blur(10px);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 30px 20px;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
}

.mega-dropdown.open,
li:hover > .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-dropdown a {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px;
  padding: 6px 0;
  display: block;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.mega-dropdown a:hover {
  color: #fff !important;
  padding-left: 6px;
}

.mega-dropdown a::after {
  display: none !important;
}

.mega-dropdown h4,
.mega-dropdown .mega-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

/* Social media desktop */
.social-media-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-media-desktop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F8F9FA;
  color: #0F2B5B;
  font-size: 14px;
  transition: all 0.3s ease;
}

.social-media-desktop a:hover {
  background: #0F2B5B;
  color: #fff;
  transform: translateY(-2px);
}

/* -------------------------------------------------------
   5. MOBILE NAVIGATION
   ------------------------------------------------------- */
#main-nav-mobile {
  display: none;
}

.main-nav {
  z-index: 99999;
}

.nav-open .mainNav-content,
.nav-open .mobile-nav {
  transform: translateX(0) !important;
  opacity: 1 !important;
}

.mainNav-content,
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.12);
  z-index: 99999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
  opacity: 0;
  padding: 20px 0;
}

.mobile-collapse {
  padding: 0;
  list-style: none;
}

.mobile-collapse li a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #0F2B5B;
  border-bottom: 1px solid #F0F0F0;
  transition: all 0.25s ease;
}

.mobile-collapse li a:hover {
  background: #F8F9FA;
  color: #C62828;
  padding-left: 30px;
}

.sidenav-closebutton-wrapper {
  padding: 12px 20px;
  text-align: right;
}

.sidenav-closebutton-wrapper a,
.sidenav-closebutton-wrapper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F8F9FA;
  color: #333;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sidenav-closebutton-wrapper a:hover,
.sidenav-closebutton-wrapper button:hover {
  background: #C62828;
  color: #fff;
}

@media (max-width: 991px) {
  #main-nav-mobile {
    display: block;
  }
  .main-nav-desktop {
    display: none !important;
  }
  .header-wrapper {
    min-height: 64px;
    height: auto;
  }
  .logo img {
    max-height: 44px;
  }
}

/* -------------------------------------------------------
   6. CONTENT SECTIONS
   ------------------------------------------------------- */
.content-wrapper {
  position: relative;
  margin-top: 100px;
  margin-bottom: 80px;
}

@media (max-width: 991px) {
  .content-wrapper {
    margin-top: 76px;
    margin-bottom: 50px;
  }
}

.page-content {
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.page-content img {
  border-radius: 8px;
}

.section,
.section-fluid {
  padding: 60px 0;
}

.section-grey {
  background: #F0F2F5;
  padding: 60px 0;
}

.section-light-grey {
  background: #F8F9FA;
  padding: 60px 0;
}

.container-banner {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.container-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Page titles */
.page-title,
.page-title-center {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #0F2B5B;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 16px;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #C62828, #E53935);
  border-radius: 4px;
}

.page-title-center {
  text-align: center;
}

.page-title-center::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #C62828, #E53935);
  border-radius: 4px;
  margin: 16px auto 0;
}

/* Section heading decoration (h2 in sections) */
.section h2,
.section-grey h2,
.section-light-grey h2 {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 30px;
}

/* -------------------------------------------------------
   7. BUTTONS
   ------------------------------------------------------- */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.3px;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn:active {
  transform: translateY(0);
}

.btn-white {
  background: #fff;
  color: #0F2B5B;
  border-color: #ddd;
}

.btn-white:hover {
  background: #F8F9FA;
  border-color: #0F2B5B;
  color: #0F2B5B;
}

.btn-blue,
.btn-primary {
  background: #0F2B5B;
  color: #fff !important;
  border-color: #0F2B5B;
}

.btn-blue:hover,
.btn-primary:hover {
  background: #1A3F7A;
  border-color: #1A3F7A;
  color: #fff !important;
}

.btn-danger {
  background: #C62828;
  color: #fff !important;
  border-color: #C62828;
}

.btn-danger:hover {
  background: #D32F2F;
  border-color: #D32F2F;
  color: #fff !important;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
  border-radius: 10px;
}

.btn-wide {
  padding-left: 48px;
  padding-right: 48px;
}

.btn-round {
  border-radius: 50px;
}

/* -------------------------------------------------------
   8. CARDS / ARTICLES
   ------------------------------------------------------- */
article,
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
}

article:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

article img,
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

article:hover img,
.card:hover img {
  transform: scale(1.04);
}

article .col-md-4 img,
.col-md-4 article img {
  height: 200px;
  object-fit: cover;
}

article h3,
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0F2B5B;
  margin: 0;
  line-height: 1.45;
  transition: color 0.25s ease;
}

article h3 a {
  color: inherit;
}

article h3:hover,
article h3 a:hover {
  color: #C62828;
}

article p,
.card p {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
}

/* Card body padding for articles that have text content */
article .caption,
article .card-body,
article .post-content,
article .entry-content {
  padding: 20px;
}

/* Image overflow hidden for article images */
article .img-wrapper,
article .image-wrapper,
article > a > img,
article > img {
  overflow: hidden;
}

/* -------------------------------------------------------
   9. IMAGE OVERLAY
   ------------------------------------------------------- */
.image-overlay,
.overlay {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.image-overlay::before,
.overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
    transparent 30%,
    rgba(15, 43, 91, 0.75) 100%);
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.image-overlay:hover::before,
.overlay:hover::before {
  opacity: 0.9;
}

.image-overlay img,
.overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-overlay:hover img,
.overlay:hover img {
  transform: scale(1.06);
}

.image-overlay h3,
.image-overlay p,
.overlay h3,
.overlay p {
  position: relative;
  z-index: 2;
  color: #fff;
}

/* -------------------------------------------------------
   10. CAROUSEL / SLIDER
   ------------------------------------------------------- */
.flexslider {
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.flexslider .slides > li {
  position: relative;
}

.flexslider .slides img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-text-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    rgba(15, 43, 91, 0.7) 0%,
    rgba(15, 43, 91, 0.35) 100%);
  z-index: 2;
}

.slider-text {
  text-align: center;
  color: #fff;
  max-width: 720px;
  padding: 20px 30px;
}

.slider-text h1,
.slider-text h2 {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 16px;
}

.slider-text h1 { font-size: 2.8rem; }
.slider-text h2 { font-size: 2rem; }

.slider-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.slider-text .btn {
  margin-top: 10px;
}

@media (max-width: 767px) {
  .slider-text h1 { font-size: 1.6rem; }
  .slider-text h2 { font-size: 1.3rem; }
  .slider-text p { font-size: 14px; }
}

/* FlexSlider navigation dots */
.flex-control-paging li a {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

.flex-control-paging li a.flex-active {
  background: #fff;
  transform: scale(1.3);
}

.flex-direction-nav a {
  color: #fff;
  font-size: 24px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.flex-direction-nav a:hover {
  opacity: 1;
}

/* -------------------------------------------------------
   11. HOME TAB SECTION
   ------------------------------------------------------- */
.home-tab {
  padding: 60px 0;
}

.home-tab .nav-tabs {
  border-bottom: 2px solid #E8E8E8;
  margin-bottom: 30px;
}

.home-tab .nav-tabs > li > a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #666;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 24px;
  margin-right: 4px;
  border-radius: 0;
  transition: all 0.25s ease;
}

.home-tab .nav-tabs > li > a:hover {
  background: transparent;
  border-color: transparent;
  border-bottom-color: #C62828;
  color: #C62828;
}

.home-tab .nav-tabs > li.active > a,
.home-tab .nav-tabs > li.active > a:hover,
.home-tab .nav-tabs > li.active > a:focus {
  background: transparent;
  border: none;
  border-bottom: 3px solid #0F2B5B;
  color: #0F2B5B;
}

/* -------------------------------------------------------
   12. BREADCRUMB
   ------------------------------------------------------- */
.breadcrumb {
  background: transparent;
  padding: 12px 0;
  margin-bottom: 24px;
  font-size: 13px;
  border-radius: 0;
}

.breadcrumb > li {
  color: #888;
}

.breadcrumb > li + li::before {
  content: '/';
  padding: 0 8px;
  color: #bbb;
}

.breadcrumb > li a {
  color: #0F2B5B;
  font-weight: 500;
  transition: color 0.25s ease;
}

.breadcrumb > li a:hover {
  color: #C62828;
}

.breadcrumb > .active {
  color: #999;
}

/* -------------------------------------------------------
   13. GALLERY (image grids)
   ------------------------------------------------------- */
.gallery .col-md-4,
.gallery .col-sm-4,
.gallery .col-xs-6 {
  margin-bottom: 24px;
}

.gallery img,
.col-md-4 .gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* -------------------------------------------------------
   14. VIDEO EMBEDS
   ------------------------------------------------------- */
.embed-responsive {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.embed-responsive-16by9 {
  padding-bottom: 56.25%;
}

/* -------------------------------------------------------
   15. DONATION PAGE
   ------------------------------------------------------- */
.donasi-background {
  background: linear-gradient(135deg, #0F2B5B 0%, #1A3F7A 100%);
  padding: 60px 0;
  color: #fff;
}

.donasi-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  color: #333;
}

.donasi-section {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid #F0F0F0;
}

.donasi-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.donasi-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #0F2B5B;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}

.donasi-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #0F2B5B;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.btn-amount {
  display: inline-block;
  padding: 10px 20px;
  margin: 4px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-amount:hover,
.btn-amount.active {
  border-color: #0F2B5B;
  background: #0F2B5B;
  color: #fff;
}

@media (max-width: 767px) {
  .donasi-container {
    padding: 24px 20px;
    margin: 0 15px;
  }
}

/* -------------------------------------------------------
   16. PERENUNGAN & FOOTER
   ------------------------------------------------------- */
.perenungan-wrapper {
  background: linear-gradient(135deg, #0F2B5B 0%, #0A1E3F 100%);
  padding: 50px 0;
  color: #fff;
  text-align: center;
}

.perenungan-wrapper h2,
.perenungan-wrapper h3 {
  color: #fff;
  font-style: italic;
  font-weight: 400;
}

.perenungan-wrapper p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #0A1E3F 0%, #06132A 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 30px;
  font-size: 14px;
  line-height: 1.8;
}

.footer h4,
.footer h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  padding: 4px 0;
}

.footer-content {
  padding: 20px 0;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-copyright a:hover {
  color: #fff;
}

/* Social icons */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin: 0 4px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #C62828;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.4);
}

/* -------------------------------------------------------
   17. SCROLL TO TOP
   ------------------------------------------------------- */
#scroll {
  position: fixed;
  right: 24px;
  bottom: 24px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  background: #0F2B5B;
  color: #fff;
  font-size: 20px;
  line-height: 48px;
  text-align: center;
  text-indent: 0;
  border-radius: 50%;
  z-index: 99998;
  box-shadow: 0 4px 16px rgba(15, 43, 91, 0.3);
  transition: all 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scroll::before {
  content: '\f077';
  font-family: 'FontAwesome';
  font-size: 18px;
}

#scroll:hover {
  background: #C62828;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
}

/* -------------------------------------------------------
   18. POPUP
   ------------------------------------------------------- */
.popup_background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup_background.active {
  opacity: 1;
  visibility: visible;
}

.popup_wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 99991;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup_wrapper.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.popup_content {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 560px;
  width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.popup_content img {
  border-radius: 8px;
}

/* -------------------------------------------------------
   19. SHARE ARTICLE
   ------------------------------------------------------- */
.share_article {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #E8E8E8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.share-article-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  transition: all 0.3s ease;
  gap: 6px;
}

.share-article-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #fff;
}

/* -------------------------------------------------------
   20. READ MORE (kode jagoan)
   ------------------------------------------------------- */
.kode-jagoan {
  position: relative;
  overflow: hidden;
}

.jagoankodekeren {
  max-height: 200px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}

.jagoankodekeren::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.jagoankodemantap .jagoankodekeren {
  max-height: none;
}

.jagoankodemantap .jagoankodekeren::after {
  opacity: 0;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: transparent;
  border: 2px solid #0F2B5B;
  border-radius: 8px;
  color: #0F2B5B;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.25s ease;
}

.more:hover {
  background: #0F2B5B;
  color: #fff;
}

/* -------------------------------------------------------
   21. FORM INPUTS
   ------------------------------------------------------- */
.form-control {
  font-family: 'Inter', sans-serif;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: #0F2B5B;
  box-shadow: 0 0 0 3px rgba(15, 43, 91, 0.12);
  outline: none;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* -------------------------------------------------------
   22. UTILITIES
   ------------------------------------------------------- */
.text-grey {
  color: #888 !important;
}

.clear-input {
  position: relative;
}

.clear-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.25s ease;
}

.clear-button:hover {
  color: #C62828;
}

/* -------------------------------------------------------
   23. ANIMATIONS & TRANSITIONS
   ------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* -------------------------------------------------------
   24. RESPONSIVE REFINEMENTS
   ------------------------------------------------------- */
@media (max-width: 767px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.1rem; }

  .section,
  .section-fluid,
  .section-grey,
  .section-light-grey {
    padding: 40px 0;
  }

  .content-wrapper {
    margin-top: 70px;
    margin-bottom: 40px;
  }

  article img,
  .card img {
    height: 180px;
  }

  .footer {
    padding: 40px 0 20px;
    text-align: center;
  }

  .footer .col-md-3,
  .footer .col-md-4,
  .footer .col-sm-6 {
    margin-bottom: 30px;
  }

  .perenungan-wrapper {
    padding: 36px 0;
  }

  .popup_content {
    padding: 24px;
    border-radius: 12px;
  }

  .share_article {
    justify-content: center;
  }

  .btn-lg {
    padding: 12px 28px;
    font-size: 15px;
  }

  #scroll {
    width: 42px;
    height: 42px;
    right: 16px;
    bottom: 16px;
  }

  #scroll::before {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .col-xs-5ths {
    width: 50%;
  }

  .donasi-container {
    padding: 20px 16px;
  }

  .btn-amount {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* -------------------------------------------------------
   25. PRINT STYLES
   ------------------------------------------------------- */
@media print {
  .header-wrapper,
  .footer,
  #scroll,
  .social-icon,
  .share_article,
  .popup_wrapper,
  .popup_background {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a { color: #000; }

  .content-wrapper {
    margin-top: 0;
  }
}
