:root {
    --green: #007f4f;
    --green-dark: #005f3d;
    --green-soft: #eaf8f1;
    --yellow: #ffd400;
    --yellow-dark: #f0bd00;
    --white: #ffffff;
    --text: #173528;
    --muted: #63766e;
    --line: #dfe8e3;
    --shadow: 0 18px 50px rgba(0, 95, 61, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f4fbf7 44%, #fffbe8 100%);
    color: var(--text);
    min-height: 100vh;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--green);
    box-shadow: 0 8px 24px rgba(0, 95, 61, 0.18);
}

.topbar {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 74px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.brand-mark {
    width: 46px;
    height: 46px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
   
}

.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.brand-text {
    font-size: 16px;
}

.nav-menu {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-left: auto;
    height: 74px;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    height: 74px;
    padding: 0 17px;
    color: var(--white);
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 17px;
    right: 17px;
    bottom: 14px;
    height: 3px;
    background: var(--yellow);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-dropdown.active > .nav-link::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown.active > .nav-link {
    color: #fff9b8;
}

.nav-dropdown {
    position: relative;
}

.chevron {
    margin-left: 6px;
    color: var(--yellow);
    font-size: 18px;
    line-height: 1;
}

.dropdown-panel {
    position: absolute;
    top: 74px;
    right: 0;
    min-width: 230px;
    background: var(--white);
    border-radius: 0 0 18px 18px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--yellow);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown.open .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 15px 18px;
    color: var(--green-dark);
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}

.dropdown-panel a:last-child {
    border-bottom: 0;
}

.dropdown-panel a:hover {
    background: var(--green-soft);
    color: var(--green);
}

.header-action {
    margin-left: 2px;
}

.btn-login,
.btn-primary,
.btn-secondary,
.btn-google,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-login {
    background: var(--yellow);
    color: var(--green-dark);
    box-shadow: 0 10px 22px rgba(255, 212, 0, 0.24);
}

.btn-login:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-google:hover,
.btn-danger:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    border-radius: 99px;
}

.flash {
    max-width: 1040px;
    margin: 22px auto 0;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 600;
}

.flash-success {
    background: #e5f8ec;
    color: #146c3c;
    border: 1px solid #bfe9ce;
}

.flash-error {
    background: #fff1f1;
    color: #a32020;
    border: 1px solid #ffd0d0;
}

.hero,
.page-section,
.auth-section,
.profile-section {
    max-width: 1040px;
    margin: 34px auto;
    padding: 0 22px;
}

.hero-card,
.coming-card,
.auth-card,
.profile-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(223, 232, 227, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 390px;
}

.hero-content {
    padding: 56px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1,
.coming-card h1,
.auth-card h1,
.profile-card h1 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -1px;
    color: var(--green-dark);
}

.hero p,
.coming-card p,
.profile-card p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 26px;
}

.hero-visual {
    position: relative;
    background: radial-gradient(circle at top right, #ffec6b 0%, #fff6bc 28%, #e8f8ef 55%, #ffffff 100%);
    display: grid;
    place-items: center;
    padding: 36px;
}

.visual-box {
    width: min(270px, 100%);
    aspect-ratio: 1;
    border-radius: 34px;
    background: linear-gradient(145deg, var(--green), var(--green-dark));
    box-shadow: 0 28px 55px rgba(0, 95, 61, 0.28);
    display: grid;
    place-items: center;
    color: var(--yellow);
    font-size: 74px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 12px 25px rgba(0, 127, 79, 0.18);
}

.btn-secondary {
    background: var(--yellow);
    color: var(--green-dark);
}

.btn-google {
    width: 100%;
    background: var(--white);
    color: #263238;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(0, 95, 61, 0.08);
}

.btn-danger {
    background: #fff1f1;
    color: #a32020;
}

.coming-card {
    padding: 52px;
    text-align: center;
}

.coming-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 12px;
    border-radius: 30px;
    background: var(--green-soft);
    display: grid;
    place-items: center;
    font-size: 44px;
    color: var(--green);
    border: 1px solid #cfecdd;
}

.auth-section {
    max-width: 560px;
}

.auth-card {
    padding: 34px;
}

.auth-card h1 {
    font-size: 34px;
    margin-top: 0;
}

.auth-subtitle {
    margin-top: -4px;
    margin-bottom: 24px;
    color: var(--muted);
    line-height: 1.7;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--green-dark);
    font-weight: 700;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border-radius: 14px;
    border: 1px solid var(--line);
    outline: none;
    font-family: inherit;
    font-size: 15px;
    background: #fbfffd;
}

.form-group input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(0, 127, 79, 0.10);
}

