:root {
    --primary-color: #27ae60;
    --secondary-color: #27ae60;
    --text-color: #333;
    --background-color: #f4f6f7;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Styles */
.logo-container {
    flex-shrink: 0;
}

.logo {
    height: 60px;
    width: auto;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-light);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    list-style: none;
    padding: 0;
    margin: 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f0fdf4;
    color: var(--primary-color);
    padding-left: 1.5rem;
}

/* CTA Buttons */
.cta-buttons {
    display: none;
    gap: 1rem;
}

.cta-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-btn.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.cta-btn.outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-btn.outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Mobile Menu */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    position: relative;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin: 0.5rem 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.submenu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.submenu.active {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

.mobile-nav-item.has-submenu > .mobile-nav-link {
    cursor: pointer;
}

.mobile-nav-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.mobile-nav-item.has-submenu > .mobile-nav-link::after {
    content: '\25BC';
    float: right;
    font-size: 0.8rem;
    color: var(--text-color);
}

.mobile-nav-item.has-submenu.active > .mobile-nav-link::after {
    content: '\25B2';
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-toggle.active .hamburger {
    background: transparent;
}

.mobile-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(0, 0);
    top: 0;
}

.mobile-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(0, 0);
    bottom: 0;
}

/* start: media query navbar  */

@media (min-width: 769px) {
  .mobile-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .nav-menu {
    display: flex;
  }

  .cta-buttons {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .logo {
    height: 65px;
  }

  .logo-container {
    height: 70px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .logo-container {
    height: 60px;
  }

  .nav-menu,
  .cta-buttons {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-menu {
    box-shadow: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 80px); /* Sesuaikan 80px dengan tinggi header/logo */
    background: white;
    display: none;
    flex-direction: column;
    padding: 1rem;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow-y: auto; /* biar bisa scroll kalau konten panjang */
  }

  .mobile-menu.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-nav-item {
    margin-bottom: 10px;
  }

  .mobile-nav-link {
    display: block;
    padding: 10px 15px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
  }

  .mobile-nav-link:hover {
    background-color: var(--primary-color);
    color: white;
  }

  .submenu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
  }

  .submenu.active {
    display: block;
  }

  .submenu li {
    list-style: none; /* hilangkan bullet */
  }

  .submenu li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
  }

  .submenu li a:hover {
    background-color: #f0fdf4;
    color: var(--primary-color);
  }

  .mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .mobile-cta .cta-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 999px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
  }
}

/* end: media query navbar  */
/* Body & General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eaf4e5;
    color: #2c3e50;
    position: relative;
    padding-top: 90px;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Top News */
.top-news {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #27ae60;
    z-index: 1000;
    padding: 15px;
    animation: slideIn 0.5s ease-out;
}

.top-news-header {
    background: #27ae60;
    color: white;
    padding: 8px 15px;
    margin: -15px -15px 15px -15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-news-content {
    max-height: 400px;
    overflow-y: auto;
}

.top-news-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.top-news-item:hover {
    background-color: #f9f9f9;
}

.top-news-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
}

.top-news-item a:hover {
    color: #27ae60;
}

.top-news-date {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: block;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* News Styles */
.news-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.news-title {
    font-size: 2rem;
    color: #27ae60;
    margin: 20px 0;
}

.news-content {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

.news-meta {
    color: #666;
    font-size: 0.9rem;
    margin: 10px 0;
}

.news-category {
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.read-more:hover {
    background-color: #219150;
    transform: scale(1.05);
}

/* ===================== start : footer ===================== */

/* start: footer */
.footer {
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  background-color: #27ae60;
  color: white;
  font-family: 'Inter', sans-serif;
  padding-top: 20px;
}

/* Grid layout sesuai gambar */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 30px 60px;
  text-align: center;
}

/* Kotak konten */
.footer-box {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  font-size: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-box h3 {
  color: #f9c618;
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: bold;
}

.footer-box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Social media icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1.4rem;
  margin-top: 10px;
}

.social-icons i {
  color: white;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons i:hover {
  color: #f9c618;
  transform: scale(1.2);
}

/* Footer bottom */
.footer-bottom {
  margin-top: 30px;
  background-color: #239C56;
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
}
/* end: footer */

/* start : media querry footer */
@media screen and (max-width: 768px) {
  .footer {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding-top: 10px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }

  .footer-box {
    max-width: 100%;
    min-height: auto; /* Hapus tinggi minimal tetap */
    padding: 15px 10px;
    margin-bottom: 0;
  }
  
  .footer-box h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }
  
  .footer-box p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .social-icons {
    gap: 12px;
    font-size: 1.1rem;
  }
  
  .footer-bottom {
    margin-top: 15px;
    padding: 8px;
    font-size: 0.75rem;
  }
}
/* end : media querry footer */

/* ===================== end : footer ===================== */


/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #27ae60;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #219150;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    display: flex;
}

/* Dakwah Section - Updated */
.dakwah-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
}

