:root {
    --spms-navy: #052657;
    --spms-navy-2: #021a3c;
    --spms-blue: #0f4ba7;
    --spms-gold: #f2b51d;
    --spms-gold-2: #d99a08;
    --spms-text: #0d2857;
    --spms-muted: #63718a;
    --spms-soft: #f3f7fc;
    --spms-border: #dce5f2;
}

* {
    box-sizing: border-box;
}

body.spms-public-body {
    margin: 0;
    background: #f4f7fb;
    color: var(--spms-text);
    font-family: "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

.spms-topbar {
    background: linear-gradient(90deg, #031a3d, #062a61);
    color: #fff;
    position: relative;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.spms-topbar .navbar {
    min-height: 104px;
    padding: 12px 0;
}

.spms-nav-container {
    max-width: 1180px;
}

.spms-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff !important;
    text-decoration: none;
    min-width: 330px;
}

.spms-brand-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}

.spms-brand strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.15;
    color: #fff;
    font-weight: 800;
}

.spms-brand small {
    display: block;
    color: var(--spms-gold);
    font-weight: 700;
    font-size: .9rem;
    margin-top: 3px;
}

.spms-topbar .nav-link {
    color: #fff !important;
    font-weight: 700;
    font-size: .95rem;
    padding: 14px 12px !important;
    position: relative;
    opacity: .96;
}

.spms-topbar .nav-link.active,
.spms-topbar .nav-link:hover {
    color: var(--spms-gold) !important;
}

.spms-topbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 3px;
    border-radius: 10px;
    background: var(--spms-gold);
}

