/*
Theme Name: Campus Nice
Theme URI: https://www.zay.com
Author: Team Nice Campus
Author URI: https://www.zay.com
Description: WordPress tema untuk berbagai keperluan dalam publikasi.
Version: 1.0
Text Domain: campus-nice
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar, custom-background, e-commerce, theme-options, sticky-post, full-width-template
Requires at least: 5.0
Requires PHP: 7.4
Tested up to: 6.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Fonts */
:root {
    --default-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    --heading-font: 'Poppins', sans-serif; /* diubah ke Poppins juga */
    --nav-font: 'Poppins', sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
    --background-color: #f1f5f4; /* Background color for the entire website, including individual sections */
    --default-color: #212529; /* Default color used for the majority of the text content across the entire website */
    --heading-color: #2d465e; /* Color for headings, subheadings and title throughout the website */
    --accent-color: #08915e; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
    --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
    --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
    --nav-color: rgba(255, 255, 255, 0.75); /* The default color of the main navmenu links */
    --nav-hover-color: #08915e; /* Applied to main navmenu links when they are hovered over or active */
    --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
    --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
    --nav-dropdown-color: #212529; /* Used for navigation links of the dropdown items in the navigation menu. */
    --nav-dropdown-hover-color: #08915e; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
    --background-color: #ffffff;
    --surface-color: #ffffff;
}

.dark-background {
    --background-color: #060606;
    --default-color: #ffffff;
    --heading-color: #ffffff;
    --surface-color: #252525;
    --contrast-color: #ffffff;
}

/* Multi Heading size */
:root {
    --heading-color: #222;
    --heading-font: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --h1-size: 1.8rem; /* sekitar 29px */
    --h2-size: 1.5rem; /* sekitar 24px */
    --h3-size: 1.3rem; /* sekitar 21px */
    --h4-size: 1.1rem; /* sekitar 18px */
    --h5-size: 1rem; /* sekitar 16px */
    --h6-size: 0.9rem; /* sekitar 14px */
}
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
    margin-top: 0;
    margin-bottom: 0.4em;
    line-height: 1.2;
}

h1 {
    font-size: var(--h1-size);
    font-weight: 700;
}

h2 {
    font-size: var(--h2-size);
    font-weight: 600;
}

h3 {
    font-size: var(--h3-size);
    font-weight: 600;
}

h4 {
    font-size: var(--h4-size);
    font-weight: 600;
}

h5 {
    font-size: var(--h5-size);
    font-weight: 600;
}

