@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ============================================================
   PORTAL RESMI MTS NEGERI 2 KOTA BLITAR
   Desain Institusional Profesional Berstandar Universitas Brawijaya (ub.ac.id)
   Typography: Poppins Integrated (Navbar & All Content)
   ============================================================ */

/* ---------- RESET & BASE COMPATIBILITY ---------- */
.navbar-header { padding: 0; }
.at-navbar-wrapper { border-top: none; }
.top-header, .at-navbar-wrapper, .at-navbar-trigger-fix { display: none !important; }
.navbar { background: transparent !important; margin-bottom: 0; border: none !important; box-shadow: none !important; min-height: 0 !important; }
.navbar-header { display: none !important; }
.navbar > .container { display: none !important; }
#page, .site { overflow: visible !important; }

/* Base typography - Poppins applied across Navbar, Content & Footer */
body,
.ub-topbar,
.ub-main-header,
.ub-navbar,
.ub-home-wrapper,
.ub-footer,
.ub-hero-content,
.ub-portal-card,
.ub-welcome-box,
.ub-academic-card,
.ub-news-split-layout,
.ub-metrics-strip,
.ub-prestasi-section {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   1. TOP UTILITY BAR (Official Institutional Strip)
   ============================================================ */
.ub-topbar {
    background: #081d33;
    color: #cbd5e1;
    font-size: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ub-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ub-topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.ub-topbar-left span,
.ub-topbar-left a {
    color: #cbd5e1;
    text-decoration: none;
}
.ub-topbar-left a:hover {
    color: #ffffff;
}
.ub-topbar-left i {
    margin-right: 4px;
    color: #c59b27;
}
.ub-topbar-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 10px;
}
.ub-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ub-top-link {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.ub-top-link:hover {
    color: #ffffff;
}
.ub-top-highlight {
    color: #f4c430 !important;
    font-weight: 600;
}
.ub-lang-toggle {
    font-size: 11px;
    color: #64748b;
    margin-left: 6px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.ub-lang-toggle .active {
    color: #ffffff;
    font-weight: 700;
}

/* ============================================================
   2. MAIN BRAND HEADER (Emblem + Government Seal)
   ============================================================ */
.ub-main-header {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}
.ub-main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ub-logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none !important;
}
.ub-logo-img {
    height: 68px;
    width: auto;
    display: block;
}
.ub-logo-text {
    display: flex;
    flex-direction: column;
}
.ub-logo-text .school-gov {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 2px;
}
.ub-logo-text .school-name {
    font-size: 22px;
    font-weight: 800;
    color: #0c2340;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.3px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ub-logo-text .school-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.3;
}

/* Institutional Search */
.ub-header-search {
    display: flex;
    align-items: center;
}
.ub-searchform {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s;
}
.ub-searchform:focus-within {
    border-color: #0c2340;
}
.ub-search-field {
    border: none;
    outline: none;
    padding: 9px 14px;
    font-size: 13px;
    width: 260px;
    color: #1e293b;
    background: transparent;
}
.ub-search-submit {
    background: #0c2340;
    border: none;
    color: #ffffff;
    padding: 9px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.ub-search-submit:hover {
    background: #1e3a5f;
}

/* ============================================================
   3. STICKY NAVBAR (UB Institutional Style)
   ============================================================ */
.ub-navbar {
    background: #0c2340;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    overflow: visible;
}
.ub-navbar.admin-bar-fix {
    top: 32px;
}
.ub-navbar .container {
    display: flex;
    align-items: stretch;
    position: static;
    overflow: visible;
    padding: 0 15px;
}
.ub-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow: visible;
}
.ub-nav-menu > li {
    position: relative;
    list-style: none;
    margin: 0;
}
.ub-nav-menu > li > a {
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0 16px;
    height: 48px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1;
}
.ub-nav-menu > li > a:hover,
.ub-nav-menu > li.current-menu-item > a,
.ub-nav-menu > li.current_page_item > a,
.ub-nav-menu > li.current-menu-ancestor > a {
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: #c59b27;
    color: #ffffff;
}
.ub-nav-menu > li.menu-item-has-children > a::after {
    content: "\f107";
    font-family: FontAwesome;
    font-size: 11px;
    margin-left: 6px;
    opacity: 0.7;
}

/* Dropdown */
.ub-nav-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 240px;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    z-index: 99999;
    border: 1px solid #cbd5e1;
    border-top: none;
    border-radius: 0 0 4px 4px;
}
.ub-nav-menu li ul ul {
    top: 0;
    left: 100%;
    border: 1px solid #cbd5e1;
}
.ub-nav-menu li ul li {
    display: block;
    float: none;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}
.ub-nav-menu li ul li:last-child {
    border-bottom: none;
}
.ub-nav-menu li ul li a {
    display: block;
    padding: 10px 18px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}
.ub-nav-menu li ul li a:hover {
    background: #f8fafc;
    color: #0c2340;
    font-weight: 600;
}
.ub-nav-menu li:hover > ul,
.ub-nav-menu li:focus-within > ul {
    display: block;
}

/* Mobile Toggle */
.ub-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    margin: 6px 0;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   4. HOMEPAGE BASE & BUTTONS
   ============================================================ */
.ub-home-wrapper {
    background: #ffffff;
    color: #334155;
    line-height: 1.6;
}

.ub-section {
    padding: 56px 0;
}

/* Clean Institutional Buttons */
.ub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none !important;
    cursor: pointer;
    line-height: 1.3;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ub-btn-lg {
    padding: 13px 26px;
    font-size: 14.5px;
}
.ub-btn-gold {
    background: #c59b27;
    color: #ffffff !important;
    border: 1px solid #b28a1e;
}
.ub-btn-gold:hover {
    background: #b28a1e;
    color: #ffffff !important;
}
.ub-btn-navy {
    background: #0c2340;
    color: #ffffff !important;
    border: 1px solid #0c2340;
}
.ub-btn-navy:hover {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #ffffff !important;
}
.ub-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.ub-btn-ghost:hover {
    background: #ffffff;
    color: #0c2340 !important;
    border-color: #ffffff;
}
.ub-btn-outline {
    background: transparent;
    color: #0c2340 !important;
    border: 1px solid #0c2340;
}
.ub-btn-outline:hover {
    background: #0c2340;
    color: #ffffff !important;
}
.ub-btn-outline-white {
    background: transparent;
    color: #ffffff !important;
    border: 1px solid #ffffff;
}
.ub-btn-outline-white:hover {
    background: #ffffff;
    color: #0c2340 !important;
}

/* Section Headings - Clean Institutional Typography (UB.ac.id style) */
.ub-section-head {
    text-align: center;
    margin-bottom: 36px;
}
.ub-section-tag {
    display: none !important;
}
.ub-section-heading {
    font-size: 28px;
    font-weight: 700;
    color: #0c2340;
    margin: 0 0 10px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.3;
    letter-spacing: -0.2px;
}
.ub-heading-border {
    display: none !important;
}
.ub-section-sub {
    font-size: 15px;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================
   5. HERO CAROUSEL (Auto-Slide Institutional Banner)
   ============================================================ */
.ub-hero-carousel {
    position: relative;
    background: #081d33;
    color: #ffffff;
    overflow: hidden;
    width: 100%;
    min-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}
.ub-slides-track {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: calc(100vh - 110px);
    display: flex;
}
.ub-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 110px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 90px 0 100px;
    z-index: 1;
    box-sizing: border-box;
}
.ub-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
    display: flex;
}
.ub-hero-carousel .container {
    width: 100%;
    max-width: 1400px;
    padding-left: 40px;
    padding-right: 40px;
}
.ub-hero-content {
    max-width: 950px;
}
.ub-hero-overline {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: #f4c430;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.ub-hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 18px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
}
.ub-hero-desc {
    font-size: 16px;
    line-height: 1.75;
    color: #f1f5f9;
    margin: 0 0 28px;
    max-width: 820px;
    text-align: justify;
    text-justify: inter-word;
}
.ub-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Slider Navigation Arrows */
.ub-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: rgba(8, 29, 51, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}
.ub-slide-prev {
    left: 24px;
}
.ub-slide-next {
    right: 24px;
}
.ub-slide-nav:hover {
    background: #c59b27;
    border-color: #c59b27;
    color: #ffffff;
}

