/* =========================================================
   IMIPAS PRESS
   Institutional Theme
   White • Royal Blue • Navy • Gold
========================================================= */

:root {

    /* Institutional Blue */
    --primary: #174a84;
    --primary-hover: #123d70;

    --navy: #082f5b;
    --navy-dark: #052544;
    --navy-deep: #031b34;

    /* Gold Accent */
    --gold: #d7a928;
    --gold-hover: #bc8d18;
    --gold-soft: #fff6dc;

    /* Neutral */
    --white: #ffffff;
    --background: #f7f9fc;
    --surface: #ffffff;

    --text: #172536;
    --text-muted: #657383;

    --border: #e2e8ef;

    /* Shadow */
    --shadow-sm:
        0 4px 14px rgba(8, 47, 91, .06);

    --shadow-md:
        0 12px 32px rgba(8, 47, 91, .11);

    --shadow-lg:
        0 20px 50px rgba(0, 20, 45, .20);
}


/* =========================================================
   GLOBAL
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--background);

    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

main {
    min-height: 70vh;
}

a {
    text-decoration: none;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    min-height: 74px;

    background: var(--white) !important;

    border-bottom:
        1px solid var(--border);

    padding-top: .7rem;
    padding-bottom: .7rem;

    position: relative;

    z-index: 1000;
}


/* =========================================================
   BRAND / LOGO
========================================================= */

.navbar-brand {
    display: flex;
    align-items: center;

    color: var(--navy) !important;

    margin-right: 2rem;
}

.imipas-logo {
    height: 48px;
    width: auto;

    object-fit: contain;

    flex-shrink: 0;
}


/* Main brand */

.brand-title {
    color: var(--navy);

    font-size: 1.15rem;

    font-weight: 700;

    line-height: 1.05;

    letter-spacing: .1px;
}


/* POLTEKIMIPAS */

.brand-subtitle {
    color: var(--gold-hover);

    font-size: .62rem;

    font-weight: 700;

    letter-spacing: 1.6px;

    line-height: 1.25;

    margin-top: 3px;
}


.navbar-brand:hover .brand-title {
    color: var(--primary);
}


/* =========================================================
   NAVIGATION
========================================================= */

.navbar .nav-link {
    position: relative;

    color: #32465a !important;

    font-size: .95rem;

    font-weight: 500;

    padding-top: .7rem;
    padding-bottom: .7rem;

    transition:
        color .2s ease;
}


.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--primary) !important;
}


/* Gold underline */

.navbar .nav-link::after {
    content: "";

    position: absolute;

    left: .8rem;
    right: .8rem;

    bottom: 2px;

    height: 2px;

    border-radius: 10px;

    background: var(--gold);

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform .2s ease;
}


.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after {
    transform: scaleX(1);
}


/* =========================================================
   NAVBAR BUTTONS
========================================================= */

.navbar .btn {
    border-radius: 6px;

    font-weight: 600;
}


/* Daftar */

.navbar .btn-warning {
    background: var(--gold);

    border-color: var(--gold);

    color: var(--navy-dark);

    padding:
        .42rem
        1rem;
}


.navbar .btn-warning:hover {
    background: var(--gold-hover);

    border-color: var(--gold-hover);

    color: #ffffff;
}


/* Logout */

.navbar .btn-outline-primary {
    color: var(--primary);

    border-color: var(--primary);

    padding:
        .42rem
        1rem;
}


.navbar .btn-outline-primary:hover {
    background: var(--primary);

    border-color: var(--primary);

    color: #ffffff;
}


/* =========================================================
   MOBILE NAVBAR TOGGLER
========================================================= */

.navbar-toggler {
    border:
        1px solid
        rgba(8, 47, 91, .25);

    padding:
        .35rem
        .55rem;
}


.navbar-toggler:focus {
    box-shadow:
        0 0 0
        .15rem
        rgba(23, 74, 132, .14);
}


/* Navbar is light */

