/* ===== FILE: assets/css/style.css ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-dark: #166534;
    --green-primary: #16a34a;
    --green-light: #22c55e;
    --green-bg: #f0fdf4;
    --gray-text: #4b5563;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-text);
    background: #f9fafb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 70px;
    height: 70px;
    background: var(--green-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
}

.site-info h1 {
    color: var(--green-dark);
    font-size: 24px;
    margin-bottom: 3px;
}

.tagline {
    color: var(--green-primary);
    font-style: italic;
    font-size: 14px;
}

.caption {
    color: var(--gray-text);
    font-size: 12px;
    max-width: 400px;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: var(--green-dark);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a:hover, .nav a.active {
    background: var(--green-primary);
    color: white;
}

/* Slider */
.slider {
    position: relative;
    height: 400px;
    background: var(--green-bg);
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    display: flex;
}

.slide-content {
    padding: 40px;
}

.slide-icon {
    font-size: 80px;
    color: var(--green-primary);
    margin-bottom: 20px;
}

.slide h2 {
    color: var(--green-dark);
    font-size: 36px;
    margin-bottom: 15px;
}

.slide p {
    color: var(--gray-text);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--green-dark);
    transition: all 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--green-primary);
    width: 30px;
    border-radius: 6px;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.section-title {
    color: var(--green-dark);
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-image {
    height: 200px;
    overflow: hidden;
    background: var(--green-bg);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--green-primary);
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    color: var(--green-dark);
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content p {
    color: var(--gray-text);
    font-size: 14px;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 15px;
}

.btn-read {
    display: inline-block;
    background: var(--green-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-read:hover {
    background: var(--green-dark);
}

/* Article Detail */
.article-detail {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.article-detail h1 {
    color: var(--green-dark);
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-image-full {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-image-full img {
    width: 100%;
    height: auto;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

/* Comments */
.comments-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.comments-section h2 {
    color: var(--green-dark);
    margin-bottom: 30px;
}

.comment-form {
    background: var(--green-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--green-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 2px solid #d1fae5;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-primary);
}

.btn-submit {
    background: var(--green-primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--green-dark);
}

.comment-item {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-header strong {
    color: var(--green-dark);
}

.comment-header span {
    color: #9ca3af;
    font-size: 13px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-box {
    background: var(--green-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.contact-box i {
    font-size: 48px;
    color: var(--green-primary);
    margin-bottom: 15px;
}

.contact-box h3 {
    color: var(--green-dark);
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: var(--green-dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    margin-bottom: 15px;
    color: var(--green-light);
}

.footer p {
    color: #d1fae5;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    color: #d1fae5;
    font-size: 14px;
}

/* Admin Panel Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: var(--green-dark);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    transition: all 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--green-primary);
}

.btn-logout {
    background: #dc2626;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    background: var(--green-bg);
    color: var(--green-dark);
    font-weight: 600;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--green-primary);
    color: white;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        width: 100%;
        flex-direction: column;
    }

    .slide h2 {
        font-size: 24px;
    }

    .slide p {
        font-size: 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-detail {
        padding: 20px;
    }

    .article-detail h1 {
        font-size: 24px;
    }
}