/* Dash Indicators */
.ub-slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 8px;
    align-items: center;
}
.ub-slide-dot {
    width: 24px;
    height: 4px;
    border: none;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
    outline: none;
}
.ub-slide-dot.active {
    width: 38px;
    background: #f4c430;
}

/* ============================================================
   6. INSTITUTIONAL RUNNING ANNOUNCEMENT & GATEWAYS (UB Style)
   ============================================================ */
.ub-gateway-section {
    position: relative;
    z-index: 10;
}

/* Announcement Running Text (Marquee) */
.ub-announcement-strip {
    background: #081d33;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
    overflow: hidden;
}
.ub-announcement-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ub-ann-badge {
    background: #c59b27;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 3px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}
.ub-ann-marquee-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
}
.ub-ann-marquee-track {
    display: inline-flex;
    white-space: nowrap;
    animation: ubMarqueeScroll 32s linear infinite;
}
.ub-ann-marquee-wrap:hover .ub-ann-marquee-track {
    animation-play-state: paused;
}
.ub-ann-marquee-item {
    display: inline-block;
    padding-right: 80px;
    font-size: 13.5px;
    color: #e2e8f0;
    font-weight: 500;
}
.ub-ann-action {
    flex-shrink: 0;
}
.ub-ann-link {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 3px;
    text-decoration: none !important;
    transition: background 0.15s;
    white-space: nowrap;
    display: inline-block;
}
.ub-ann-link:hover {
    background: #c59b27;
}

