/* ================================
   KARANG TARUNA PERAONEPULE
   ================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #172033;
  background: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: auto;
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e63946;
  color: white;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.nav-menu a:hover {
  color: #e63946;
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

/* ================================
   HERO
   ================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(230, 57, 70, 0.25), transparent 30%),
    linear-gradient(135deg, #101827, #18283d 55%, #263b55);
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 20, 35, 0.95),
      rgba(10, 20, 35, 0.55),
      rgba(10, 20, 35, 0.15)
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 72px;
}

.badge {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 50px;
  background: rgba(230, 57, 70, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffb3ba;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  max-width: 850px;
  margin-bottom: 24px;
}

.hero h1 span {
  color: #ff6673;
}

.hero p {
  max-width: 650px;
  color: #d7dee8;
  font-size: 18px;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.btn {
  display: inline-block;
  padding: 13px 23px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.3s;
}

.btn-primary {
  background: #e63946;
  color: white;
}

.btn-primary:hover {
  background: #c92735;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
}

.btn-outline:hover {
  background: white;
  color: #172033;
}

/* ================================
   SECTION
   ================================ */

.section {
  padding: 100px 0;
}

.section-title {
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-title span {
  color: #e63946;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.section-title h2 {
  font-size: clamp(30px, 5vw, 45px);
  margin: 8px 0 12px;
  line-height: 1.2;
}

.section-title p {
  color: #687386;
}

.section-title.light h2,
.section-title.light p {
  color: white;
}

.section-title.light p {
  color: #c7cfda;
}

/* ================================
   ABOUT
   ================================ */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.about-card {
  padding: 32px;
  border: 1px solid #e7eaf0;
  border-radius: 15px;
  background: white;
  transition: 0.3s;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.card-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  background: #fff0f1;
  border-radius: 12px;
  font-size: 25px;
  margin-bottom: 20px;
}

.about-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.about-card p {
  color: #697386;
  font-size: 14px;
}

/* ================================
   KEGIATAN
   ================================ */

.section-dark {
  background: #101827;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.activity-card {
  overflow: hidden;
  background: #182235;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 15px;
}

.activity-image {
  height: 190px;
  display: grid;
  place-items: center;
  font-size: 60px;
}

.image-one {
  background: linear-gradient(135deg, #273b63, #17243c);
}

.image-two {
  background: linear-gradient(135deg, #5a2930, #301b25);
}

.image-three {
  background: linear-gradient(135deg, #245548, #142f2a);
}

.activity-content {
  padding: 25px;
}

.activity-content small {
  color: #ff6975;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.activity-content h3 {
  color: white;
  margin: 7px 0;
  font-size: 20px;
}

.activity-content p {
  color: #aeb8c7;
  font-size: 14px;
}

/* ================================
   STRUKTUR
   ================================ */

.organization {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.leader-card {
  text-align: center;
  padding: 30px 15px;
  border: 1px solid #e7eaf0;
  border-radius: 15px;
  transition: 0.3s;
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}

.person-avatar {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  margin: 0 auto 17px;
  display: grid;
  place-items: center;
  font-size: 35px;
  background: #f1f3f6;
}

.leader-card small {
  color: #e63946;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.leader-card h3 {
  font-size: 16px;
  margin: 5px 0;
}

.leader-card p {
  color: #7a8494;
  font-size: 12px;
}

/* ================================
   GALERI
   ================================ */

.gallery-section {
  background: #f7f8fa;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 15px;
  background: white;
  box-shadow: 0 7px 20px rgba(0,0,0,0.06);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 55px;
  background: linear-gradient(135deg, #e9edf2, #cfd6df);
}

.gallery-item span {
  position: absolute;
  left: 15px;
  bottom: 15px;
  padding: 7px 12px;
  border-radius: 7px;
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

/* ================================
   CONTACT
   ================================ */

.contact-section {
  background: #151f30;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  padding: 30px;
  text-align: center;
  border-radius: 15px;
  background: #1d293d;
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-icon {
  font-size: 30px;
  margin-bottom: 15px;
}

.contact-card h3 {
  color: white;
  margin-bottom: 8px;
}

.contact-card p {
  color: #aeb8c7;
  font-size: 14px;
}

.contact-card a {
  color: #ff6874;
}

/* ================================
   FOOTER
   ================================ */

.footer {
  background: #0b111c;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer h3 {
  margin-bottom: 12px;
}

.footer h4 {
  margin-bottom: 15px;
}

.footer p {
  max-width: 350px;
  color: #8994a5;
  font-size: 14px;
}

.footer a {
  display: block;
  color: #8994a5;
  font-size: 14px;
  margin-bottom: 7px;
}

.footer a:hover {
  color: white;
}

.footer-admin-help p {
  max-width: 320px;
  line-height: 1.6;
}

.footer-admin-help .footer-admin-name {
  margin-top: 12px;
  color: #c7b27a;
}

.footer-admin-help .footer-admin-name strong {
  color: #ffffff;
}

.footer-admin-help .footer-admin-email {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid #c7a75b;
  border-radius: 8px;
  color: #e5c878;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-admin-help .footer-admin-email:hover {
  background: #c7a75b;
  color: #0b111c;
}

.copyright {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #687386;
  font-size: 12px;
  text-align: center;
}

/* ================================
   BACK TO TOP
   ================================ */

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: #e63946;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 900;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 850px) {

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 4%;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 13px 0;
  }

  .about-grid,
  .activity-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .organization {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 550px) {

  .section {
    padding: 75px 0;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

  .organization,
  .gallery,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 230px;
  }
}
.logo img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

/* =========================
   QRIS KAS KARANG TARUNA
   ========================= */

.qris-section {
  background: #f8fafc;
}

.qris-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
}

.qris-card img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 12px;
}

.qris-card h3 {
  margin: 10px 0;
  font-size: 22px;
}

.qris-card p {
  margin: 8px 0;
  color: #666;
}

.qris-card small {
  display: block;
  margin-top: 15px;
  color: #888;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .qris-card {
    padding: 15px;
    border-radius: 15px;
  }

  .qris-card img {
    max-width: 100%;
  }
}
/* =========================
   KAS KARANG TARUNA + QRIS
   ========================= */

.kas-section {
  background: #f8f9fa;
}

.kas-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.kas-icon {
  font-size: 45px;
  margin-bottom: 15px;
}

.kas-content h3 {
  margin-bottom: 10px;
}

.kas-content p {
  color: #666;
  line-height: 1.7;
}

.qris-container {
  margin: 30px auto;
  padding: 25px;
  background: #f5f5f5;
  border-radius: 15px;
}

.qris-image {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 10px;
  background: #ffffff;
}

.qris-container h4 {
  margin-bottom: 8px;
  font-size: 18px;
}

.qris-container p {
  margin: 0;
  color: #666;
}

.kas-note {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  background: #f8f8f8;
  text-align: left;
}

.kas-note p {
  margin-bottom: 0;
  color: #666;
  line-height: 1.6;
}
.qris-wa-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: 12px;
  background: #25D366;
  color: #ffffff !important;
  text-align: center;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
}

.qris-wa-button:hover {
  transform: translateY(-2px);
}
/* ================= GALERI FOTO ================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  height: 230px;
  padding: 0;
  border: none;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: #eee;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transition: 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 45px 18px 18px;
  text-align: left;
  color: white;
  background: linear-gradient(
    transparent,
    rgba(0, 0, 0, 0.85)
  );
}

.gallery-overlay strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.gallery-overlay span {
  font-size: 13px;
  opacity: 0.9;
}

/* ================= MODAL GALERI ================= */

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal-content {
  position: relative;
  width: min(900px, 95vw);
  text-align: center;
}

.gallery-modal-content h3 {
  color: white;
  font-size: 21px;
  margin-bottom: 18px;
}

#galleryModalImage {
  display: block;
  width: auto;
  max-width: 90vw;
  height: auto;
  max-height: 72vh;
  margin: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.gallery-close {
  position: fixed;
  top: 20px;
  right: 28px;
  z-index: 2;
  border: none;
  background: transparent;
  color: white;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.gallery-nav {
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 38px;
  line-height: 35px;
  cursor: pointer;
  transition: 0.25s;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.35);
}

.gallery-prev {
  left: -65px;
}

.gallery-next {
  right: -65px;
}

.gallery-counter {
  margin-top: 15px;
  color: #ddd;
  font-size: 14px;
}

/* ================= RESPONSIVE GALERI ================= */

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
  }

  .gallery-item {
    height: 180px;
    border-radius: 12px;
  }

  .gallery-overlay {
    padding: 35px 12px 12px;
  }

  .gallery-overlay strong {
    font-size: 14px;
  }

  .gallery-overlay span {
    font-size: 11px;
  }

  .gallery-modal {
    padding: 12px;
  }

  #galleryModalImage {
    max-width: 94vw;
    max-height: 70vh;
  }

  .gallery-prev {
    left: 5px;
  }

  .gallery-next {
    right: 5px;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 30px;
    background: rgba(0, 0, 0, 0.4);
  }

  .gallery-modal-content h3 {
    font-size: 18px;
  }

  .gallery-close {
    top: 12px;
    right: 17px;
    font-size: 36px;
  }
}

@media (max-width: 430px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item {
    height: 155px;
  }
}
/* ===== BACKGROUND BATIK KAWUNG PERAONEPULE ===== */

.hero {
  background-color: #101827 !important;
  background-image:
    radial-gradient(
      ellipse at center,
      transparent 24%,
      rgba(212, 175, 95, 0.45) 25%,
      rgba(212, 175, 95, 0.45) 29%,
      transparent 30%,
      transparent 44%,
      rgba(212, 175, 95, 0.25) 45%,
      rgba(212, 175, 95, 0.25) 48%,
      transparent 49%
    ),
    linear-gradient(
      135deg,
      #101827,
      #18283d 55%,
      #263b55
    ) !important;

  background-size: 75px 75px, cover !important;
  background-position: center, center !important;
}

.hero-overlay {
  background: rgba(10, 20, 35, 0.45) !important;
}
