/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #009aa0;
    --primary-color-dark: #007a80;
    --secondary-color: #34a853;
    --accent-color: #fbbc04;
    --text-dark: #202124;
    --text-light: #5f6368;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Navigation Bar ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) brightness(1.2);
}

.logo-text {
    font-size: 1.3rem;
    color: white;
}

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

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.nav-link:hover,
.nav-link.active {
    color: #007b80;
    text-shadow: 0 0 10px rgba(0, 123, 128, 0.5);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007b80;
    box-shadow: 0 0 10px rgba(0, 123, 128, 0.8);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== Hero Section with Slider ========== */
.hero-section {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: #1a1a1a !important;
    z-index: 1 !important;
    display: block !important;
    visibility: visible !important;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: block !important;
    visibility: visible !important;
}

.slide:first-child {
    opacity: 1 !important;
    z-index: 1 !important;
}

.slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

.slide img {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

/* Hero Content - Transparan agar slider terlihat di belakang */
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: white;
    padding-left: 3%;
    padding-right: 3%;
    background: transparent !important;
    pointer-events: none;
}

.hero-content * {
    pointer-events: auto;
}

.hero-content .main-container {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 40px;
}

.hero-content .content {
    width: 40%;
    min-width: 300px;
    max-width: 600px;
    margin-left: 80px;
}

.hero-content .image {
    width: 50vh;
    height: 50vh;
    min-width: 250px;
    min-height: 250px;
    max-width: 400px;
    max-height: 400px;
    border-radius: 100%;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 123, 128, 0.8);
    animation: fadeInUp 1.5s ease;
    object-fit: cover;
}

.hero-content .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content .image:hover {
    animation: imagePulse 1.5s ease-in-out infinite;
}