@keyframes ubMarqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* 4-Door Institutional Gateways (Clean, Spacious, No Icons) */
.ub-gateway-bar {
    background: #f8fafc;
    padding: 34px 0 38px;
    border-bottom: 1px solid #e2e8f0;
}
.ub-gateway-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ub-gateway-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 24px 22px;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    min-height: 190px;
}
.ub-gateway-card:hover {
    border-color: #0c2340;
    box-shadow: 0 8px 22px rgba(12, 35, 64, 0.08);
    transform: translateY(-3px);
}
.ub-gateway-card-top {
    margin-bottom: 10px;
}
.ub-gateway-num {
    font-size: 13px;
    font-weight: 800;
    color: #c59b27;
    letter-spacing: 0.5px;
    display: inline-block;
}
.ub-gateway-title {
    font-size: 16px;
    font-weight: 700;
    color: #0c2340;
    margin: 0 0 10px;
    line-height: 1.35;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ub-gateway-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 16px;
    flex-grow: 1;
    text-align: justify;
    text-justify: inter-word;
}
.ub-gateway-btn {
    font-size: 12.5px;
    font-weight: 600;
    color: #0c2340;
    display: inline-block;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    transition: color 0.15s;
}
.ub-gateway-card:hover .ub-gateway-btn {
    color: #c59b27;
}

/* ============================================================
   7. SAMBUTAN RESMI KEPALA MADRASAH
   ============================================================ */
