:root {
    --um-blue: #0047A1;
    --um-yellow: #FFD600;
    --um-green: #10B981;
    --um-dark: #0f172a;
    --um-blue-dark: #003380;
    --um-blue-light: #0066CC;
    --um-gray: #6b7280;
    --um-light: #f8fafc;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.12);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 30px rgba(0,71,161,.1);
    --shadow-hover: 0 15px 40px rgba(0,71,161,.15);
    --transition: all .3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #374151;
    overflow-x: clip;
    background-color: #f9fafb;
}

/* ─── BUTTONS ─── */
.btn-um {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-um-primary {
    background: var(--um-blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,71,161,.25);
}
.btn-um-primary:hover {
    background: var(--um-blue-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,71,161,.35);
}
.btn-um-yellow {
    background: var(--um-yellow);
    color: var(--um-dark);
    font-weight: 700;
}
.btn-um-yellow:hover {
    background: #e6c200;
    color: var(--um-dark);
    transform: translateY(-2px);
}
.btn-um-outline-light {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    backdrop-filter: blur(4px);
}
.btn-um-outline-light:hover {
    background: rgba(255,255,255,.25);
    color: #fff;
    transform: translateY(-2px);
}

/* ─── BADGE ─── */
.badge-um {
    background: rgba(0,71,161,.1);
    color: var(--um-blue);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .75rem;
}

/* ─── HEADER ─── */
.um-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #fff;
    box-shadow: var(--shadow-sm);
    height: 80px;
}
.um-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}
.um-header .navbar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--um-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}
.um-header .navbar-brand .logo-text {
    line-height: 1.2;
}
.um-header .navbar-brand .logo-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--um-blue);
    margin: 0;
    letter-spacing: .5px;
}
.um-header .navbar-brand .logo-text small {
    font-size: .6rem;
    color: var(--um-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}
.um-header .nav-link {
    font-size: .82rem;
    font-weight: 600;
    color: #4b5563;
    padding: .5rem .75rem !important;
    transition: var(--transition);
    position: relative;
}
.um-header .nav-link:hover,
.um-header .nav-link.active {
    color: var(--um-blue);
}
.um-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: .75rem;
    right: .75rem;
    height: 2px;
    background: var(--um-blue);
    transform: scaleX(0);
    transition: transform .3s ease;
}
.um-header .nav-link:hover::after,
.um-header .nav-link.active::after {
    transform: scaleX(1);
}

/* ─── HERO ─── */
.hero-section {
    position: relative;
    background: var(--um-dark);
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,34,77,.92) 0%, rgba(0,71,161,.7) 50%, rgba(0,71,161,.15) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 100px;
}
.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: .25rem;
}
.hero-content .hero-tagline {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--um-yellow);
    margin-bottom: 1rem;
}
.hero-content .hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,.9);
    margin-bottom: 1.5rem;
}
.hero-content .hero-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}
.hero-content .hero-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: rgba(255,255,255,.9);
    font-size: .9rem;
}
.hero-content .hero-list li i {
    color: var(--um-yellow);
    font-size: 1.1rem;
}

/* ─── QUICK ACCESS ─── */
.quick-access {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    padding-bottom: 3rem;
}
.quick-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
    display: block;
    height: 100%;
}
.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.quick-card .icon-wrap {
    width: 56px;
    height: 56px;
    background: #eef2ff;
    color: var(--um-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto .75rem;
    transition: var(--transition);
}
.quick-card:hover .icon-wrap {
    background: var(--um-blue);
    color: #fff;
}
.quick-card h3 {
    font-size: .82rem;
    font-weight: 700;
    color: var(--um-dark);
    margin-bottom: 2px;
}
.quick-card p {
    font-size: .72rem;
    color: var(--um-gray);
    margin: 0;
}

/* ─── STATS ─── */
.stats-section {
    background: var(--um-blue);
    padding: 2.5rem 0;
    color: #fff;
}
.stats-section .stat-item {
    text-align: center;
    padding: .5rem;
}
.stats-section .stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--um-yellow);
    margin-bottom: 2px;
}
.stats-section .stat-item p {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: .9;
    margin: 0;
    letter-spacing: .5px;
}

/* ─── WHY UM ─── */
.why-section {
    padding: 4rem 0;
    background: #fff;
}
.why-section .why-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--um-blue);
    line-height: 1.2;
    border-left: 4px solid var(--um-yellow);
    padding-left: 1rem;
}
.why-item {
    text-align: center;
    cursor: pointer;
}
.why-item .icon-box {
    width: 64px;
    height: 64px;
    background: #eef2ff;
    color: var(--um-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto .5rem;
    transition: var(--transition);
}
.why-item:hover .icon-box {
    background: var(--um-blue);
    color: #fff;
}
.why-item span {
    font-size: .75rem;
    font-weight: 600;
    color: var(--um-dark);
}

/* ─── SECTION HEADER ─── */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}
.section-head h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--um-blue);
    line-height: 1.2;
}
.section-head p {
    color: var(--um-gray);
    font-size: .9rem;
    margin: 0;
}

