/* ===========================
   HIJAU ISLAMI COLOR PALETTE
   =========================== */
   :root {
    --primary: #1d7a6a;
    --primary-dark: #0f5247;
    --primary-light: #2d9b8f;
    --accent: #00b8a9;
    --accent-light: #7ee8db;
    --bg-light: #f5f7f6;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --white: #ffffff;
}

/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

/* ===========================
   HEADER STYLES
   =========================== */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(29, 122, 106, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active-highlight {
    background-color: var(--accent);
    color: var(--white);
    font-weight: 600;
}

/* ===========================
   MAIN CONTENT LAYOUT
   =========================== */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* ===========================
   ARTICLES SECTION
   =========================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(29, 122, 106, 0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--border-color);
}

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

.article-badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-description {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.article-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.article-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-link:hover {
    color: var(--primary-dark);
}

.article-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.article-card:hover .article-link::after {
    transform: translateX(3px);
}

/* ===========================
   SIDEBAR STYLES
   =========================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 16px 20px;
    border-bottom: none;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.sidebar-content {
    padding: 0;
}

.trending-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    background-color: var(--bg-light);
}

.trending-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.trending-text {
    flex-grow: 1;
}

.trending-text h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-text p {
    font-size: 11px;
    color: var(--text-light);
}

/* Button CTA */
.btn-cta {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 20px 20px 20px 20px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 122, 106, 0.25);
}

.mt-3 {
    margin-top: 20px;
}

/* Category List */
.category-list {
    padding: 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    transition: background-color 0.3s ease;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.category-item .count {
    color: var(--primary);
    font-weight: 700;
}

/* ===========================
   PAGINATION STYLES
   =========================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 2px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.dots {
    border: none;
    cursor: default;
    padding: 0 4px;
}

.pagination-btn.dots:hover {
    color: var(--text-dark);
    border-color: var(--border-color);
}

/* ===========================
   FOOTER STYLES
   =========================== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet - 768px dan ke bawah */
@media (max-width: 768px) {
    .header .container {
        gap: 15px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .nav-categories {
        gap: 8px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 12px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-image {
        height: 250px;
    }

    .sidebar {
        order: -1;
    }
}

/* Mobile - 480px dan ke bawah */
@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .logo h1 {
        font-size: 18px;
        text-align: center;
    }

    .nav-categories {
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 11px;
    }

    .main-content {
        padding: 20px 0;
    }

    .articles-grid {
        gap: 15px;
    }

    .article-content {
        padding: 15px;
    }

    .article-image {
        height: 180px;
    }

    .article-title {
        font-size: 15px;
    }

    .article-description {
        font-size: 12px;
    }

    .sidebar-card {
        border-radius: 8px;
    }

    .sidebar-header {
        padding: 12px 15px;
    }

    .sidebar-header h3 {
        font-size: 14px;
    }

    .trending-item {
        padding: 12px 15px;
    }

    .trending-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .trending-text h4 {
        font-size: 12px;
    }

    .trending-text p {
        font-size: 10px;
    }

    .btn-cta {
        padding: 12px 15px;
        margin: 15px 15px 15px 15px;
        font-size: 13px;
    }

    .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Extra Small - 360px dan ke bawah */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 16px;
    }

    .article-title {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    .sidebar-header h3 {
        font-size: 13px;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