.ub-welcome-section {
    background: #ffffff;
}
.ub-welcome-box {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
}
.ub-id-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.ub-id-logo {
    height: 84px;
    width: auto;
    margin: 0 auto 14px;
    display: block;
}
.ub-id-gov {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 4px;
}
.ub-id-name {
    font-size: 17px;
    font-weight: 700;
    color: #0c2340;
    margin: 0 0 3px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ub-id-role {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px;
}
.ub-id-rule {
    display: none;
}
.ub-id-motto {
    font-size: 11.5px;
    font-weight: 600;
    color: #c59b27;
    text-transform: uppercase;
}

.ub-welcome-heading {
    font-size: 26px;
    font-weight: 700;
    color: #0c2340;
    margin: 0 0 18px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.35;
    letter-spacing: -0.2px;
}
.ub-welcome-quote-wrap {
    margin-bottom: 22px;
}
.ub-welcome-statement {
    font-size: 15px;
    color: #334155;
    line-height: 1.85;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-style: italic;
    text-align: justify;
    text-justify: inter-word;
}
.ub-checklist {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ub-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
}
.ub-check-row i {
    color: #0c2340;
    font-size: 13px;
    opacity: 0.85;
}
.ub-welcome-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   8. PROGRAM PENDIDIKAN (UB Academic Structure)
   ============================================================ */
.ub-academic-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.ub-academic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ub-academic-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ub-academic-card:hover {
    border-color: #0c2340;
    box-shadow: 0 4px 14px rgba(12, 35, 64, 0.08);
}
.ub-academic-header {
    padding: 20px 20px 14px;
    border-bottom: 1px solid #f1f5f9;
}
.ub-academic-num {
    font-size: 12px;
    font-weight: 800;
    color: #c59b27;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.ub-academic-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0c2340;
    margin: 0;
    line-height: 1.35;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ub-academic-body {
    padding: 16px 20px;
    flex-grow: 1;
}
.ub-academic-body p {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 14px;
    text-align: justify;
    text-justify: inter-word;
}
.ub-academic-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}
.ub-academic-specs li {
    font-size: 12px;
    color: #334155;
    margin-bottom: 6px;
    position: relative;
    padding-left: 14px;
    line-height: 1.4;
}
.ub-academic-specs li::before {
    content: "•";
    color: #c59b27;
    position: absolute;
    left: 0;
    font-weight: bold;
}
.ub-academic-footer {
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
.ub-academic-footer a {
    font-size: 12px;
    font-weight: 600;
    color: #0c2340;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}
.ub-academic-footer a:hover {
    color: #c59b27;
}

/* ============================================================
   9. WARTA & BERITA RESMI (UB Split News Layout)
   ============================================================ */
.ub-news-section {
    background: #ffffff;
}
.ub-news-split-layout {
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

/* Lead News */
.ub-lead-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ub-lead-thumb-link {
    display: block;
    position: relative;
    height: 220px;
    overflow: hidden;
}
.ub-lead-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ub-lead-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0c2340;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}
.ub-lead-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ub-meta-row {
    font-size: 11.5px;
    color: #94a3b8;
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
}
.ub-lead-headline {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.35;
}
.ub-lead-headline a {
    color: #0c2340;
    text-decoration: none !important;
}
.ub-lead-headline a:hover {
    color: #c59b27;
}
.ub-lead-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
    flex-grow: 1;
    text-align: justify;
    text-justify: inter-word;
}
.ub-lead-more {
    font-size: 12.5px;
    font-weight: 600;
    color: #0c2340;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ub-lead-more:hover {
    color: #c59b27;
}

/* Secondary Stream */
.ub-news-stream-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ub-stream-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.ub-stream-thumb {
    width: 84px;
    height: 74px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}
.ub-stream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ub-stream-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
    display: flex;
    gap: 8px;
}
.ub-stream-cat {
    color: #0c2340;
    font-weight: 700;
}
.ub-stream-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}
.ub-stream-title a {
    color: #0c2340;
    text-decoration: none !important;
}
.ub-stream-title a:hover {
    color: #c59b27;
}

/* Bulletin / Announcements Panel */
.ub-bulletin-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ub-bulletin-panel-head {
    background: #0c2340;
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ub-bulletin-panel-head i {
    color: #c59b27;
    font-size: 15px;
}
.ub-bulletin-panel-head h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}
.ub-bulletin-list {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}
.ub-bulletin-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}
.ub-bulletin-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ub-bulletin-date-badge {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}
.ub-b-day {
    font-size: 15px;
    font-weight: 800;
    color: #0c2340;
}
.ub-b-mon {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 2px;
}
.ub-bulletin-row-info h4 {
    font-size: 12.5px;
    font-weight: 600;
    margin: 0 0 2px;
    line-height: 1.35;
}
.ub-bulletin-row-info h4 a {
    color: #1e293b;
    text-decoration: none !important;
}
.ub-bulletin-row-info h4 a:hover {
    color: #c59b27;
}
.ub-bulletin-year {
    font-size: 10.5px;
    color: #94a3b8;
}
.ub-bulletin-foot-link {
    display: block;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    padding: 11px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #0c2340;
    text-decoration: none !important;
}