.form-submit {
    width: 100%;
    height: 50px;
    margin-top: 6px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-note {
    text-align: center;
    color: var(--muted);
    margin-top: 22px;
}

.auth-note a {
    color: var(--green);
    font-weight: 800;
}

.error-list {
    background: #fff1f1;
    border: 1px solid #ffd0d0;
    color: #a32020;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.error-list ul {
    margin: 0;
    padding-left: 20px;
}

.profile-card {
    padding: 38px;
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.avatar {
    width: 82px;
    height: 82px;
    border-radius: 26px;
    background: var(--green);
    color: var(--yellow);
    display: grid;
    place-items: center;
    font-size: 34px;
    font-weight: 800;
    overflow: hidden;
}

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

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.info-box {
    background: #fbfffd;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
}

.info-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.info-box strong {
    color: var(--green-dark);
    word-break: break-word;
}

.profile-actions {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.site-footer {
    margin-top: 54px;
    background: var(--green-dark);
    color: var(--white);
}

.footer-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 34px 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.footer-inner h3 {
    margin: 0 0 8px;
    color: var(--yellow);
}

.footer-inner p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 600;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    padding: 16px 22px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
}

@media (max-width: 920px) {
    .brand-text {
        display: none;
    }
}

@media (max-width: 820px) {
    .topbar {
        flex-wrap: wrap;
        min-height: 68px;
        gap: 12px;
        padding: 12px 16px;
    }

    .brand-text {
        display: inline;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu,
    .header-action {
        display: none;
        width: 100%;
    }

    .nav-menu.show,
    .header-action.show {
        display: block;
    }

    .nav-menu {
        order: 4;
        height: auto;
        margin-left: 0;
        background: rgba(0, 95, 61, 0.36);
        border-radius: 18px;
        overflow: hidden;
    }

    .nav-link {
        height: 54px;
        justify-content: space-between;
        padding: 0 16px;
    }

    .nav-link::after {
        left: 16px;
        right: auto;
        width: 42px;
        bottom: 8px;
    }

    .nav-dropdown {
        position: static;
    }

    .dropdown-panel {
        position: static;
        min-width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border-radius: 0;
    }

    .nav-dropdown.open .dropdown-panel,
    .nav-dropdown:hover .dropdown-panel {
        display: block;
    }

    .header-action {
        order: 5;
        margin-left: 0;
    }

    .btn-login {
        width: 100%;
    }

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

    .hero-content,
    .coming-card,
    .auth-card,
    .profile-card {
        padding: 30px;
    }

    .hero-visual {
        min-height: 260px;
    }

    .profile-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 14px;
    }

    .hero,
    .page-section,
    .auth-section,
    .profile-section {
        margin: 22px auto;
        padding: 0 14px;
    }

    .hero-content,
    .coming-card,
    .auth-card,
    .profile-card {
        padding: 24px;
    }

    .hero-actions a,
    .profile-actions a {
        width: 100%;
    }
}

/* Banner utama full width dari database */
.home-banner {
    position: relative;
    width: 100vw;
    min-height: clamp(360px, 58vh, 640px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.home-banner-slider,
.home-banner-slide {
    position: absolute;
    inset: 0;
}

.home-banner-slide {
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1s ease, transform 6s ease;
    pointer-events: none;
}

.home-banner-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.home-banner-slide.no-image {
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 212, 0, 0.55), transparent 32%),
        linear-gradient(135deg, var(--green-dark), var(--green));
}

.home-banner-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 95, 61, 0.88) 0%, rgba(0, 127, 79, 0.62) 44%, rgba(0, 0, 0, 0.22) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.38) 100%);
}

.home-banner-content {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 92px 22px 82px;
    color: var(--white);
}

.home-banner-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    color: var(--yellow);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-banner h1 {
    max-width: 820px;
    margin: 18px 0 14px;
    color: var(--white);
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -1.5px;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.home-banner p {
    max-width: 620px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.75;
}

.home-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-banner .btn-primary {
    background: var(--yellow);
    color: var(--green-dark);
    box-shadow: 0 14px 30px rgba(255, 212, 0, 0.22);
}

.home-banner .btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(10px);
}

.home-banner-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.home-banner-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.home-banner-dot.is-active {
    width: 34px;
    background: var(--yellow);
}

@media (max-width: 820px) {
    .home-banner {
        min-height: 520px;
    }

    .home-banner-content {
        padding: 72px 18px 78px;
    }

    .home-banner-slide::before {
        background:
            linear-gradient(90deg, rgba(0, 95, 61, 0.90) 0%, rgba(0, 127, 79, 0.74) 60%, rgba(0, 0, 0, 0.28) 100%),
            linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.44) 100%);
    }
}

@media (max-width: 480px) {
    .home-banner {
        min-height: 500px;
    }

    .home-banner-content {
        padding: 62px 14px 76px;
    }

    .home-banner-actions a {
        width: 100%;
    }
}


/* Running text artikel terbaru */
.home-running-news {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--green-dark);
    color: var(--white);
    overflow: hidden;
}

.running-news-inner {
    width: min(1180px, 100%);
    min-height: 56px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.running-news-label {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.running-news-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.running-news-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: runningNews 32s linear infinite;
    will-change: transform;
}

.running-news-group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 34px;
    padding-right: 34px;
}

.running-news-track a {
    position: relative;
    color: rgba(255, 255, 255, 0.96);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.running-news-track a::after {
    content: '';
    position: absolute;
    right: -19px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--yellow);
    transform: translateY(-50%);
}

