@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700;800&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #333333;
    line-height: 1.7;
}

body:not(.home-page) {
    padding-top: 76px;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
    line-height: 1.3;
}

p {
    font-size: 15px;
    color: #555555;
}

.hero-section {
    color: white;
    padding: 140px 0 100px;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: zoomFade 18s infinite;
}

.hero-slider-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-slider-bg:nth-child(1) {
    animation-delay: 0s;
}

.hero-slider-bg:nth-child(2) {
    animation-delay: 6s;
}

.hero-slider-bg:nth-child(3) {
    animation-delay: 12s;
}

@keyframes zoomFade {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    10% {
        opacity: 1;
    }
    33% {
        opacity: 1;
    }
    43% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.transition-navbar {
    transition: all 0.4s ease;
}
.transition-navbar .navbar-brand, .transition-navbar .nav-link {
    transition: color 0.4s ease;
}

.navbar-transparent .nav-link {
    color: rgba(255,255,255,0.85) !important;
}
.navbar-transparent .nav-link:hover {
    color: #fff !important;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,.3);
}

.page-header {
    background: linear-gradient(135deg, #b08e4f 0%, #876a36 100%);
    color: white;
    padding: 80px 0 50px;
}

.stat-card {
    transition: transform .2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.card {
    border-radius: 12px;
    transition: box-shadow .2s;
}

.card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

footer a {
    text-decoration: none;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #555;
}

.btn-success {
    border-radius: 8px;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.form-control:focus, .form-select:focus {
    border-color: #b08e4f;
    box-shadow: 0 0 0 0.2rem rgba(176, 142, 79, 0.25);
}

.alert {
    border-radius: 10px;
    border: none;
}

.modal-content {
    border-radius: 12px;
    border: none;
}

.pagination .page-link {
    color: #b08e4f;
    border-radius: 6px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #b08e4f;
    border-color: #b08e4f;
}

.payment-card {
    cursor: pointer;
}

.payment-card .card {
    border-color: #dee2e6;
    transition: all .2s;
}

.payment-card:hover .card {
    border-color: #b08e4f;
    background: #fdfaf2;
}

.payment-card.selected .card {
    border-color: #b08e4f;
    background: #fdfaf2;
    box-shadow: 0 0 0 2px rgba(176, 142, 79, 0.3);
}

.payment-card input:checked + .card {
    border-color: #b08e4f;
    background: #fdfaf2;
    box-shadow: 0 0 0 2px rgba(176, 142, 79, 0.3);
}

.campaign-card {
    transition: transform .2s, box-shadow .2s;
    border-radius: 12px;
    overflow: hidden;
}

.campaign-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,.12) !important;
}

.campaign-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.campaign-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.sticky-sidebar {
    position: sticky;
    top: 76px;
}

.preset-btn {
    transition: all .15s;
    font-weight: 500;
}

.preset-btn.active,
.preset-btn:hover {
    background: #b08e4f;
    color: #fff;
    border-color: #b08e4f;
}

.progress {
    background-color: #e9ecef;
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

.bg-success {
    background-color: #b08e4f !important;
}

.btn-success {
    background-color: #b08e4f;
    border-color: #b08e4f;
    color: #fff;
    box-shadow: 0 4px 12px rgba(176, 142, 79, 0.2);
}

.btn-success:hover {
    background-color: #93743e;
    border-color: #93743e;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(176, 142, 79, 0.3);
}

.logo-text {
    letter-spacing: 1px;
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-outline-success {
    border-color: #b08e4f;
    color: #b08e4f;
}

.btn-outline-success:hover {
    background-color: #b08e4f;
    border-color: #b08e4f;
    color: #fff;
}

.text-success {
    color: #b08e4f !important;
}

a {
    color: #b08e4f;
}

/* Berita - detik.com style */
.berita-content {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.8;
}
.berita-content p {
    margin-bottom: 1.2rem;
}
.berita-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 4px;
}
.berita-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}
.berita-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}
.berita-content blockquote {
    border-left: 4px solid #00a859;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}
.berita-content ul, .berita-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* News card hover */
.card.border-0.shadow-sm {
    transition: transform .2s, box-shadow .2s;
}
.card.border-0.shadow-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.12) !important;
}

/* Breadcrumb for berita */
.breadcrumb {
    padding: 0;
    background: transparent;
}

/* CKEditor rendered content */
.editor-content {
    line-height: 1.9;
    color: #333;
}
.editor-content p {
    margin-bottom: 1rem;
}
.editor-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}
.editor-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
}
.editor-content ul,
.editor-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.editor-content li {
    margin-bottom: 0.3rem;
}
.editor-content blockquote {
    border-left: 4px solid #00a859;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background: #f8fdf9;
    color: #555;
    font-style: italic;
}
.editor-content a {
    color: #00a859;
    text-decoration: underline;
}
.editor-content strong {
    font-weight: 700;
}

/* Gallery - Instagram style */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.filter-btn {
    border: 1.5px solid #dee2e6;
    color: #555;
    font-weight: 500;
    padding: 6px 18px;
    font-size: .85rem;
    transition: all .2s;
    background: #fff;
}
.filter-btn:hover {
    border-color: #b08e4f;
    color: #b08e4f;
    background: #fdfaf2;
}
.filter-btn.active {
    background: #b08e4f;
    border-color: #b08e4f;
    color: #fff;
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-width: 940px;
    margin: 0 auto;
}
.ig-item {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
}
.ig-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.ig-item:hover img {
    transform: scale(1.1);
}
.ig-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
}
.ig-item:hover .ig-overlay {
    opacity: 1;
}
.ig-overlay span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}
.ig-overlay i {
    font-size: 1.3rem;
}
.min-w-0 {
    min-width: 0;
}

/* Lightbox */
.ig-lightbox-stage {
    min-height: 60vh;
    max-height: 80vh;
    overflow: hidden;
}
.ig-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}
.ig-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background .2s;
    cursor: pointer;
}
.ig-nav:hover {
    background: rgba(255,255,255,.3);
}
.ig-prev { left: 16px; }
.ig-next { right: 16px; }

.ig-lightbox-footer {
    background: #111;
    padding: 16px 20px;
    border-top: 1px solid #222;
}
.ig-like-btn {
    transition: transform .15s;
    min-width: 40px;
    text-align: center;
}
.ig-like-btn:active {
    transform: scale(1.3);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.ig-like-btn .bi-heart-fill {
    animation: heartPop .3s ease;
}

@media (max-width: 768px) {
    .ig-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }
    .ig-lightbox-stage {
        min-height: 50vh;
        max-height: 65vh;
    }
}
@media (max-width: 480px) {
    .ig-grid {
        gap: 2px;
    }
    .ig-lightbox-stage {
        min-height: 40vh;
        max-height: 55vh;
    }
}