.dakwah-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #27ae60;
    position: relative;
    padding-bottom: 15px;
}

.dakwah-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #27ae60;
    border-radius: 2px;
}

.dakwah-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .dakwah-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .dakwah-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dakwah-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eaeaea;
}

.dakwah-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.dakwah-item-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f7f7f7;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.dakwah-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dakwah-item:hover .dakwah-item-image {
    transform: scale(1.05);
}

.dakwah-item-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dakwah-item h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: #2c3e50;
    line-height: 1.4;
}

.dakwah-meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dakwah-meta i {
    color: #27ae60;
    font-size: 0.9rem;
}

.dakwah-item .news-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dakwah-read-more {
    align-self: flex-start;
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dakwah-read-more:hover {
    background: #219150;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.dakwah-read-more i {
    font-size: 0.9rem;
}

.dakwah-back {
    margin-top: 30px;
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.dakwah-back:hover {
    background: #219150;
}
/* Detail Berita Styles */
.detail-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.detail-back {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #219150;
    transform: translateX(-3px);
}

.detail-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.detail-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: #666;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.detail-meta i {
    color: #27ae60;
    margin-right: 5px;
}

.detail-category {
    background: #27ae60;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.detail-image-container {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.detail-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.detail-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.detail-text p {
    margin-bottom: 20px;
}
.dakwah-item .news-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}/* Tombol Kembali */
.detail-back {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: #f0fdf4;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}

.back-link:hover {
    color: #219150;
    transform: translateX(-3px);
    background-color: #e0f7e9;
}
@media screen and (max-width: 576px) {
    .container, .dakwah-container, .detail-container {
        padding: 15px !important;
        margin: 10px auto !important;
    }

    .news-title, .dakwah-title {
        font-size: 1.5rem;
    }

    .news-content, .detail-text, .dakwah-item .news-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .news-image, .detail-image {
        height: auto;
        max-height: 200px;
    }

    .dakwah-item-image-container {
        height: 150px;
    }

    .read-more, .dakwah-read-more, .back-link {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .top-news {
        width: 100%;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        border-left: none;
        border-top: 4px solid #27ae60;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .top-news-content {
        max-height: 200px;
    }
}

/* =========================
   SHARE BERITA
   ========================= */

.detail-share {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #eaeaea;
}

.detail-share h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.share-button:hover {
    transform: translateY(-2px);
}

/* WhatsApp */
.share-whatsapp {
    background-color: #25D366;
}

.share-whatsapp:hover {
    background-color: #1ebe5d;
}

/* Facebook */
.share-facebook {
    background-color: #1877F2;
}

.share-facebook:hover {
    background-color: #0d65d9;
}

/* Instagram */
.share-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.share-instagram:hover {
    opacity: 0.9;
}

/* Salin Link */
.share-copy {
    background-color: #27ae60;
}

.share-copy:hover {
    background-color: #219150;
}

/* Pesan setelah link disalin */
.copy-message {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #27ae60;
    font-weight: 600;
    min-height: 20px;
}


/* Share di HP */
@media screen and (max-width: 576px) {

    .share-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .share-button {
        width: 100%;
        padding: 10px 8px;
        font-size: 0.85rem;
    }

}
.detail-share {
    position: relative;
    z-index: 9999;
}

.share-buttons {
    position: relative;
    z-index: 9999;
}

.share-button {
    position: relative;
    z-index: 10000;
    pointer-events: auto;
}