.home-running-news:hover .running-news-track {
    animation-play-state: paused;
}

.running-news-empty {
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    font-weight: 600;
}

@keyframes runningNews {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Profil PPM Al-Awwabin di beranda */
.home-ppm-section {
    max-width: 1180px;
    margin: 34px auto;
    padding: 0 22px;
}

.home-ppm-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: center;
    padding: 30px;
    
   
   
    overflow: hidden;
}

.home-ppm-content {
    padding: 12px 8px;
}

.home-ppm-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.home-ppm-content h2 {
    margin: 16px 0 14px;
    color: var(--green-dark);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.home-ppm-content p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.home-ppm-content p:last-child {
    margin-bottom: 0;
}

.home-ppm-image {
    min-height: 360px;
    border-radius: 24px;
    overflow: hidden;
    
}

.home-ppm-image img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    display: block;
    object-fit: cover;
}

@media (max-width: 900px) {
    .home-ppm-card {
        grid-template-columns: 1fr;
    }

    .home-ppm-image,
    .home-ppm-image img {
        min-height: 300px;
    }
}

@media (max-width: 620px) {
    .running-news-inner {
        min-height: auto;
        padding: 12px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .running-news-viewport {
        width: 100%;
    }

    .running-news-track {
        animation-duration: 24s;
    }

    .running-news-group {
        gap: 28px;
        padding-right: 28px;
    }

    .running-news-track a::after {
        right: -16px;
    }

    .home-ppm-section {
        margin: 24px auto;
        padding: 0 14px;
    }

    .home-ppm-card {
        padding: 22px;
    }

    .home-ppm-image,
    .home-ppm-image img {
        min-height: 240px;
    }
}


/* Halaman artikel dan detail artikel */
.artikel-section,
.artikel-detail-section {
    max-width: 1180px;
    margin: 34px auto;
    padding: 0 22px;
}

.artikel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.artikel-head,
.calendar-card,
.artikel-card,
.empty-card,
.artikel-detail-card,
.comment-card {
    
    
}

.artikel-head {
    padding: 34px;
    margin-bottom: 18px;
}

.artikel-head h1 {
    margin: 16px 0 10px;
    color: var(--green-dark);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.artikel-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.artikel-reset {
    margin-top: 18px;
}

.artikel-list {
    display: grid;
    gap: 18px;
}

.artikel-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(0, 95, 61, 0.08);
}

.pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    background: var(--green);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.pagination-button:hover {
    transform: translateY(-1px);
    background: var(--green-dark);
}

.pagination-button.is-disabled {
    background: #edf3f0;
    color: #9aaba3;
    cursor: not-allowed;
    box-shadow: none;
}

.pagination-info {
    min-width: 120px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.pagination-info strong {
    color: var(--green-dark);
}

.artikel-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
}

.artikel-image {
    min-height: 190px;
    background: var(--green-soft);
}

.artikel-image img,
.artikel-detail-image,
.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artikel-placeholder {
    height: 100%;
    min-height: 190px;
    display: grid;
    place-items: center;
    font-size: 46px;
    color: var(--green);
}

.artikel-body {
    padding: 24px;
}

.artikel-meta,
.artikel-detail-meta,
.comment-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.artikel-meta span:first-child,
.artikel-detail-meta span:first-child {
    color: var(--green-dark);
    background: var(--green-soft);
    border-radius: 999px;
    padding: 5px 10px;
}

.artikel-body h2 {
    margin: 12px 0 8px;
    color: var(--green-dark);
    font-size: 24px;
    line-height: 1.25;
}

.artikel-body p {
    margin: 0 0 15px;
    color: var(--muted);
    line-height: 1.75;
}

.artikel-readmore,
.back-link {
    display: inline-flex;
    color: var(--green);
    font-weight: 800;
}

.calendar-card {
    position: sticky;
    top: 98px;
    padding: 20px;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-head strong {
    color: var(--green-dark);
    font-size: 18px;
}

.calendar-head a {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 24px;
    font-weight: 800;
}

.calendar-week,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
}

.calendar-week span {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.calendar-empty,
.calendar-day {
    min-height: 42px;
    border-radius: 13px;
}

.calendar-day {
    position: relative;
    display: grid;
    place-items: center;
    background: #fbfffd;
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 800;
    transition: 0.2s ease;
}

.calendar-day small {
    position: absolute;
    right: 5px;
    bottom: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--green-dark);
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

.calendar-day:hover,
.calendar-day.has-article {
    background: var(--green-soft);
    border-color: rgba(0, 127, 79, 0.28);
    color: var(--green-dark);
}

.calendar-day.is-selected {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.calendar-day.is-today {
    box-shadow: inset 0 0 0 2px var(--yellow);
}

.calendar-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.empty-card {
    text-align: center;
    padding: 42px 24px;
}

.empty-card h2 {
    margin: 12px 0 8px;
    color: var(--green-dark);
}

.empty-card p {
    margin: 0;
    color: var(--muted);
}

.artikel-detail-section {
    max-width: 920px;
}

.artikel-detail-card {
    padding: 34px;
}

.artikel-detail-card h1 {
    margin: 14px 0 18px;
    color: var(--green-dark);
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
}

.artikel-detail-image {
    display: block;
    max-height: 430px;
    border-radius: 20px;
    margin: 22px 0;
}

.artikel-content {
    color: var(--text);
    font-size: 16px;
    line-height: 1.85;
}

.artikel-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.comment-card {
    margin-top: 22px;
    padding: 30px;
}

.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.comment-head h2 {
    margin: 12px 0 0;
    color: var(--green-dark);
}

.comment-form {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfffd;
    margin-bottom: 22px;
}

.comment-form label {
    color: var(--green-dark);
    font-weight: 800;
}

.comment-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(0, 127, 79, 0.10);
}

.login-comment-box {
    padding: 18px;
    border-radius: 18px;
    background: var(--green-soft);
    border: 1px solid #cfecdd;
    margin-bottom: 22px;
}

.login-comment-box strong {
    color: var(--green-dark);
}

.login-comment-box p {
    margin: 8px 0 14px;
    color: var(--muted);
}

.comment-list {
    display: grid;
    gap: 14px;
}

.comment-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
  
}

.comment-avatar {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--green);
    color: var(--yellow);
    font-weight: 800;
}

