:root {
    --green: #0f8a5f;
    --green-dark: #0b6f4b;
    --blue-light: #e8f7ff;
    --blue: #38a9d6;
    --soft: #f7fbf9;
    --text: #1f2937;
}

* { box-sizing: border-box; }
body {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: #fff;
}

a { text-decoration: none; }
.public-navbar .nav-link {
    font-weight: 600;
    color: #304050;
    margin: 0 .12rem;
}
.public-navbar .nav-link.active,
.public-navbar .nav-link:hover { color: var(--green); }
.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--blue));
    border-radius: 12px;
}
.hero-section {
    background-size: cover;
    background-position: center;
    position: relative;
}
.min-vh-hero { min-height: 560px; }
.bg-light-blue { background: var(--blue-light); }
.section-padding { padding: 80px 0; }
.section-badge {
    color: var(--green);
    background: rgba(15, 138, 95, .12);
    display: inline-block;
    padding: .35rem .85rem;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: .8rem;
}
.section-title {
    font-weight: 800;
    margin-bottom: 1rem;
}
.stat-card, .admin-stat {
    background: #fff;
    border-radius: 22px;
    padding: 26px 18px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 138, 95, .08);
    height: 100%;
}
.stat-card i, .admin-stat i {
    color: var(--green);
    font-size: 2.1rem;
}
.stat-card h3, .admin-stat h3 {
    font-weight: 800;
    margin: .7rem 0 .15rem;
}
.stat-card p, .admin-stat p { color: #64748b; margin: 0; }
.info-panel {
    background: linear-gradient(135deg, #fff, #effaf4);
    border: 1px solid rgba(15, 138, 95, .12);
    border-radius: 26px;
    padding: 32px;
    box-shadow: 0 15px 40px rgba(0,0,0,.06);
}
.info-item {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 16px;
    height: 100%;
}
.info-item span, .list-info span, .contact-item span {
    display: block;
    color: #64748b;
    font-size: .88rem;
    margin-bottom: .2rem;
}
.info-item strong, .list-info strong, .contact-item strong { color: var(--text); }
.content-card, .profile-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
    transition: .25s ease;
}
.content-card:hover, .profile-card:hover { transform: translateY(-5px); }
.content-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.content-card p { color: #64748b; }
.profile-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: var(--blue-light);
}
.read-more {
    color: var(--green);
    font-weight: 700;
}
.gallery-mini, .gallery-card {
    display: block;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.gallery-mini img, .gallery-card img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    transition: .25s ease;
}
.gallery-card img { height: 230px; }
.gallery-mini:hover img, .gallery-card:hover img { transform: scale(1.06); }
.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff;
    padding: 14px;
    background: linear-gradient(transparent, rgba(0,0,0,.72));
    font-weight: 700;
}
.page-header {
    padding: 80px 0;
    color: #fff;
    background: linear-gradient(120deg, var(--green), var(--blue));
}
.page-header h1 { font-weight: 800; margin-bottom: .5rem; }
.page-header p { margin: 0; opacity: .92; }
.list-info {
    list-style: none;
    margin: 0;
    padding: 0;
}
.list-info li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid #edf2f7;
}
.list-info li:last-child { border-bottom: 0; }
.detail-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}
.article-content {
    line-height: 1.9;
    color: #374151;
}
.contact-item {
    display: flex;
    gap: 1rem;
    padding: 16px 0;
    border-bottom: 1px solid #edf2f7;
}
.contact-item i {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--blue));
    border-radius: 14px;
}
.map-box {
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
    background: #fff;
}
.map-box iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.empty-state {
    padding: 36px;
    border: 1px dashed #b6d8c5;
    color: #64748b;
    background: #fff;
    border-radius: 18px;
    text-align: center;
}
.footer-public {
    color: #e5fff4;
    background: #0b4f39;
}
.footer-public a { color: #e5fff4; opacity: .9; }
.footer-public a:hover { opacity: 1; text-decoration: underline; }
.btn-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: none;
    z-index: 999;
}

/* Admin */
.admin-body { background: #f4f8f6; }
.admin-topbar { background: linear-gradient(120deg, var(--green-dark), var(--green)); }
.admin-topbar .nav-link { color: rgba(255,255,255,.86); font-weight: 600; }
.admin-topbar .nav-link.active, .admin-topbar .nav-link:hover { color: #fff; background: rgba(255,255,255,.12); border-radius: 999px; }
.admin-page-title { font-size: 1.8rem; font-weight: 800; }
.admin-stat { text-align: left; }
.admin-stat i { font-size: 1.8rem; }
.admin-thumb {
    width: 70px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.admin-gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.preview-image {
    max-width: 260px;
    max-height: 190px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 138, 95, .95), rgba(56, 169, 214, .88));
    padding: 20px;
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 26px;
    padding: 32px;
    box-shadow: 0 22px 70px rgba(0,0,0,.18);
}
.login-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    margin: 0 auto 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--green), var(--blue));
}

@media (max-width: 991.98px) {
    .min-vh-hero { min-height: 440px; }
    .section-padding { padding: 56px 0; }
    .hero-section .display-4 { font-size: 2.4rem; }
    .content-card img { height: 190px; }
}
@media (max-width: 575.98px) {
    .min-vh-hero { min-height: 390px; }
    .section-padding { padding: 44px 0; }
    .page-header { padding: 56px 0; }
    .hero-section .display-4 { font-size: 2rem; }
    .detail-img { height: 260px; }
    .gallery-card img { height: 170px; }
    .profile-card img { height: 230px; }
    .list-info li { display: block; }
}