/* ─── FACULTY CARDS ─── */
.faculty-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.faculty-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.faculty-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform .5s ease;
}
.faculty-card:hover img {
    transform: scale(1.05);
}
.faculty-card .card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.faculty-card .card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--um-dark);
    margin-bottom: 4px;
}
.faculty-card .card-body p {
    font-size: .78rem;
    color: var(--um-gray);
    margin-bottom: .75rem;
    flex-grow: 1;
}
.faculty-card .card-body .prodi-count {
    background: #eef2ff;
    color: var(--um-blue);
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: .75rem;
}

/* ─── PRODI OVERLAY CARDS ─── */
.prodi-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}
.prodi-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .5s ease;
}
.prodi-card:hover img {
    transform: scale(1.08);
}
.prodi-card .prodi-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}
.prodi-card .prodi-overlay h3 {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
}
.prodi-card .prodi-overlay .akreditasi {
    color: var(--um-yellow);
    font-weight: 600;
    font-size: .78rem;
}
.prodi-card .prodi-overlay .detail-link {
    color: #fff;
    font-size: .75rem;
    text-decoration: underline;
    opacity: 0;
    transition: opacity .3s ease;
}
.prodi-card:hover .prodi-overlay .detail-link {
    opacity: 1;
}

/* ─── ACHIEVEMENTS ─── */
.achievement-section {
    background: var(--um-blue);
    padding: 3rem 0;
    color: #fff;
}
.achievement-section .achieve-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.achievement-section .achieve-item i {
    font-size: 2.5rem;
    color: var(--um-yellow);
    margin-bottom: .5rem;
}
.achievement-section .achieve-item h4 {
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* ─── NEWS ─── */
.news-section {
    padding: 4rem 0;
    background: #f9fafb;
}
.news-highlight {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    min-height: 400px;
}
.news-highlight img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform .5s ease;
}
.news-highlight:hover img {
    transform: scale(1.05);
}
.news-highlight .highlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--um-blue) 0%, rgba(0,71,161,.5) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}
.news-highlight .highlight-overlay .news-date-badge {
    background: var(--um-yellow);
    color: var(--um-dark);
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    display: inline-block;
    width: max-content;
    margin-bottom: .5rem;
}
.news-highlight .highlight-overlay h3 {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: .5rem;
    transition: color .3s ease;
}
.news-highlight:hover .highlight-overlay h3 {
    color: var(--um-yellow);
}
.news-highlight .highlight-overlay .read-more {
    color: rgba(255,255,255,.8);
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.news-list-item {
    display: flex;
    gap: 1rem;
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 1rem;
}
.news-list-item:last-child {
    margin-bottom: 0;
}
.news-list-item:hover {
    box-shadow: var(--shadow-md);
}
.news-list-item .thumb {
    width: 100px;
    min-width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #e5e7eb;
}
.news-list-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.news-list-item:hover .thumb img {
    transform: scale(1.08);
}
.news-list-item .news-meta {
    font-size: .72rem;
    font-weight: 700;
    color: var(--um-blue);
    margin-bottom: 4px;
    display: block;
}
.news-list-item h4 {
    font-size: .88rem;
    font-weight: 700;
    color: var(--um-dark);
    line-height: 1.4;
    transition: color .3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-list-item:hover h4 {
    color: var(--um-blue);
}

/* ─── FOOTER ─── */
.um-footer {
    background: var(--um-dark);
    color: rgba(255,255,255,.7);
    padding: 4rem 0 0;
}
.um-footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 1.25rem;
}
.um-footer a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    display: block;
    margin-bottom: .6rem;
    font-size: .85rem;
    transition: var(--transition);
}
.um-footer a:hover {
    color: var(--um-yellow);
    padding-left: 4px;
}
.um-footer .social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    margin-right: 8px;
    transition: var(--transition);
    font-size: .9rem;
}
.um-footer .social-link:hover {
    background: var(--um-yellow);
    color: var(--um-dark);
    padding-left: 0;
    transform: translateY(-3px);
}
.um-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.5rem;
    margin-top: 3rem;
    padding-bottom: 1.5rem;
    text-align: center;
    font-size: .82rem;
}

/* ─── BORDER UTILITY ─── */
.border-um-yellow {
    border-color: var(--um-yellow) !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 991.98px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content .hero-tagline { font-size: 1.1rem; }
    .hero-content .hero-desc { font-size: .95rem; }
    .um-header { height: auto; min-height: 64px; }
    .um-header .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        margin-top: .5rem;
    }
}
@media (max-width: 767.98px) {
    .hero-section { min-height: 500px; }
    .hero-content { padding: 100px 0 80px; }
    .hero-content h1 { font-size: 1.6rem; }
    .news-highlight { min-height: 280px; }
    .news-highlight .highlight-overlay h3 { font-size: 1rem; }
    .stats-section .stat-item h3 { font-size: 1.5rem; }
}

/* ─── SWIPER OVERRIDES ─── */
.swiper-button-next,
.swiper-button-prev {
    color: var(--um-blue);
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1rem;
    font-weight: 700;
}
.swiper-pagination-bullet-active {
    background: var(--um-blue);
}

/* ─── CUSTOM HORIZONTAL SCROLLBAR ─── */
.custom-horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}
.custom-horizontal-scroll::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
.custom-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.custom-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