.ub-news-archive-bar {
    text-align: center;
}

/* ============================================================
   10. INSTITUTIONAL METRICS STRIP
   ============================================================ */
.ub-metrics-strip {
    background: #0c2340;
    color: #ffffff;
    padding: 42px 0;
}
.ub-metrics-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    text-align: center;
}
.ub-metric-box {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
}
.ub-metric-box:last-child {
    border-right: none;
}
.ub-metric-val {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: #f4c430;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-bottom: 4px;
    line-height: 1;
}
.ub-metric-title {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}
.ub-metric-sub {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

/* ============================================================
   11. PRESTASI SISWA
   ============================================================ */
.ub-prestasi-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.ub-prestasi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}
.ub-prestasi-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ub-prestasi-img-wrap {
    height: 170px;
    display: block;
    overflow: hidden;
}
.ub-prestasi-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ub-prestasi-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ub-prestasi-meta-date {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.ub-prestasi-item-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
    flex-grow: 1;
}
.ub-prestasi-item-title a {
    color: #0c2340;
    text-decoration: none !important;
}
.ub-prestasi-item-title a:hover {
    color: #c59b27;
}
.ub-prestasi-item-link {
    font-size: 11.5px;
    font-weight: 600;
    color: #c59b27;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   12. CALL TO ACTION STRIP
   ============================================================ */
.ub-cta-strip {
    background: #081d33;
    padding: 45px 0;
    color: #ffffff;
}
.ub-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.ub-cta-notice {
    font-size: 11.5px;
    font-weight: 700;
    color: #f4c430;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}
.ub-cta-headline {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ub-cta-lead {
    font-size: 14.5px;
    color: #e2e8f0 !important;
    margin: 0;
    max-width: 620px;
    line-height: 1.65;
    text-align: justify;
    text-justify: inter-word;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ub-cta-btn-side {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ============================================================
   13. FOOTER (UB Institutional Style)
   ============================================================ */
.site-footer {
    background: transparent;
    overflow: visible;
}
.ub-footer {
    background: #0c2340;
    color: #cbd5e1;
}
.ub-footer-top {
    padding: 45px 0 35px;
}
.ub-footer-inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 36px;
    width: 100%;
}
.ub-footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.ub-footer-logo {
    height: 52px;
    width: auto;
    display: block;
}
.ub-footer-gov {
    font-size: 9.5px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.6px;
    display: block;
}
.ub-footer-brand-text .brand-name {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.2;
}
.ub-footer-brand-text .brand-sub {
    font-size: 11px;
    color: #94a3b8;
    display: block;
}
.ub-footer-contact-list p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.ub-footer-contact-list p i {
    color: #c59b27;
    margin-top: 3px;
    width: 14px;
    flex-shrink: 0;
}
.ub-footer-contact-list a {
    color: #cbd5e1;
    text-decoration: none;
}
.ub-footer-contact-list a:hover {
    color: #ffffff;
}

.ub-footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.ub-social-label {
    font-size: 11.5px;
    color: #94a3b8;
}
.ub-footer-social a {
    color: #cbd5e1;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.15s;
}
.ub-footer-social a:hover {
    color: #f4c430;
}

.ub-footer-col h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
    padding-bottom: 0;
    border-bottom: none;
}
.ub-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ub-footer-col ul li {
    margin-bottom: 7px;
}
.ub-footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 12.5px;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ub-footer-col ul li a::before {
    content: "›";
    color: #c59b27;
    font-size: 14px;
}
.ub-footer-col ul li a:hover {
    color: #ffffff;
}

/* Footer Bottom Bar */
.ub-footer-bottom {
    background: #081d33;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ub-footer-bottom .ub-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.ub-footer-bottom p {
    margin: 0;
    font-size: 11.5px;
    color: #94a3b8;
}
.ub-footer-legal a {
    color: #cbd5e1;
    text-decoration: none;
}
.ub-footer-legal a:hover {
    color: #ffffff;
}

/* Hide theme footer overrides */
.footer-top-wrapper, .footer-bottom-wrapper, .acme-full-width-sidebar {
    display: none !important;
}

/* ============================================================
   RESPONSIVE QUERIES
   ============================================================ */
@media (max-width: 1023px) {
    .ub-mobile-toggle {
        display: inline-flex;
    }
    .ub-nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0c2340;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        z-index: 99000;
        overflow: visible;
    }
    .ub-nav-menu.open {
        display: flex;
    }
    .ub-nav-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .ub-nav-menu > li > a {
        height: auto;
        padding: 12px 18px;
        border-bottom: none;
        width: 100%;
    }
    .ub-nav-menu li ul {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid #c59b27;
        background: rgba(0, 0, 0, 0.2);
        margin-left: 14px;
    }
    .ub-nav-menu li ul li a {
        color: #cbd5e1;
        padding: 8px 16px;
        font-size: 12.5px;
    }
    .ub-nav-menu li:hover > ul {
        display: none;
    }
    .ub-nav-menu li.open > ul {
        display: block !important;
    }

    .ub-gateway-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ub-announcement-inner {
        flex-wrap: wrap;
        gap: 10px;
    }
    .ub-academic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ub-news-split-layout {
        grid-template-columns: 1fr 1fr;
    }
    .ub-bulletin-col {
        grid-column: span 2;
    }
    .ub-metrics-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .ub-prestasi-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .ub-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .ub-main-header .container {
        flex-wrap: wrap;
        gap: 12px;
    }
    .ub-search-field {
        width: 180px;
    }
}

@media (max-width: 767px) {
    .ub-topbar-left {
        display: none;
    }
    .ub-slide {
        padding: 60px 0 80px;
        min-height: 80vh;
    }
    .ub-slides-track {
        min-height: 80vh;
    }
    .ub-hero-carousel {
        min-height: 80vh;
    }
    .ub-slide-nav {
        display: none;
    }
    .ub-slide-indicators {
        bottom: 25px;
    }
    .ub-hero-title {
        font-size: 24px;
    }
    .ub-hero-desc {
        font-size: 13px;
        line-height: 1.5;
    }
    .ub-gateway-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .ub-ann-action {
        display: none;
    }
    .ub-welcome-box {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ub-id-card {
        max-width: 320px;
        margin: 0 auto;
    }
    .ub-portal-grid {
        grid-template-columns: 1fr;
    }
    .ub-academic-grid {
        grid-template-columns: 1fr;
    }
    .ub-news-split-layout {
        grid-template-columns: 1fr;
    }
    .ub-bulletin-col {
        grid-column: span 1;
    }
    .ub-metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .ub-prestasi-row {
        grid-template-columns: 1fr;
    }
    .ub-cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .ub-cta-btn-side {
        justify-content: center;
    }
    .ub-footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ub-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .ub-header-search {
        display: none;
    }
    .ub-logo-text .school-name {
        font-size: 16px;
    }
    .ub-logo-img {
        height: 50px;
    }
    .ub-metrics-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   14. INNER PAGES - INSTITUTIONAL LAYOUT (UB Style)
   All WordPress Pages & Posts (page.php, single.php, etc.)
   ============================================================ */
.site-content {
    padding: 24px 0 65px;
    background: #ffffff !important;
    min-height: 520px;
}

/* ==========================================================================
   AUTHENTIC INSTITUTIONAL BREADCRUMB BAR (Clean Light Standard - ub.ac.id style)
   ========================================================================== */
.inner-main-title,
.ub-page-banner {
    display: none !important;
}

.ub-breadcrumb-bar {
    width: 100%;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 13px 0;
    margin-bottom: 32px;
}
.ub-crumbs {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0 15px;
}
.ub-crumb-link {
    color: #64748b;
    text-decoration: none !important;
    transition: color 0.15s ease;
    font-weight: 400;
}
.ub-crumb-link:hover {
    color: #0c2340 !important;
    text-decoration: underline !important;
}
.ub-crumb-sep {
    color: #cbd5e1;
    font-size: 12px;
}
.ub-crumb-active {
    color: #0c2340;
    font-weight: 600;
}

/* ==========================================================================
   ARTICLE & PAGE HEADERS (Authentic Human Journalistic / Academic Layout)
   ========================================================================== */
.ub-article-header,
.ub-page-header {
    margin-bottom: 22px;
}
.ub-article-kicker,
.ub-page-kicker {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #b38312;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.ub-article-title,
.ub-page-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 29px !important;
    font-weight: 700 !important;
    color: #0c2340 !important;
    line-height: 1.35 !important;
    margin: 0 0 14px 0 !important;
    letter-spacing: -0.2px;
    text-transform: none !important;
}
.ub-article-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
}
.ub-byline-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ub-byline-item i {
    color: #94a3b8;
    font-size: 13px;
}
.ub-byline-bullet {
    color: #cbd5e1;
    font-size: 12px;
}
.ub-article-rule,
.ub-page-rule {
    height: 1px;
    background: #e2e8f0;
    margin-bottom: 24px;
}

/* ==========================================================================
   PRIMARY CONTENT & SIDEBAR LAYOUT (Seamless Journalistic Standard)
   ========================================================================== */
#primary {
    float: left;
    width: 68.5%;
    padding-right: 36px;
    box-sizing: border-box;
}
.right-sidebar #primary {
    float: left;
}
.left-sidebar #primary {
    float: right;
    padding-right: 0;
    padding-left: 36px;
}
.no-sidebar #primary {
    float: none;
    width: 100%;
    padding-right: 0;
}
#secondary,
.secondary-sidebar {
    float: right;
    width: 31.5%;
    padding-left: 20px;
    box-sizing: border-box;
    border-left: 1px solid #f1f5f9;
}

