/* === GLOBAL === */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f6f3fb;
  color: #333;
}

h2 {
  color: #5b2c83;
  margin-bottom: 10px;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #5b2c83, #7d3fc7);
  color: #fff;
  padding: 90px 20px;
  text-align: center;
}

.hero h2 {
  color: #fff;
  font-size: 36px;
}

/* === SECTION === */
.section {
  padding: 60px 10%;
  background: #fff;
  margin-bottom: 30px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

/* === GALLERY === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.gallery .item {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(91,44,131,.2);
  transition: transform .3s;
}

.gallery .item:hover {
  transform: translateY(-8px);
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.gallery p {
  padding: 15px;
  font-weight: 600;
  color: #5b2c83;
  text-align: center;
}

/* === MAP === */
#contact iframe {
  width: 100%;
  height: 400px;
  border-radius: 18px;
  border: none;
}

/* === FOOTER === */
footer {
  background: #4b1e6d;
  color: #fff;
  padding: 25px;
  text-align: center;
}

/* ===========================
   NAVBAR UNGU – KWARRAN
=========================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(135deg, #4b006e, #6a1b9a);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo span {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #ffd6ff;
    transition: 0.3s;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* PROFILE STATISTIK */
.profile {
    background: #f7f2fb;
    text-align: center;
}

.profile h2 {
    margin-bottom: 40px;
    color: #4b006e;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
}

.card h3 {
    font-size: 36px;
    color: #6a1b9a;
    margin-bottom: 8px;
}

.card p {
    color: #555;
    font-weight: 500;
}

/* ============================
   DROPDOWN NAVBAR TAUTAN FIX
============================ */

/* Pastikan dropdown bekerja normal */
.nav-menu li.dropdown {
    position: relative;
}

/* Dropdown tetap tertutup default */
.nav-menu li .dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    min-width: 180px;
    background: #ffffff;
    list-style: none;
    padding: 8px 0;
    margin: 0;

    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.20);
    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease-in-out;
}

/* Style link dalam dropdown */
.dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #4b006e;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: rgba(75,0,110,0.08);
}

/* Tampilkan saat hover */
.nav-menu li.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================
   FOOTER KWARRAN (PRAMUKA.ID)
============================= */

.kwarran-footer {
    background: #3c005f;
    color: #fff;
    padding: 60px 10% 20px;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col p {
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ffd6ff;
    text-decoration: none;
    transition: .3s;
}

.footer-col ul li a:hover {
    color: #fff;
}

/* Bagian bawah footer */
.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 30px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    opacity: .8;
}
/* === LOGO DI NAVBAR === */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.stats a.card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.stats a.card:hover {
    transform: scale(1.03);
}
.slider {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.slide {
  display: inline-block;
  width: 250px;
  margin-right: 10px;
  text-align: center;
}

.slide img {
  width: 250px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
}

.warta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.warta-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.readmore {
  display: inline-block;
  margin-top: 10px;
  color: blue;
}

.see-more-container {
  text-align: center;
  margin-top: 20px;
}

.see-more-btn {
  padding: 10px 20px;
  background: #b30000;
  color: #fff;
  border-radius: 6px;
}
.warta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.warta-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.warta-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.warta-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.warta-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.warta-body h4 {
    font-size: 17px;
    margin-bottom: 8px;

    /* Batasi judul 2 baris */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.warta-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    flex: 1;

    /* Batasi isi 3 baris */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.warta-body a {
    margin-top: 12px;
    align-self: flex-start;
    padding: 6px 14px;
    background: #3498db;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}


.banner-gif {
    width: 100%;
    margin: 40px 0;
    position: relative;
}

.banner-gif img {
    position: relative;
    left: -130px; /* geser ke kanan */
    width: 1440px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}


@media (max-width: 600px) {
    .banner-gif img {
        height: 120px;
    }
}
.hero-slider {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
}
