/* General Styles */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: 600;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #6c757d;
    background-color: #f8f9fa;
}

/* Progress Bars */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.25rem;
    z-index: 99;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

.hero h1 { font-size: 2.5rem; }
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
}

.wave-img {
    border-radius: 50% 40% 30% 70% / 60% 30% 70% 40%;
}

.image-3d-wrapper {
    display: inline-block;
    padding: 12px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 75% 35% 45% 55% / 55% 45% 55% 45%;
    box-shadow:
        10px 10px 25px rgba(0, 0, 0, 0.25),
        -5px -5px 15px rgba(255, 255, 255, 0.8);
}

.image-3d {
    border-radius: 40% 40% 30% 20% / 60% 30% 70% 20%;
    border: 4px solid #ffffff;
    box-shadow:inset 0 0 10px rgba(0,0,0,.1);
}

.image-3d-wrapper {
    transition: transform .4s ease, box-shadow .4s ease;
}

.image-3d-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
    18px 18px 35px rgba(0, 0, 0, 0.3),
    -8px -8px 20px rgba(255, 255, 255, 0.9);
}

.torn-paper {
    position: relative;
    display: inline-block;
    background: #fff;
    padding: 14px;
    box-shadow: 
        0 12px 25px rgba(0,0,0,.25);
}

/* Kertas koyak atas */
.torn-paper::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #fff;
    clip-path: polygon(
        100% 100%, 5% 80%, 10% 90%, 15% 70%, 20% 85%, 
        25% 60%, 30% 75%, 35% 55%, 40% 70%, 45% 50%, 
        50% 65%, 55% 45%, 60% 60%, 65% 40%, 70% 55%, 
        75% 35%, 80% 50%, 85% 30%, 90% 45%, 95% 25%, 
        40% 40%, 100% 100%
    );
}

/* Kertas koyak bawah */
.torn-paper::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #fff;
    clip-path: polygon(
        100% 50%, 5% 20%, 10% 10%, 15% 30%, 20% 15%, 
        25% 40%, 30% 25%, 35% 45%, 40% 30%, 45% 50%, 
        50% 35%, 55% 55%, 60% 40%, 65% 60%, 70% 45%, 
        75% 65%, 80% 50%, 85% 70%, 90% 55%, 95% 75%, 
        10% 60%, 100% 0%
    );
}

/* Foto di dalam kertas */
.torn-paper img {
    position: relative;
    display: block;
    z-index: 2;
}

.torn-paper {
    transition: transform .3s ease, box-shadow .3s ease;
}

.torn-paper:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,.35);
}

/* public/assets/css/public.css */
/* Tambahkan di bagian bawah file */

/* Style untuk konten berita */
.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: #444;
}

.content h2, 
.content h3, 
.content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.content ul, 
.content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content blockquote {
    border-left: 4px solid #3498db;
    padding: 0.5rem 1rem;
    margin: 1.5rem 0;
    background-color: #f8f9fa;
    font-style: italic;
}

/* Style untuk card berita */
.card-berita {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card-berita:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Style untuk tabel perbandingan */
.table-comparison th {
    white-space: nowrap;
    vertical-align: middle;
}

/* Dark mode */
.dark-mode .content {
    color: #e0e0e0;
}

.dark-mode .content h2,
.dark-mode .content h3,
.dark-mode .content h4 {
    color: #f8f9fa;
}

.dark-mode .content blockquote {
    background-color: #2c3e50;
    border-left-color: #3498db;
}

/* Background utama */
.artikel-wrapper {
    background: linear-gradient(135deg, #c31432, #240b36);
}

/* Judul */
.artikel-title span {
    background: #ff0055;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

/* Card */
.artikel-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    transition: all .25s ease;
}

.artikel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

/* Gambar */
.artikel-img img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

/* Body */
.artikel-body {
    padding: 10px 12px;
}

.artikel-judul {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.artikel-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

.artikel-link {
    font-size: 12px;
    color: #d4003a;
    text-decoration: none;
    font-weight: 500;
}

.artikel-link:hover {
    text-decoration: underline;
}

.album-card {
    border-radius: 12px;
    overflow: hidden;
    background: #d9f0c3;
    border: 4px solid #6aa84f;
}

.album-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.album-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 10px;
}

.album-overlay h5 {
    font-size: 22px;
    font-weight: bold;
    color: #ffeb3b;
    text-shadow: 1px 1px 3px #000;
}

.album-overlay span {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

