:root {
    --primary: #12365f;
    --primary-dark: #0b213b;
    --primary-soft: #eaf2fb;
    --accent: #f3aa17;
    --accent-dark: #c78300;
    --success: #0f9f6e;
    --danger: #d64545;
    --warning: #e99c19;
    --info: #1479b8;
    --text: #152235;
    --muted: #69778a;
    --line: #e6edf5;
    --bg: #f6f8fb;
    --card: #ffffff;
    --radius: 22px;
    --shadow: 0 18px 50px rgba(21, 34, 53, 0.10);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 78px 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    margin-bottom: 28px;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: 0;
    max-width: 720px;
}

.section-title p {
    margin: 0;
    color: var(--muted);
    max-width: 500px;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-eyebrow {
    color: #ffd36c;
}

.btn {
    border: 0;
    border-radius: 15px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #211909;
    box-shadow: 0 12px 28px rgba(243, 170, 23, 0.28);
}

.btn-dark {
    background: var(--primary-dark);
    color: white;
}

.btn-soft {
    background: var(--primary-soft);
    color: var(--primary);
}

.btn-light {
    background: rgba(255, 255, 255, 0.14);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    background: var(--primary-soft);
    color: var(--primary);
}

.badge.success {
    background: rgba(15, 159, 110, 0.12);
    color: #08764f;
}

.badge.warning {
    background: rgba(233, 156, 25, 0.14);
    color: #a46400;
}

.badge.info {
    background: rgba(20, 121, 184, 0.12);
    color: #0e6398;
}

.badge.light {
    background: rgba(255, 255, 255, 0.14);
    color: white;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(230, 237, 245, 0.9);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: block;
    object-fit: contain;
    padding: 2px;
    border-radius: 14px;
    background: white;
    border: 2px solid white;
    box-shadow: 0 10px 22px rgba(18, 54, 95, 0.18);
}

.brand strong {
    display: block;
    font-size: 14px;
    line-height: 1.1;
}

.brand span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 750;
    color: #475569;
}

.nav a {
    padding: 9px 11px;
    border-radius: 999px;
}

.nav a:hover,
.nav a.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.header-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: grid;
    align-items: center;
    color: white;
    background:
        linear-gradient(105deg, rgba(11, 33, 59, 0.96) 0%, rgba(18, 54, 95, 0.88) 56%, rgba(18, 54, 95, 0.66) 100%),
        url("../videos/ypwk-hero-poster.jpg") center / cover no-repeat,
        linear-gradient(135deg, #10365f, #071629);
}

.hero-video,
.hero-video-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    z-index: 0;
    object-fit: cover;
    object-position: center;
    background: #071629;
}

.hero-video-overlay {
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(11, 33, 59, 0.88) 0%, rgba(18, 54, 95, 0.72) 56%, rgba(18, 54, 95, 0.42) 100%),
        linear-gradient(180deg, rgba(7, 22, 41, 0.18), rgba(7, 22, 41, 0.72));
    pointer-events: none;
}

.hero::before,
.profile-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: .28;
    pointer-events: none;
}

.hero::before {
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 440px;
    gap: 58px;
    align-items: center;
    padding: 92px 0;
}

.hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(44px, 6vw, 78px);
    line-height: .98;
    letter-spacing: 0;
    max-width: 840px;
}

.hero p {
    margin: 0 0 28px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 19px;
}

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

.hero-panel {
    padding: 22px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.18);
}

.hero-panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.hero-panel-title strong {
    display: block;
    font-size: 17px;
}

.hero-panel-title span {
    display: block;
    color: rgba(255, 255, 255, 0.67);
    font-size: 13px;
}

.hero-logo-box {
    min-height: 170px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-logo-box img {
    width: min(180px, 72%);
    max-height: 150px;
    object-fit: contain;
    display: block;
}

.public-menu-card {
    display: grid;
    gap: 10px;
}

.public-menu-card a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
}

.public-menu-card a span {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
}

.feature-grid,
.unit-grid,
.news-grid,
.gallery-grid {
    display: grid;
    gap: 18px;
}

