/**
 * Main Stylesheet
 * DPD LDII Kabupaten Pasuruan
 */

/* ========== Variables ========== */
:root {
    --primary: #0a5c3f;
    --primary-dark: #084331;
    --primary-light: #0d7350;
    --accent: #d4af37;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --danger: #dc2626;
    --success: #059669;
    --warning: #d97706;
    --info: #0284c7;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Crimson Pro', Georgia, serif;
}

/* ========== Reset ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Logo specific styling */
.logo {
    height: 40px;
    width: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

/* ========== Container ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

.text-muted {
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-outline-light:hover {
    background: var(--bg-light);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* ========== Header ========== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

/* Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-desktop a {
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    z-index: 99;
}

.nav-mobile.active {
    display: block;
}

.nav-mobile a {
    display: block;
    padding: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: var(--radius);
}

.nav-mobile a:hover {
    background: var(--bg-light);
}

/* ========== Hero Section ========== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.75rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-weight: 700;
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    font-style: italic;
    margin: 0;
}

/* ========== Sections ========== */
.section {
    padding: 3rem 0;
}

.section-alt {
    background: var(--bg-light);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: rgba(10, 92, 63, 0.1);
    color: var(--primary);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Search & Filter Section */
.section-filter {
    background: var(--bg-light);
    padding: 2rem 0;
}

.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 800px;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input-wrapper svg:first-child {
    position: absolute;
    left: 1.125rem;
    color: var(--text-light);
    pointer-events: none;
    z-index: 1;
}

.search-input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 1.25rem 0 3.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.25s ease;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper input:hover {
    border-color: #d1d5db;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 92, 63, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper input::placeholder {
    color: var(--text-light);
}

.search-form .btn {
    height: 48px;
    min-width: 120px;
    padding: 0 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.search-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(10, 92, 63, 0.2);
}

.search-form .btn:active {
    transform: translateY(0);
}

.search-form .btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Search Form Responsive */
@media (max-width: 640px) {
    .search-form {
        max-width: 100%;
    }

    .search-input-wrapper input {
        font-size: 0.875rem;
        height: 44px;
        padding: 0 1rem 0 2.75rem;
    }

    .search-input-wrapper svg:first-child {
        left: 0.875rem;
        width: 18px;
        height: 18px;
    }

    .search-form .btn {
        height: 44px;
        min-width: 44px;
        padding: 0 1rem;
    }

    .search-form .btn span {
        display: none;
    }

    .search-form .btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Filter Categories */
.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s;
}

.filter-tag svg {
    width: 16px;
    height: 16px;
}

.filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* CTA Section */
.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}


/* ========== Footer ========== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-stats li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-stats .stat-label {
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-stats .stat-value {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ========== Page Header ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 0;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    margin: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--white);
}

/* ========== News Grid (for berita.php) ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-image {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-content {
    padding: 1.25rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-content h3 a {
    color: var(--text-dark);
}

.news-content h3 a:hover {
    color: var(--primary);
}

.news-content p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
}

/* ========== Gallery ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ========== Article Page ========== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.9375rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Like Button */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--border);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.like-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.like-btn.liked {
    background: #fef2f2;
    border-color: #e74c3c;
    color: #e74c3c;
}

.like-btn.liked .heart-icon {
    fill: #e74c3c;
}

.stat-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-image {
    margin-bottom: 2rem;
}

.article-image img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* Share Section */
.share-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.share-label {
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: scale(1.1);
    color: var(--white);
}

.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-twitter { background: #000000; }
.share-copy {
    background: var(--text-light);
    border: none;
    cursor: pointer;
}

/* Sidebar */
.article-sidebar,
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 1rem;
}

.related-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
}

.related-item h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.related-item span {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
}

.category-item:hover {
    color: var(--primary);
}

.category-item .count {
    background: var(--bg-light);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8125rem;
}

/* ========== Contact Page ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(10, 92, 63, 0.1);
    color: var(--primary);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-detail p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9375rem;
}

/* ========== Forms ========== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.required {
    color: var(--danger);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* ========== Alerts ========== */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert svg {
    flex-shrink: 0;
}

.alert-success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Lightbox ========== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    gap: 1rem;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    height: auto !important;
    width: auto;
    object-fit: contain;
}

#lightboxCaption {
    color: var(--white);
    margin-top: 1rem;
    text-align: center;
}

/* Gallery Lightbox */
.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90vh;
    gap: 1rem;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-info {
    text-align: center;
    color: var(--white);
    max-width: 600px;
}

.lightbox-info h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-content img {
        max-height: 60vh;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox-info h3 {
        font-size: 1.1rem;
    }

    .lightbox-info p {
        font-size: 0.9rem;
    }
}

/* ========== Map ========== */
.map-wrapper h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

/* ========== Profile Page ========== */
.profile-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.content-block h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.visi-box {
    background: var(--primary);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-style: italic;
    text-align: center;
}

.visi-box p {
    margin: 0;
}

.misi-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.misi-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.misi-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: 600;
}

.pengurus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pengurus-card {
    text-align: center;
}

.pengurus-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-light);
}

