/**
 * Website utama sekolah — tema modern (load setelah custom.css)
 */
:root {
    --portal-navy: #15477a;
    --portal-navy-dark: #0c365f;
    --portal-navy-deep: #070f2b;
    --portal-gold: #f2c808;
    --portal-gold-hover: #ffd84d;
    --portal-surface: #ffffff;
    --portal-bg: #f4f7fb;
    --portal-text: #1e293b;
    --portal-muted: #64748b;
    --portal-border: #e2e8f0;
    --portal-radius: 12px;
    --portal-radius-lg: 16px;
    --portal-shadow: 0 8px 30px rgba(21, 71, 122, 0.08);
    --portal-shadow-lg: 0 16px 48px rgba(21, 71, 122, 0.12);
    --portal-font: "Plus Jakarta Sans", "Raleway", system-ui, sans-serif;
    --portal-header-gradient: linear-gradient(135deg, #0c365f 0%, #15477a 55%, #1a5a96 100%);
}

body.portal-site {
    font-family: var(--portal-font);
    color: var(--portal-text);
    background: var(--portal-surface);
    -webkit-font-smoothing: antialiased;
}

/* —— Topbar —— */
body.portal-site #topbar.portal-topbar {
    background: var(--portal-header-gradient);
    height: auto;
    min-height: 42px;
    line-height: 1.4;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.portal-site #topbar.portal-topbar li a {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0 0.75rem;
    opacity: 0.95;
}

body.portal-site #topbar.portal-topbar li a i {
    color: var(--portal-gold);
}

/* Ikon sosial media — seragam topbar & footer */
body.portal-site .portal-social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

body.portal-site .portal-social-links a {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

body.portal-site .portal-social-links a i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
}

body.portal-site .portal-social-links a svg {
    display: block;
    width: 1rem;
    height: 1rem;
}

body.portal-site .portal-social-links a:hover {
    background: var(--portal-gold);
    color: var(--portal-navy) !important;
}

body.portal-site #topbar .portal-topbar-social {
    justify-content: flex-end;
}

/* Ticker kontak (HP, email, alamat) — mobile & desktop */
body.portal-site .portal-topbar__ticker {
    width: 100%;
    overflow: hidden;
}

body.portal-site .portal-topbar__ticker-viewport {
    overflow: hidden;
    width: 100%;
}

body.portal-site .portal-topbar__ticker-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    margin: 0;
    padding: 0;
    animation: portal-topbar-ticker 32s linear infinite;
    will-change: transform;
}

body.portal-site .portal-topbar__ticker-segment {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    white-space: nowrap;
}

body.portal-site .portal-topbar__ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.35rem;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
    opacity: 0.95;
}

body.portal-site .portal-topbar__ticker-item:hover {
    color: #fff;
    opacity: 1;
}

body.portal-site .portal-topbar__ticker-item i {
    color: var(--portal-gold);
    flex-shrink: 0;
}

body.portal-site .portal-topbar__ticker-sep {
    padding: 0 0.75rem;
    color: rgba(242, 200, 8, 0.45);
    font-size: 0.625rem;
    user-select: none;
}

body.portal-site .portal-topbar__ticker-pad {
    display: inline-block;
    width: 2.5rem;
    flex-shrink: 0;
}

@keyframes portal-topbar-ticker {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.portal-site .portal-topbar__ticker-track {
        animation: none !important;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    body.portal-site .portal-topbar__ticker-clone {
        display: none !important;
    }
}

/* —— Brand header —— */
body.portal-site header.portal-site-header {
    padding: 1rem 0;
    background: var(--portal-surface);
    border-bottom: 1px solid var(--portal-border);
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.04);
}

body.portal-site .brand img {
    width: 76px;
    height: 76px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
}

body.portal-site .brand .brand-name h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

body.portal-site .brand .brand-name h3 {
    color: var(--portal-muted);
    font-weight: 600;
    letter-spacing: 0.04em;
}