.navbar-toggler-icon {
    filter:
        invert(17%)
        sepia(37%)
        saturate(1640%)
        hue-rotate(175deg)
        brightness(80%);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    overflow: hidden;

    color: #ffffff;

    padding:
        5.5rem
        0;

    background:
        linear-gradient(
            115deg,
            #052544 0%,
            #083767 48%,
            #15518d 100%
        );
}


/* Background decoration */

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -170px;
    top: -270px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .05);
}


.hero::after {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    left: -180px;
    bottom: -210px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255, 255, 255, .08);
}


.hero .container {
    position: relative;

    z-index: 2;
}


.hero h1 {
    color: #ffffff;

    font-weight: 700;

    line-height: 1.12;

    letter-spacing: -.7px;
}


.hero .lead {
    color:
        rgba(255, 255, 255, .84);

    max-width: 650px;

    font-weight: 400;
}


/* =========================================================
   HERO BADGE
========================================================= */

.hero .badge {
    background:
        var(--gold-soft) !important;

    color:
        #72520c !important;

    border:
        1px solid
        rgba(215, 169, 40, .25);

    border-radius: 5px;

    font-size: .8rem;

    font-weight: 600;

    letter-spacing: .2px;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.hero .btn {
    border-radius: 6px;

    padding:
        .7rem
        1.35rem;
}


.hero .btn-warning {
    background: var(--gold);

    border-color: var(--gold);

    color: var(--navy-dark);

    font-weight: 700;
}


.hero .btn-warning:hover {
    background: var(--gold-hover);

    border-color: var(--gold-hover);

    color: #ffffff;
}


.hero .btn-outline-light {
    border-color:
        rgba(255, 255, 255, .70);

    color: #ffffff;
}


.hero .btn-outline-light:hover {
    background: #ffffff;

    border-color: #ffffff;

    color: var(--navy);
}


/* =========================================================
   HERO CAROUSEL
========================================================= */

#heroCarousel {
    overflow: hidden;

    border-radius: 12px;

    border:
        3px solid
        rgba(255, 255, 255, .12);

    box-shadow:
        var(--shadow-lg);

    background: var(--navy-dark);
}


.hero-slide {
    display: block;

    width: 100%;

    height: 390px;

    object-fit: cover;
}


/* Carousel overlay */

.carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;

    text-align: left;

    padding:
        85px
        28px
        24px;

    background:
        linear-gradient(
            to top,
            rgba(3, 27, 52, .96) 0%,
            rgba(3, 27, 52, .68) 40%,
            rgba(3, 27, 52, 0) 100%
        );
}


.carousel-caption h5 {
    color: #ffffff;

    font-weight: 700;

    margin-bottom: .25rem;
}


.carousel-caption p {
    color:
        rgba(255, 255, 255, .86);

    margin-bottom: 0;

    font-size: .92rem;
}


/* Indicators */

.carousel-indicators {
    margin-bottom: .7rem;
}


.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;

    margin:
        0
        4px;

    border-radius: 50%;

    background-color: #ffffff;

    border: 0;
}


/* Controls */

.carousel-control-prev,
.carousel-control-next {
    width: 9%;
}


/* =========================================================
   GENERAL SECTION
========================================================= */

section {
    position: relative;
}


#layanan {
    padding-top:
        5rem !important;

    padding-bottom:
        5rem !important;
}


/* Section eyebrow */

#layanan .text-uppercase {
    color:
        var(--gold-hover) !important;

    font-size: .75rem;

    font-weight: 700;

    letter-spacing: 1.5px;
}


/* Main heading */

#layanan h2 {
    color: var(--navy);

    font-weight: 700;

    margin-bottom: .5rem;
}


/* Gold accent */

#layanan h2::after {
    content: "";

    display: block;

    width: 48px;
    height: 3px;

    margin:
        13px
        auto
        0;

    border-radius: 20px;

    background: var(--gold);
}


/* =========================================================
   CARDS
========================================================= */

.card {
    background: var(--surface);

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    box-shadow:
        var(--shadow-sm);
}


.service-card {
    position: relative;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


/* Institutional accent */

.service-card::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    top: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--primary) 0%,
            var(--primary) 72%,
            var(--gold) 72%,
            var(--gold) 100%
        );
}


