/* =========================================================
   GLOBAL
========================================================= */

body {
    background: #f4f6f9;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    color: #212529;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar-custom {
    background: rgba(79, 101, 214, 0.92);

    backdrop-filter: blur(10px);

    padding-top: 16px;
    padding-bottom: 16px;

    transition:
        transform 0.35s ease,
        background 0.3s ease,
        padding 0.3s ease;

    z-index: 999;
}

/* SCROLL */
.navbar-scrolled {
    background: rgba(79, 101, 214, 0.96);

    backdrop-filter: blur(12px);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

    padding-top: 10px;
    padding-bottom: 10px;
}

/* HIDE */
.navbar-hidden {
    transform: translateY(-100%);
}

/* BRAND */
.navbar-brand {
    font-weight: 700;

    font-size: 22px;

    color: white !important;

    transition: 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
}

/* =========================================================
   MENU
========================================================= */

.navbar-nav {
    gap: 6px;
}

.navbar-nav .nav-link {
    position: relative;

    color: white !important;

    font-weight: 500;

    padding: 10px 18px !important;

    border-radius: 14px;

    transition: all 0.3s ease;

    overflow: hidden;
}

/* HOVER */
.navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.14);

    color: #fff !important;

    transform: translateX(4px);
}

/* ACTIVE */
.navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.18);

    color: #fff !important;

    font-weight: 600;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        0 4px 12px rgba(0,0,0,0.08);
}

/* HILANGKAN GARIS PUTIH */
.navbar-nav .nav-link::after {
    display: none;
}

/* FOCUS */
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active,
.navbar-nav .nav-link:focus-visible {
    outline: none !important;

    box-shadow: none !important;
}

/* BUTTON */
.btn-login {
    border-radius: 10px;

    padding: 8px 16px;
}

/* =========================================================
   MOBILE MENU
========================================================= */

@media (max-width: 991px) {

    .navbar-collapse {
        margin-top: 16px;

        padding: 16px;

        border-radius: 20px;

        background: rgba(255,255,255,0.08);

        backdrop-filter: blur(12px);
    }

    .navbar-nav .nav-link {
        padding: 14px 18px !important;

        border-radius: 16px;
    }

    .navbar-nav .nav-link:hover {
        transform: none;
    }

}

/* =========================================================
   HERO
========================================================= */

.hero-section {
    background: linear-gradient(135deg, #4f65d6, #6f86ff);

    color: white;

    padding-top: 130px;
    padding-bottom: 90px;

    position: relative;

    overflow: hidden;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);

    padding: 8px 16px;

    border-radius: 30px;

    font-size: 13px;

    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 42px;

    font-weight: 700;

    line-height: 1.3;
}

.hero-text {
    font-size: 17px;

    line-height: 1.8;

    opacity: 0.95;
}

.hero-image {
    max-height: 320px;

    animation: floating 4s ease-in-out infinite;
}

/* FLOATING */
@keyframes floating {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }

}

/* =========================================================
   SECTION
========================================================= */

.section-title {
    font-weight: bold;

    margin-bottom: 10px;
}

.section-subtitle {
    color: #6c757d;

    margin-bottom: 40px;
}

/* =========================================================
   HEADER PAGE
========================================================= */

.informasi-header {
    position: relative;

    background: linear-gradient(
        135deg,
        #4f65d6,
        #6f86ff
    );

    padding: 35px 0;

    margin-top: 70px;

    overflow: hidden;

    color: white;
}

/* VECTOR LEFT */
.informasi-header::before {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.05) 70%
    );

    border-radius: 50%;

    top: -140px;
    left: -100px;

    filter: blur(8px);

    animation: floatingVector 6s ease-in-out infinite;
}

/* VECTOR RIGHT */
.informasi-header::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.04) 70%
    );

    border-radius: 50%;

    bottom: -120px;
    right: -80px;

    filter: blur(10px);

    animation: floatingVector 8s ease-in-out infinite;
}

/* VECTOR */
@keyframes floatingVector {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }

}

.informasi-header .container {
    position: relative;
    z-index: 2;
}

.informasi-header h1 {
    font-size: 40px;

    font-weight: 800;

    margin-bottom: 18px;
}

.informasi-header p {
    font-size: 18px;

    opacity: 0.95;
}

/* =========================================================
   CARD DEFAULT
========================================================= */

.card {
    border: none;

    border-radius: 15px;

    overflow: hidden;

    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
}

/* =========================================================
   BERITA CARD
========================================================= */

.berita-card {
    border-radius: 20px;

    background: #fff;

    transition: all 0.35s ease;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);

    height: 100%;
}

.berita-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

/* WRAPPER */
.posisi-gambar {
    position: relative;

    width: 100%;
    height: 240px;

    overflow: hidden;

    background: #f5f5f5;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* IMAGE */
.berita-img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.4s ease;
}

/* HOVER */
.berita-card:hover .berita-img {
    transform: scale(1.06);
}

/* OVERLAY */
.posisi-gambar::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.18),
        rgba(0, 0, 0, 0.02)
    );

    pointer-events: none;
}