body.portal-site .searchbox .input-group {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

body.portal-site .searchbox .form-control {
    flex: 1 1 auto;
    width: 1%;
    border-radius: 999px;
    border: 1px solid var(--portal-border);
    min-height: 42px;
    font-size: 0.875rem;
}

body.portal-site .searchbox .form-control:focus {
    border-color: var(--portal-navy);
    box-shadow: 0 0 0 3px rgba(21, 71, 122, 0.12);
    z-index: 1;
}

body.portal-site .searchbox .input-group-append {
    margin: 0;
    display: flex;
    flex-shrink: 0;
}

body.portal-site .searchbox .btn-utama {
    border-radius: 999px;
    min-height: 42px;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-left: 0;
}

/* —— Navbar —— */
body.portal-site .portal-main-nav {
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 3px solid var(--portal-gold);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease;
}

body.portal-site .portal-main-nav.is-scrolled {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

body.portal-site .portal-main-nav .nav-link {
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    transition: color 0.15s ease, background 0.15s ease;
}

body.portal-site .portal-main-nav li.nav-item.active {
    background: transparent;
}

body.portal-site .portal-main-nav li.nav-item.active > .nav-link {
    color: var(--portal-navy) !important;
    background: var(--portal-gold);
    border-radius: 0;
}

body.portal-site .portal-main-nav .dropdown-menu {
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow-lg);
    padding: 0.35rem;
    margin-top: 0;
}

body.portal-site .portal-main-nav .dropdown-item {
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

body.portal-site .portal-main-nav .dropdown-item:hover,
body.portal-site .portal-main-nav .dropdown-item.active {
    background: #eff6ff;
    color: var(--portal-navy);
}

/* —— Hero slider —— */
body.portal-site #hero-area {
    overflow: hidden;
}

body.portal-site #hero-area .slider-item-img img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

body.portal-site #hero-area .slider-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 15, 43, 0.15) 0%, rgba(7, 15, 43, 0.45) 100%);
    pointer-events: none;
}

body.portal-site #hero-area .slider-item {
    position: relative;
}

body.portal-site #hero-area .slider-item-content {
    width: min(92%, 640px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--portal-radius-lg);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--portal-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

body.portal-site #hero-area .slider-item-content h2 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--portal-navy);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

body.portal-site #hero-area .slider-item-content p {
    font-size: clamp(0.875rem, 1.8vw, 1.0625rem);
    color: var(--portal-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

body.portal-site .slideutama .btn-slideutama {
    margin-top: 1rem;
    padding: 0.55rem 1.35rem;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    border: none;
    box-shadow: 0 4px 14px rgba(21, 71, 122, 0.2);
}

body.portal-site .slideutama .btn-slideutama:hover {
    background: var(--portal-navy-dark);
    color: var(--portal-gold-hover);
    transform: translateY(-1px);
}

body.portal-site #slider-hero-nav .owl-prev,
body.portal-site #slider-hero-nav .owl-next {
    background: rgba(21, 71, 122, 0.88);
    backdrop-filter: blur(4px);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

body.portal-site #slider-hero-nav .owl-prev:hover,
body.portal-site #slider-hero-nav .owl-next:hover {
    background: var(--portal-gold);
    color: var(--portal-navy);
}

/* —— SPMB banner on home —— */
body.portal-site #spmb.spmb-portal-banner {
    padding: 2rem 0 1.5rem;
    background: linear-gradient(180deg, var(--portal-bg) 0%, var(--portal-surface) 100%);
}

body.portal-site #spmb .spmb-portal-banner__frame {
    border-radius: var(--portal-radius-lg);
    overflow: hidden;
    box-shadow: var(--portal-shadow-lg);
    border: 1px solid var(--portal-border);
}

body.portal-site #spmb .spmb-portal-banner__img {
    border-radius: 0;
    transition: transform 0.35s ease;
}

body.portal-site #spmb .spmb-portal-banner__link:hover .spmb-portal-banner__img {
    transform: scale(1.02);
}

body.portal-site #spmb .spmb-portal-banner__btn {
    box-shadow: 0 4px 16px rgba(21, 71, 122, 0.22);
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* —— Sambutan —— */
body.portal-site #sambutan {
    margin: 2.5rem 0 0;
    padding: 2rem 0 2.5rem;
    background: var(--portal-bg);
    position: relative;
    z-index: 1;
    clear: both;
}

body.portal-site #sambutan .row {
    row-gap: 1rem;
}

body.portal-site #sambutan .video-wrapper {
    border-radius: var(--portal-radius-lg);
    overflow: hidden;
    box-shadow: var(--portal-shadow);
}

body.portal-site #sambutan .sambutan {
    background: var(--portal-surface);
    border-radius: var(--portal-radius-lg);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--portal-shadow);
    border: 1px solid var(--portal-border);
    min-height: 0;
}

body.portal-site #sambutan .sambutan__title,
body.portal-site #sambutan h2 {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 0.65rem;
    color: var(--portal-navy);
}

body.portal-site .sambutan-tagline {
    margin: 0 0 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--portal-border);
    font-size: clamp(0.6875rem, 2.6vw, 0.8125rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.55;
    color: var(--portal-muted);
    text-wrap: balance;
}