.spms-login-btn {
    background: linear-gradient(135deg, #f7c84d, var(--spms-gold));
    color: #091b3d !important;
    border-radius: 10px;
    padding: 11px 18px !important;
    font-weight: 800;
    border: 0;
    box-shadow: 0 8px 18px rgba(242, 181, 29, .28);
}

.spms-login-btn:hover {
    background: #fff;
    color: var(--spms-navy) !important;
}

.spms-nav-toggle {
    border: 1px solid rgba(255,255,255,.45);
    color: #fff;
}

/* HERO */
.spms-hero {
    position: relative;
    min-height: 575px;
    background:
        linear-gradient(90deg, rgba(3, 21, 50, .98) 0%, rgba(3, 21, 50, .88) 32%, rgba(3, 21, 50, .30) 62%, rgba(3, 21, 50, .08) 100%),
        url("../img/dspg-campus-hero.jpg");
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.spms-hero::before {
    content: "";
    position: absolute;
    left: -130px;
    top: 40px;
    width: 430px;
    height: 430px;
    background: url("../img/dspg-logo.png") center/contain no-repeat;
    opacity: .08;
    filter: grayscale(100%);
}

.spms-hero-content {
    position: relative;
    z-index: 3;
    max-width: 1180px;
    min-height: 575px;
    display: flex;
    align-items: center;
}

.spms-hero-copy {
    max-width: 790px;
    padding: 52px 0;
}

.spms-hero h1 {
    color: #fff;
    font-size: clamp(2.35rem, 4.2vw, 4.25rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.04em;
    margin: 0;
    text-shadow: 0 8px 28px rgba(0, 0, 0, .32);
}

.spms-hero h1 span {
    color: #ffd55a;
}

.spms-title-line {
    width: 72px;
    height: 4px;
    background: var(--spms-gold);
    border-radius: 12px;
    margin: 24px 0 22px;
}

.spms-hero p {
    color: rgba(255, 255, 255, .95);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 610px;
    margin-bottom: 28px;
}

.spms-hero-search {
    max-width: 790px;
    height: 68px;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 22px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.spms-hero-search i {
    color: #8794aa;
    font-size: 1.25rem;
}

.spms-hero-search input {
    border: 0;
    outline: 0;
    flex: 1;
    height: 100%;
    font-size: 1.05rem;
    color: var(--spms-text);
}

.spms-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
}

.spms-btn-gold,
.spms-btn-outline {
    min-width: 220px;
    min-height: 56px;
    border-radius: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spms-btn-gold {
    background: linear-gradient(135deg, #f8c74d, #e5a70f);
    color: #091d42;
    border: 0;
    box-shadow: 0 12px 22px rgba(242, 181, 29, .28);
}

.spms-btn-gold:hover {
    background: #fff;
    color: var(--spms-navy);
}

.spms-btn-outline {
    color: #fff;
    border: 2px solid rgba(255,255,255,.78);
    background: rgba(0, 23, 55, .34);
}

.spms-btn-outline:hover {
    background: #fff;
    color: var(--spms-navy);
}

/* STATS */
.spms-stats-wrap {
    background: #fff;
    padding: 34px 0 42px;
}

.spms-stats-wrap .container {
    max-width: 1180px;
}

.spms-stat-card {
    background: #fff;
    border: 1px solid var(--spms-border);
    border-radius: 16px;
    padding: 25px 25px;
    min-height: 142px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 10px 25px rgba(13, 40, 87, .08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.spms-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(13, 40, 87, .13);
}

.spms-stat-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    flex: none;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.85rem;
}

.spms-stat-icon.blue {
    background: linear-gradient(135deg, #0751b2, #062f75);
}

.spms-stat-icon.gold {
    background: linear-gradient(135deg, #f2bd2b, #db9507);
}

.spms-stat-card h3 {
    color: var(--spms-navy);
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
    margin: 0 0 4px;
}

.spms-stat-card strong {
    display: block;
    color: var(--spms-navy);
    font-weight: 900;
    margin-bottom: 4px;
}

.spms-stat-card p {
    color: var(--spms-muted);
    margin: 0;
    font-size: .9rem;
    line-height: 1.35;
}

/* FEATURED AREAS */
.spms-featured-areas {
    background: linear-gradient(180deg, #f3f8ff, #ffffff);
    padding: 42px 0 48px;
    border-top: 1px solid #e9eff7;
    border-bottom: 1px solid #e9eff7;
}

.spms-featured-areas .container,
.spms-recent-section .container {
    max-width: 1180px;
}

.spms-section-heading h2,
.spms-section-top h2 {
    color: var(--spms-navy);
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 8px;
}

.spms-section-heading h2::before,
.spms-section-heading h2::after {
    content: "";
    display: inline-block;
    width: 42px;
    height: 3px;
    background: var(--spms-gold);
    border-radius: 10px;
    vertical-align: middle;
    margin: 0 18px;
}

.spms-section-heading p,
.spms-section-top p {
    color: var(--spms-muted);
    margin: 0;
}

.spms-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}

.spms-topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: 1.8px solid rgba(7, 74, 165, .35);
    border-radius: 999px;
    background: #fff;
    color: var(--spms-navy);
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(13, 40, 87, .06);
    transition: all .18s ease;
}

.spms-topic-chip:nth-child(even) {
    border-color: rgba(242, 181, 29, .75);
}

.spms-topic-chip:hover {
    transform: translateY(-2px);
    background: var(--spms-navy);
    color: #fff;
}

/* RECENT */
.spms-recent-section {
    background: #fff;
    padding: 52px 0 62px;
}

.spms-section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.spms-section-top a {
    color: var(--spms-blue);
    text-decoration: none;
    font-weight: 900;
}

.spms-output-card {
    background: #fff;
    border: 1px solid var(--spms-border);
    border-radius: 16px;
    padding: 22px;
    height: 100%;
    box-shadow: 0 10px 25px rgba(13, 40, 87, .08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.spms-output-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(13, 40, 87, .14);
}

.spms-output-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.spms-verified {
    background: #ddf7e9;
    color: #11864d;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: .78rem;
    font-weight: 900;
}

.spms-type {
    background: #eef4ff;
    color: var(--spms-blue);
    border-radius: 6px;
    padding: 6px 9px;
    font-size: .78rem;
    font-weight: 900;
}

.spms-output-card h3 {
    font-size: 1.18rem;
    line-height: 1.28;
    font-weight: 900;
    margin: 0 0 12px;
}

.spms-output-card h3 a {
    color: var(--spms-blue);
    text-decoration: none;
}

.spms-output-card h3 a:hover {
    color: var(--spms-gold-2);
}

.spms-author {
    color: #334665;
    font-size: .92rem;
    margin-bottom: 12px;
}

.spms-author i {
    color: var(--spms-navy);
    margin-right: 6px;
}

.spms-excerpt {
    color: #3f4d63;
    line-height: 1.55;
    font-size: .94rem;
    min-height: 88px;
}

.spms-source {
    border-top: 1px solid var(--spms-border);
    padding-top: 14px;
    display: flex;
    gap: 10px;
    color: var(--spms-blue);
    font-weight: 800;
    font-size: .9rem;
}

/* FOOTER */
.spms-footer {
    background: linear-gradient(120deg, #031a3d, #06306b);
    color: #fff;
    padding: 48px 0 0;
}

.spms-footer .container {
    max-width: 1180px;
}

.spms-footer-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.spms-footer-brand img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
}

.spms-footer h4 {
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.12;
}

.spms-footer-subtitle {
    color: var(--spms-gold);
    font-weight: 800;
    margin: 4px 0 0;
}

.spms-footer-text {
    color: rgba(255,255,255,.84);
    max-width: 335px;
    line-height: 1.6;
}

.spms-footer h5 {
    color: #fff;
    font-weight: 900;
    margin-bottom: 16px;
}

.spms-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spms-footer li {
    margin-bottom: 9px;
}

.spms-footer a {
    color: rgba(255,255,255,.86);
    text-decoration: none;
}

.spms-footer a:hover {
    color: var(--spms-gold);
}

.spms-socials {
    display: flex;
    gap: 12px;
}

.spms-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
}

.spms-contact-line {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255,255,255,.86);
}

.spms-contact-line i {
    color: #fff;
    width: 22px;
    margin-top: 4px;
}

.spms-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.14);
    text-align: center;
    color: rgba(255,255,255,.82);
    padding: 20px 0;
    margin-top: 38px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .spms-topbar .navbar {
        min-height: auto;
    }

    .spms-brand {
        min-width: auto;
    }

    .spms-brand-logo {
        width: 58px;
        height: 58px;
    }

    .spms-brand strong {
        font-size: 1rem;
    }

    .spms-brand small {
        font-size: .76rem;
    }

    .spms-topbar .navbar-collapse {
        margin-top: 18px;
        padding: 18px;
        background: rgba(0, 0, 0, .16);
        border-radius: 14px;
    }

    .spms-hero,
    .spms-hero-content {
        min-height: 620px;
    }

    .spms-hero {
        background:
            linear-gradient(90deg, rgba(3, 21, 50, .96), rgba(3, 21, 50, .78)),
            url("../img/dspg-campus-hero.jpg");
        background-size: cover;
        background-position: center;
    }

    .spms-hero-copy {
        padding: 42px 0;
    }

    .spms-hero-search {
        height: 60px;
    }

    .spms-section-top {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .spms-hero h1 {
        font-size: 2.25rem;
    }

    .spms-hero p {
        font-size: 1rem;
    }

    .spms-btn-gold,
    .spms-btn-outline {
        width: 100%;
        min-width: 0;
    }

    .spms-stat-card {
        padding: 20px;
    }

    .spms-section-heading h2::before,
    .spms-section-heading h2::after {
        display: none;
    }

    .spms-topic-chip {
        width: 100%;
        justify-content: center;
    }
}