/* BADGE */
.kategori-badge {
    position: absolute;

    top: 15px;
    left: 15px;

    z-index: 2;

    background: linear-gradient(
        135deg,
        #4f65d6,
        #6f86ff
    );

    color: white;

    padding: 8px 16px;

    border-radius: 50px;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.3px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* TITLE */
.berita-title {
    font-size: 20px;

    font-weight: 700;

    line-height: 1.5;

    color: #222;

    margin-bottom: 14px;

    overflow: hidden;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

    line-clamp: 2;
}

/* DESC */
.berita-desc {
    color: #666;

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 18px;

    overflow: hidden;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    line-clamp: 3;
}

/* BUTTON */
.berita-card .btn-primary {
    border-radius: 50px;

    padding: 10px 18px;

    font-size: 14px;

    font-weight: 600;

    border: none;

    transition: 0.3s ease;
}

.berita-card .btn-primary:hover {
    transform: translateY(-2px);
}

/* =========================================================
   PENGUMUMAN
========================================================= */

.pengumuman-card {
    border-radius: 20px;

    background: #fff;

    transition: all 0.3s ease;

    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.pengumuman-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* WRAPPER */
.pengumuman-wrapper {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}

/* LEFT */
.pengumuman-left {
    display: flex;

    align-items: flex-start;

    gap: 16px;

    flex: 1;
}

/* ICON */
.pengumuman-icon {
    width: 55px;
    height: 55px;

    min-width: 55px;

    border-radius: 16px;

    background: linear-gradient(
        135deg,
        #4f65d6,
        #6f86ff
    );

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

/* CONTENT */
.pengumuman-content h5 {
    font-weight: 700;

    margin-bottom: 8px;
}

.pengumuman-content p {
    line-height: 1.7;

    color: #666;

    margin-bottom: 0;
}

/* ACTION */
.pengumuman-action {
    text-align: right;

    min-width: 120px;
}

/* BUTTON */
.pengumuman-card .btn {
    border-radius: 50px;

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s ease;
}

.pengumuman-card .btn:hover {
    transform: translateY(-2px);
}

/* =========================================================
   DETAIL IMAGE
========================================================= */

.detail-img {
    width: 100%;

    max-width: 860px;

    height: 280px;

    object-fit: cover;
    object-position: center;

    border-radius: 20px;

    display: block;

    margin: 0 auto 30px;

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);

    transition: 0.4s ease;
}

.detail-img:hover {
    transform: scale(1.01);
}

/* DETAIL PENGUMUMAN IMAGE */
.detail-pengumuman-img {
    width: 100%;

    max-height: 340px;

    object-fit: cover;

    object-position: center;

    border-radius: 0 0 20px 20px;

    display: block;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
    position: relative;

    background: linear-gradient(
        135deg,
        #1f2937,
        #111827
    );

    color: #f8fafc;

    padding: 70px 0 25px;

    margin-top: 90px;

    overflow: hidden;
}

/* GARIS */
footer::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        #4f65d6,
        #6f86ff,
        #9ba8ff
    );
}

/* =========================================================
   FOOTER VECTOR
========================================================= */

footer::after {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 70%
    );

    border-radius: 50%;

    bottom: -160px;
    right: -120px;
}


/* =========================================================
   FOOTER LINK
========================================================= */

footer a {
    color: #cbd5e1;

    text-decoration: none;

    transition: 0.3s ease;
}

footer a:hover {
    color: #ffffff;
}


/* =========================================================
   FOOTER TEXT
========================================================= */

.footer-text {
    opacity: 0.9;

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   FOOTER COPYRIGHT
========================================================= */

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.08);

    margin-top: 35px;

    padding-top: 20px;

    font-size: 14px;

    color: #cbd5e1;
}


/* =========================================================
   FOOTER LOGO
========================================================= */

.footer-logo {
    width: 220px;

    max-width: 100%;

    height: auto;

    display: block;

    margin: 0 auto;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .hero-section {
        text-align: left;

        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-text {
        font-size: 15px;
    }

    .hero-image {
        max-height: 240px;
    }

    .informasi-header {
        padding: 25px 0;
    }

    .informasi-header h1 {
        font-size: 30px;
    }

    .informasi-header p {
        font-size: 15px;
    }

    .posisi-gambar {
        height: 200px;
    }

    .berita-title {
        font-size: 16px;
    }

    .detail-img {
        max-height: 260px;
    }

    /* DETAIL PENGUMUMAN IMAGE */
    .detail-pengumuman-img {
        max-height: 220px;
    }

    .hero-badge {
        display: inline-block;

        margin-bottom: 20px;
    }

    /* PENGUMUMAN MOBILE */
    .pengumuman-wrapper {
        align-items: flex-start;

        gap: 14px;
    }

    .pengumuman-left {
        gap: 12px;
    }

    .pengumuman-icon {
        width: 42px;
        height: 42px;

        min-width: 42px;

        border-radius: 12px;

        font-size: 16px;
    }

    .pengumuman-content h5 {
        font-size: 18px;
    }

    .pengumuman-content p {
        font-size: 14px;
    }

    .pengumuman-action {
        margin-left: auto;
    }

    .pengumuman-action .btn {
        white-space: nowrap;

        font-size: 13px;

        padding: 8px 18px;
    }

    /* FOOTER LOGO MOBILE */
    .footer-logo {
        width: 170px;
    }

}