body.portal-site .sambutan-desc {
    color: var(--portal-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

body.portal-site .sambutan-desc :is(h3, h4, h5, p, li, span, div) {
    font-family: var(--portal-font) !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    margin-bottom: 0.65rem;
}

body.portal-site .sambutan-desc :is(h3, h4, h5) {
    font-weight: 700;
    color: var(--portal-navy) !important;
}

body.portal-site .sambutan-desc > :last-child {
    margin-bottom: 0;
}

/* Sembunyikan baris sambutan ganda jika sudah ditampilkan sebagai tagline */
body.portal-site .sambutan:has(.sambutan-tagline) .sambutan-desc > :first-child {
    display: none;
}

/* Jika tagline tidak diisi, rapikan baris pembuka dari konten admin */
body.portal-site .sambutan:not(:has(.sambutan-tagline)) .sambutan-desc > :first-child {
    margin: 0 0 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--portal-border);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-wrap: balance;
}

body.portal-site .sambutan .btn-sambutan {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    box-shadow: 0 4px 12px rgba(21, 71, 122, 0.18);
}

/* —— Stats counts —— */
body.portal-site .counts {
    padding: 2rem 0 2.5rem;
    background: var(--portal-surface);
    position: relative;
    z-index: 2;
    clear: both;
    isolation: isolate;
}

body.portal-site .counts > .container > .row {
    row-gap: 0.75rem;
}

body.portal-site .counts .count-box {
    width: 100%;
    border-radius: var(--portal-radius);
    border: 1px solid var(--portal-border);
    padding: 1.1rem 1rem;
    margin-top: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform: none;
    opacity: 1;
}

body.portal-site .counts .count-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--portal-shadow-lg);
}

body.portal-site .counts .count-box i {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    margin-right: 0.85rem;
    flex-shrink: 0;
}

body.portal-site .counts .count-box span {
    color: var(--portal-navy);
    font-weight: 800;
    font-size: 1.5rem;
}

body.portal-site .counts .count-box p {
    color: var(--portal-muted);
    font-weight: 600;
    font-size: 0.8125rem;
}

/* —— Section titles (seragam di semua blok beranda) —— */
body.portal-site .section-title,
body.portal-site .portal-section-title {
    margin-bottom: 1.5rem;
    text-align: center;
}

body.portal-site .section-title h2,
body.portal-site .portal-section-title h2 {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    padding-bottom: 0.65rem;
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--portal-navy);
}

body.portal-site .section-title h2::after,
body.portal-site .portal-section-title h2::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    margin-top: 0;
    width: 100%;
    height: 4px;
    content: "";
    background: var(--portal-gold);
    border-radius: 2px;
}

/* —— Features / cards —— */
body.portal-site .features .feature-box,
body.portal-site .article-card {
    border-radius: var(--portal-radius) !important;
    border: 1px solid var(--portal-border) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.portal-site .features .feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--portal-shadow-lg) !important;
}

/* —— Buttons global —— */
body.portal-site .btn-utamar,
body.portal-site .btn-more,
body.portal-site .btn-utama {
    border-radius: 999px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
}

/* —— Footer —— */
body.portal-site .footer {
    background: linear-gradient(180deg, #0c365f 0%, var(--portal-navy-deep) 100%);
}

body.portal-site .footer .footer-top {
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 2rem;
}

body.portal-site .footer .footer-top .footer-info .portal-footer-brand {
    gap: 0.65rem;
    margin-bottom: 1rem;
    text-decoration: none;
    justify-content: flex-start;
}

body.portal-site .footer .footer-top .footer-info .portal-footer-brand__name {
    font-size: clamp(0.6875rem, 1.6vw, 0.8125rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    text-wrap: balance;
}

body.portal-site .footer .footer-top .footer-info .portal-footer-brand__logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    object-fit: contain;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}


body.portal-site .footer .footer-top h4 {
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 0.8125rem;
}

body.portal-site .footer .footer-top h4::after {
    content: "";
    display: block;
    width: 2rem;
    height: 3px;
    background: var(--portal-gold);
    margin-top: 0.5rem;
    border-radius: 2px;
}

/* —— Footer maps —— */
body.portal-site .portal-footer-map-col h4::after {
    margin-left: 0;
}

body.portal-site .portal-footer-map {
    margin-top: 0.15rem;
}

body.portal-site .portal-footer-map__frame {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 10.5rem;
    overflow: hidden;
    border-radius: var(--portal-radius-lg);
    border: 2px solid rgba(242, 200, 8, 0.35);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

body.portal-site .portal-footer-map__frame::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    z-index: 1;
}

body.portal-site .portal-footer-map__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: saturate(0.92) contrast(1.02);
}

/* —— Dasar mobile —— */
body.portal-site {
    overflow-x: hidden;
}

body.portal-site .container,
body.portal-site .container-md {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}

@media (min-width: 1001px) {
    body.portal-site .counts .row {
        gap: 0.5rem 0;
    }
}