.pengurus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pengurus-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.pengurus-info p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout,
    .profile-content {
        grid-template-columns: 1fr;
    }

    .pengurus-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pengurus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-form {
        flex-direction: column;
    }

    .search-form .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 0;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .hero {
        padding: 3rem 0;
    }

    .filter-categories {
        flex-direction: column;
    }

    .filter-tag {
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .pengurus-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Comments Section ========== */
.comments-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border);
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.comments-title svg {
    color: var(--primary);
}

/* Comment Form */
.comment-form-wrapper {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
}

.comment-form-wrapper h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-form .form-group {
    margin-bottom: 0;
}

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.comment-form .required {
    color: var(--danger);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 92, 63, 0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.comment-item:hover {
    box-shadow: var(--shadow-md);
}

.comment-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.comment-author {
    color: var(--text-dark);
    font-size: 1rem;
}

.comment-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.comment-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.no-comments {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.no-comments svg {
    color: var(--border);
    margin: 0 auto 1rem;
}

.no-comments p {
    margin: 0;
}

/* ========== Author Profile ========== */
.author-section {
    padding: 2rem 0 3rem;
}

.author-profile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 3rem;
}

.author-profile-header {
    display: flex;
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.author-avatar-large {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar-large .avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--white);
}

.author-profile-info {
    flex: 1;
}

.author-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.author-role {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.author-role svg {
    width: 16px;
    height: 16px;
}

.author-bio {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.author-social {
    display: flex;
    gap: 0.75rem;
}

.author-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.2s;
}

.author-social a:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.author-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
}

.stat-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.author-articles {
    margin-top: 3rem;
}

.author-articles .section-title {
    margin-bottom: 2rem;
}

/* Author link styling */
.author-link {
    color: inherit;
    font-weight: 500;
    transition: color 0.2s;
}

.author-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ========== Responsive for New Features ========== */
@media (max-width: 992px) {
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }

    .author-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .comments-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .comment-form-wrapper {
        padding: 1.5rem;
    }

    .comment-item {
        padding: 1rem;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .author-profile-header {
        padding: 2rem;
    }

    .author-avatar-large {
        width: 100px;
        height: 100px;
    }

    .author-name {
        font-size: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* ========== Hero Slider ========== */
.hero-slider-section {
    background: var(--bg-light);
    padding: 2rem 0;
}

.hero-slider-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 3rem;
    color: var(--white);
}

.hero-slide-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-slide-title a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.hero-slide-title a:hover {
    color: var(--accent);
}

.hero-slide-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-slide-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-slide-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

.slider-nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 2rem;
}

.slider-next {
    right: 2rem;
}

.slider-nav svg {
    color: var(--primary);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.slider-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-indicator.active {
    background: var(--white);
    width: 32px;
    border-radius: 6px;
}

/* ========== News Layout (2 Columns) ========== */
.section-news-grid {
    padding: 3rem 0;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.news-main {
    flex: 1;
}

.section-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.section-header-simple h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin: 0;
}

/* News List Items */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-list-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.news-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-list-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: var(--radius);
    overflow: hidden;
}

.news-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-list-image:hover img {
    transform: scale(1.05);
}

.news-list-content {
    flex: 1;
}

.news-list-category {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.news-list-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.news-list-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.news-list-content h3 a:hover {
    color: var(--primary);
}

.news-list-content p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.news-list-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.news-list-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ========== Popular News Sidebar ========== */
.news-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    color: var(--text-dark);
}

.widget-title svg {
    color: var(--primary);
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.popular-item {
    display: flex;
    gap: 1rem;
}

.popular-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.popular-content {
    flex: 1;
    display: flex;
    gap: 0.75rem;
}

.popular-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
}

.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.popular-image:hover img {
    transform: scale(1.1);
}

.popular-info {
    flex: 1;
}

.popular-info h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.popular-info h4 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.popular-info h4 a:hover {
    color: var(--primary);
}

.popular-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.popular-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ========== Responsive for Homepage ========== */
@media (max-width: 992px) {
    .hero-slider {
        height: 400px;
    }

    .hero-slide-content {
        padding: 0 2rem;
    }

    .hero-slide-title {
        font-size: 2rem;
    }

    .hero-slide-excerpt {
        font-size: 1rem;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }

    .slider-prev {
        left: 1rem;
    }

    .slider-next {
        right: 1rem;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 350px;
    }

    .hero-slide-content {
        padding: 0 1.5rem;
    }

    .hero-slide-title {
        font-size: 1.5rem;
    }

    .hero-slide-excerpt {
        font-size: 0.9375rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-slide-meta {
        font-size: 0.875rem;
        gap: 1rem;
    }

    .news-list-item {
        flex-direction: column;
    }

    .news-list-image {
        width: 100%;
        height: 200px;
    }

    .popular-content {
        flex-direction: column;
    }

    .popular-image {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 300px;
    }

    .hero-slide-title {
        font-size: 1.25rem;
    }

    .slider-nav {
        width: 36px;
        height: 36px;
    }

    .slider-indicators {
        bottom: 1rem;
    }

    .section-header-simple {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ========== Regional News Sections ========== */
.section-regional {
    padding: 3rem 0;
}

.section-regional .section-header-simple h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-regional .section-header-simple h2 svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Badge styling for status-info */
.status-badge.status-info {
    background: #e3f2fd;
    color: #1976d2;
}