@keyframes imagePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.typewriter {
    font-size: clamp(1.2rem, 1rem + 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1.2s ease;
    color: white;
    -webkit-text-stroke: 1px white;
    text-stroke: 1px white;
}

.typewriter span {
    color: #007b80;
    text-shadow: 0 0 10px rgba(0, 123, 128, 0.8);
    -webkit-text-stroke: 1px white;
    text-stroke: 1px white;
}

.typewriter label {
    animation: blink 1s infinite;
    color: #007b80;
    text-shadow: 0 0 10px rgba(0, 123, 128, 0.8);
    -webkit-text-stroke: 1px white;
    text-stroke: 1px white;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: clamp(0.9rem, 0.2rem + 2vw, 1.2rem);
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1.3s ease;
    line-height: 1.6;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: #ff5722;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    animation: fadeInUp 1.4s ease;
}

.btn-cta:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    z-index: 20;
    transition: background 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Slider Dots */
.dots-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

/* ========== Sections ========== */
.section {
    padding: 80px 0;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Pastikan section pertama (about) tidak menutupi hero section */
.about-section {
    position: relative !important;
    z-index: 0 !important;
    margin-top: 0 !important;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #007b80;
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.btn-read-more {
    display: inline-block;
    padding: 12px 30px;
    background: #007b80;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background: #005a5f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 128, 0.3);
}

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

/* News Section */
.news-section {
    width: 100%;
    padding: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: inherit;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    color: #2c3e50;
    margin: 10px 0;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 600;
}

.news-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: #009aa0;
}

.news-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 10px 0 15px 0;
    flex-grow: 1;
}

.badge-headline {
    display: inline-block;
    background: #fbbc04;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    margin-right: 5px;
}

.badge-headline i {
    margin-right: 3px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 18px;
    background: white;
    color: #009aa0;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    min-width: 44px;
}

.pagination-btn:hover {
    background: #009aa0;
    color: white;
    border-color: #009aa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 154, 160, 0.3);
}

.pagination-btn.active {
    background: #009aa0;
    color: white;
    border-color: #009aa0;
    box-shadow: 0 2px 8px rgba(0, 154, 160, 0.2);
}

.pagination-btn.active:hover {
    background: #007a80;
    border-color: #007a80;
}

/* Gallery Section */
.gallery-section {
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Footer */
.footer {
    background: #007b80;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    width: 100%;
}

/* No Content */
.no-content {
    text-align: center;
    padding: 3rem;
    width: 100%;
    color: var(--text-light);
}

/* ========== Page Header & Content (for tentang.php, banom.php, etc) ========== */
.page-header {
    background: linear-gradient(135deg, #009aa0 0%, #007a80 100%);
    color: white;
    padding: 120px 0 50px 0;
    margin-top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.main-content {
    flex: 1;
    padding: 60px 0 80px 0;
    background: #f8f9fa;
    width: 100%;
}

.page-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-top: -30px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.content-wrapper {
    line-height: 1.8;
    color: #333;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
    color: #009aa0;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-wrapper h1 {
    font-size: 2rem;
    border-bottom: 3px solid #009aa0;
    padding-bottom: 0.5rem;
}

.content-wrapper h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.content-wrapper h3 {
    font-size: 1.5rem;
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

.content-wrapper a {
    color: #009aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-wrapper a:hover {
    color: #007a80;
    text-decoration: underline;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.content-wrapper blockquote {
    border-left: 4px solid #009aa0;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.content-wrapper table th,
.content-wrapper table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.content-wrapper table th {
    background: #009aa0;
    color: white;
    font-weight: 600;
}

.content-wrapper table tr:hover {
    background: #f8f9fa;
}

/* ========== News Detail Slider ========== */
.news-detail-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 450px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.news-slide.active {
    opacity: 1;
    z-index: 1;
}

.news-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #009aa0;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.news-slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.news-slider-btn.prev {
    left: 20px;
}

.news-slider-btn.next {
    right: 20px;
}

.news-dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.news-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-dot.active {
    background: white;
    transform: scale(1.3);
}

.news-detail-image {
    margin: 30px auto;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-detail-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.news-detail {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto 40px auto;
    max-width: 900px;
    width: 100%;
}

.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.news-detail-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-date {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-detail-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.05rem;
}

.news-detail-content p {
    margin-bottom: 1.5rem;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4,
.news-detail-content h5,
.news-detail-content h6 {
    color: #009aa0;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-detail-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.news-detail-content h3 {
    font-size: 1.5rem;
}

.news-detail-content ul,
.news-detail-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.news-detail-content li {
    margin-bottom: 0.5rem;
}

.news-detail-content blockquote {
    border-left: 4px solid #009aa0;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 0 5px 5px 0;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.news-detail-content a {
    color: #009aa0;
    text-decoration: underline;
}

/* Alignment Helpers */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

.text-left {
    text-align: left;
}

/* Table Support */
.news-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.news-detail-content table td,
.news-detail-content table th {
    border: 1px solid #ddd;
    padding: 8px;
}

.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

/* ========== Lapak NU Grid ========== */
.lapak-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.lapak-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

.lapak-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.lapak-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.lapak-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lapak-card:hover .lapak-image img {
    transform: scale(1.1);
}

.lapak-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lapak-content h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.4;
    flex-grow: 1;
    min-height: 3.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lapak-harga {
    margin: 0 0 15px 0;
    padding: 8px 0;
}

.lapak-harga strong {
    color: #009aa0;
    font-size: 1.3rem;
    font-weight: 700;
}

.lapak-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.lapak-wa-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.lapak-wa-btn i {
    font-size: 1.2rem;
}

.related-news h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.read-more {
    display: inline-block;
    color: #009aa0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: 10px;
}

.read-more:hover {
    color: #007a80;
    text-decoration: underline;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .news-detail {
        padding: 25px 20px;
        max-width: 100%;
    }

    .news-detail-header h1 {
        font-size: 1.8rem;
    }

    .news-slider-container {
        height: 350px;
        max-width: 100%;
    }

    .news-detail-slider {
        max-width: 100%;
    }

    .news-detail-image {
        max-width: 100%;
    }

    .news-detail-image img {
        max-height: 350px;
    }

    .news-slider-btn {
        padding: 10px 15px;
        font-size: 16px;
    }

    .news-slider-btn.prev {
        left: 10px;
    }

    .news-slider-btn.next {
        right: 10px;
    }

    /* Lapak NU Responsive */
    .lapak-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .lapak-image {
        height: 220px;
    }

    .lapak-content {
        padding: 18px;
    }

    .lapak-content h3 {
        font-size: 1.1rem;
        min-height: 3.2em;
    }

    .lapak-wa-btn {
        padding: 11px 18px;
        font-size: 0.95rem;
    }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s ease;
        gap: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }


    .hero-content {
        padding-left: 4%;
        padding-right: 4%;
    }

    .hero-content .main-container {
        flex-direction: column-reverse;
        gap: 30px;
        padding: 20px 0;
    }

    .hero-content .content {
        width: 80%;
        max-width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .hero-content .image {
        width: 50%;
        height: auto;
        aspect-ratio: 1;
        max-width: 300px;
        max-height: 300px;
        z-index: -1;
    }

    .section-title {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .pagination {
        margin-top: 40px;
    }

    .pagination-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .slider-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 0 !important;
    }

    .slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        visibility: visible !important;
    }

    .slide.active,
    .slider-container .slide:first-child,
    .slider-container .slide:first-child.active {
        opacity: 1 !important;
        z-index: 1 !important;
        display: block !important;
        visibility: visible !important;
    }

    .slide img,
    .slide.active img,
    .slider-container .slide:first-child img,
    .slider-container .slide:first-child.active img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .hero-content {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero-content .main-container {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .hero-content .content {
        width: 80%;
        margin-left: 0;
        text-align: center;
    }

    .hero-content .image {
        width: 60%;
        height: auto;
        aspect-ratio: 1;
        max-width: 250px;
        max-height: 250px;
        z-index: -1;
    }

    .btn-cta {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .slider-btn {
        padding: 10px 15px;
        font-size: 18px;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section {
        padding: 60px 0;
    }

    /* Page Header & Content Responsive */
    .page-header {
        padding: 100px 0 40px 0;
        margin-top: 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .main-content {
        padding: 50px 0 60px 0;
    }

    .page-content {
        padding: 30px 25px;
        margin-top: -25px;
    }

    .content-wrapper h1 {
        font-size: 1.75rem;
    }

    .content-wrapper h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }

    .hero-section {
        height: 100vh;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .slider-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 0 !important;
    }

    .slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        visibility: visible !important;
    }

    .slide.active,
    .slider-container .slide:first-child,
    .slider-container .slide:first-child.active {
        opacity: 1 !important;
        z-index: 1 !important;
        display: block !important;
        visibility: visible !important;
    }

    .slide img,
    .slide.active img,
    .slider-container .slide:first-child img,
    .slider-container .slide:first-child.active img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .hero-content {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero-content .content {
        width: 85%;
        margin-left: 0;
    }

    .hero-content .image {
        width: 60%;
        max-width: 200px;
        max-height: 200px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pagination {
        margin-top: 30px;
        gap: 8px;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 40px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* News Detail Responsive */
    .news-detail {
        padding: 25px 20px;
        max-width: 100%;
    }

    .news-detail-header h1 {
        font-size: 1.8rem;
    }

    .news-slider-container {
        height: 280px;
        max-width: 100%;
    }

    .news-detail-slider {
        max-width: 100%;
    }

    .news-detail-image {
        max-width: 100%;
    }

    .news-detail-image img {
        max-height: 280px;
    }

    /* Program PDF Viewer Responsive */
    .program-header {
        padding: 20px 15px;
    }

    .program-header h2 {
        font-size: 1.4rem;
    }

    .program-description {
        font-size: 0.95rem;
    }

    .pdf-viewer-container {
        padding: 10px;
    }

    .pdf-viewer {
        height: 500px;
    }

    .btn-download-pdf {
        padding: 10px 18px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    /* Page Header & Content Responsive */
    .page-header {
        padding: 90px 0 30px 0;
        margin-top: 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 40px 0 50px 0;
    }

    .page-content {
        padding: 25px 20px;
        margin-top: -20px;
    }

    .content-wrapper h1 {
        font-size: 1.5rem;
    }

    .content-wrapper h2 {
        font-size: 1.3rem;
    }

    .content-wrapper h3 {
        font-size: 1.1rem;
    }

    .content-wrapper p {
        font-size: 1rem;
    }

    /* Lapak NU Responsive */
    .lapak-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lapak-image {
        height: 220px;
    }

    .lapak-content {
        padding: 15px;
    }

    .lapak-content h3 {
        font-size: 1rem;
        min-height: auto;
        -webkit-line-clamp: 3;
    }

    .lapak-wa-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Program PDF Viewer Responsive */
    .program-header {
        padding: 25px 20px;
    }

    .program-header h2 {
        font-size: 1.6rem;
    }

    .program-description {
        font-size: 1rem;
    }

    .pdf-viewer-container {
        padding: 15px;
    }

    .pdf-viewer {
        height: 600px;
    }

    .btn-download-pdf {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* ========== Program PDF Viewer ========== */
.program-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.program-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.program-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.program-description {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 20px 0;
}

.program-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-download-pdf:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-download-pdf i {
    font-size: 1.1rem;
}

.pdf-viewer-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    padding: 20px;
}

.pdf-viewer {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
}

.no-content-icon {
    text-align: center;
    margin-bottom: 20px;
}

/* ========== Banom Grid ========== */
.banom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.banom-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.banom-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 154, 160, 0.2);
}

.banom-logo-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
}

.banom-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.banom-card:hover .banom-logo {
    transform: scale(1.1);
}

.banom-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 4rem;
}

.banom-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.banom-name {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.4;
}

.banom-hint {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.banom-hint i {
    color: var(--primary-color);
}

/* ========== PDF Modal ========== */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-modal.active {
    display: flex;
    opacity: 1;
}

.pdf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.pdf-modal-container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    max-height: 900px;
    margin: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pdf-modal-header {
    padding: 20px 30px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.pdf-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.pdf-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.pdf-modal-body {
    flex: 1;
    padding: 20px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pdf-modal-footer {
    padding: 15px 30px;
    background: white;
    border-top: 2px solid #e0e0e0;
    display: flex;
    justify-content: center;
}

/* Responsive Banom Grid */
@media (max-width: 768px) {
    .banom-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .banom-logo-wrapper {
        height: 200px;
        padding: 20px;
    }

    .banom-content {
        padding: 20px;
    }

    .banom-name {
        font-size: 1.1rem;
    }

    .pdf-modal-container {
        width: 98%;
        height: 95vh;
        border-radius: 10px;
    }

    .pdf-modal-header {
        padding: 15px 20px;
    }

    .pdf-modal-header h3 {
        font-size: 1.2rem;
    }

    .pdf-modal-body {
        padding: 10px;
    }

    .pdf-modal-footer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .banom-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .banom-logo-wrapper {
        height: 180px;
    }

    .pdf-modal-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .pdf-modal-header {
        padding: 12px 15px;
    }

    .pdf-modal-header h3 {
        font-size: 1rem;
    }

    .pdf-modal-body {
        padding: 5px;
    }
}

/* ========== Bacaan Page ========== */
.bacaan-search-container {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box i.fa-search {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 154, 160, 0.1);
}

.search-box button#clearSearch {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-box button#clearSearch:hover {
    color: #333;
}

/* Bacaan Tabs */
.bacaan-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.bacaan-tab {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.bacaan-tab:hover {
    color: var(--primary-color);
    background: rgba(0, 154, 160, 0.05);
}

.bacaan-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(0, 154, 160, 0.05);
}

.bacaan-tab .tab-count {
    font-size: 0.85em;
    font-weight: normal;
    color: #999;
    margin-left: 5px;
}

.bacaan-tab.active .tab-count {
    color: var(--primary-color);
}

/* Bacaan Kategori Content */
.bacaan-kategori-content {
    display: none;
}

.bacaan-kategori-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kategori-title {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 0 0 25px 0;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

/* Bacaan Grid */
.bacaan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.bacaan-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.bacaan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 154, 160, 0.2);
    border-color: var(--primary-color);
}

.bacaan-icon {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #009aa0 0%, #007a80 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    transition: all 0.3s ease;
}

.bacaan-card:hover .bacaan-icon {
    background: linear-gradient(135deg, #007a80 0%, #009aa0 100%);
    transform: scale(1.05);
}

.bacaan-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bacaan-title {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.4;
    min-height: 3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bacaan-hint {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bacaan-hint i {
    color: var(--primary-color);
}

/* Responsive Bacaan */
@media (max-width: 768px) {
    .bacaan-tabs {
        flex-direction: column;
        gap: 5px;
    }

    .bacaan-tab {
        width: 100%;
        text-align: left;
        border-bottom: 2px solid #e0e0e0;
        border-left: 3px solid transparent;
        padding: 12px 15px;
    }

    .bacaan-tab.active {
        border-left-color: var(--primary-color);
        border-bottom-color: #e0e0e0;
    }

    .bacaan-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .bacaan-icon {
        height: 150px;
        font-size: 3rem;
    }

    .kategori-title {
        font-size: 1.5rem;
    }

    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .bacaan-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .bacaan-icon {
        height: 120px;
        font-size: 2.5rem;
    }
}