/* Custom beranda layout inspired by mockup */
:root {
    --natra-primary: #007faf;
    --natra-secondary: #09b26b;
    --natra-deep: #0b3d5d;
    --natra-light: #f5f7fb;
    --natra-card: #ffffff;
    --natra-shadow: 0 14px 32px rgba(0, 52, 89, 0.2);
}

body.natra-body {
    background: #e8edf3;
}

.natra-shell {
    background: var(--natra-light);
    border-radius: 16px;
    padding: 12px 14px 24px;
    box-shadow: 0 18px 42px rgba(0, 52, 89, 0.08);
    margin-top: 12px;
}

.natra-shell #header {
    position: sticky;
    top: 0;
    z-index: 1400;
}

.site-topbar {
    background: linear-gradient(120deg, #e8f2f7 0%, #ffffff 60%);
    border-radius: 14px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
    position: sticky;
    top: 0;
    z-index: 1200;
}

.site-brand {
    display: grid;
    grid-template-columns: 64px auto;
    gap: 12px;
    align-items: center;
}

.site-brand .brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4cd4ff, #e4f7ff 45%, #c6e6ff);
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid #e9f3fb;
}

.site-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-text .brand-title {
    font-weight: 700;
    color: #0f2e45;
    font-size: 18px;
}

.brand-text .brand-sub {
    font-size: 12px;
    color: #4f6373;
    line-height: 1.4;
}

.top-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-search input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #d8e3ed;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.top-search button {
    background: var(--natra-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--natra-shadow);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-actions .action-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e2ecf3;
    background: #fff;
    color: #2e5773;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.top-actions .live-clock {
    background: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e2ecf3;
    color: #0f2e45;
    line-height: 1.2;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.natra-nav {
    background: linear-gradient(135deg, #0e5675, #0b8b8b);
    border-radius: 12px;
    padding: 6px 14px;
    box-shadow: 0 10px 24px rgba(6, 69, 97, 0.2);
}

.natra-nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    list-style: none;
}

.natra-nav li a {
    color: #e9f7ff !important;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.natra-nav li a:hover,
.natra-nav li.active > a {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    transform: translateY(-1px);
}

.home-modern {
    background: var(--natra-light);
    padding: 8px;
}

.hero-section {
    margin-top: 4px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #0681b6, #02b26f 65%, #11bf63);
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 70, 104, 0.28);
}

.hero-card:before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.12), transparent 60%);
    left: -60px;
    top: -40px;
    filter: blur(2px);
}

.hero-left {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 14px;
    align-content: center;
}

.hero-logo {
    width: 110px;
    height: 110px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.08);
}

.hero-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.hero-title {
    font-size: 34px;
    font-weight: 800;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-sub {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

.hero-cta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.hero-cta a {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.hero-right {
    position: relative;
    z-index: 1;
}

.hero-carousel,
.hero-slide {
    height: 100%;
}

.hero-slide {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
    border: 3px solid rgba(255, 255, 255, 0.18);
}

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

.hero-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-weight: 700;
}

.cta-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.cta-chip {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--natra-shadow);
    border: 1px solid #d8e3ed;
}

.cta-chip i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f5fafd, #e6f7ff);
    display: grid;
    place-items: center;
    color: var(--natra-primary);
    font-size: 16px;
}

.content-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 280px 1fr 74px;
    gap: 16px;
    align-items: start;
}

.panel {
    background: var(--natra-card);
    border-radius: 14px;
    box-shadow: var(--natra-shadow);
    border: 1px solid #e1eaf1;
}

.panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e7edf3;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0d3a57;
    text-transform: uppercase;
}

.staff-list {
    padding: 14px;
    display: grid;
    gap: 12px;
}

.staff-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 180px;
    background: #0b3d5d;
    color: #fff;
    box-shadow: 0 12px 26px rgba(3, 43, 71, 0.25);
    display: grid;
}

.staff-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.92);
}

.staff-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
}

.staff-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    color: #fff;
}

.staff-role {
    background: rgba(0, 0, 0, 0.45);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    display: inline-block;
    margin-top: 6px;
}

.highlight-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 12px;
    margin-bottom: 14px;
}

.event-card {
    background: #fdfdfd;
    border-radius: 14px;
    box-shadow: var(--natra-shadow);
    padding: 18px;
    border: 1px solid #e1e9f0;
}

.event-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 800;
    color: #0f3c5a;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.pill {
    text-align: center;
    padding: 12px 10px;
    border-radius: 12px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, #0b84ad, #0da37b);
    box-shadow: 0 10px 24px rgba(6, 69, 97, 0.22);
}

.pill span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.92;
}

.pray-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #e1e9f0;
    box-shadow: var(--natra-shadow);
}

.headline-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e1e9f0;
    box-shadow: var(--natra-shadow);
    overflow: hidden;
}

.headline-body {
    display: grid;
    grid-template-columns: 240px 1fr 160px;
    gap: 12px;
    align-items: stretch;
}

