/* Berita Page Styles - Modern Aukycloth Theme */

.news-hero {
    background: linear-gradient(135deg, #8CC63F 0%, #7bb539 100%);
    color: rgb(255, 255, 255);
    
    padding: 140px 0 90px; /* Tambahkan jarak dari header */
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
    
    margin-top: 0; /* Hapus margin ini */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: rgb(255, 255, 255);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.hero-text p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    opacity: 0.9;
}

.hero-meta {
    margin-bottom: 30px;
}

.hero-meta .date {
    font-size: 16px;
    opacity: 0.8;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #8CC63F;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-read-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

/* Main Content */
.news-main {
    padding: 80px 0;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* News Grid Section */
.news-grid-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.section-header p {
    color: #6c757d;
    font-size: 18px;
    margin: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.news-image {
    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.05);
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.news-content p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-meta .date {
    color: #adb5bd;
    font-size: 14px;
    font-weight: 500;
}

.read-more {
    color: #8CC63F;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #7bb539;
}

/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.sidebar-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommendation-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.recommendation-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rec-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.rec-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-small {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 20px;
}

.rec-content {
    flex: 1;
}

.rec-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.rec-date {
    display: block;
    color: #adb5bd;
    font-size: 12px;
    margin-bottom: 8px;
}

.rec-link {
    color: #8CC63F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.rec-link:hover {
    color: #7bb539;
}

/* No News States */
.no-news, .no-recommendations {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-news i, .no-recommendations i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.no-news h3, .no-recommendations h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.no-news p, .no-recommendations p {
    margin: 0;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-image img,
    .no-image {
        height: 350px;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 60px 0 80px;
        margin-top: 40px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .hero-image {
        order: 1;
    }

    .hero-text {
        order: 2;
        text-align: center;
        padding: 0;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-meta {
        justify-content: center;
        margin-bottom: 25px;
    }

    .hero-image {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    .hero-image img,
    .no-image {
        height: 320px;
        width: 100%;
        object-fit: cover;
    }

    .news-main {
        padding: 60px 0;
    }

    .news-grid-section {
        padding: 30px 20px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card {
        max-width: 100%;
    }

    .news-image {
        height: 220px;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 18px;
    }

    .sidebar-section {
        padding: 20px;
    }

    .sidebar-section h3 {
        font-size: 20px;
    }

    .recommendation-item {
        gap: 12px;
    }

    .rec-image {
        width: 70px;
        height: 50px;
    }

    .rec-content h4 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .news-hero {
        padding: 0 0 70px;
        margin-top:50px;
    }

    .hero-container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .hero-label {
        font-size: 13px;
        padding: 6px 12px;
    }

    .btn-read-more {
        padding: 12px 24px;
        font-size: 15px;
    }

    .hero-image img,
    .no-image {
        height: 240px;
    }

    .news-main {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .news-grid-section {
        padding: 25px 15px;
        border-radius: 15px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 15px;
    }

    .news-grid {
        gap: 15px;
    }

    .news-image {
        height: 200px;
    }

    .news-content {
        padding: 18px;
    }

    .news-content h3 {
        font-size: 17px;
    }

    .news-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .news-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .sidebar-section {
        padding: 18px;
    }

    .sidebar-section h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .recommendation-item {
        padding: 12px 0;
        gap: 10px;
    }

    .rec-image {
        width: 60px;
        height: 45px;
    }

    .rec-content h4 {
        font-size: 13px;
    }

    .rec-date {
        font-size: 11px;
    }

    .rec-link {
        font-size: 13px;
    }

    .no-news,
    .no-recommendations {
        padding: 40px 15px;
    }

    .no-news i,
    .no-recommendations i {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .no-news h3,
    .no-recommendations h3 {
        font-size: 20px;
    }

    .no-news p,
    .no-recommendations p {
        font-size: 14px;
    }
}