.service-card:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(23, 74, 132, .18);

    box-shadow:
        var(--shadow-md);
}


.service-card h4 {
    color:
        var(--navy);

    font-size:
        1.15rem;

    font-weight:
        700;

    margin-bottom:
        .8rem;
}


.service-card p {
    color:
        var(--text-muted);
}


/* =========================================================
   GENERAL BUTTON
========================================================= */

.btn {
    border-radius: 6px;
}


.btn-primary {
    background:
        var(--primary);

    border-color:
        var(--primary);
}


.btn-primary:hover,
.btn-primary:focus {
    background:
        var(--primary-hover);

    border-color:
        var(--primary-hover);
}


.btn-outline-primary {
    color:
        var(--primary);

    border-color:
        var(--primary);
}


.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background:
        var(--primary);

    border-color:
        var(--primary);

    color:
        #ffffff;
}


/* =========================================================
   FORMS
========================================================= */

.form-label {
    color:
        var(--navy-dark);

    font-weight:
        600;
}


.form-control,
.form-select {
    border:
        1px solid
        #d4dde7;

    border-radius:
        7px;

    padding:
        .65rem
        .8rem;

    background:
        #ffffff;
}


.form-control:focus,
.form-select:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0
        .2rem
        rgba(23, 74, 132, .11);
}


/* =========================================================
   TABLE
========================================================= */

.table {
    background:
        #ffffff;

    border-color:
        var(--border);
}


.table thead th {
    background:
        var(--navy);

    color:
        #ffffff;

    border-color:
        rgba(255, 255, 255, .10);

    font-weight:
        600;
}


.table tbody tr:hover > * {
    background:
        #f1f6fb;
}


/* =========================================================
   BADGES / STATUS
========================================================= */

.status {
    font-size:
        .8rem;
}


.badge.bg-primary {
    background:
        var(--primary) !important;
}


/* =========================================================
   ALERTS
========================================================= */

.alert-info {
    color:
        var(--navy);

    background:
        #eef5fb;

    border-color:
        rgba(23, 74, 132, .15);
}


/* =========================================================
   FOOTER
========================================================= */

footer.bg-dark {
    background:
        var(--navy-deep) !important;

    border-top:
        4px solid
        var(--gold);
}


footer {
    color:
        rgba(255, 255, 255, .88);
}


footer .text-secondary {
    color:
        rgba(255, 255, 255, .62) !important;
}


/* =========================================================
   UTILITIES
========================================================= */

.prewrap {
    white-space:
        pre-wrap;
}


.text-secondary {
    color:
        var(--text-muted) !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .navbar {
        min-height: auto;

        padding-top: .6rem;
        padding-bottom: .6rem;
    }


    .navbar-nav {
        padding:
            .8rem
            0
            .5rem;

        align-items:
            stretch !important;
    }


    .navbar .nav-link {
        padding:
            .65rem
            0 !important;
    }


    .navbar .nav-link::after {
        display:
            none;
    }


    .navbar .btn {
        width:
            100%;

        margin:
            .3rem
            0 !important;

        padding:
            .6rem
            1rem;
    }


    .hero {
        padding:
            4rem
            0;
    }


    .hero-slide {
        height:
            320px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .navbar {
        min-height:
            64px;
    }


    .imipas-logo {
        height:
            40px;
    }


    .brand-title {
        font-size:
            1rem;
    }


    .brand-subtitle {
        font-size:
            .55rem;

        letter-spacing:
            1.25px;
    }


    .hero {
        padding:
            3rem
            0;
    }


    .hero h1 {
        font-size:
            2rem;

        letter-spacing:
            -.3px;
    }


    .hero .lead {
        font-size:
            1rem;
    }


    .hero-slide {
        height:
            240px;
    }


    .carousel-caption {
        padding:
            55px
            18px
            15px;
    }


    .carousel-caption h5 {
        font-size:
            1rem;
    }


    .carousel-caption p {
        font-size:
            .78rem;
    }


    #layanan {
        padding-top:
            3.5rem !important;

        padding-bottom:
            3.5rem !important;
    }

}