.comment-body p,
.no-comment {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .artikel-layout {
        grid-template-columns: 1fr;
    }

    .calendar-card {
        position: static;
    }
}

@media (max-width: 620px) {
    .artikel-section,
    .artikel-detail-section {
        margin: 22px auto;
        padding: 0 14px;
    }

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

    .artikel-pagination {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px;
    }

    .pagination-button {
        flex: 1 1 130px;
    }

    .pagination-info {
        order: -1;
        flex: 0 0 100%;
    }

    .artikel-image {
        min-height: 220px;
    }

    .artikel-head,
    .artikel-detail-card,
    .comment-card {
        padding: 24px;
    }

    .comment-item {
        grid-template-columns: 1fr;
    }
}


/* Kenapa memilih PPM Al-Awwabin */
.home-why-ppm-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 22px;
    padding: 70px 22px 74px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 212, 0, 0.22), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    color: var(--white);
    overflow: hidden;
}

.home-why-ppm-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.home-why-ppm-head {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.home-why-ppm-head h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.home-why-ppm-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.75;
}

.home-why-ppm-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.home-why-ppm-card {
    min-height: 320px;
    padding: 30px 20px 28px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 22px 45px rgba(0, 47, 30, 0.16);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-why-ppm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 54px rgba(0, 47, 30, 0.22);
}

.home-why-ppm-icon {
    width: 92px;
    height: 92px;
    margin-bottom: 22px;
  
    display: grid;
    place-items: center;
    overflow: hidden;
}

.home-why-ppm-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.home-why-ppm-card h3 {
    margin: 0 0 12px;
    color: var(--green-dark);
    font-size: 18px;
    line-height: 1.45;
}

.home-why-ppm-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 1120px) {
    .home-why-ppm-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-why-ppm-section {
        padding: 54px 16px 58px;
    }

    .home-why-ppm-head {
        margin-bottom: 28px;
    }

    .home-why-ppm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .home-why-ppm-card {
        min-height: auto;
        padding: 24px 16px;
    }
}

@media (max-width: 520px) {
    .home-why-ppm-grid {
        grid-template-columns: 1fr;
    }

    .home-why-ppm-icon {
        width: 84px;
        height: 84px;
    }

    .home-why-ppm-icon img {
        width: 66px;
        height: 66px;
    }
}

/* Halaman visi dan misi */
.visi-misi-section {
    max-width: 1120px;
}

.visi-misi-hero {
    position: relative;
    padding: 44px;
    margin-bottom: 24px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 90% 12%, rgba(255, 212, 0, 0.34), transparent 26%),
        linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    box-shadow: var(--shadow);
    overflow: hidden;
    color: var(--white);
}

.visi-misi-hero::after {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.visi-misi-hero .badge {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--yellow);
}

.visi-misi-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 18px 0 12px;
    color: var(--white);
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.visi-misi-hero p {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.8;
}

.visi-misi-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
    align-items: stretch;
}

.visi-misi-card {
    position: relative;
    display: flex;
    gap: 20px;
    padding: 32px;


}

.visi-misi-icon {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: var(--green-soft);
    border: 1px solid #cfecdd;
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 34px;
}

.visi-misi-content {
    min-width: 0;
}

.visi-misi-label {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.visi-misi-card h2 {
    margin: 16px 0 0;
    color: var(--green-dark);
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.35;
    letter-spacing: -0.4px;
}

.misi-list {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.misi-list li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 15px;
    border-radius: 18px;
    background: #fbfffd;
    border: 1px solid var(--line);
}

.misi-list span {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--green);
    color: var(--yellow);
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
}

.misi-list p {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 600;
}