.feature-grid,
.gallery-grid {
    grid-template-columns: repeat(3, 1fr);
}

.unit-grid {
    grid-template-columns: repeat(3, 1fr);
}

.news-grid {
    grid-template-columns: 1.25fr .85fr .85fr;
}

.feature-card,
.profile-card,
.unit-card,
.news-card,
.contact-card,
.gallery-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(21, 34, 53, 0.06);
}

.feature-card {
    padding: 24px;
    min-height: 240px;
}

.icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 18px;
    font-weight: 950;
    margin-bottom: 18px;
}

.feature-card h3,
.profile-card h3,
.unit-card h3,
.news-card h3,
.contact-card h3,
.gallery-card h3 {
    margin: 12px 0 8px;
    letter-spacing: 0;
}

.feature-card p,
.profile-card p,
.unit-card p,
.news-card p,
.contact-card p,
.gallery-card p {
    margin: 0;
    color: var(--muted);
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.profile-visual {
    min-height: 420px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, transparent 15%, rgba(11, 33, 59, .78) 100%),
        linear-gradient(135deg, #12365f, #071629);
    box-shadow: var(--shadow);
}

.visual-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    color: white;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(16px);
}

.visual-content h3 {
    margin: 12px 0 8px;
    font-size: 30px;
    letter-spacing: 0;
}

.visual-content p {
    margin: 0;
    color: rgba(255,255,255,.75);
}

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

.profile-card {
    position: relative;
    overflow: hidden;
    padding: 22px 22px 22px 30px;
}

.profile-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 7px;
    background: var(--accent);
}

.profile-card:nth-child(2)::before {
    background: var(--info);
}

.profile-card:nth-child(3)::before {
    background: var(--success);
}

.profile-card:nth-child(4)::before {
    background: var(--primary);
}

.unit-card,
.news-card {
    overflow: hidden;
}

.unit-cover {
    height: 150px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 32px;
    font-weight: 950;
    background:
        linear-gradient(135deg, #12365f, #1479b8 58%, #0b213b);
}

.unit-card .body,
.news-card .body {
    padding: 18px;
}

.text-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 900;
}

.news-cover {
    height: 172px;
    background:
        radial-gradient(circle at 25% 22%, rgba(255,255,255,.28), transparent 22%),
        linear-gradient(135deg, #f3aa17, #1479b8 58%, #12365f);
}

.news-image {
    width: 100%;
    height: 172px;
    object-fit: cover;
    background: #dfe8f2;
}

.news-card:first-child .news-cover {
    height: 260px;
}

.news-card:first-child .news-image {
    height: 260px;
}

.news-card h3 {
    margin-top: 12px;
}

.leader-image {
    width: 72px;
    height: 72px;
    display: block;
    margin-bottom: 18px;
    border-radius: 18px;
    object-fit: cover;
    background: #dfe8f2;
}

.gallery-card {
    overflow: hidden;
}

.gallery-card img,
.gallery-cover {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    background:
        radial-gradient(circle at 25% 22%, rgba(255,255,255,.28), transparent 22%),
        linear-gradient(135deg, #12365f, #1479b8 58%, #f3aa17);
}

.gallery-card .body {
    padding: 18px;
}

.public-empty {
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted);
    font-weight: 800;
}

.compact-section {
    padding-bottom: 46px;
}

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

.page-link-card {
    min-height: 220px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 12px 30px rgba(21, 34, 53, 0.06);
}

.page-link-card span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 950;
}

.page-link-card h3 {
    margin: 0 0 8px;
}

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

.profile-preview-section {
    padding-top: 46px;
}

.profile-condensed,
.profile-dense,
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 24px;
    align-items: stretch;
}

.profile-condensed {
    grid-template-columns: 280px minmax(0, 1fr);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: white;
    box-shadow: var(--shadow);
}

.profile-mark {
    min-height: 260px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(18, 54, 95, .08), rgba(243, 170, 23, .14)),
        #fff;
    border: 1px solid var(--line);
}

.profile-mark img {
    width: min(190px, 70%);
    height: auto;
    display: block;
}

.profile-condensed h2,
.rich-content h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: 0;
}

