/* Active visual palette for ppg.uinsgd.ac.id. */
:root {
    --ink: #12302f;
    --teal: #0e4a47;
    --teal-dark: #092f2d;
    --lime: #d8ee62;
    --paper: #fbfaf7;
    --cream: #f5f3ed;
    --line: #dfe4df;
    --muted: #6d7d7b;
    --sand: #d9b98c;
    --plum: #3b2539;
    --yellow: var(--lime);
    --mint: var(--lime);
    --coral: var(--sand);
}

body {
    background: var(--paper) !important;
    color: var(--ink) !important;
}

.topline,
.site-footer {
    background: var(--teal-dark) !important;
    color: var(--paper) !important;
}

.site-header,
.dropdown-panel,
.main-nav {
    background: rgba(251, 250, 247, .96) !important;
    border-color: var(--line) !important;
}

.top-links a,
.eyebrow,
.hero-stamp,
.footer-label {
    color: var(--lime) !important;
}

.brand-mark {
    background: var(--lime) !important;
    color: var(--teal-dark) !important;
}

.header-cta,
.button-light {
    background: var(--lime) !important;
    border-color: var(--line) !important;
    color: var(--teal-dark) !important;
}

.header-cta:hover,
.button-light:hover {
    background: var(--teal) !important;
    color: var(--paper) !important;
}