@media (max-width: 900px) {
    .visi-misi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .visi-misi-hero,
    .visi-misi-card {
        padding: 24px;
    }

    .visi-misi-card {
        flex-direction: column;
    }

    .visi-misi-icon {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        font-size: 30px;
    }

    .misi-list li {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 13px;
    }

    .misi-list span {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 13px;
    }
}


/* Dropdown Tentang Kami bisa diklik ke halaman tentang.php */
.nav-dropdown {
    display: flex;
    align-items: stretch;
}

.nav-about-link {
    padding-right: 38px;
}

.dropdown-icon-button {
    position: absolute;
    top: 0;
    right: 8px;
    width: 30px;
    height: 74px;
    border: 0;
    background: transparent;
    color: var(--yellow);
    cursor: pointer;
    font-family: inherit;
    display: grid;
    place-items: center;
    padding: 0;
}

.dropdown-icon-button .chevron {
    margin-left: 0;
}

/* Halaman Tentang Kami */
.about-section {
    max-width: 1120px;
}

.about-hero-card,
.about-card {
   
}

.about-hero-card {
    position: relative;
    padding: 44px;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 212, 0, 0.30), transparent 26%),
        linear-gradient(135deg, var(--green-dark), var(--green));
    color: var(--white);
}

.about-hero-card::after {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.about-hero-card .badge {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--yellow);
}

.about-hero-card h1,
.about-hero-card p {
    position: relative;
    z-index: 1;
}

.about-hero-card h1 {
    max-width: 780px;
    margin: 18px 0 12px;
    color: var(--white);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.about-hero-card p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    margin-top: 24px;
}

.about-card {
    padding: 32px;
}

.about-icon {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    background: var(--green-soft);
    border: 1px solid #cfecdd;
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 36px;
    margin-bottom: 18px;
}

.about-card h2 {
    margin: 0 0 12px;
    color: var(--green-dark);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.25;
}

.about-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.about-info-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.about-info-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: #fbfffd;
    border: 1px solid var(--line);
}

.about-info-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.about-info-item strong,
.about-info-item a {
    color: var(--green-dark);
    font-size: 16px;
    line-height: 1.6;
    word-break: break-word;
}

.about-social-card {
    margin-top: 24px;
}

.about-social-head {
    max-width: 720px;
    margin-bottom: 22px;
}

.about-social-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.about-social-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: #fbfffd;
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-social-item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 127, 79, 0.30);
    box-shadow: 0 16px 32px rgba(0, 95, 61, 0.10);
}

.about-social-item > span {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--green);
    color: var(--yellow);
    display: grid;
    place-items: center;
    font-size: 22px;
}

.about-social-item strong,
.about-social-item small {
    display: block;
}

.about-social-item strong {
    color: var(--green-dark);
    font-size: 15px;
    line-height: 1.3;
}

.about-social-item small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}

@media (max-width: 900px) {
    .about-grid,
    .about-social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nav-dropdown {
        display: block;
    }

    .nav-about-link {
        padding-right: 54px;
    }

    .dropdown-icon-button {
        height: 54px;
        right: 10px;
        width: 44px;
    }
}

@media (max-width: 620px) {
    .about-hero-card,
    .about-card {
        padding: 24px;
    }

    .about-grid,
    .about-social-grid {
        grid-template-columns: 1fr;
    }

    .about-social-item {
        padding: 16px;
    }
}

/* Halaman susunan pengurus */
.organization-section {
    max-width: 1180px;
}