.profile-condensed p,
.rich-content p {
    color: var(--muted);
    font-size: 17px;
}

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

.mini-stat-grid div {
    padding: 14px;
    border-radius: 16px;
    background: var(--primary-soft);
}

.mini-stat-grid strong,
.mini-stat-grid span {
    display: block;
}

.mini-stat-grid strong {
    color: var(--primary);
    font-size: 19px;
}

.mini-stat-grid span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        linear-gradient(105deg, rgba(11, 33, 59, 0.96) 0%, rgba(18, 54, 95, 0.84) 62%, rgba(18, 54, 95, 0.68) 100%),
        linear-gradient(135deg, #10365f, #071629);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: .26;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 52px;
    align-items: center;
    padding: 76px 0;
}

.page-hero h1 {
    margin: 12px 0 14px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1;
    letter-spacing: 0;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
}

.page-hero-media {
    min-height: 260px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(18px);
}

.page-hero-media img {
    width: min(210px, 70%);
    max-height: 220px;
    object-fit: contain;
    display: block;
}

.profile-dense {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.rich-content {
    padding: 0;
}

.rich-content .badge {
    margin-bottom: 16px;
}

.profile-side {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(21, 34, 53, 0.06);
}

.profile-side img {
    width: 150px;
    display: block;
    margin: 0 auto 18px;
}

.mini-stat-grid.stacked {
    grid-template-columns: 1fr;
}

.space-title {
    margin-top: 48px;
}

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

.article-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 12px 30px rgba(21, 34, 53, 0.06);
}

.article-card .body {
    padding: 22px;
}

.article-image {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    display: block;
    background: #dfe8f2;
}

.article-image.placeholder {
    background:
        radial-gradient(circle at 25% 22%, rgba(255,255,255,.28), transparent 22%),
        linear-gradient(135deg, #f3aa17, #1479b8 58%, #12365f);
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
}

.related-panel {
    padding: 22px;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(21, 34, 53, 0.06);
}

.related-panel h3 {
    margin: 0 0 14px;
}

.related-link {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.related-link:last-child {
    border-bottom: 0;
}

.related-link span,
.related-panel p {
    color: var(--muted);
}

.detail-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.detail-media-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: white;
}

.detail-media-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    background: #dfe8f2;
}

.detail-media-grid figcaption {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px;
    align-items: stretch;
}

.contact-card {
    padding: 26px;
}

.contact-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
    border-bottom: 0;
}

.contact-row i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--primary-soft);
    font-style: normal;
    font-weight: 900;
    color: var(--primary);
}

.contact-row span {
    color: var(--muted);
}

.contact-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.contact-cta .btn {
    margin-top: 20px;
}