/* —— Prestasi slider —— */
body.portal-site #hero-pres {
    padding: 2.5rem 0 3rem;
    background: var(--portal-bg);
}

body.portal-site #hero-pres .item {
    position: relative;
    border-radius: var(--portal-radius-lg);
    overflow: hidden;
    box-shadow: var(--portal-shadow);
}

body.portal-site #hero-pres .item-img img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

body.portal-site #hero-pres .item-content {
    width: min(88%, 520px);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

body.portal-site #hero-pres .item-content h2 {
    font-weight: 800;
    color: var(--portal-navy);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

body.portal-site #hero-pres .item-content p {
    color: var(--portal-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

body.portal-site .btn.btn-more {
    border-radius: 999px;
    padding: 0.6rem 1.75rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.portal-site .btn.btn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 71, 122, 0.2);
}

/* —— Ekstrakurikuler —— */
body.portal-site #features.features.portal-home-eskul {
    padding: 2.5rem 0 3rem;
    background: var(--portal-surface);
}

body.portal-site .portal-eskul-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.75rem;
}

body.portal-site .portal-eskul-section-title {
    margin-bottom: 1rem;
    text-align: center;
}

body.portal-site .portal-eskul-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(16rem, 78vw);
    height: min(16rem, 78vw);
    margin: 0 auto;
    padding: 1.15rem;
    overflow: hidden;
    border-radius: var(--portal-radius-lg);
    background: linear-gradient(160deg, #eff6ff 0%, var(--portal-surface) 55%);
    border: 1px solid var(--portal-border);
    box-shadow: var(--portal-shadow);
}

body.portal-site .portal-eskul-visual__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
}

body.portal-site .portal-eskul-list {
    width: 100%;
    margin: 0;
}

body.portal-site .features .feature-box {
    padding: 0.85rem 1rem;
    background: var(--portal-bg);
    height: 100%;
}

body.portal-site .features .feature-box i {
    background: var(--portal-navy);
    color: var(--portal-gold);
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.65rem;
    flex-shrink: 0;
}

body.portal-site .features .feature-box h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--portal-navy);
}

/* —— Tenaga pendidik —— */
body.portal-site .card_box {
    border-radius: var(--portal-radius-lg);
    overflow: hidden;
    box-shadow: var(--portal-shadow);
    background: linear-gradient(180deg, var(--portal-navy) 0%, var(--portal-navy-dark) 100%);
}

body.portal-site .card_box img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

body.portal-site .slider_carousel .owl-prev,
body.portal-site .slider_carousel .owl-next {
    background: var(--portal-navy) !important;
    color: #fff !important;
    box-shadow: var(--portal-shadow);
}

body.portal-site .slider_carousel .owl-prev:hover,
body.portal-site .slider_carousel .owl-next:hover {
    background: var(--portal-gold) !important;
    color: var(--portal-navy) !important;
}

/* —— Testimoni alumni —— */
body.portal-site .shadow-effect {
    border-radius: var(--portal-radius-lg);
    border: 1px solid var(--portal-border);
    box-shadow: var(--portal-shadow);
}

body.portal-site .testimonial-name {
    background: var(--portal-navy);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

body.portal-site #customers-testimonials .owl-carousel .owl-dots .owl-dot.active span,
body.portal-site #customers-testimonials .owl-carousel .owl-dots .owl-dot:hover span,
body.portal-site #customers-testimonials .owl-carousel .owl-dots .owl-dot span {
    background: var(--portal-navy);
}

/* —— Blok bawah beranda (pendidik, alumni, galeri) —— */
body.portal-site .portal-home-section {
    padding: 2.5rem 0;
}

body.portal-site .portal-home-section--pendidik {
    background: linear-gradient(180deg, var(--portal-bg) 0%, var(--portal-surface) 100%);
}

body.portal-site .portal-home-section--alumni {
    background: var(--portal-bg);
}

body.portal-site .portal-home-section--media {
    background: var(--portal-surface);
}

body.portal-site .portal-home-block {
    height: 100%;
}

body.portal-site .com-sp {
    padding: 0;
}

/* Galeri foto — grid rapi */
body.portal-site .portal-home-gallery__photos ul,
body.portal-site .h-gal ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.portal-site .portal-home-gallery__photos ul li,
body.portal-site .h-gal ul li {
    float: none;
    width: calc(33.333% - 0.35rem);
    margin: 0;
    padding: 0;
    border-radius: var(--portal-radius);
    overflow: hidden;
    box-shadow: var(--portal-shadow);
    transition: transform 0.2s ease;
}

body.portal-site .portal-home-gallery__photos ul li a,
body.portal-site .h-gal ul li a {
    display: block;
    line-height: 0;
}