.organization-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 32px;
    align-items: center;
    padding: 38px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(223, 232, 227, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.organization-content h1 {
    margin: 18px 0 18px;
    color: var(--green-dark);
    font-size: clamp(30px, 4.8vw, 54px);
    line-height: 1.08;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.organization-content p {
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.organization-content p:last-child {
    margin-bottom: 0;
}

.organization-closing {
    margin-top: 22px !important;
    padding: 18px 20px;
    border-left: 5px solid var(--yellow);
    border-radius: 18px;
    background: var(--green-soft);
    color: var(--green-dark) !important;
    font-weight: 800;
}

.organization-image-wrap {
    position: relative;
    min-height: 430px;

    display: grid;
    place-items: center;
    padding: 18px;
}

.organization-image-wrap img {
    width: 100%;
    height: 100%;
    max-height: 560px;
    display: block;
    object-fit: contain;
}

@media (max-width: 900px) {
    .organization-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .organization-image-wrap {
        min-height: 340px;
    }
}

@media (max-width: 620px) {
    .organization-card {
        padding: 24px;
        gap: 24px;
    }

    .organization-content h1 {
        font-size: 29px;
    }

    .organization-content p {
        font-size: 15px;
        line-height: 1.75;
    }

    .organization-image-wrap {
        min-height: 260px;
        border-radius: 20px;
        padding: 12px;
    }
}

/* Halaman Sejarah Pondok Pesantren Mahasiswa Al-Awwabin */
.history-section {
    max-width: 1120px;
}

.history-hero-card {
    position: relative;
    padding: 44px;
    margin-bottom: 24px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 88% 14%, rgba(255, 212, 0, 0.32), transparent 27%),
        linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.history-hero-card::after {
    content: '';
    position: absolute;
    right: -72px;
    bottom: -92px;
    width: 250px;
    height: 250px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.history-hero-card .badge {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--yellow);
}

.history-hero-card h1,
.history-hero-card p {
    position: relative;
    z-index: 1;
}

.history-hero-card h1 {
    max-width: 820px;
    margin: 18px 0 12px;
    color: var(--white);
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.history-hero-card p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.8;
}

.history-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 24px;
    padding: 38px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(223, 232, 227, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.history-icon {
    width: 92px;
    height: 92px;
   
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 44px;
}

.history-content h2 {
    margin: 0 0 20px;
    color: var(--green-dark);
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.7px;
}

.history-content p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
    text-align: justify;
}

.history-content p:last-child {
    margin-bottom: 0;
}

.history-closing {
    margin-top: 22px !important;
    padding: 20px 22px;
    border-left: 5px solid var(--yellow);
    border-radius: 18px;
    background: var(--green-soft);
    color: var(--green-dark) !important;
    font-weight: 800;
    text-align: left !important;
}

@media (max-width: 760px) {
    .history-hero-card,
    .history-card {
        padding: 26px;
    }

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

    .history-icon {
        width: 78px;
        height: 78px;
        border-radius: 24px;
        font-size: 36px;
    }

    .history-content p {
        text-align: left;
        font-size: 15px;
        line-height: 1.8;
    }
}

/* Lokasi PPM Al-Awwabin di bagian paling bawah beranda */
.home-location-section {
    max-width: 1180px;
    margin: 42px auto 0;
    padding: 0 22px;
}

.home-location-inner {
    padding: 34px;
   
    overflow: hidden;
}

.home-location-head {
    max-width: 760px;
    margin-bottom: 24px;
}

.home-location-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.home-location-head h2 {
    margin: 16px 0 10px;
    color: var(--green-dark);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
}

.home-location-head p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.home-location-map {
    position: relative;
    width: 100%;
    min-height: 450px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--green-soft);
    border: 1px solid var(--line);
}

.home-location-map iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

@media (max-width: 620px) {
    .home-location-section {
        margin: 28px auto 0;
        padding: 0 14px;
    }

    .home-location-inner {
        padding: 24px;
    }

    .home-location-map,
    .home-location-map iframe {
        min-height: 340px;
        height: 340px;
    }
}

/* Footer rapi dan simpel */
.site-footer {
    margin-top: 54px;
    background:
        radial-gradient(circle at top left, rgba(255, 212, 0, 0.15), transparent 28%),
        linear-gradient(135deg, var(--green-dark), #00482f);
    color: var(--white);
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 22px;
    display: grid;
    grid-template-columns: 1.1fr 1.35fr 0.9fr 0.95fr;
    gap: 26px;
    align-items: start;
}

.footer-brand h3,
.footer-contact h4,
.footer-social h4,
.footer-links h4 {
    margin: 0 0 12px;
    color: var(--yellow);
    font-size: 17px;
    line-height: 1.4;
}

.footer-brand p {
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact li {
    display: grid;
    gap: 4px;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.footer-contact a,
.footer-social a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.7;
}

.footer-contact a:hover,
.footer-social a:hover,
.footer-links a:hover {
    color: var(--yellow);
}

.footer-social,
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-social a,
.footer-links a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
}

.footer-social strong {
    font-weight: 800;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    padding: 16px 22px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .footer-grid {
        grid-template-columns: 1fr;
        padding: 30px 16px;
        gap: 22px;
    }

    .footer-brand p {
        max-width: none;
    }
}

/* Pagination komentar, maksimal 10 komentar per halaman */
.comment-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.comment-pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    background: var(--green);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.comment-pagination-button:hover {
    transform: translateY(-1px);
    background: var(--green-dark);
}

.comment-pagination-button.is-disabled {
    background: #edf3f0;
    color: #9aaba3;
    cursor: not-allowed;
    pointer-events: none;
}

.comment-pagination-info {
    min-width: 110px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.comment-pagination-info strong {
    color: var(--green-dark);
}

@media (max-width: 620px) {
    .comment-pagination {
        flex-wrap: wrap;
        gap: 10px;
    }

    .comment-pagination-info {
        order: -1;
        flex: 0 0 100%;
    }

    .comment-pagination-button {
        flex: 1 1 130px;
    }
}

/* Halaman pendaftaran mahasiswa */
.registration-section {
    width: min(1320px, 100%);
    margin: 36px auto 58px;
    padding: 0 22px;
}

.registration-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1.42fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(0, 95, 61, 0.12);
    border-radius: 30px;
    background: var(--white);
    box-shadow: 0 26px 70px rgba(0, 95, 61, 0.13);
}

.registration-intro {
    position: relative;
    min-height: 100%;
    padding: 44px 34px;
    overflow: hidden;
    isolation: isolate;
    color: var(--white);
    background:
        radial-gradient(circle at 14% 7%, rgba(255, 212, 0, 0.27), transparent 29%),
        linear-gradient(155deg, #004b31 0%, #007f4f 72%, #0b9461 100%);
}

.registration-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, #000 20%, transparent 94%);
}

.registration-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.registration-orb-one {
    top: -76px;
    right: -58px;
    width: 220px;
    height: 220px;
    border: 42px solid rgba(255, 212, 0, 0.10);
}

.registration-orb-two {
    right: -120px;
    bottom: -120px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 0 0 46px rgba(255, 255, 255, 0.04),
        0 0 0 92px rgba(255, 255, 255, 0.025);
}

.registration-intro-content {
    position: sticky;
    top: 102px;
}

.registration-year-badge,
.registration-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.55px;
    text-transform: uppercase;
}

.registration-year-badge {
    border: 1px solid rgba(255, 255, 255, 0.23);
    background: rgba(255, 255, 255, 0.10);
    color: var(--yellow);
    backdrop-filter: blur(10px);
}

.registration-year-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 5px rgba(255, 212, 0, 0.13);
}

.registration-intro h1 {
    margin: 20px 0 14px;
    color: var(--white);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -1.5px;
}

.registration-intro p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.75;
}