.site-footer {
    padding: 42px 0;
    background: #0b1728;
    color: rgba(255,255,255,.72);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.site-footer .brand span {
    color: rgba(255,255,255,.55);
}

.site-footer .brand strong {
    color: white;
}

@media (max-width: 1160px) {
    .nav {
        display: none;
    }

    .hero-inner,
    .page-hero-inner,
    .profile-layout,
    .profile-condensed,
    .profile-dense,
    .detail-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 620px;
    }

    .feature-grid,
    .unit-grid,
    .news-grid,
    .gallery-grid,
    .page-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card:first-child {
        grid-column: span 2;
    }

    .profile-side {
        position: static;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 56px 0;
    }

    .header-inner {
        min-height: 68px;
    }

    .brand {
        min-width: 0;
    }

    .brand span {
        display: none;
    }

    .header-action .btn-soft {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner,
    .page-hero-inner {
        padding: 64px 0;
    }

    .hero p,
    .page-hero p {
        font-size: 16px;
    }

    .section-title,
    .footer-inner {
        display: grid;
    }

    .feature-grid,
    .unit-grid,
    .news-grid,
    .gallery-grid,
    .page-card-grid,
    .mini-stat-grid {
        grid-template-columns: 1fr;
    }

    .news-card:first-child {
        grid-column: auto;
    }

    .profile-condensed {
        padding: 18px;
    }

    .page-hero-media {
        min-height: 220px;
    }

    .detail-media-grid {
        grid-template-columns: 1fr;
    }

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

    .header-action .btn-primary {
        padding-inline: 12px;
    }
}

/* ==========================================================
   YPWK Public Website Modern UI Refresh v2
   Contemporary landing page treatment: premium header,
   bento cards, refined gradients, responsive polish.
   ========================================================== */
:root {
    --primary: #102a56;
    --primary-dark: #071526;
    --primary-soft: #eaf3ff;
    --accent: #f6b318;
    --accent-dark: #a16207;
    --accent-2: #22c7a9;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #2563eb;
    --text: #101828;
    --muted: #667085;
    --line: rgba(16, 24, 40, .10);
    --bg: #f6f8fb;
    --card: rgba(255,255,255,.88);
    --radius: 28px;
    --shadow: 0 24px 80px rgba(16, 24, 40, .12);
    --shadow-soft: 0 12px 34px rgba(16, 24, 40, .08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    background: #f6f8fb;
    text-rendering: geometricPrecision;
}

body {
    background:
        radial-gradient(circle at top left, rgba(34, 199, 169, .14), transparent 34rem),
        radial-gradient(circle at 88% 12%, rgba(246, 179, 24, .18), transparent 30rem),
        linear-gradient(180deg, #fbfcfe 0%, #eef3f8 100%);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, #000, transparent 76%);
}

::selection {
    background: rgba(246, 179, 24, .34);
}

.container,
.header-inner,
.hero-inner,
.page-hero-inner {
    width: min(1200px, calc(100% - 36px));
}

.section {
    padding: 86px 0;
}

.section-title h2,
.hero h1,
.page-hero h1,
.profile-condensed h2,
.rich-content h2 {
    letter-spacing: -.055em;
}

.section-title h2 {
    font-size: clamp(32px, 4vw, 54px);
}

.section-title p,
.hero p,
.page-hero p,
.profile-condensed p,
.rich-content p {
    color: #667085;
}

.eyebrow {
    color: var(--accent-dark);
    letter-spacing: .12em;
}

.btn {
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 12px 18px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #ffd166 0%, var(--accent) 56%, #f59e0b 100%);
    box-shadow: 0 18px 38px rgba(246, 179, 24, .30);
}

.btn-dark {
    background: linear-gradient(135deg, #132b4d, #071526);
    box-shadow: 0 18px 38px rgba(7, 21, 38, .18);
}

.btn-soft {
    background: rgba(16, 42, 86, .08);
    color: #102a56;
    border-color: rgba(16, 42, 86, .08);
}

.btn-light {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.20);
    backdrop-filter: blur(14px);
}

.badge {
    border: 1px solid rgba(16, 42, 86, .08);
    background: rgba(16, 42, 86, .08);
}

.badge.success {
    border-color: rgba(16, 185, 129, .18);
    background: rgba(16, 185, 129, .12);
}

.badge.info {
    border-color: rgba(37, 99, 235, .18);
    background: rgba(37, 99, 235, .12);
    color: #1d4ed8;
}

.site-header {
    top: 12px;
    width: min(1240px, calc(100% - 28px));
    margin: 12px auto 0;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 18px 60px rgba(16, 24, 40, .10);
}

.header-inner {
    min-height: 72px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(16, 42, 86, .18);
}

.brand strong {
    font-size: 14px;
    letter-spacing: -.012em;
}

.nav {
    padding: 4px;
    border: 1px solid rgba(16, 24, 40, .06);
    border-radius: 999px;
    background: rgba(248, 250, 252, .76);
}

.nav a {
    padding: 10px 13px;
    border-radius: 999px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav a:hover,
.nav a.active {
    transform: translateY(-1px);
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 24, 40, .08);
}

.hero {
    min-height: 720px;
    margin-top: -86px;
    padding-top: 86px;
    background:
        linear-gradient(105deg, rgba(7, 21, 38, 0.94) 0%, rgba(16, 42, 86, 0.84) 56%, rgba(16, 42, 86, 0.62) 100%),
        url("../videos/ypwk-hero-poster.jpg") center / cover no-repeat,
        linear-gradient(135deg, #102a56, #071526);
}

.hero-video-overlay {
    background:
        radial-gradient(circle at 16% 24%, rgba(246, 179, 24, .26), transparent 26rem),
        radial-gradient(circle at 92% 70%, rgba(34, 199, 169, .20), transparent 26rem),
        linear-gradient(105deg, rgba(7, 21, 38, 0.90) 0%, rgba(16, 42, 86, 0.70) 58%, rgba(16, 42, 86, 0.38) 100%),
        linear-gradient(180deg, rgba(7, 22, 41, 0.10), rgba(7, 22, 41, 0.72));
}

.hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -180px -10%;
    height: 320px;
    background: linear-gradient(180deg, transparent 0%, rgba(246,248,251,.98) 70%, #f6f8fb 100%);
    pointer-events: none;
}

.hero-inner {
    grid-template-columns: minmax(0, 1.08fr) 430px;
    gap: 64px;
    padding: 112px 0 132px;
}

.hero h1 {
    margin-top: 14px;
    font-size: clamp(46px, 6vw, 84px);
}

.hero p {
    color: rgba(255,255,255,.76);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255,255,255,.13);
    box-shadow: 0 30px 90px rgba(0,0,0,.22);
}

.hero-panel::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -70px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(246,179,24,.36), transparent 70%);
}

.hero-panel > * {
    position: relative;
}

.public-menu-card a {
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.13);
    transition: transform .18s ease, background .18s ease;
}