body.portal-site .portal-home-gallery__photos ul li img,
body.portal-site .h-gal ul li img {
    width: 100%;
    height: 100%;
    min-height: 72px;
    object-fit: cover;
    padding: 0;
    display: block;
}

body.portal-site .portal-home-gallery__photos ul li:hover,
body.portal-site .h-gal ul li:hover {
    transform: scale(1.03);
}

/* Galeri video */
body.portal-site .portal-home-gallery__videos iframe,
body.portal-site .h-vid iframe {
    width: 100%;
    border: 0;
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow);
    margin-bottom: 0.65rem;
}

body.portal-site .portal-home-gallery__videos iframe:last-child,
body.portal-site .h-vid iframe:last-child {
    margin-bottom: 0;
}

/* Recent post */
body.portal-site .portal-home-recent-posts {
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-lg);
    background: var(--portal-surface);
    box-shadow: var(--portal-shadow);
    overflow: hidden;
}

body.portal-site .portal-home-recent-posts__item {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--portal-border);
    align-items: flex-start;
}

body.portal-site .portal-home-recent-posts__item:last-child {
    border-bottom: 0;
}

body.portal-site .portal-home-recent-posts__thumb {
    width: 72px;
    height: 72px;
    max-width: 72px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

body.portal-site .portal-home-recent-posts__excerpt,
body.portal-site .portal-home-recent-posts .recent h6 {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--portal-muted);
    line-height: 1.45;
}

body.portal-site .portal-home-recent-posts .recent h5 {
    font-size: 0.875rem;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

body.portal-site .portal-home-recent-posts .recent h5 a,
body.portal-site .com-sp .recent h5 a {
    color: var(--portal-navy);
    font-weight: 700;
}

body.portal-site .portal-home-recent-posts .recent h5 a:hover,
body.portal-site .com-sp .recent h5 a:hover {
    color: var(--portal-gold);
    text-decoration: none;
}

/* —— Halaman dalam (konten umum) —— */
body.portal-site main,
body.portal-site .section-item-body,
body.portal-site .page-content {
    color: var(--portal-text);
}

body.portal-site .section-item-body p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--portal-muted);
}

/* ============================================================
   RESPONSIVE — Tablet & mobile (≤ 991px, Bootstrap lg)
   ============================================================ */