.registration-benefits {
    display: grid;
    gap: 11px;
    margin-top: 30px;
}

.registration-benefit {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(9px);
}

.benefit-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--yellow);
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 900;
}

.registration-benefit strong,
.registration-benefit small {
    display: block;
}

.registration-benefit strong {
    color: var(--white);
    font-size: 13px;
}

.registration-benefit small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    line-height: 1.45;
}

.registration-steps {
    margin-top: 30px;
    padding-top: 23px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.registration-steps-title {
    display: block;
    margin-bottom: 13px;
    color: rgba(255, 255, 255, 0.57);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.75px;
    text-transform: uppercase;
}

.registration-steps ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.registration-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 700;
}

.registration-steps li span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 50%;
    color: var(--yellow);
    background: rgba(255, 255, 255, 0.07);
    font-size: 10px;
}

.registration-card {
    min-width: 0;
    padding: 42px 44px 44px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 212, 0, 0.10), transparent 20%),
        #ffffff;
}

.registration-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 27px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.registration-badge {
    background: var(--green-soft);
    color: var(--green-dark);
}

.registration-head h2 {
    margin: 11px 0 6px;
    color: var(--green-dark);
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.7px;
}

.registration-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.required-note {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 10px;
    background: #fff4f2;
    color: #8b3126;
    font-size: 10px;
    font-weight: 800;
}

.required-note b,
.registration-form label span {
    color: #d92d20;
}

.registration-error {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 24px;
    padding: 15px;
}

.registration-error .error-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #d92d20;
    color: var(--white);
    font-weight: 900;
}

.registration-error strong {
    display: block;
    margin-bottom: 6px;
}

.registration-error ul {
    margin: 0;
    padding-left: 18px;
}

.registration-form {
    margin: 0;
}

.form-section-block {
    margin-bottom: 22px;
    padding: 23px;
    border: 1px solid #e2ebe6;
    border-radius: 21px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfefc 100%);
    box-shadow: 0 10px 28px rgba(0, 95, 61, 0.04);
}

.form-section-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.form-section-number {
    flex: 0 0 auto;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--green), var(--green-dark));
    color: var(--yellow);
    box-shadow: 0 9px 20px rgba(0, 127, 79, 0.17);
    font-size: 12px;
    font-weight: 900;
}

.form-section-head h3 {
    margin: 0;
    color: var(--green-dark);
    font-size: 18px;
}

.form-section-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.registration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.registration-full {
    grid-column: 1 / -1;
}

.registration-form .form-group {
    min-width: 0;
    margin: 0;
}

.registration-form .form-group > label:not(.file-upload-box) {
    display: block;
    margin-bottom: 7px;
    color: #244438;
    font-size: 12.5px;
    font-weight: 800;
}

.registration-form .form-group label em {
    margin-left: 5px;
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
}

.registration-form .form-group input,
.registration-form .form-group textarea,
.registration-form .form-group select,
.nested-grid input {
    width: 100%;
    border: 1px solid #d7e3dc;
    border-radius: 12px;
    outline: none;
    background: var(--white);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.registration-form .form-group input,
.registration-form .form-group select,
.nested-grid input {
    height: 48px;
    padding: 0 13px;
}

.registration-form .form-group select {
    padding-right: 38px;
    cursor: pointer;
}

.registration-form .form-group textarea {
    min-height: 108px;
    padding: 13px;
    resize: vertical;
    line-height: 1.65;
}

.registration-form .form-group input::placeholder,
.registration-form .form-group textarea::placeholder,
.nested-grid input::placeholder {
    color: #98a9a1;
}

.registration-form .form-group input:hover,
.registration-form .form-group textarea:hover,
.registration-form .form-group select:hover,
.nested-grid input:hover {
    border-color: #b7ccbf;
}

.registration-form .form-group input:focus,
.registration-form .form-group textarea:focus,
.registration-form .form-group select:focus,
.nested-grid input:focus {
    border-color: var(--green);
    background: #fcfffd;
    box-shadow: 0 0 0 4px rgba(0, 127, 79, 0.09);
}

.registration-form input[type='date'] {
    color-scheme: light;
}

.registration-form input[type='checkbox'] {
    accent-color: var(--green);
}

.form-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.5;
}