/* Eliminate Artificial Box/Card: Reading Area Flows Naturally Without Boundaries */
.content-wrapper,
article.post .content-wrapper,
article.page .content-wrapper,
.ub-single-content-wrapper,
.ub-page-content-wrapper {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   IMAGE UI/UX & LAYOUTING (Zero Overflow, Full Responsive)
   ========================================================================== */
.entry-content img,
.single-feat img,
.wp-block-image img,
.wp-block-image figure,
figure.wp-block-image,
.content-wrapper img,
.ub-single-featured-wrap img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 18px rgba(12, 35, 64, 0.08) !important;
    border: 1px solid #e2e8f0;
}
.wp-block-image {
    margin-top: 24px !important;
    margin-bottom: 28px !important;
    max-width: 100% !important;
    clear: both;
}
.single-feat {
    margin-bottom: 28px !important;
}

/* ==========================================================================
   CONTENT TYPOGRAPHY (Fully Justified Standard)
   ========================================================================== */
.entry-content {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155;
    font-size: 15.5px;
    line-height: 1.85;
}
.entry-content p,
.content-wrapper p,
.wp-block-paragraph,
.page-content p,
.ub-welcome-statement,
.ub-academic-body p,
.ub-lead-desc,
.ub-gateway-desc {
    text-align: justify !important;
    text-justify: inter-word !important;
    font-size: 15.5px;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 22px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: manual;
}