.main-nav > a,
.nav-dropdown > button {
    color: var(--ink);
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-dropdown > button:hover,
.text-link,
.read-more,
.back-link,
.rich-content h2,
.rich-content h3,
.accreditation-seal,
.section-kicker {
    color: var(--teal) !important;
}

.main-nav > a.active::after {
    background: var(--lime) !important;
}

.hero {
    min-height: 570px;
    background: linear-gradient(112deg, #147D66 0%, #248DB0 57%, #F4FBF8 100%) !important;
}

.hero-image {
    opacity: .88 !important;
    mix-blend-mode: normal !important;
    filter: saturate(1.05) contrast(1.02) !important;
}

.hero::after {
    background: linear-gradient(108deg, rgba(3, 45, 40, 0.86) 0%, rgba(5, 59, 72, 0.63) 55%, rgba(244, 251, 248, 0.20) 100%) !important;
}

.hero-inner {
    min-height: 570px;
    gap: clamp(20px, 4vw, 56px);
}

/* The hero portrait was removed, so the welcome copy uses the full width. */
.hero-content {
    position: relative;
    z-index: 2;
    flex: 1 1 100%;
    max-width: 100%;
}

.accreditation-strip {
    background: var(--cream) !important;
}

.accreditation-inner {
    min-height: 190px;
    padding-top: 28px;
    padding-bottom: 28px;
    grid-template-columns: .55fr 1.6fr;
    gap: 34px;
}

.accreditation-certificate img {
    max-height: 205px;
    object-fit: contain;
}

.accreditation-copy h2,
.accreditation-copy p {
    color: var(--ink) !important;
}

.accreditation-copy p {
    color: var(--muted) !important;
}

.uin-section,
.related-section {
    background: var(--paper) !important;
}

.external-card {
    background: var(--paper) !important;
    border-color: var(--line) !important;
}

.external-card .card-tag,
.post-meta,
.quote-mark {
    color: var(--sand) !important;
}

.post-card,
.external-card .image-placeholder {
    background-color: var(--teal) !important;
}

.announcement-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(112deg, var(--teal-dark), var(--teal) 58%, var(--plum)) !important;
}

.announcement-section::before {
    background: linear-gradient(105deg, rgba(9, 47, 45, .62), rgba(14, 74, 71, .38) 58%, rgba(59, 37, 57, .28)) !important;
}

.announcement-section .section-heading .text-link,
.announcement-section .section-kicker {
    color: var(--lime) !important;
}

.announcement-section .post-card {
    background: var(--sand) !important;
}

.card-arrow {
    background: var(--lime) !important;
    color: var(--teal-dark) !important;
}

.image-placeholder.green {
    background: var(--teal) !important;
    color: var(--lime) !important;
}

.image-placeholder.sand {
    background: var(--sand) !important;
    color: var(--ink) !important;
}

.image-placeholder.plum {
    background: var(--plum) !important;
    color: var(--lime) !important;
}

.site-footer.site-footer {
    background: var(--teal-dark) !important;
    color: var(--paper) !important;
}

.site-footer.site-footer .footer-brand p,
.site-footer.site-footer .footer-grid a,
.site-footer.site-footer .footer-contact p,
.site-footer.site-footer .footer-bottom {
    color: var(--muted) !important;
}

.site-footer.site-footer .footer-label {
    color: var(--lime) !important;
}

.top-line-inner {
    gap: 20px;
}

.top-line-inner > span,
.top-links a {
    white-space: nowrap;
}

.top-links {
    align-items: center;
    gap: clamp(9px, 1.6vw, 20px);
}

.brand > img {
    width: 54px;
    height: 70px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

@media (max-width: 1000px) {
    .accreditation-inner {
        grid-template-columns: 1fr 1.3fr;
        gap: 24px;
    }

    .accreditation-inner > .section-kicker {
        grid-column: 1 / -1;
    }

    .topline {
        font-size: 9px;
    }
}

@media (max-width: 720px) {
    .topline {
        display: block;
        font-size: 9px;
    }

    .top-line-inner {
        width: calc(100% - 36px);
        height: auto;
        min-height: 58px;
        padding: 8px 0;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }

    .top-line-inner > span {
        white-space: normal;
    }

    .top-links {
        width: 100%;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .brand > img {
        width: 45px;
        height: 62px;
    }

    .hero,
    .hero-inner {
        min-height: 590px;
    }

    .hero-inner {
        padding: 65px 0;
    }

    .hero-content {
        max-width: 100%;
    }

    .accreditation-inner {
        display: block;
        padding: 42px 0;
    }

    .accreditation-copy {
        margin-top: 26px;
    }

    .accreditation-certificate img {
        max-height: 230px;
    }
}


/* Hero information link color */
.hero .hero-actions .text-link.light,
.hero .hero-actions .text-link.light span {
    color: #fff !important;
}

/* Accreditation certificates */
.accreditation-inner-certificates {
    min-height: auto;
    padding-top: 38px;
    padding-bottom: 38px;
    grid-template-columns: .62fr minmax(250px, 1fr) minmax(480px, 2.35fr);
    align-items: start;
}

.accreditation-inner-certificates .accreditation-copy {
    align-self: center;
    padding-top: 15px;
}

.accreditation-inner-certificates .accreditation-copy h2 {
    margin: 0 0 12px;
}

.accreditation-inner-certificates .accreditation-copy h2 em {
    font-family: Georgia, serif;
    font-weight: 400;
    color: var(--teal);
}

.accreditation-certificates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.accreditation-card {
    min-width: 0;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(18, 48, 47, .08);
}

.accreditation-card .accreditation-certificate {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
}

.accreditation-card .accreditation-certificate img {
    width: 100%;
    height: 190px;
    max-height: none;
    object-fit: contain;
}

.accreditation-card-title {
    min-height: 38px;
    padding: 13px 0 8px;
    color: var(--ink);
    font: 700 12px/1.35 var(--display);
}

.certificate-download {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--teal);
    font-size: 11px;
    font-weight: 800;
}

.certificate-download span {
    color: var(--teal);
    font-size: 17px;
    line-height: 1;
}

.certificate-download:hover {
    color: var(--teal-dark);
}

@media (max-width: 1000px) {
    .accreditation-inner-certificates {
        grid-template-columns: 1fr 1.35fr;
    }

    .accreditation-inner-certificates > .section-kicker {
        grid-column: 1 / -1;
    }

    .accreditation-inner-certificates .accreditation-copy {
        grid-column: 1;
    }

    .accreditation-certificates {
        grid-column: 2;
    }
}

@media (max-width: 720px) {
    .accreditation-inner-certificates {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .accreditation-inner-certificates > .section-kicker,
    .accreditation-inner-certificates .accreditation-copy,
    .accreditation-certificates {
        grid-column: 1;
    }

    .accreditation-certificates {
        grid-template-columns: 1fr;
    }

    .accreditation-card .accreditation-certificate img {
        height: auto;
        max-height: none;
    }
}
/* Footer logo pair */
.site-footer .footer-brand-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.site-footer .footer-logo-card {
    width: 96px;
    height: 96px;
    padding: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: #fff;
    border-radius: 30px;
}

.site-footer .footer-logo-card-secondary {
    width: 150px;
}

.site-footer .footer-logo-card .footer-brand-logo {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    mix-blend-mode: normal;
}

@media (max-width: 720px) {
    .site-footer .footer-brand-logos {
        gap: 10px;
    }

    .site-footer .footer-logo-card {
        width: 84px;
        height: 84px;
        padding: 10px;
        border-radius: 30px;
    }

    .site-footer .footer-logo-card-secondary {
        width: 132px;
    }
}