.nested-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.document-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 19px;
}

.document-checklist div {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 10px 11px;
    border: 1px solid #e1ebe5;
    border-radius: 12px;
    background: #f8fcfa;
    color: #365248;
    font-size: 11px;
    line-height: 1.45;
}

.document-checklist div span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 900;
}

.upload-grid {
    margin-top: 4px;
}

.file-upload-box {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    min-height: 91px;
    padding: 15px;
    border: 1.5px dashed #a9c8b8;
    border-radius: 16px;
    background: #f7fcf9;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.file-upload-box:hover {
    border-color: var(--green);
    background: var(--green-soft);
    transform: translateY(-1px);
}

.file-upload-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--green);
    color: var(--yellow) !important;
    box-shadow: 0 9px 20px rgba(0, 127, 79, 0.16);
    font-size: 20px;
    font-weight: 900;
}

.file-upload-copy {
    min-width: 0;
}

.file-upload-copy strong,
.file-upload-copy small {
    display: block;
}

.file-upload-copy strong {
    color: var(--green-dark);
    font-size: 12.5px;
}

.file-upload-copy small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-upload-button {
    padding: 8px 11px;
    border-radius: 9px;
    background: var(--white);
    color: var(--green-dark) !important;
    box-shadow: 0 4px 13px rgba(0, 95, 61, 0.08);
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}

.file-input-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.has-file .file-upload-box {
    border-style: solid;
    border-color: var(--green);
    background: #effaf4;
}

.has-file .file-upload-icon {
    background: var(--yellow);
    color: var(--green-dark) !important;
}

.upload-requirements {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.upload-requirements span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f0f5f2;
    color: var(--muted) !important;
    font-size: 9.5px;
    font-weight: 700;
}

.upload-requirements span::before {
    content: '✓';
    color: var(--green);
    font-weight: 900;
}

.registration-submit-area {
    padding: 20px;
    border: 1px solid #d8e7df;
    border-radius: 19px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 212, 0, 0.16), transparent 27%),
        linear-gradient(135deg, #f3fbf7, #fbfefc);
}

.declaration-check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-bottom: 14px;
    color: #385348;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.55;
    cursor: pointer;
}

.declaration-check input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
}

.registration-submit {
    width: 100%;
    min-height: 54px;
    justify-content: space-between;
    padding: 0 16px 0 21px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: 0 13px 27px rgba(0, 127, 79, 0.21);
    font-size: 14px;
}

.registration-submit:hover {
    box-shadow: 0 17px 33px rgba(0, 127, 79, 0.27);
}

.submit-arrow {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--yellow);
    color: var(--green-dark);
    font-size: 19px;
    font-weight: 900;
}

.registration-submit-area > small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 9.8px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 1080px) {
    .registration-shell {
        grid-template-columns: minmax(255px, 0.65fr) minmax(0, 1.35fr);
    }

    .registration-intro {
        padding: 38px 27px;
    }

    .registration-card {
        padding: 36px 30px;
    }
}

@media (max-width: 900px) {
    .registration-section {
        margin-top: 27px;
    }

    .registration-shell {
        grid-template-columns: 1fr;
        border-radius: 25px;
    }

    .registration-intro {
        min-height: auto;
        padding: 34px 30px;
    }

    .registration-intro-content {
        position: relative;
        top: auto;
    }

    .registration-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .registration-benefit {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .registration-steps {
        display: none;
    }
}

@media (max-width: 700px) {
    .registration-section {
        margin: 18px auto 34px;
        padding: 0 12px;
    }

    .registration-shell {
        border-radius: 21px;
    }

    .registration-intro,
    .registration-card {
        padding: 27px 19px;
    }

    .registration-intro h1 {
        font-size: 34px;
    }

    .registration-benefits {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .registration-benefit {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .registration-head {
        display: block;
    }

    .required-note {
        display: inline-block;
        margin-top: 13px;
    }

    .form-section-block {
        padding: 18px 15px;
        border-radius: 17px;
    }

    .registration-grid,
    .nested-grid,
    .document-checklist {
        grid-template-columns: 1fr;
    }

    .registration-full {
        grid-column: auto;
    }
}

@media (max-width: 450px) {
    .registration-intro,
    .registration-card {
        padding: 23px 15px;
    }

    .form-section-head {
        align-items: flex-start;
    }

    .form-section-number {
        width: 41px;
        height: 41px;
    }

    .file-upload-box {
        grid-template-columns: 44px minmax(0, 1fr);
        min-height: 84px;
        padding: 13px;
    }

    .file-upload-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .file-upload-button {
        display: none;
    }
}