.public-menu-card a:hover {
    transform: translateX(4px);
    background: rgba(255,255,255,.20);
}

.feature-card,
.profile-card,
.unit-card,
.news-card,
.contact-card,
.gallery-card,
.page-link-card,
.related-panel,
.profile-side,
.profile-condensed,
.public-empty {
    border: 1px solid rgba(255,255,255,.78);
    background: var(--card);
    backdrop-filter: blur(18px) saturate(145%);
    box-shadow: var(--shadow-soft);
}

.feature-card,
.profile-card,
.unit-card,
.news-card,
.gallery-card,
.page-link-card,
.related-panel,
.contact-card {
    transition: transform .20s ease, box-shadow .20s ease, border-color .20s ease;
}

.feature-card:hover,
.profile-card:hover,
.unit-card:hover,
.news-card:hover,
.gallery-card:hover,
.page-link-card:hover,
.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 42, 86, .10);
    box-shadow: var(--shadow);
}

.page-link-card {
    position: relative;
    overflow: hidden;
}

.page-link-card::after,
.feature-card::after {
    content: "";
    position: absolute;
    right: -48px;
    top: -58px;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    opacity: .75;
    background: radial-gradient(circle, rgba(246, 179, 24, .20), transparent 68%);
}

.page-link-card:nth-child(2n)::after,
.feature-card:nth-child(2n)::after {
    background: radial-gradient(circle, rgba(34, 199, 169, .18), transparent 68%);
}

.page-link-card:nth-child(3n)::after,
.feature-card:nth-child(3n)::after {
    background: radial-gradient(circle, rgba(37, 99, 235, .18), transparent 68%);
}

.page-link-card > *,
.feature-card > * {
    position: relative;
    z-index: 1;
}

