/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #e8f5e9;
    min-height: 100vh;
}

/* Login */
.login-page {
    background: #f0f0f1;
    color: #2c3338;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px 60px;
}

.login-panel {
    width: min(100%, 320px);
}

.login-logo {
    display: block;
    width: 82px;
    height: 82px;
    margin: 0 auto 24px;
    overflow: hidden;
    border-radius: 6px;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-panel h1 {
    margin-bottom: 20px;
    text-align: center;
    color: #2c3338;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.3;
}

.login-form {
    padding: 26px 24px 24px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.login-form label,
.login-label-row {
    color: #2c3338;
    font-size: 14px;
}

.login-form > label,
.login-label-row {
    display: block;
    margin-bottom: 7px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    min-height: 40px;
    margin-bottom: 18px;
    padding: 6px 8px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    background: #fff;
    color: #2c3338;
    font: inherit;
}

.login-form input:focus {
    border-color: #2271b1;
    outline: 2px solid rgba(34, 113, 177, 0.2);
}

.login-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.login-label-row a,
.back-home {
    color: #2271b1;
}

.login-label-row a:hover,
.back-home:hover {
    color: #135e96;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 20px;
}

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: #2271b1;
}

.login-form button {
    float: right;
    min-height: 34px;
    padding: 0 16px;
    border: 1px solid #2271b1;
    border-radius: 3px;
    background: #2271b1;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.login-form::after {
    display: block;
    clear: both;
    content: "";
}

.login-form button:hover {
    background: #135e96;
    border-color: #135e96;
}

.back-home {
    display: block;
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================
   HEADER
   ======================== */
.header {
    background: #f5f5dc;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f5f5dc;
    border-radius: 4px;
    padding: 4px;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border-radius: 3px;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.7);
}

.nav-link i {
    font-size: 10px;
    margin-left: 4px;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background: #fff3cd;
}

/* ========================
   HERO
   ======================== */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 30px 0;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 8px;
    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding: 40px 40px 30px;
    color: #fff;
}

.hero-overlay h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-overlay p {
    font-size: 16px;
    opacity: 0.9;
}

/* ========================
   WELCOME / ARTICLES
   ======================== */
.welcome {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.welcome-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 30px 35px 35px;
}

.welcome-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid #eee;
}

.welcome-top h2 {
    font-size: 22px;
    color: #2e7d32;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-selengkapnya {
    display: inline-block;
    background: #f5f5dc;
    color: #555;
    padding: 8px 22px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
    border: 1px solid #e0e0c8;
}

.btn-selengkapnya:hover {
    background: #e8e8c8;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

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

.article-body {
    padding: 16px;
}

.article-body h3 {
    font-size: 15px;
    color: #2e7d32;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-body p {
    font-size: 12.5px;
    color: #666;
    line-height: 1.6;
}

/* ========================
   PROGRAMS
   ======================== */
.programs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 30px;
}

.programs-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 40px 35px 45px;
    text-align: center;
}

.programs-box h2 {
    font-size: 30px;
    color: #1565c0;
    font-weight: 700;
    margin-bottom: 35px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.program-item {
    text-align: center;
}

.program-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 16px;
}

.program-item h3 {
    font-size: 17px;
    color: #1565c0;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 1.5px;
}

/* ========================
   FOOTER
   ======================== */
.footer {
    background: linear-gradient(135deg, #fdd835, #fbc02d);
    padding: 45px 0 50px;
    margin-top: 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: 35px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 14px;
}

.footer-col p {
    font-size: 13px;
    color: #555;
    line-height: 1.9;
}

/* Map */
.map-box {
    width: 110px;
    height: 75px;
    background: #87ceeb;
    border: 3px solid #2196f3;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-box i {
    font-size: 28px;
    color: #e53935;
}

/* Social */
.social-row {
    display: flex;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #333;
    color: #fff;
    border-radius: 5px;
    font-size: 18px;
    transition: background 0.2s;
}

.social-btn:hover {
    background: #555;
}

/* Popular Posts */
.post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: center;
}

.post-item img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.post-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.post-date {
    font-size: 11.5px;
    color: #777;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 992px) {
    .article-grid,
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-link {
        padding: 10px 14px;
        font-size: 14px;
    }
    .hero-slide {
        height: 280px;
    }
    .hero-overlay h1 {
        font-size: 20px;
    }
    .welcome-top {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .article-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-row {
        justify-content: center;
    }
    .post-item {
        justify-content: center;
    }
}

/* ========================
   PAGE BANNER
   ======================== */
.page-banner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 30px 0;
}

.page-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding: 40px;
    border-radius: 0 0 8px 8px;
}

.banner-overlay h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
}

/* ========================
   CONTENT SECTIONS
   ======================== */
.content-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.content-section h2 {
    color: #2e7d32;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.content-text {
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 15px;
    color: #555;
}

.content-img {
    float: left;
    width: 300px;
    height: 200px;
    object-fit: cover;
    margin: 0 25px 15px 0;
    border-radius: 6px;
}

.visi-box,
.misi-box {
    background: #f5f5f5;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.visi-box h3,
.misi-box h3 {
    color: #1565c0;
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #555;
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.team-card {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.team-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.team-card h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
}

.team-card p {
    color: #888;
    font-size: 13px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
    clear: both;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Gallery Full */
.gallery-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-full img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s;
}

.gallery-full img:hover {
    transform: scale(1.03);
}

/* Video Placeholder */
.video-placeholder {
    background: #f5f5f5;
    padding: 60px;
    text-align: center;
    border-radius: 8px;
    color: #999;
}

.video-placeholder i {
    font-size: 60px;
    margin-bottom: 15px;
    color: #ccc;
}

/* ========================
   EVENTS
   ======================== */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: flex;
    gap: 25px;
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

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

.event-date {
    background: #1565c0;
    color: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    text-align: center;
    min-width: 80px;
}

.event-date .day {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.event-date .month {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
}

.event-date .year {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.event-info h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 8px;
}

.event-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.event-location {
    color: #888;
    font-size: 13px;
}

.event-location i {
    color: #e53935;
    margin-right: 5px;
}

/* ========================
   CONTACT
   ======================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 24px;
    color: #1565c0;
    margin-top: 3px;
}

.contact-item h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 6px;
}

.contact-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.contact-form h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: #555;
    font-size: 14px;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1565c0;
}

.btn-submit {
    background: #1565c0;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #0d47a1;
}

/* Date in news */
.date {
    color: #999;
    font-size: 12px;
}

/* ========================
   RESPONSIVE ADDITIONS
   ======================== */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-banner img {
        height: 200px;
    }
    .banner-overlay h1 {
        font-size: 24px;
    }
    .content-img {
        float: none;
        width: 100%;
        margin: 0 0 15px 0;
    }
    .team-grid,
    .gallery-grid,
    .gallery-full {
        grid-template-columns: 1fr;
    }
    .event-card {
        flex-direction: column;
    }
}