@media screen and (max-width: 991.98px) {
    /* Topbar */
    body.portal-site #topbar.portal-topbar {
        min-height: auto;
        padding: 0.5rem 0;
    }

    body.portal-site .portal-topbar__row {
        flex-direction: column;
        gap: 0.35rem;
    }

    body.portal-site .portal-topbar__contacts-col,
    body.portal-site .portal-topbar__social-col {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }

    body.portal-site .portal-topbar__social-col {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.35rem 0 0.15rem;
    }

    body.portal-site .portal-topbar__ticker-track {
        animation-duration: 26s;
    }

    body.portal-site .portal-topbar__ticker-item {
        font-size: 0.75rem;
    }

    body.portal-site #topbar .portal-topbar-social {
        justify-content: center;
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
        gap: 0.45rem;
    }

    body.portal-site #topbar .portal-topbar-social a {
        width: 2.25rem;
        height: 2.25rem;
    }

    /* Header brand */
    body.portal-site header.portal-site-header {
        padding: 0.75rem 0;
    }

    body.portal-site .brand {
        gap: 0.65rem;
    }

    body.portal-site .brand img {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.portal-site .brand .brand-name h1 {
        font-size: 0.9375rem;
        line-height: 1.2;
    }

    body.portal-site .brand .brand-name h3 {
        font-size: 0.6875rem;
        line-height: 1.35;
        margin-top: 0.2rem;
    }

    body.portal-site .pembungkus-searchbox {
        margin-top: 0.65rem;
    }

    body.portal-site .searchbox .input-group {
        gap: 0.4rem;
    }

    body.portal-site .searchbox .form-control {
        min-height: 40px;
        font-size: 0.8125rem;
    }

    body.portal-site .searchbox .btn-utama {
        min-height: 40px;
        font-size: 0.75rem;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    /* Navbar mobile */
    body.portal-site .portal-nav-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    body.portal-site .portal-nav-toggler {
        order: 1;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0.4rem 0 0.15rem !important;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 0.5rem;
        padding: 0.5rem 0.75rem;
        background: rgba(255, 255, 255, 0.06);
    }

    body.portal-site .portal-nav-toggler__label {
        font-size: 0.8125rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #fff;
    }

    body.portal-site .portal-nav-toggler:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(242, 200, 8, 0.35);
    }

    body.portal-site .portal-nav-collapse {
        order: 2;
        flex-basis: 100%;
        width: 100%;
        background: var(--portal-navy-dark);
        border-radius: 0 0 var(--portal-radius) var(--portal-radius);
        padding: 0.35rem 0.5rem 0.65rem;
        margin-top: 0.25rem;
        max-height: min(70vh, 480px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.portal-site .portal-main-nav .navbar-nav {
        width: 100%;
    }

    body.portal-site .portal-main-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.portal-site .portal-main-nav .nav-item:last-child {
        border-bottom: 0;
    }

    body.portal-site .portal-main-nav .nav-link {
        display: block !important;
        width: 100%;
        padding: 0.75rem 0.85rem !important;
        font-size: 0.8125rem;
    }

    body.portal-site .portal-main-nav li.nav-item.active > .nav-link {
        border-radius: 0.5rem;
    }

    body.portal-site .portal-main-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        background: rgba(7, 15, 43, 0.35);
        border: none;
        box-shadow: none;
        padding: 0.25rem 0 0.5rem 0.75rem;
        margin: 0;
    }

    body.portal-site .portal-main-nav .dropdown-item {
        color: rgba(255, 255, 255, 0.92);
        padding: 0.55rem 0.75rem;
        font-size: 0.8125rem;
    }

    body.portal-site .portal-main-nav .dropdown-item:hover,
    body.portal-site .portal-main-nav .dropdown-item.active {
        background: rgba(242, 200, 8, 0.15);
        color: #fff;
    }

    /* Hero */
    body.portal-site #hero-area .slider-item-img img {
        min-height: 220px;
        max-height: 320px;
    }

    body.portal-site #hero-area .slider-item-content {
        width: min(92%, 380px);
        padding: 0.85rem 1rem;
        border-radius: var(--portal-radius);
    }

    body.portal-site #hero-area .slider-item-content h2 {
        font-size: 1rem !important;
        margin-bottom: 0.35rem;
    }

    body.portal-site #hero-area .slider-item-content p {
        font-size: 0.8125rem !important;
        line-height: 1.45;
    }

    body.portal-site .slideutama .btn-slideutama {
        font-size: 0.6875rem !important;
        padding: 0.45rem 1rem;
        margin-top: 0.65rem;
    }

    body.portal-site #slider-hero-nav .owl-prev,
    body.portal-site #slider-hero-nav .owl-next {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    /* SPMB banner */
    body.portal-site #spmb.spmb-portal-banner {
        padding: 1.25rem 0 1rem;
    }

    body.portal-site #spmb .spmb-portal-banner__img {
        max-height: 220px;
        object-fit: cover;
    }

    body.portal-site #spmb .spmb-portal-banner__btn {
        width: 100%;
        max-width: 280px;
    }

    /* Sambutan */
    body.portal-site #sambutan {
        margin: 1.25rem 0 0;
        padding: 1.25rem 0 1.5rem;
    }

    body.portal-site #sambutan .sambutan {
        margin-top: 0;
        padding: 1.1rem 1rem 1.25rem;
        text-align: center;
    }

    body.portal-site #sambutan .sambutan__title,
    body.portal-site #sambutan h2 {
        font-size: 1.0625rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    body.portal-site .sambutan-tagline {
        font-size: 0.6875rem;
        line-height: 1.6;
        letter-spacing: 0.035em;
        padding: 0 0.15rem 0.75rem;
        margin-bottom: 0.85rem;
        text-align: center;
        text-wrap: balance;
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: none;
    }

    body.portal-site .sambutan-desc {
        font-size: 0.8125rem;
        line-height: 1.65;
        text-align: left;
    }

    body.portal-site .sambutan-desc :is(h3, h4, h5) {
        font-size: 0.8125rem !important;
        margin-bottom: 0.5rem;
    }

    body.portal-site .sambutan:not(:has(.sambutan-tagline)) .sambutan-desc > :first-child {
        font-size: 0.6875rem !important;
        line-height: 1.6 !important;
        text-align: center;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }

    body.portal-site .sambutan .btn-sambutan {
        display: inline-block;
        width: auto;
        min-width: 8.5rem;
    }

    /* Counts 2×2 */
    body.portal-site .counts {
        padding: 1.25rem 0 1.75rem;
        margin-top: 0;
    }

    body.portal-site .counts .count-box {
        padding: 0.75rem 0.65rem;
        flex-direction: column;
        text-align: center;
        gap: 0.35rem;
        transform: none !important;
        opacity: 1 !important;
    }

    body.portal-site .counts .count-box i {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem !important;
        margin: 0 auto 0.25rem;
    }

    body.portal-site .counts .count-box span {
        font-size: 1.25rem;
    }

    body.portal-site .counts .count-box p {
        font-size: 0.6875rem;
    }

    /* Section titles */
    body.portal-site .section-title,
    body.portal-site .portal-section-title {
        margin-bottom: 1rem;
    }

    body.portal-site .section-title h2,
    body.portal-site .portal-section-title h2 {
        font-size: 1rem;
        padding-bottom: 0.55rem;
    }

    /* Prestasi */
    body.portal-site #hero-pres {
        padding: 1.5rem 0 2rem;
    }

    body.portal-site #hero-pres .item-img img {
        min-height: 200px;
        max-height: 280px;
    }

    body.portal-site #hero-pres .item-content {
        width: min(94%, 100%);
        padding: 0.75rem 0.85rem;
    }

    body.portal-site #hero-pres .item-content h2 {
        font-size: 0.9375rem !important;
    }

    body.portal-site #hero-pres .item-content p {
        font-size: 0.75rem !important;
    }

    body.portal-site #slider-tools-4 .owl-prev {
        left: 0.35rem;
    }

    body.portal-site #slider-tools-4 .owl-next {
        right: 0.35rem;
    }

    body.portal-site .btn.btn-more {
        width: 100%;
        max-width: 300px;
        font-size: 0.75rem;
        padding: 0.55rem 1.25rem;
    }

    /* Ekstrakurikuler */
    body.portal-site #features.features.portal-home-eskul {
        padding: 1.5rem 0 2rem;
    }

    body.portal-site .portal-eskul-visual {
        width: min(14rem, 78vw);
        height: min(14rem, 78vw);
    }

    body.portal-site .portal-eskul-head {
        margin-bottom: 1.35rem;
    }

    body.portal-site .portal-eskul-section-title {
        margin-bottom: 0.85rem;
    }

    body.portal-site .portal-eskul-visual {
        width: min(13.5rem, 72vw);
        height: min(13.5rem, 72vw);
    }

    body.portal-site .portal-eskul-list .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    body.portal-site .features .feature-box {
        margin-bottom: 0;
    }

    body.portal-site .features .feature-box h3 {
        font-size: 0.8125rem;
    }

    /* Tenaga pendidik carousel */
    body.portal-site .portal-home-section {
        padding: 1.5rem 0;
    }

    body.portal-site .portal-home-section--pendidik .portal-section-title {
        margin-bottom: 0.75rem;
    }

    body.portal-site .card_box {
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }

    body.portal-site .slider_carousel .owl-prev {
        left: 0.25rem !important;
    }

    body.portal-site .slider_carousel .owl-next {
        right: 0.25rem !important;
    }

    body.portal-site .slider_carousel .owl-prev,
    body.portal-site .slider_carousel .owl-next {
        width: 34px !important;
        height: 34px !important;
    }

    /* Testimoni */
    body.portal-site #customers-testimonials .item {
        padding: 1rem 0.35rem;
        margin-bottom: 1.5rem;
    }

    body.portal-site #customers-testimonials .shadow-effect p {
        font-size: 0.875rem;
    }

    /* Blok galeri & recent post — kartu di mobile */
    body.portal-site .portal-home-block {
        background: var(--portal-surface);
        border: 1px solid var(--portal-border);
        border-radius: var(--portal-radius-lg);
        padding: 1.15rem 1rem 1.25rem;
        box-shadow: var(--portal-shadow);
    }

    body.portal-site .portal-home-block .portal-section-title {
        margin-bottom: 0.85rem;
    }

    body.portal-site .portal-home-gallery__photos ul li,
    body.portal-site .h-gal ul li {
        width: calc(33.333% - 0.35rem);
    }

    body.portal-site .portal-home-gallery__videos iframe,
    body.portal-site .h-vid iframe {
        min-height: 180px;
    }

    body.portal-site .portal-home-recent-posts {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    body.portal-site .portal-home-recent-posts__item {
        padding: 0.75rem 0;
        border-bottom-color: var(--portal-border);
    }

    /* Footer */
    body.portal-site .footer .footer-top {
        padding: 2rem 0 1.25rem;
        text-align: center;
    }

    body.portal-site .footer .footer-top .footer-info .portal-footer-brand {
        justify-content: center;
        text-align: left;
    }

    body.portal-site .footer .footer-top .footer-info .portal-footer-brand__name {
        text-align: left;
    }

    body.portal-site .footer .portal-footer-social {
        justify-content: center;
    }

    body.portal-site .footer .footer-links,
    body.portal-site .footer .footer-contact {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    body.portal-site .footer .footer-top h4::after {
        margin-left: auto;
        margin-right: auto;
    }

    body.portal-site .portal-footer-map-col h4::after {
        margin-left: auto;
        margin-right: auto;
    }

    body.portal-site .portal-footer-map {
        max-width: 20rem;
        margin-inline: auto;
    }

    /* Halaman dalam — blog & sidebar */
    body.portal-site #blog.blog {
        padding: 1.25rem 0 2rem;
    }

    body.portal-site #blog .row > .col-lg-8,
    body.portal-site #blog .row > .col-md-8,
    body.portal-site #blog .row > .col-sm-12 {
        order: 1;
    }

    body.portal-site #blog .row > .col-md-4.sid,
    body.portal-site #blog .row > .col-lg-4 {
        order: 2;
        margin-top: 1.25rem;
        flex: 0 0 100%;
        max-width: 100%;
    }

    body.portal-site .col-md-4.sid .card,
    body.portal-site .component-side .card {
        border-radius: var(--portal-radius);
        overflow: hidden;
        box-shadow: var(--portal-shadow);
        margin-bottom: 1rem;
    }

    body.portal-site .col-md-4.sid .card-header,
    body.portal-site .component-side .card-header {
        background: var(--portal-header-gradient) !important;
        color: #fff !important;
        font-weight: 700;
        border: none;
    }

    body.portal-site .col-md-4.sid .media {
        flex-direction: row;
        align-items: flex-start;
    }

    body.portal-site .col-md-4.sid .media img {
        flex-shrink: 0;
    }

    body.portal-site #blog .card.rounded-0,
    body.portal-site #blog .article-card {
        border-radius: var(--portal-radius) !important;
        overflow: hidden;
    }

    body.portal-site #blog .row.no-gutters {
        flex-direction: column;
    }

    body.portal-site #blog .row.no-gutters > .col-md-4,
    body.portal-site #blog .row.no-gutters > .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    body.portal-site #blog .row.no-gutters .card-img {
        width: 100%;
        max-height: 200px;
        object-fit: cover;
    }

    body.portal-site #blog .btn-outline-primary {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Kontak & form */
    body.portal-site #contact.contact,
    body.portal-site section.contact {
        padding: 1.25rem 0 2rem;
    }

    body.portal-site #contact .form-group.row > label[class*="col-sm"],
    body.portal-site #contact .form-group.row > div[class*="col-sm"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    body.portal-site #contact .form-group.row > label[class*="col-sm"] {
        margin-bottom: 0.35rem;
        font-weight: 600;
        font-size: 0.875rem;
    }

    body.portal-site #contact .card.rounded-0 {
        border-radius: var(--portal-radius) !important;
        overflow: hidden;
    }

    /* Kartu konten umum */
    body.portal-site .card.rounded-0.border-secondary {
        border-radius: var(--portal-radius) !important;
        border-color: var(--portal-border) !important;
    }

}