.page-link-card span,
.icon,
.contact-row i,
.mini-stat-grid div {
    background: rgba(16, 42, 86, .08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.profile-condensed {
    border-radius: 34px;
}

.profile-mark {
    border-radius: 28px;
    background:
        radial-gradient(circle at 30% 24%, rgba(246, 179, 24, .24), transparent 44%),
        radial-gradient(circle at 80% 80%, rgba(34, 199, 169, .18), transparent 44%),
        #fff;
}

.unit-cover,
.news-cover,
.gallery-cover,
.article-image.placeholder {
    background:
        radial-gradient(circle at 24% 22%, rgba(255,255,255,.34), transparent 24%),
        linear-gradient(135deg, #102a56 0%, #2563eb 50%, #22c7a9 100%);
}

.news-image,
.gallery-card img,
.article-image {
    transition: transform .30s ease;
}

.news-card:hover .news-image,
.gallery-card:hover img,
.article-card:hover .article-image {
    transform: scale(1.035);
}

.news-card,
.gallery-card,
.article-card {
    overflow: hidden;
}

.text-link {
    border-radius: 999px;
    transition: transform .18s ease;
}

.text-link:hover {
    transform: translateX(3px);
}

.page-hero {
    background:
        radial-gradient(circle at 14% 18%, rgba(246, 179, 24, .22), transparent 28rem),
        radial-gradient(circle at 82% 72%, rgba(34, 199, 169, .16), transparent 26rem),
        linear-gradient(135deg, #071526 0%, #102a56 58%, #071526 100%);
}

.page-hero-inner {
    padding: 96px 0 118px;
}

.page-hero-media {
    border-radius: 34px;
    background: rgba(255,255,255,.13);
    box-shadow: 0 30px 90px rgba(0,0,0,.18);
}

.rich-content,
.contact-card,
.related-panel {
    color: #1f2937;
}

.contact-card h3,
.related-panel h3,
.news-card h3,
.unit-card h3,
.profile-card h3,
.page-link-card h3 {
    letter-spacing: -.025em;
}

.site-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(246,179,24,.18), transparent 26rem),
        linear-gradient(135deg, #071526, #0d1b30);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
    background-size: 34px 34px;
}

.footer-inner {
    position: relative;
}

@media (max-width: 1160px) {
    .site-header {
        top: 0;
        width: 100%;
        margin: 0;
        border-radius: 0 0 28px 28px;
    }

    .hero {
        margin-top: -78px;
        padding-top: 78px;
    }

    .hero-inner,
    .page-hero-inner {
        gap: 32px;
    }
}

@media (max-width: 720px) {
    .container,
    .header-inner,
    .hero-inner,
    .page-hero-inner {
        width: min(100% - 28px, 1200px);
    }

    .header-inner {
        min-height: 70px;
    }

    .logo {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .section {
        padding: 60px 0;
    }

    .hero-inner,
    .page-hero-inner {
        padding: 76px 0 88px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 42px;
    }

    .hero-panel,
    .profile-condensed,
    .page-hero-media,
    .feature-card,
    .profile-card,
    .unit-card,
    .news-card,
    .contact-card,
    .gallery-card,
    .page-link-card {
        border-radius: 24px;
    }
}

/* ==========================================================
   YPWK Mobile Layout Hotfix v3
   Fixes overflow/overlap on 360–430px screens after UI refresh.
   ========================================================== */
@media (max-width: 1160px) {
    .hero-inner,
    .page-hero-inner,
    .profile-layout,
    .profile-condensed,
    .profile-dense,
    .detail-layout,
    .contact-layout {
        grid-template-columns: 1fr !important;
    }

    .hero-panel,
    .page-hero-media,
    .profile-side {
        width: 100%;
        max-width: none;
    }

    .feature-grid,
    .unit-grid,
    .news-grid,
    .gallery-grid,
    .page-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .news-card:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container,
    .header-inner,
    .hero-inner,
    .page-hero-inner {
        width: min(100% - 24px, 1200px) !important;
    }

    .site-header {
        position: sticky;
        top: 0;
        width: 100%;
        margin: 0;
        border-radius: 0 0 22px 22px;
        border-left: 0;
        border-right: 0;
    }

    .header-inner {
        min-height: 64px;
        gap: 10px;
    }

    .brand {
        min-width: 0;
        max-width: calc(100% - 118px);
        gap: 9px;
    }

    .brand strong {
        display: -webkit-box;
        overflow: hidden;
        font-size: 13px;
        line-height: 1.12;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .brand span {
        display: none !important;
    }

    .logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 14px;
    }

    .header-action {
        flex: 0 0 auto;
        gap: 6px;
    }

    .header-action .btn-primary {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .hero {
        min-height: auto;
        margin-top: 0 !important;
        padding-top: 0 !important;
        background-position: center;
    }

    .hero-inner,
    .page-hero-inner {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 40px 0 54px !important;
        align-items: start;
    }

    .hero h1,
    .page-hero h1 {
        max-width: 100%;
        margin: 10px 0 12px;
        font-size: clamp(34px, 10vw, 42px) !important;
        line-height: 1.03;
        letter-spacing: -.045em;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero p,
    .page-hero p {
        max-width: 100%;
        margin-bottom: 20px;
        font-size: 15px;
        line-height: 1.58;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .hero-panel {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        border-radius: 22px !important;
        transform: none;
    }

    .hero-panel-top {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }

    .hero-panel-title strong {
        font-size: 15px;
    }

    .hero-panel-title span {
        font-size: 12px;
    }

    .hero-panel .badge {
        padding: 6px 8px;
        font-size: 11px;
    }

    .public-menu-card {
        gap: 8px;
    }

    .public-menu-card a {
        min-height: 46px;
        padding: 11px 12px;
        border-radius: 14px;
        font-size: 14px;
    }

    .hero::after,
    .page-hero::after {
        bottom: -90px;
        height: 170px;
    }

    .section {
        padding: 52px 0;
    }

    .section-title {
        display: grid;
        gap: 12px;
        margin-bottom: 20px;
    }

    .section-title h2,
    .profile-condensed h2,
    .rich-content h2 {
        font-size: clamp(27px, 8vw, 34px) !important;
        line-height: 1.08;
    }

    .section-title p,
    .profile-condensed p,
    .rich-content p {
        font-size: 15px;
    }

    .feature-grid,
    .unit-grid,
    .news-grid,
    .gallery-grid,
    .page-card-grid,
    .mini-stat-grid,
    .detail-media-grid {
        grid-template-columns: 1fr !important;
    }

    .news-card:first-child {
        grid-column: auto;
    }

    .feature-card,
    .profile-card,
    .unit-card,
    .news-card,
    .contact-card,
    .gallery-card,
    .page-link-card,
    .profile-condensed,
    .page-hero-media,
    .related-panel {
        border-radius: 22px !important;
    }

    .feature-card,
    .page-link-card,
    .contact-card {
        min-height: auto;
        padding: 18px;
    }

    .profile-visual {
        min-height: 320px;
        border-radius: 24px;
    }

    .visual-content {
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 16px;
        border-radius: 18px;
    }

    .visual-content h3 {
        font-size: 25px;
    }

    .profile-condensed {
        padding: 16px;
    }

    .profile-mark {
        min-height: 210px;
    }

    .profile-mark img {
        width: min(150px, 58%);
    }

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

    .contact-row {
        align-items: flex-start;
    }

    .contact-row div,
    .contact-row a,
    .contact-row span,
    .contact-row strong {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .footer-inner {
        display: grid;
        gap: 16px;
    }
}

@media (max-width: 420px) {
    .container,
    .header-inner,
    .hero-inner,
    .page-hero-inner {
        width: min(100% - 20px, 1200px) !important;
    }

    .brand {
        max-width: calc(100% - 104px);
    }

    .brand strong {
        font-size: 12.5px;
    }

    .header-action .btn-primary {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12.5px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(31px, 9.4vw, 38px) !important;
    }

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

    .hero-panel {
        padding: 14px;
    }
}

/* =====================================================================
   V13 — Public Website UI/UX Enhancement
   Fokus: website publik lebih mudah dibaca, mobile navigation jelas,
   CTA lebih tegas, dan aksesibilitas lebih baik.
   ===================================================================== */

:root {
    --ux-ring: rgba(243, 170, 23, 0.38);
    --ux-border: rgba(119, 139, 165, 0.20);
    --ux-soft-shadow: 0 16px 42px rgba(15, 35, 58, 0.10);
}

.public-site {
    background:
        radial-gradient(circle at top left, rgba(243, 170, 23, .10), transparent 30rem),
        linear-gradient(180deg, #f8fafc 0%, #f4f7fb 100%);
}

.skip-link {
    position: fixed;
    left: 18px;
    top: 14px;
    z-index: 200;
    transform: translateY(-180%);
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--accent);
    color: #211909;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
    transition: transform .18s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--ux-ring);
    outline-offset: 3px;
}

.site-header {
    box-shadow: 0 10px 30px rgba(18, 54, 95, 0.07);
}

.header-inner {
    min-height: 78px;
}

.brand {
    border-radius: 18px;
}

.nav a {
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.nav a:hover {
    transform: translateY(-1px);
}

.btn {
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.hero {
    min-height: min(760px, 86vh);
}

.hero-inner,
.page-hero-inner {
    gap: clamp(22px, 4vw, 48px);
}

.hero h1,
.page-hero h1,
.section-title h2 {
    letter-spacing: -0.04em;
}

.hero-panel,
.page-link-card,
.feature-card,
.news-card,
.gallery-card,
.article-card,
.contact-card,
.unit-card,
.profile-side,
.profile-condensed {
    border: 1px solid var(--ux-border);
    box-shadow: var(--ux-soft-shadow);
}

.page-link-card,
.feature-card,
.news-card,
.gallery-card,
.article-card,
.contact-card,
.unit-card {
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.page-link-card:hover,
.feature-card:hover,
.news-card:hover,
.gallery-card:hover,
.article-card:hover,
.contact-card:hover,
.unit-card:hover {
    transform: translateY(-3px);
    border-color: rgba(243, 170, 23, .34);
    box-shadow: 0 22px 58px rgba(15, 35, 58, 0.13);
}

.public-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px 10px;
    background: #fff;
    color: var(--primary);
    font-weight: 900;
    cursor: pointer;
}

.public-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-nav-cta {
    display: none !important;
}

@media (max-width: 980px) {
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        min-height: 72px;
    }

    .brand {
        min-width: 0;
    }

    .brand strong {
        font-size: 13px;
    }

    .brand span {
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-menu-toggle {
        display: inline-flex;
    }

    .public-menu-toggle b {
        font-size: 13px;
    }

    .public-menu-toggle[aria-expanded="true"] {
        background: var(--primary-soft);
    }

    .header-action {
        display: none;
    }

    .nav {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        margin: 0 0 12px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: #fff;
        box-shadow: var(--ux-soft-shadow);
    }

    .nav.open {
        display: grid;
        gap: 4px;
    }

    .nav a {
        display: flex;
        justify-content: space-between;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .mobile-nav-cta {
        display: flex !important;
        justify-content: center !important;
        background: var(--accent) !important;
        color: #211909 !important;
        font-weight: 900;
    }

    .hero {
        min-height: auto;
        padding: 96px 0 48px;
    }

    .hero-inner,
    .page-hero-inner,
    .section-title {
        grid-template-columns: 1fr !important;
        display: grid;
        align-items: start;
    }
}

@media (max-width: 680px) {
    .container,
    .header-inner {
        width: min(100% - 24px, 1180px);
    }

    .section {
        padding: 48px 0;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(34px, 12vw, 52px);
    }

    .hero-actions,
    .header-action,
    .footer-inner {
        display: grid;
        width: 100%;
    }

    .hero-actions .btn,
    .header-action .btn {
        width: 100%;
    }

    .page-card-grid,
    .feature-grid,
    .news-grid,
    .gallery-grid,
    .contact-layout,
    .profile-dense {
        grid-template-columns: 1fr !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* === V20 FINAL HOSTING SAFETY: prevent public CMS overflow/cut-off === */
.public-site .rich-content,
.public-site .rich-content * {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

.public-site .rich-content img,
.public-site .rich-content video,
.public-site .rich-content iframe {
    display: block;
    max-width: 100%;
    height: auto;
}

.public-site .rich-content img {
    object-fit: contain;
}

.public-site .rich-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
}

.public-site .rich-content th,
.public-site .rich-content td {
    padding: 0.75rem;
    border: 1px solid rgba(18, 54, 95, 0.14);
    vertical-align: top;
}

.public-site .rich-content a {
    overflow-wrap: anywhere;
}

body.portal-body .table-wrap,
body.portal-body .table-wrap table,
body.portal-body .panel,
body.portal-body .metric-card,
body.portal-body .stat-card {
    max-width: 100%;
}

body.portal-body .panel,
body.portal-body .metric-card,
body.portal-body .stat-card,
body.portal-body .table-wrap td,
body.portal-body .table-wrap th {
    overflow-wrap: anywhere;
}