.headline-tag {
    background: #0a7296;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 34px;
    font-weight: 800;
}

.headline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 14px 14px;
}

.headline-info {
    padding: 16px;
    display: grid;
    gap: 6px;
    align-content: center;
}

.headline-date {
    font-weight: 800;
    color: #0a7296;
}

.headline-info h3 {
    margin: 0;
    font-weight: 800;
    color: #0f2f48;
}

.headline-info p {
    margin: 0;
    color: #4c5d6a;
}

.article-board {
    margin-top: 14px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e1e9f0;
    box-shadow: var(--natra-shadow);
}

.article-board .board-head {
    padding: 14px 18px;
    border-bottom: 1px solid #e7edf3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.board-actions {
    display: flex;
    gap: 8px;
}

.board-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0b84ad, #0da37b);
    color: #fff;
    font-weight: 700;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    padding: 14px;
}

.article-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 220px;
    background: #0b3d5d;
    color: #fff;
    box-shadow: 0 16px 34px rgba(5, 47, 74, 0.25);
}

.article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
}

.article-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.article-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px;
}

.article-meta h4 {
    margin: 0 0 6px;
    font-weight: 800;
}

.article-meta .meta-line {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    gap: 12px;
    align-items: center;
}

.quick-nav {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.quick-nav a {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #0d9d9f;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: var(--natra-shadow);
    border: 2px solid #0b748a;
    font-size: 18px;
}

.gallery-panel {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 280px 1fr 1fr;
    gap: 12px;
}

.gallery-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--natra-shadow);
    background: #0c4464;
    color: #fff;
    position: relative;
    min-height: 220px;
}

.gallery-card .body {
    padding: 20px;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-card .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
    font-weight: 700;
}

.stats-section {
    margin-top: 18px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e1e9f0;
    padding: 16px;
    box-shadow: var(--natra-shadow);
}

.stat-rings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.stat-ring {
    background: linear-gradient(145deg, #f4fbff, #e8f5ff);
    border: 1px solid #d6e5f1;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(0, 52, 89, 0.14);
}

.stat-ring h3 {
    margin: 6px 0 0;
    font-weight: 800;
    color: #0e3c5c;
}

.stat-ring .value {
    font-size: 32px;
    font-weight: 900;
    color: #e8b000;
}

.link-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.link-card {
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #0d9d9f, #0b3d5d);
    color: #fff;
    box-shadow: var(--natra-shadow);
}

.link-card h4 {
    margin: 0 0 6px;
    font-weight: 800;
}

.pembangunan-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.pembangunan-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e1e9f0;
    box-shadow: var(--natra-shadow);
    overflow: hidden;
    min-height: 160px;
}

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

.pembangunan-card .body {
    padding: 12px;
    font-weight: 700;
    color: #0f2e45;
}

.maps-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 320px 1fr 1fr;
    gap: 12px;
}

.map-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e1e9f0;
    box-shadow: var(--natra-shadow);
    overflow: hidden;
}

.map-card .panel-header {
    border-bottom: 1px solid #e1e9f0;
}

.footer-top-custom {
    margin-top: 18px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #007faf, #10b068);
    color: #fff;
    box-shadow: var(--natra-shadow);
    padding: 20px 24px;
}

.footer-top-custom h3 {
    font-weight: 800;
    margin-top: 0;
}

.footer-top-custom p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-top-custom .footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-top-custom .footer-social img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    padding: 6px;
}

.natra-error-section {
    padding: 40px 12px;
}

.natra-error-wrap {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.natra-error-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e1e9f0;
    box-shadow: var(--natra-shadow);
    padding: 30px 32px;
    text-align: center;
    max-width: 720px;
    width: 100%;
}

.natra-error-code {
    font-size: 120px;
    font-weight: 900;
    color: #e84a4a;
    text-shadow: 0 14px 28px rgba(232, 74, 74, 0.25);
    line-height: 1;
    margin-bottom: 6px;
}

.natra-error-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f2f48;
}

.natra-error-sub {
    color: #4c5d6a;
    margin: 12px 0 18px;
    font-size: 14px;
}

.natra-error-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.natra-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}

.natra-btn-primary {
    background: linear-gradient(135deg, #0b84ad, #0da37b);
    color: #fff;
    box-shadow: var(--natra-shadow);
    border-color: #0b84ad;
}

.natra-btn-ghost {
    background: #f5f7fb;
    color: #0f2f48;
    border-color: #d8e3ed;
}

@media (max-width: 991px) {
    .natra-shell {
        padding: 10px 10px 18px;
    }

    .site-topbar {
        grid-template-columns: 1fr;
    }

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

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

    .highlight-row {
        grid-template-columns: 1fr;
    }

    .headline-body {
        grid-template-columns: 1fr;
    }

    .gallery-panel,
    .maps-grid {
        grid-template-columns: 1fr;
    }

    .quick-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}