h6 {
    font-size: var(--h6-size);
    font-weight: 600;
}
/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
    color: var(--default-color, #333);
    background-color: var(--background-color, #fff);
    min-height: 100%;
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-color, #0066cc);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

a:hover,
a:focus {
    /* fallback untuk browser yg belum support color-mix */
    color: rgba(0, 102, 204, 0.75);
    /* kalau browser support color-mix */
    color: color-mix(in srgb, var(--accent-color, #0066cc), transparent 25%);
    text-decoration: none;
    outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color, #222);
    font-family: var(--heading-font, 'Poppins', sans-serif);
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.2;
    font-weight: 600;
}
/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 70px;
    z-index: 99999;
    background-color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
}

.scroll-top i {
    font-size: 24px;
    color: var(--contrast-color);
    line-height: 0;
}

.scroll-top:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
    color: var(--contrast-color);
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
    color: var(--default-color);
    background-color: var(--background-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 60px;
    text-align: center;
    position: relative;
    margin-bottom: 0px;
}

.page-title:before {
    content: '';
    background-color: color-mix(in srgb, var(--background-color), transparent 30%);
    position: absolute;
    inset: 0;
}

.page-title h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-title .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
}

.page-title .breadcrumbs ol li + li {
    padding-left: 10px;
}

.page-title .breadcrumbs ol li + li::before {
    content: '/';
    display: inline-block;
    padding-right: 10px;
    color: color-mix(in srgb, var(--default-color), transparent 50%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 1px 0;
    scroll-margin-top: 90px;
    overflow: clip;
}

@media (max-width: 1199px) {
    section,
    .section {
        scroll-margin-top: 66px;
    }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
    text-align: center;
    padding-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    position: relative;
}

.section-title h2:before,
.section-title h2:after {
    content: '';
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    display: inline-block;
}

.section-title h2:before {
    margin: 0 15px 10px 0;
}

.section-title h2:after {
    margin: 0 0 10px 15px;
}

.section-title p {
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Pagination 2 Section
--------------------------------------------------------------*/
.pagination-2 {
    padding-top: 0;
}

.pagination-2 nav {
    position: relative;
}

.pagination-2 ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination-2 li {
    margin: 0;
    transition: all 0.3s ease-in-out;
}

.pagination-2 li.ellipsis {
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    padding: 8px 16px;
    user-select: none;
}

.pagination-2 li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 16px;
    color: var(--default-color);
    background-color: var(--surface-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 4px color-mix(in srgb, var(--default-color), transparent 90%);
}

.pagination-2 li a.active {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.pagination-2 li a:hover:not(.active) {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px color-mix(in srgb, var(--default-color), transparent 85%);
}

.pagination-2 li a i {
    font-size: 14px;
}

.pagination-2 li a span {
    margin: 0 4px;
}

@media (max-width: 575px) {
    .pagination-2 ul {
        gap: 4px;
    }

    .pagination-2 li a {
        min-width: 36px;
        height: 36px;
        padding: 8px 12px;
        font-size: 14px;
    }
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
    margin-bottom: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}
.gallery-item .gallery-columns-2 {
    max-width: 50%;
}
.gallery-item .gallery-columns-3 {
    max-width: 33.33333%;
}
.gallery-item .gallery-columns-4 {
    max-width: 25%;
}
.gallery-item .gallery-columns-5 {
    max-width: 20%;
}
.gallery-item .gallery-columns-6 {
    max-width: 16.66667%;
}
.gallery-item .gallery-columns-7 {
    max-width: 14.28571%;
}
.gallery-item .gallery-columns-8 {
    max-width: 12.5%;
}
.gallery-item .gallery-columns-9 {
    max-width: 11.11111%;
}

.gallery-caption {
    display: block;
}
img {
    border-radius: 10px;
}
/* ===============================
   Blocks CSS
   =============================== */
.wp-block-group {
    padding: 10px;
    border-radius: 10px;
}
.wp-block-latest-posts.wp-block-latest-posts__list li {
    padding: 10px 0px 0px 0px;
}
.wp-block-tag-cloud a {
    display: inline-block;
    margin-right: 5px;
    padding: 5px 10px 5px 10px;
    border-left: 5px solid rgb(48 187 97);
}
.wp-block-tag-cloud a:hover {
    background-color: #162d7a;
    color: #e1ebdf;
}

.wp-block-categories {
    list-style: none;
}
.wp-block-categories li a {
    border-left: 2px solid rgb(48, 131, 187);
    margin-left: -30px;
    background-color: #e1ebdf;
    padding: 5px 10px;
    line-height: 2.3;
}

.wp-block-categories li a:hover {
    background-color: #1e6b9e;
    color: #e1ebdf;
    line-height: 2.5;
}

.wp-block-archives {
    list-style: none;
}
.wp-block-archives li a {
    border-left: 2px solid rgb(48 187 97);
    margin-left: -30px;
    background-color: #e1ebdf;
    padding: 5px 10px;
    line-height: 2.3;
}
.wp-block-archives li a:hover {
    background-color: #0c5533;
    color: #e1ebdf;
    line-height: 2.5;
}
.wp-block-table {
    width: 100%;
    overflow-x: auto; /* agar muncul scroll horizontal jika tabel terlalu lebar */
    -webkit-overflow-scrolling: touch; /* untuk kelancaran scroll di iOS */
    margin-bottom: 1.5em; /* beri jarak bawah agar rapi */
}

/* supaya tabel di dalam figure bisa melebar sesuai isi */
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* optional, agar tabel tidak terlalu kecil di layar besar */
}

/* Opsional: styling scrollbar agar lebih enak dilihat */
.wp-block-table::-webkit-scrollbar {
    height: 8px;
}
.wp-block-table::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.wp-block-table::-webkit-scrollbar-track {
    background: #f0f0f0;
}

/* ===============================
   Single Layout & Sidebar Fix
   =============================== */
/* ===== UTILITY CLASSES ===== */
.text-accent {
    color: var(--accent);
}

.bg-light-custom {
    background-color: var(--light);
    border-radius: var(--border-radius);
}

/* ===== LAYOUT ===== */

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.col-lg-8,
.col-lg-4 {
    padding: 0 10px;
}

.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

@media (max-width: 991px) {
    .col-lg-8,
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .sidebar {
        padding-left: 0;
        margin-top: 0px;
    }
}

/* ===== ARTICLE KONTEN STYLES ===== */
article {
    overflow: hidden;
}

article:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
/* ===== THUMBNAIL ===== */
.post-thumbnail {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    transform: translateY(0);
}

.post-thumbnail:hover {
    transform: translateY(-5px);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.03);
}

/* ===== HEADER & META ===== */
.entry-header {
    margin-bottom: 25px;
    position: relative;
}

.entry-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 18px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 12px;
}

.entry-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #e67e22);
    border-radius: 3px;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.95rem;
    color: #7f8c8d;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.meta-item:hover {
    color: #3498db;
}

.meta-item .bi {
    font-size: 1.05rem;
    color: #3498db;
}

.meta-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-item a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* ===== CONTENT ===== */
.post-content {
    padding: 15px;
}
.entry-content {
    font-size: 1.08rem;
    line-height: 1.85;
    margin-bottom: 30px;
    color: #2d3436;
}

.entry-content p {
    margin-bottom: 1.4rem;
    font-family: Poppins, serif;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.entry-content blockquote {
    border-left: 4px solid #3498db;
    background: #f9f9f9;
    padding: 20px 30px;
    margin: 25px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.entry-content blockquote::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 10px;
    font-size: 3rem;
    color: #3498db;
    opacity: 0.15;
    font-family: Poppins, serif;
}
/* Badge di Index search */
.program-badge {
    background: #1e7960;
    max-width: fit-content;
    padding: 1px 9px 1px 9px;
    position: absolute;
    border-radius: 6px;
    color: azure;
}
/* ===== POST META DETAILS ===== */
.post-meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 30px 0;
    padding: 18px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.post-meta-details p {
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta-details p strong {
    color: #2c3e50;
}

/* Meta Editor Container */
.meta-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    font-size: 0.95rem;
    background: #f8f9fa;
    border-top: 2px solid #2d7117;
    border-radius: 8px;
    padding: 10px 15px;
}

/* Setiap item meta */
.meta-editor div {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Ikon Bootstrap */
.meta-editor i {
    font-size: 1rem;
    color: #0d6efd;
}

/* Link Author / Tag */
.meta-editor a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.meta-editor a:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

/* Mobile Friendly */
@media (max-width: 576px) {
    .meta-editor {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
}

/* ===== TAGS ===== */

/* Post tags container */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.post-tags .fw-bold {
    font-weight: 600;
    color: #7f8c8d;
}

/* Tag chip style */
.post-tags a {
    display: inline-block;
    background: rgba(52, 152, 219, 0.08);
    color: #2c3e50;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.post-tags a:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* ===== POST NAVIGATION ===== */
.post-navigation {
    margin-top: 0;
}

.post-navigation .nav-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.post-navigation .nav-card:hover {
    border-color: #b6f1c8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.post-navigation .nav-label {
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #6b7280;
}

.post-navigation .nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 0.25rem;
    transition: color 0.25s ease;
}

.post-navigation .nav-card:hover .nav-title {
    color: #0a6e0f;
}

.post-navigation i.bi {
    font-size: 1.5rem;
    color: #25eb99;
    transition: transform 0.25s ease, color 0.25s ease;
}

.post-navigation .nav-card:hover i.bi {
    transform: scale(1.1);
    color: #1dd87a;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    .post-navigation .nav-card {
        flex-direction: row !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .post-navigation .nav-card.next-post {
        flex-direction: row-reverse !important;
    }
}
/* ===== SHARE POSTS ===== */
.share-post {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    background: #f9fafb;
    padding: 14px 20px;
    border-radius: 10px;
}

.share-label {
    font-weight: 600;
    font-size: 1rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.share-label i {
    color: #555;
    font-size: 1.2rem;
}

.share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    flex: 1 1 auto;
    justify-content: flex-start;
}

.share-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
    color: #555;
    font-size: 1.4rem;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
}

.share-icons a:hover,
.share-icons a:focus {
    transform: scale(1.1);
    color: #fff;
}

/* Warna hover sesuai brand sosial media */
.share-icons a[title='Facebook']:hover {
    background-color: #1877f2;
    color: white;
}
.share-icons a[title='Instagram']:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    color: white;
}
.share-icons a[title='Threads']:hover {
    background-color: #000000;
    color: white;
}
.share-icons a[title='WhatsApp']:hover {
    background-color: #25d366;
    color: white;
}
.share-icons a[title='Telegram']:hover {
    background-color: #0088cc;
    color: white;
}
.share-icons a[title='Twitter / X']:hover {
    background-color: #1da1f2;
    color: white;
}
.share-icons a[title='TikTok']:hover {
    background-color: #000000;
    color: white;
}
.share-icons a[title='Email']:hover {
    background-color: #ea4335;
    color: white;
}
.share-icons a[title='Print']:hover {
    background-color: #6c757d;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .share-post {
        padding: 12px 15px;
    }
    .share-label {
        flex: 1 1 100%;
        font-size: 0.95rem;
    }
    .share-icons {
        justify-content: flex-start;
        gap: 8px 10px;
    }
    .share-icons a {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

/* ===== RELATED POSTS ===== */
.related-posts-wrapper {
    background: #f9f9f9;
}

.related-heading {
    font-weight: 600;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 8px;
}

.related-card {
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-thumb img {
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-thumb img {
    transform: scale(1.05);
}

.related-title-link {
    font-size: 1rem;
    color: #212529;
    text-decoration: none;
    display: block;
}

.related-title-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.related-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Responsive spacing */
@media (max-width: 767.98px) {
    .related-card {
        flex-direction: row;
    }
    .related-thumb {
        flex: 0 0 40%;
    }
    .related-thumb img {
        height: 100%;
    }
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: 30px;
}
.widget .mb-4 {
    margin-bottom: 0;
}
.widget {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.widget:hover {
    transform: translateY(-3px);
}

.widget-title {
    font-size: 1.2rem;
    border-bottom: 1px solid #3e9d38;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .entry-title {
        font-size: 1.4rem;
    }
    .entry-meta {
        flex-direction: column;
        gap: 2px;
        font-size: 0.8rem;
    }
    .post-meta-details {
        flex-direction: column;
        gap: 15px;
    }

    article {
        padding: 0;
    }
}

@media (max-width: 576px) {
    .entry-title {
        font-size: 1.6rem;
    }
}

/* ===== COMMENTS ===== */
.comments-area {
    font-size: 0.9rem;
}

.comment-list li {
    border-left: 2px solid #dee2e6;
    padding-left: 10px;
}

.comment-list .children {
    margin-left: 20px;
    border-left: 2px dashed #ced4da;
    padding-left: 10px;
}

.comment-text {
    line-height: 1.4;
}

.comment-list .btn-sm {
    padding: 2px 6px;
    font-size: 0.75rem;
}

/* ===== FORM ===== */
#respond {
    margin-top: 15px;
}

#respond .form-label {
    font-size: 0.85rem;
    margin-bottom: 3px;
}

#respond input,
#respond textarea {
    font-size: 0.85rem;
    padding: 4px 8px;
}
/*---------------------
    Search Form
-----------------------*/

/* ✅ Styling Modal Search */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ✅ Menampilkan Modal */
.search-modal.active {
    opacity: 1;
    visibility: visible;
}

/* ✅ Konten Modal */
.search-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
}

/* ✅ Tombol Close */
.close-search {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #555;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-search:hover {
    color: #222;
}

/* ✅ Input & Tombol */
.search-modal input[type='text'] {
    width: 80%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.search-modal button {
    padding: 10px;
    border: none;
    background: #f6783a;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    margin-left: 5px;
    transition: background 0.2s ease;
}

.search-modal button:hover {
    background: #e56020;
}

/* ✅ Link Search Button */
a#search-button-top,
a#search-button-mobile {
    color: #b3fddb;
    display: flex;
    justify-content: flex-end;
    font-size: 20px;
}
/* ✅ Animasi */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ✅ Judul & No Results */
.search-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.no-results {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

/* ✅ Utility Classes */
.d-none {
    display: none !important;
}
.d-md-block {
    display: block !important;
}
.d-md-none {
    display: none !important;
}

@media (max-width: 720px) {
    .d-md-block {
        display: none !important;
    }
    .d-md-none {
        display: block !important;
    }
}
/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color, #fff);
    transition: all 0.6s ease-out;
}

.preloader-inner {
    text-align: center;
}

.preloader-image {
    display: block;
    margin: 0 auto 20px auto;
}

/* Horizontal bar loader */
.preloader-bar {
    width: 80px;
    height: 4px;
    background: var(--accent-color, #007bff);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    margin: 0 auto;
}

.preloader-bar::before {
    content: '';
    position: absolute;
    left: -40%;
    width: 40%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    animation: loading-bar 3s linear infinite;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

@keyframes loading-bar {
    0% {
        left: -40%;
    }
    100% {
        left: 100%;
    }
}

/* Spinner default (if no image) */
.default-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid transparent;
    border-color: var(--accent-color, #007bff) transparent var(--accent-color, #007bff) transparent;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/*--------------------------------------------------------------
KOMMMENTAR FORM CONTACT JavaScript untuk alert setelah komentar
----------------------------------------------------------------*/
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.custom-alert-box {
    background-color: #e6f4ea;
    border-left: 6px solid #2e7d32;
    border-radius: 8px;
    color: #1b5e20;
    padding: 24px 28px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-alert-box strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
}

.custom-alert-close {
    margin-top: 15px;
    display: inline-block;
    background-color: #2e7d32;
    color: #fff;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* Stye Form Pengaduan */
.custom-comment-form {
    background: #eaf6ed;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    max-width: 720px;
    margin: 30px auto;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #cfe3d4;
}

.custom-comment-form .form-title {
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: #1f3f2a;
}

.custom-comment-form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.custom-comment-form label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 15px;
}

.custom-comment-form input,
.custom-comment-form textarea {
    padding: 12px 15px;
    border: 1px solid #b9d7c5;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-comment-form input:focus,
.custom-comment-form textarea:focus {
    border-color: var(--accent-color, #08915e);
    box-shadow: 0 0 0 2px rgba(8, 145, 94, 0.15);
    outline: none;
}

.custom-comment-form textarea {
    resize: vertical;
    min-height: 140px;
}

.custom-comment-form span {
    color: red;
    font-size: 13px;
}

.submit-btn {
    background: linear-gradient(135deg, #08915e, #06784a);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #06784a, #08915e);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 145, 94, 0.3);
}

@media (max-width: 576px) {
    .custom-comment-form {
        padding: 20px;
        margin: 20px;
    }

    .custom-comment-form .submit-btn {
        width: 100%;
        text-align: center;
    }
}
/*--------------------------------------------------------------
# Partner Logo Icon
--------------------------------------------------------------*/
.partner-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
    gap: 30px;
}
.partner-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-logo {
    height: 60px;
    max-height: 80px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.partner-logo:hover {
    transform: scale(1.05);
}
.partner-item {
    padding: 0 10px;
}
.partner {
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    border-bottom: rgb(0 0 0 / 22%) 5px solid;
}
/* Hover effect (opsional, hanya di desktop) */
@media (hover: hover) {
    .partner-logo:hover {
        transform: scale(1.05);
    }
}

/* Responsif untuk mobile device */
@media (max-width: 576px) {
    .partner-logo {
        height: 30px;
        max-height: 50px;
        max-width: 100px;
    }
    .partner-item {
        padding: 0 10px;
    }
}
/* Tambahan opsional agar scroll bar lebih cantik */
.partner-wrap::-webkit-scrollbar {
    height: 6px;
}
.partner-wrap::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
    .navmenu {
        padding: 0;
    }

    .navmenu ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
    }

    .navmenu li {
        position: relative;
    }

    .navmenu a,
    .navmenu a:focus {
        padding: 18px 15px;
        font-size: 16px;
        font-family: var(--nav-font);
        font-weight: 400;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: 0.3s;
    }

    .navmenu a i,
    .navmenu a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        transition: 0.3s;
    }

    .navmenu li:last-child a {
        padding-right: 0;
    }

    .navmenu li:hover > a,
    .navmenu .active,
    .navmenu .active:focus {
        color: chartreuse;
    }

    .navmenu .dropdown ul {
        margin: 0;
        padding: 10px 0;
        background: var(--nav-dropdown-background-color);
        display: block;
        position: absolute;
        visibility: hidden;
        left: 14px;
        top: 130%;
        opacity: 0;
        transition: 0.3s;
        border-radius: 4px;
        z-index: 99;
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    }

    .navmenu .dropdown ul li {
        min-width: 100%;
    }

    .navmenu .dropdown ul a {
        padding: 10px 20px;
        font-size: 15px;
        text-transform: none;
        color: var(--nav-dropdown-color);
    }

    .navmenu .dropdown ul a i {
        font-size: 12px;
    }

    .navmenu .dropdown ul a:hover,
    .navmenu .dropdown ul .active:hover,
    .navmenu .dropdown ul li:hover > a {
        color: var(--nav-dropdown-hover-color);
        border-bottom: 1px solid #e6c616;
    }

    .navmenu .dropdown:hover > ul {
        opacity: 1;
        top: 100%;
        visibility: visible;
    }

    /* Untuk semua dropdown level berapapun */
    .navmenu .dropdown ul.sub-menu {
        top: 130%;
        left: 0;
        visibility: hidden;
        opacity: 0;
        position: absolute;
        transition: 0.3s;
        background: var(--nav-dropdown-background-color);
        border-radius: 4px;
        z-index: 99;
        padding: 10px 0;
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
        min-width: 100%;
    }

    /* Saat hover, tampilkan submenu langsung di bawah */
    .navmenu .dropdown:hover > .sub-menu {
        top: 100%;
        opacity: 1;
        visibility: visible;
    }

    /* Tambahkan relative di elemen li untuk posisi absolute submenu */
    .navmenu li {
        position: relative;
    }

    .navmenu .dropdown .sub-menu .sub-menu {
        left: -100%;
        top: 0;
    }

    .navmenu .sub-menu .sub-menu .sub-menu {
        left: -100%;
        top: 0;
    }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
    .mobile-nav-toggle {
        color: var(--nav-color);
        font-size: 28px;
        line-height: 0;
        margin-right: 10px;
        cursor: pointer;
        transition: color 0.3s;
    }
    .navmenu .dropdown ul a:hover,
    .navmenu .dropdown ul .active:hover,
    .navmenu .dropdown ul li:hover > a {
        color: var(--nav-dropdown-hover-color);
        border-bottom: 1px solid #e6c616;
    }
    .navmenu {
        padding: 0;
        z-index: 9997;
    }

    .navmenu ul {
        display: none;
        list-style: none;
        position: absolute;
        inset: 60px 20px 20px 20px;
        padding: 10px 0;
        margin: 0;
        border-radius: 6px;
        background-color: #032906d1;
        overflow-y: auto;
        transition: 0.3s;
        z-index: 9998;
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    }

    .navmenu a,
    .navmenu a:focus {
        padding: 10px 20px;
        font-family: var(--nav-font);
        font-size: 17px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: 0.3s;
    }

    .navmenu a i,
    .navmenu a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: 0.3s;
        background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    }

    .navmenu a i:hover,
    .navmenu a:focus i:hover {
        background-color: var(--accent-color);
        color: var(--contrast-color);
    }

    .navmenu a:hover,
    .navmenu .active,
    .navmenu .active:focus {
        color: var(--nav-dropdown-hover-color);
    }

    .navmenu .active i,
    .navmenu .active:focus i {
        background-color: var(--accent-color);
        color: var(--contrast-color);
        transform: rotate(180deg);
    }

    .navmenu .dropdown ul {
        position: static;
        display: none;
        z-index: 99;
        padding: 10px 0;
        margin: 10px 20px;
        background-color: var(--nav-dropdown-background-color);
        border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
        box-shadow: none;
        transition: all 0.5s ease-in-out;
    }

    .navmenu .dropdown ul ul {
        background-color: rgba(33, 37, 41, 0.1);
    }

    .navmenu .dropdown > .dropdown-active {
        display: block;
        background-color: rgba(33, 37, 41, 0.03);
    }

    .mobile-nav-active {
        overflow: hidden;
    }

    .mobile-nav-active .mobile-nav-toggle {
        color: #fff;
        position: absolute;
        font-size: 32px;
        top: 15px;
        right: 15px;
        margin-right: 0;
        z-index: 9999;
    }

    .mobile-nav-active .navmenu {
        position: fixed;
        overflow: hidden;
        inset: 0;
        background: rgba(33, 37, 41, 0.8);
        transition: 0.3s;
    }

    .mobile-nav-active .navmenu > ul {
        display: block;
    }
}
/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
    --background-color: rgb(1, 20, 5);
    --default-color: #ffffff;
    --heading-color: #ffffff;
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 15px 0;
    transition: all 0.5s;
    z-index: 997;
}
.fixed-top {
    position: relative;
}

.header .logo {
    line-height: 1;
}

.header .logo img {
    max-height: 32px;
    margin-right: 8px;
}

.header .logo i {
    font-size: 24px;
    margin-right: 6px;
}

.header .logo h1 {
    font-size: 28px;
    margin: 0;
    font-weight: 600;
    color: var(--heading-color);
}

.scrolled .header {
    box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

.logo img {
    max-height: 80px;
    height: auto;
    width: auto;
}

.header .logo h1 {
    font-size: 14px;
    margin: 0;
    font-weight: 600;
}

.text-logo .tagline {
    font-size: 14px;
    margin-top: 3px;
    color: #b5abab;
}

@media (max-width: 768px) {
    .text-logo .sitename {
        font-size: 1.2rem;
    }

    .text-logo .tagline {
        font-size: 0.9rem;
    }

    .logo {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Global Header on Scroll
------------------------------*/
.scrolled .header {
    --background-color: rgba(0, 0, 0, 0.8);
}

.header-top-custom {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: #fff;
    font-size: 0.5rem;
    gap: 10px;
}

.header-top-custom .header-item {
    flex: 1 1 auto;
    min-width: 50px;
}

.header-top-custom .header-info {
    flex: 3 1 auto;
    text-align: left;
    font-size: 0.85rem;
    color: #eee;
}

.translate-widget {
    text-align: right;
}

#search-button-top {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .header-top-custom {
        flex-direction: column;
        text-align: center;
    }

    .header-top-custom .header-item {
        text-align: center;
    }

    .translate-widget {
        text-align: center;
    }
}
/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
    color: var(--default-color);
    background-color: var(--background-color);
    font-size: 14px;
    position: relative;
    margin-top: 30px;
}

.footer .footer-top {
    padding-top: 50px;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
    line-height: 1;
    margin-bottom: 25px;
}

.footer .footer-about .logo img {
    max-height: 40px;
    margin-right: 6px;
}

.footer .footer-about .logo span {
    color: var(--heading-color);
    font-family: var(--heading-font);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer .footer-about p {
    font-size: 14px;
    font-family: var(--heading-font);
}

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 50%);
    font-size: 16px;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    margin-right: 10px;
    transition: 0.3s;
}

.footer .social-links a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.footer h4 {
    font-size: 16px;
    font-weight: bold;
    position: relative;
    padding-bottom: 12px;
}

.footer .footer-links {
    margin-bottom: 30px;
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links ul i {
    padding-right: 2px;
    font-size: 12px;
    line-height: 0;
}

.footer .footer-links ul li {
    padding: 6px 0;
    display: flex;
    align-items: center;
}

.footer .footer-links ul li:first-child {
    padding-top: 0;
}

.footer .footer-links ul a {
    color: color-mix(in srgb, var(--surface-color), transparent 30%);
    display: inline-block;
    line-height: 1;
}

.footer .footer-links ul a:hover {
    color: var(--accent-color);
}

.footer .footer-contact p {
    margin-bottom: 5px;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
    margin-bottom: 0;
}

.footer .credits {
    margin-top: 8px;
    font-size: 13px;
}
/* -----------------------------------
App Menu Mobile: 720px
-------------------------------------*/

/* Default: sembunyikan navbar di semua ukuran */
.bottom-navbar {
    display: none;
}

/* App Menu Mobile: tampilkan hanya saat layar <= 720px */
@media (max-width: 720px) {
    /* Styling utama bottom navbar */
    .bottom-navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #08512f;
        border-top: 1px solid #ddd;
        display: flex;
        justify-content: space-around;
        padding: 5px 0;
        z-index: 99999 !important;
        box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
        height: 68px;
    }

    /* Wrapper tiap item menu */
    .bottom-nav-item-wrapper {
        position: relative;
        flex-grow: 1;
        text-align: center;
    }

    /* Link menu utama */
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        color: #fff;
        text-decoration: none;
        padding: 5px 0;
        cursor: pointer;
        user-select: none;
        border-left: 1px solid rgb(255 255 255 / 17%);
        border-right: 1px solid rgb(255 255 255 / 28%);
    }

    /* Ikon menu */
    .bottom-nav-item i {
        font-size: 18px;
        margin-bottom: 2px;
    }

    /* Ikon toggle submenu */
    .submenu-toggle-icon {
        font-size: 12px;
        margin-top: 2px;
        transition: transform 0.3s ease;
    }

    /* Submenu container */
    .submenu {
        position: absolute;
        bottom: 56px;
        left: 0%;
        transform: translateX(-39%);
        background: #fff;
        border: 1px solid #ddd;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        border-radius: 6px;
        min-width: 520%;
        z-index: 9999;
        display: none;
        flex-direction: column;
        transition: 0.6s ease-out;
    }

    /* Submenu item */
    .submenu-item {
        padding: 10px 30px;
        font-size: 12px;
        color: #333;
        text-decoration: none;
        white-space: nowrap;
        border-bottom: 1px solid #eee;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    .submenu-item:last-child {
        border-bottom: none;
    }

    .submenu-item:hover {
        background-color: #f0f0f0;
        color: #007bff;
    }

    /* Tampilkan submenu saat aktif */
    .bottom-nav-item-wrapper.active .submenu {
        display: flex;
    }

    /* Rotasi ikon toggle saat submenu aktif */
    .bottom-nav-item-wrapper.active .submenu-toggle-icon {
        transform: rotate(180deg);
    }

    /* Padding bawah body agar konten tidak tertutup navbar */
    body {
        padding-bottom: 60px;
    }

    body.no-scroll {
        overflow: hidden;
    }

    /* Popup Submenu Fullscreen */
    .submenu-popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 100000;
        display: none;
        justify-content: center;
        align-items: center;
    }
    .submenu-grid-item span {
        font-size: 10px;
        line-height: 12px;
    }
    .submenu-popup-inner {
        background: #fff;
        border-radius: 10px;
        padding: 20px;
        width: 100%;
        max-width: 720px;
        max-height: 100%;
        overflow-y: auto;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    }

    .submenu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .submenu-header span {
        font-size: 16px;
        font-weight: bold;
    }

    .submenu-close {
        background: none;
        border: none;
        font-size: 22px;
        cursor: pointer;
    }

    .submenu-grid {
        display: grid;
        grid-template-columns: repeat(4, 0.5fr);
        gap: 0px;
    }

    .submenu-grid-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        text-decoration: none;
        color: #333;
        padding: 10px;
        border: 1px solid #eee;
        border-radius: 8px;
        background: #f9f9f9;
        transition: all 0.3s;
    }

    .submenu-grid-item i {
        font-size: 30px;
        margin-bottom: 5px;
    }

    .submenu-grid-item:hover {
        background-color: #e1f5e4;
        color: #08512f;
    }
    /* Animasi Fade & Slide Up */
    @keyframes popupFadeSlideIn {
        0% {
            opacity: 0;
            transform: translateY(40px) scale(0.95);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes popupFadeSlideOut {
        0% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        100% {
            opacity: 0;
            transform: translateY(40px) scale(0.95);
        }
    }

    /* Efek masuk popup */
    .submenu-popup.show {
        display: flex !important;
        animation: popupFadeSlideIn 0.4s ease-out forwards;
    }

    /* Efek keluar popup */
    .submenu-popup.hide {
        animation: popupFadeSlideOut 0.3s ease-in forwards;
    }

    /* Hindari scroll saat popup tampil */
    body.no-scroll {
        overflow: hidden;
    }
    .submenu-popup {
        opacity: 0;
        transform: translateY(40px);
    }
}
/* ===========================
   💬 WIDGETS PENGUMUMAN
=========================== */
.widget-pengumuman-container {
    padding: 20px;
    background: #d3dfd5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pengumuman-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #003366;
}

.pengumuman-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.pengumuman-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pengumuman-box {
    flex: 1 1 calc(50% - 10px);
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    align-items: center;
    box-shadow: 0 6px 18px rgb(0 0 0 / 21%);
}

.pengumuman-icon {
    font-size: 3rem;
    color: #0073aa;
}

.pengumuman-content {
    flex: 1;
}

.pengumuman-post-title {
    font-size: 1rem;
    font-weight: 600;
    color: #003366;
    text-decoration: none;
}

.pengumuman-post-title:hover {
    text-decoration: none;
    color: #159245;
}

.pengumuman-meta {
    font-size: 12px;
    color: #777;
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.pengumuman-more-link {
    margin-top: 20px;
    text-align: right;
}

.pengumuman-more-link a {
    font-size: 0.9rem;
    color: #f8f9fa;
    text-decoration: none;
    background-color: #0073aa;
    padding: 7px 14px 7px 14px;
    border-radius: 5px;
}
.pengumuman-more-link a:hover {
    text-decoration: none;
    color: #f8f9fa;
    background-color: #047939;
}

/* Responsive */
@media (max-width: 768px) {
    .pengumuman-box {
        flex: 1 1 100%;
    }
}

/* ===========================
   💬 WIDGETS BERITA
=========================== */
.berita-terbaru-container {
    padding: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.berita-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.berita-title {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: #003366;
}

.berita-subtitle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #555;
}

.berita-link-archive {
    font-size: 0.9rem;
    color: #f8f9fa;
    text-decoration: none;
    background-color: #0073aa;
    padding: 7px 14px 7px 14px;
    border-radius: 5px;
}
.berita-link-archive:hover {
    text-decoration: none;
    color: #f8f9fa;
    background-color: #047939;
}

.berita-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.berita-main-left {
    flex: 1.5;
    position: relative;
    margin-bottom: 10px;
}

.berita-thumb {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 16px;
    height: 350px;
    object-fit: cover;
}

.berita-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0073aa;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.berita-post-title {
    font-size: 1.7rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.berita-post-title a {
    color: #222;
    text-decoration: none;
}
.berita-post-title a:hover {
    text-decoration: none;
    color: #099b63;
}

.berita-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.berita-excerpt {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 10px;
}

.berita-readmore {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}
.berita-readmore:hover {
    text-decoration: none;
    color: #f8f9fa;
    background-color: #047939;
}

.berita-sidebar-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.berita-side-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.berita-side-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.berita-side-content {
    flex: 1;
    line-height: 1.3;
}

.berita-side-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: #222;
    text-decoration: none;
}

.berita-side-title:hover {
    text-decoration: none;
    color: #086458;
}

@media (max-width: 768px) {
    .berita-post-title {
        font-size: 1rem;
    }
    .berita-content-wrapper {
        flex-direction: column;
    }
    .berita-sidebar-right {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }
    .berita-side-box {
        flex: 1 1 48%;
    }
    .berita-side-content {
        line-height: 1;
    }
    .berita-side-title {
        font-size: 0.8rem;
    }
    .berita-meta {
        font-size: 0.7rem;
        margin-top: 5px;
    }
}
/* ===========================
   💬 WIDGETS PRODI
=========================== */
.programstudi-wrapper {
    padding: 40px 0;
}

.programstudi-inner {
    margin: 0 auto;
    padding: 0 20px;
}

.head-program {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
    background-color: #4efd6a42;
    padding: 20px;
    box-shadow: 0 6px 18px rgb(0 0 0 / 21%);
}

.head-image {
    flex: 1 1 auto;
}
.head-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.head-text {
    flex: 1 1 75%;
}
.head-text h2 {
    font-size: 1.8rem;
    border-left: 4px solid #125ad9;
    margin-bottom: 30px;
    min-width: 100%;
    padding: 10px;
}
.head-text p {
    font-size: 1rem;
    color: #555;
}

.programstudi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.program-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    align-items: flex-start;
    transition: box-shadow 0.3s ease;
}

.program-box:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.program-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.program-content .program-link {
    font-weight: bold;
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
    color: #003366;
    text-decoration: none;
}

.program-content .program-link:hover {
    text-decoration: underline;
}

.program-desc {
    font-size: 0.9rem;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .head-program {
        flex-direction: column;
    }
    .programstudi-grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }
    .program-box {
        flex-direction: column;
    }
    .program-desc {
        font-size: 0.7rem;
    }
}
@media (max-width: 480px) {
    .programstudi-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .program-box {
        flex-direction: column;
    }
    .program-desc {
        font-size: 0.7rem;
    }
}