/* Institutional CTA Lead Text - High Contrast for Dark Background */
.ub-cta-strip .ub-cta-lead,
p.ub-cta-lead {
    color: #f1f5f9 !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    text-align: justify !important;
    text-justify: inter-word !important;
    margin: 0 !important;
    max-width: 620px !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    opacity: 0.95 !important;
    display: block !important;
    visibility: visible !important;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #0c2340;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 14px;
    line-height: 1.35;
}
.entry-content ul,
.entry-content ol {
    margin-bottom: 22px;
    padding-left: 26px;
    color: #334155;
    line-height: 1.8;
}
.entry-content ul li,
.entry-content ol li {
    margin-bottom: 8px;
    text-align: justify !important;
    text-justify: inter-word !important;
}
.entry-content blockquote {
    background: #f8fafc;
    padding: 20px 24px;
    margin: 24px 0;
    font-style: italic;
    color: #334155;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.entry-content blockquote p {
    margin-bottom: 0;
    text-align: justify !important;
}
.entry-content table {
    width: 100%;
    margin-bottom: 24px;
    border-collapse: collapse;
}
.entry-content table th {
    background: #0c2340;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 16px;
    font-size: 14px;
}
.entry-content table td {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #334155;
}
.entry-content table tr:nth-child(even) {
    background: #f8fafc;
}

