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

body {
    font-family: 'Georgia', 'Times New Roman', serif;;
    line-height: 1.6;
    color: #333;
    background: #f8faf8;
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: linear-gradient(135deg, #1a472a 0%, #2d6b3f 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 300;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* ============================================
   HERO
   ============================================ */
/* Hero section dengan overlay */
.hero {
    min-height: 400px;
    display: flex;
    align-items: center;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* Menu grid overlap - efek hover */
.menu-grid-overlap a:hover {
    transform: translateY(-3px);
    transition: all 0.3s;
}

.menu-grid-overlap .container > div {
    background: white;
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 1.5rem;
}

.hero .btn-hero:hover {
    background: #1a472a;
}

.hero .btn-hero-outline:hover {
    background: rgba(255,255,255,0.2);
}

/* Menu grid hover effect */
.menu-grid a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Responsive untuk menu grid */
@media (max-width: 768px) {
    .menu-grid .container > div {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .hero h2 {
        font-size: 2rem !important;
    }
    .hero .btn-hero,
    .hero .btn-hero-outline {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .menu-grid .container > div {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #1a472a;
}

.btn-link {
    color: #2d6b3f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-link:hover {
    color: #1a472a;
}

/* ============================================
   CARDS (Berita)
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: #F8F6F1;;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
    border-radius: 0;
}

.card-body .badge {
    display: inline-block;
    background: #2d6b3f;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a472a;
}

.card-body small {
    color: #666;
    display: block;
    margin-bottom: 1rem;
}

.card-body p {
    margin-bottom: 1rem;
    color: #555;
}

.btn-read {
    color: #2d6b3f;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.btn-read:hover {
    text-decoration: underline;
}

/* ============================================
   AGENDA LIST
   ============================================ */
.agenda-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.agenda-card {
    display: flex;
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    gap: 1.5rem;
    transition: transform 0.3s;
}

.agenda-card:hover {
    transform: translateX(5px);
}

.agenda-date {
    background: #2d6b3f;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agenda-date .day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.agenda-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.agenda-body {
    flex: 1;
}

.agenda-body h3 {
    color: #1a472a;
    margin-bottom: 0.5rem;
}

.agenda-body p {
    margin-bottom: 0.25rem;
    color: #555;
}

.agenda-image {
    max-width: 200px;
    border-radius: 0;
    margin-top: 1rem;
}

/* ============================================
   DETAIL BERITA
   ============================================ */
.detail-berita {
    padding: 3rem 0;
}

.detail-berita article {
    max-width: 800px;
    margin: 0 auto;
}

.detail-berita h2 {
    color: #1a472a;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.meta {
    color: #666;
    margin-bottom: 2rem;
}

.meta span {
    margin-right: 1.5rem;
}

.featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 2rem;
}

.content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content p {
    margin-bottom: 1.5rem;
}

.btn-back {
    display: inline-block;
    margin-top: 2rem;
    color: #2d6b3f;
    text-decoration: none;
    font-weight: 600;
}

.btn-back:hover {
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #1a472a;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.footer-info h3 {
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-text {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

/* ============================================
   STICKY FOOTER
   ============================================ */
   html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* ============================================
   ADMIN LAYOUT
   ============================================ */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-nav {
    width: 250px;
    background: #1a472a;
    color: white;
    padding: 2rem 1rem;
    flex-shrink: 0;
}

.admin-nav h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.admin-nav ul {
    list-style: none;
    padding: 0;
}

.admin-nav ul li {
    margin-bottom: 0.5rem;
}

.admin-nav ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.admin-nav ul li a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background: #f5f7f5;
}

.admin-content h1,
.admin-content h2 {
    color: #1a472a;
    margin-bottom: 1.5rem;
}

/* ============================================
   ADMIN STATS
   ============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a472a;
    text-align: center;
}

/* ============================================
   ADMIN FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2d6b3f;
    box-shadow: 0 0 0 3px rgba(45, 107, 63, 0.1);
}

.btn-primary {
    background: #2d6b3f;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #1a472a;
}

/* ============================================
   ADMIN TABLES
   ============================================ */
table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-collapse: collapse;
}

table th {
    background: #1a472a;
    color: white;
    padding: 1rem;
    text-align: left;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

table tr:hover {
    background: #f5f7f5;
}

table td a {
    color: #2d6b3f;
    text-decoration: none;
    margin-right: 1rem;
    font-weight: 600;
}

table td a:hover {
    text-decoration: underline;
}

/* ============================================
   ALERT / FLASH MESSAGES
   ============================================ */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.login-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    text-align: center;
    color: #1a472a;
    margin-bottom: 2rem;
}

.login-container .form-group {
    margin-bottom: 1.5rem;
}

.login-container .btn-primary {
    width: 100%;
    padding: 0.75rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

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

    .agenda-card {
        flex-direction: column;
    }

    .agenda-date {
        flex-direction: row;
        min-width: auto;
        padding: 0.5rem 1rem;
        gap: 1rem;
        justify-content: flex-start;
    }

    .agenda-image {
        max-width: 100%;
    }

    .admin-wrapper {
        flex-direction: column;
    }

    .admin-nav {
        width: 100%;
        padding: 1rem;
    }

    .admin-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .admin-nav ul li {
        margin-bottom: 0;
    }

    .admin-nav ul li a {
        padding: 0.5rem 1rem;
    }

    .admin-content {
        padding: 1rem;
    }

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

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }

    .login-container {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .brand h1 {
        font-size: 1.3rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .detail-berita h2 {
        font-size: 1.8rem;
    }
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}
.btn-back-home {
    color: #2d6b3f;
    text-decoration: none;
    font-weight: 600;
}
.btn-back-home:hover {
    text-decoration: underline;
}

/* ===== ANIMASI FADE-IN ===== */
.fly-in-bottom {
    opacity: 0;
    transform: translateY(60px);
    animation: flyInBottom 1.2s ease-out forwards;
}
@keyframes flyInBottom {
    0% { opacity: 0; transform: translateY(60px); }
    100% { opacity: 1; transform: translateY(0); }
}