/* ===========================
   💬 WIDGETS STATISTIK
=========================== */

.statistik-fakultas-widget {
    padding: 1rem;
    background: linear-gradient(180deg, #15079fdb 0% 10%, rgb(12 87 49 / 80%) 70%);
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgb(0 0 0 / 57%);
}

/* === HEADER LAYOUT === */
.statistik-header-grid {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.shg-left {
    flex: 1 1 100px;
}
.stat-header-logo {
    max-height: 150px;
    object-fit: cover;
    filter: drop-shadow(0px 0px 10px white);
}

.shg-center {
    flex: 4 1 100px;
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    flex-direction: column;
}
.qs-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.qs-icon {
    font-size: 2rem;
}
.qs-text {
    line-height: 1.5;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
.qs-text strong {
    font-size: 1.1rem;
}

.shg-right {
    flex: 4 2 400px;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-direction: row;
}
.ranking-box {
    background: linear-gradient(90deg, #0c7732db 0% 10%, rgb(7 31 77 / 54%) 70%);
    border-left: 4px solid gold;
    padding: 14px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

/* === MAIN INFO === */
.statistik-main {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 25px;
    border: 1px solid #4ce32f;
    border-radius: 10px;
    gap: 30px;
}
.col-university {
    width: 60%;
}
.col-sejarah {
    text-decoration: none;
}
.statistik-main h3 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #fdfdfd;
}
.statistik-main p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e2e2;
}
.link-tentang {
    display: inline-block;
    color: #b1ffe3;
    font-weight: 600;
    margin-top: 0.5rem;
    text-decoration: none;
}
.link-tentang:hover {
    text-decoration: underline;
}
.founded-date {
    font-size: 0.8rem;
    color: #ffffff;
    padding: 5px 15px 5px 15px;
    background-color: #147cab;
    border-radius: 5px;
}
.founded-date strong {
    display: block;
    font-size: 1rem;
}

/* === LOGO & STATISTIK === */
.statistik-body {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}
.logo-block img {
    max-width: 400px;
    padding: 6px;
    border-radius: 14px;
    height: 300px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgb(0 0 0 / 21%);
}

.stats-grid {
    flex: 1;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(90deg, #2a90c1 0% 10%, #187f20 70%);
    border-radius: 10px;
    padding: 1rem;
}
.stat-item .icon {
    background: #fafcad;
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.stat-item .text {
    display: flex;
    flex-direction: column;
}
.stat-item .text strong {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}
.stat-item .text div {
    font-size: 0.85rem;
    color: #eee;
    margin-top: 2px;
}

/* === KAMPUS FOOTER === */
.kampus-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 253, 253, 0.685);
    text-align: center;
}
.kampus-footer h4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: azure;
}
.kampus-footer p {
    font-size: 0.9rem;
    color: #dcdcdc;
    line-height: 1.5;
}

/* === RESPONSIVE === */
@media (max-width: 920px) {
    .statistik-body {
        display: flex;
        flex-direction: column;
    }
    .logo-block img {
        max-width: 100%;
        height: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .statistik-header-grid {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .stat-header-logo {
        max-height: 200px;
    }
    .shg-center,
    .shg-right {
        display: flex;
        flex-direction: column;
        scale: 90%;
    }
    .qs-item {
        display: flex;
        width: 160px;
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }

    .statistik-main {
        margin-bottom: 2rem;
        display: flex;
        flex-direction: column-reverse;
    }
    .col-university {
        width: 100%;
        margin-top: 20px;
    }
    .statistik-body {
        display: flex;
        flex-direction: column;
    }
    .logo-block img {
        max-width: 100%;
        height: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .stat-header-logo {
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 170px);
    }
}
@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: repeat(2, 110px);
    }
    .stat-item .icon {
        background: #fafcad;
        font-size: 1rem;
        width: 10px;
        height: 10px;
        display: flex;
        border-radius: 8px;
        flex-shrink: 0;
        justify-content: center;
    }
    .stat-item .text div {
        font-size: 0.7rem;
    }
    .stat-item {
        align-items: baseline;
    }
}

/* ==========================================================================
   Portal Pencarian Kustom (Final Revisi)
   ========================================================================== */

/* Styling Kontainer Utama */
.my-portal-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Styling Sidebar */
.my-portal-sidebar {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    color: #343a40;
    font-weight: bold;
    font-size: 1.8rem;
}

#my-portal-search-input {
    border-radius: 20px;
    padding: 10px 20px;
    border-color: #ced4da;
}

/* Styling Autocomplete */
#my-portal-tag-autocomplete-results {
    border: 1px solid #ddd;
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.my-portal-autocomplete-item {
    cursor: pointer;
}

.my-portal-autocomplete-item:hover {
    background-color: #f1f1f1;
}

/* Styling Tombol Tag */
.my-portal-btn-tag {
    background-color: #e9ecef;
    color: #495057;
    margin: 4px;
    border-radius: 20px;
    padding: 8px 16px;
    border: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.my-portal-btn-tag:hover,
.my-portal-btn-tag.active {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

/* Styling Area Konten Hasil Pencarian */
.my-portal-content {
    padding-left: 40px;
}

/* Styling Daftar Post */
.my-portal-list-item {
    padding: 20px 10px 20px 20px;
    border-bottom: 1px solid #c5bfbf;
    transition: background-color 0.3s ease;
}

.my-portal-list-item:first-child {
    border-top: 1px solid #e0e0e0;
}

.my-portal-list-item:hover {
    background-color: #d1ffd7;
}

.my-portal-post-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1px;
}

.my-portal-post-title a {
    color: #08533a;
    text-decoration: none;
}

.my-portal-meta-post {
    font-size: 0.9rem;
    color: #6c757d;
}

.my-portal-meta-divider {
    margin: 0 8px;
    color: #ccc;
}

/* Styling Pagination */
.pagination .page-link {
    color: #007bff;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Styling Progress Bar */
.my-portal-progress {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 5px;
    background-color: transparent;
}

.my-portal-progress .progress-bar {
    background-color: #007bff;
    transition: width 0.2s ease-in-out;
}

.my-portal-loading-text {
    text-align: center;
    color: #6c757d;
    margin-top: 20px;
}

/* Responsivitas */
@media (max-width: 767.98px) {
    .my-portal-content {
        padding-left: 0;
    }

    .my-portal-post-title {
        font-size: 1.2rem;
    }

    .my-portal-meta-post {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.8rem;
    }

    .my-portal-meta-divider {
        display: none;
    }
}