/* ============================================================
   RESPONSIVE — Mobile kecil (≤ 575px)
   ============================================================ */
@media screen and (min-width: 992px) {
    body.portal-site .portal-footer-map__frame {
        min-height: 11.5rem;
    }
}

@media screen and (max-width: 575.98px) {
    body.portal-site .portal-footer-map__frame {
        min-height: 9.5rem;
        aspect-ratio: 16 / 11;
    }

    body.portal-site .portal-topbar__social-col {
        padding: 0.4rem 0.25rem 0.2rem;
    }

    body.portal-site #topbar .portal-topbar-social {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }

    body.portal-site #topbar .portal-topbar-social a {
        width: 2.125rem;
        height: 2.125rem;
        font-size: 0.9375rem;
    }

    body.portal-site #topbar .portal-topbar-social a svg {
        width: 0.9375rem;
        height: 0.9375rem;
    }

    body.portal-site .portal-topbar__ticker-track {
        animation-duration: 22s;
    }

    body.portal-site .portal-topbar__ticker-item {
        font-size: 0.6875rem;
    }

    body.portal-site .brand .brand-name h1 {
        font-size: 0.8125rem;
    }

    body.portal-site #hero-area .slider-item-img img {
        min-height: 200px;
        max-height: 260px;
    }

    body.portal-site #hero-area .slider-item-content {
        width: 94%;
        padding: 0.75rem 0.85rem;
    }

    body.portal-site .counts .count-box span {
        font-size: 1.125rem;
    }

    body.portal-site .portal-home-gallery__photos ul li,
    body.portal-site .h-gal ul li {
        width: calc(50% - 0.25rem);
    }

    body.portal-site .portal-home-block {
        padding: 1rem 0.85rem 1.1rem;
    }

    body.portal-site .sambutan-tagline {
        font-size: 0.625rem;
        line-height: 1.55;
        letter-spacing: 0.03em;
    }

    body.portal-site .footer .footer-top .footer-info .portal-footer-brand__logo {
        width: 46px;
        height: 46px;
    }

}