/* ==========================================================================
   RELATED POSTS BENEATH SINGLE ARTICLE
   ========================================================================== */
.ub-single-related-wrap {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 2px solid #e2e8f0;
}
.ub-single-related-header {
    margin-bottom: 20px;
}
.ub-single-related-label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #b38312;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.ub-single-related-heading {
    font-family: 'Poppins', sans-serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #0c2340 !important;
    margin: 0 !important;
}
.ub-single-related-grid {
    margin-left: -10px;
    margin-right: -10px;
}
.ub-single-related-col {
    padding-left: 10px;
    padding-right: 10px;
}
.ub-single-related-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    margin-bottom: 18px;
}
.ub-single-related-card:hover {
    transform: translateY(-4px);
    border-color: #0c2340;
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.12);
}
.ub-related-img-holder {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f1f5f9;
}
.ub-related-img-holder img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    transition: transform 0.35s ease;
}
.ub-single-related-card:hover .ub-related-img-holder img {
    transform: scale(1.06);
}
.ub-related-body {
    padding: 14px 16px;
}
.ub-related-date {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-bottom: 6px;
}
.ub-related-date i {
    color: #e5a823;
    margin-right: 4px;
}
.ub-related-post-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    color: #0c2340 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ub-single-related-card:hover .ub-related-post-title {
    color: #b38312 !important;
}

/* ==========================================================================
   POST NAVIGATION (Previous / Next Article Cards)
   ========================================================================== */
.post-navigation {
    margin: 34px 0 38px !important;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}
.post-navigation .nav-links {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1 1 280px;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
}
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: block;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(12, 35, 64, 0.04);
}
.post-navigation .nav-next a {
    text-align: right;
}
.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
    border-color: #0c2340;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(12, 35, 64, 0.09);
}
.ub-nav-card {
    display: flex;
    flex-direction: column;
}
.ub-nav-dir {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #b38312;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}
.ub-nav-post-title {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0c2340;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   COMMENTS & FEEDBACK FORM
   ========================================================================== */
.comments-area {
    margin-top: 36px;
    padding: 28px 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.comments-area .comments-title,
.comments-area .comment-reply-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0c2340 !important;
    margin-bottom: 18px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 14px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #0c2340;
}
.comment-form .form-submit input[type="submit"] {
    background: #0c2340;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 26px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.comment-form .form-submit input[type="submit"]:hover {
    background: #e5a823;
    color: #0c2340;
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */

/* Safety: hide META widget & empty recent-comments from frontend */
.widget_meta,
.widget_recent_comments:not(:has(li)) {
    display: none !important;
}

.widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px 22px;
    margin-bottom: 26px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.widget-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0c2340;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0c2340;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget ul li {
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
    line-height: 1.5;
}
.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.widget ul li a {
    color: #334155;
    text-decoration: none;
    transition: color 0.15s;
    font-weight: 500;
}
.widget ul li a:hover {
    color: #c59b27;
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
    gap: 0;
}
.widget_search .search-field {
    flex: 1;
    padding: 9px 13px;
    border: 1.5px solid #d1d5db;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.15s;
}
.widget_search .search-field:focus {
    border-color: #0c2340;
}
.widget_search .search-submit {
    padding: 9px 15px;
    background: #0c2340;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.15s;
}
.widget_search .search-submit:hover {
    background: #1e3a5f;
}

/* Categories widget — show count badge */
.widget_categories ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.widget_categories ul li .post-count,
.widget_categories ul li a + span {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 20px;
    font-weight: 600;
}

/* ==========================================================================
   INNER PAGE RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    #primary,
    #secondary,
    .secondary-sidebar {
        float: none !important;
        width: 100% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        border-left: none !important;
    }
    .content-wrapper,
    article.post .content-wrapper,
    article.page .content-wrapper {
        padding: 0 !important;
    }
    .ub-article-title,
    .ub-page-title {
        font-size: 22px !important;
    }
}
