/* ========================================================================= */
/* CSS Kustom dan Styling */
/* File: style.css */
/* ========================================================================= */
body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: #f0f2f5;
    letter-spacing: 0.3px;
    font-weight: 400;
}


.hero-overlay-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 90%;
    max-width: 1200px;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text-content {
    flex: 1;
    color: white;
}

.hero-text-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text-content p {
    font-size: 2.2rem;
    margin: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-image-wrapper {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-floating-image {
    width: 260px;
    height: 260px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.02);
    }
}

@media (max-width: 1024px) {
    .hero-text-content h1 {
        font-size: 2rem;
    }

    .hero-text-content p {
        font-size: 1rem;
    }

    .hero-floating-image {
        width: 320px;
        height: 320px;
    }

    .hero-content-wrapper {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-overlay-container {
        width: 95%;
    }

    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero-text-content h1 {
        font-size: 1.6rem;
        color: #fff;
    }

    .hero-text-content p {
        font-size: 0.9rem;
    }

    .hero-floating-image {
        width: 260px;
        height: 260px;
    }
}

/* Heading styling - lebih profesional dengan Montserrat */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-weight: 700;
    color: #051c2f;
    letter-spacing: 0.5px;
}

/* Navbar styling dengan font profesional */
header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    background: white;
}

.navbar-custom {
    background-color: #80011B; /* Biru */
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Navbar Toggler styling untuk mobile */
.navbar-custom .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.5rem;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Penyesuaian padding dan warna untuk menu navigasi */
.navbar-custom .navbar-collapse {
    display: flex !important;
}

.navbar-custom .nav-link, .navbar-custom .dropdown-toggle {
    color: white !important;
    padding-right: 0.8rem !important;
    padding-left: 0.8rem !important;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}
.navbar-custom .nav-link:hover, .navbar-custom .dropdown-toggle:hover {
    background-color: #2b547a; /* Biru lebih gelap saat hover */
}
.navbar-custom .navbar-nav {
    flex-wrap: wrap;
}

/* Desktop view - menu selalu visible */
@media (min-width: 992px) {
    .navbar-custom .navbar-collapse {
        display: flex !important;
    }
}

/* Responsive untuk Submenu (Desktop) */
@media (min-width: 992px) {
    .dropdown-submenu {
        position: relative;
    }
    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -6px;
        margin-left: -1px;
    }
    /* Tampilkan submenu pada desktop — using class 'show' instead of hover so JS toggle works reliably */
    .dropdown-submenu > .dropdown-menu { display: none; }
    .dropdown-submenu.show > .dropdown-menu { display: block; }
    /* Tampilkan top-level dropdown saat hover pada desktop */
    .navbar-custom .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
    /* Make sure dropdown menus stack correctly on desktop */
    .navbar-custom .dropdown-menu {
        position: absolute;
        left: 0;
        top: 100%;
        min-width: 13rem;
        z-index: 2000;
    }
    /* Ikon panah untuk submenu di desktop */
    .dropdown-submenu > a:after {
        display: block;
        content: "\f0da"; /* Unicode untuk ikon Font Awesome angle-right */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        float: right;
        color: #ccc;
        margin-top: 2px;
    }
}

/* Dropdown custom styling */
.dropdown-menu {
    font-size: 0.9rem;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}
.dropdown-item:hover {
    background-color: #f0f2f5;
    color: #80011B;
}

/* Mobile menu styling */
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        display: none !important;
        flex-direction: column;
        background-color: #80011B;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .navbar-custom .navbar-collapse.show {
        display: flex !important;
    }
    
    .navbar-custom .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .navbar-custom .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .navbar-custom .nav-item:last-child {
        border-bottom: none;
    }
    .navbar-custom .nav-link,
    .navbar-custom .dropdown-toggle {
        padding: 0.8rem 1rem !important;
        color: white !important;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .navbar-custom .nav-link:hover,
    .navbar-custom .dropdown-toggle:hover {
        background-color: rgba(255, 255, 255, 0.15);
        padding-left: 1.25rem !important;
    }
    /* Dropdown toggle arrow untuk mobile */
    .navbar-custom .dropdown-toggle::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        display: inline-block !important;
        margin-left: auto;
        margin-bottom: 0 !important;
        font-size: 0.75rem;
        transition: transform 0.2s ease;
        background: none !important;
        border: none !important;
    }
    .navbar-custom .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    .dropdown-submenu > a {
        padding-left: 2rem !important;
    }
    .dropdown-submenu > a::after {
        display: inline-block;
        content: '\f054';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.7rem;
        margin-left: auto;
    }
    .dropdown-submenu > a:hover {
        padding-left: 2.25rem !important;
    }
    .dropdown-menu {
        display: none;
        position: static;
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        background-color: rgba(11, 47, 81, 0.85);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    /* Ensure desktop-style absolute dropdowns are never used inside the offcanvas mobile menu
       (sometimes dropdowns get .show applied and float over the offcanvas content). */
    #mobileMenu .dropdown-menu {
        display: none !important;
        position: static !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .dropdown-menu.show {
        display: flex !important;
        flex-direction: column;
        max-height: 1000px;
    }
    .dropdown-item {
        padding: 0.7rem 1.5rem;
        color: rgba(255, 255, 255, 0.9);
        background-color: transparent;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.2s ease;
    }
    .dropdown-item:last-child {
        border-bottom: none;
    }
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: white;
        padding-left: 1.75rem;
    }
    /* Submenu items styling */
    .dropdown-submenu .dropdown-menu .dropdown-item {
        padding-left: 2.5rem;
    }
    .dropdown-submenu .dropdown-menu .dropdown-item:hover {
        padding-left: 2.75rem;
    }
}

/* Styling tambahan lainnya */
.banner-carousel {
    position: relative;
    width: 100%;
    margin-left: 0;
    overflow: hidden;
    border-radius: 0;
    transition: height 0.18s ease, min-height 0.18s ease;
}

.carousel-inner {
    width: 100%;
}

.carousel-item {
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: auto; /* let image scale naturally on small screens */
    object-fit: cover;
    display: block;
    max-height: 720px; /* prevent extremely tall images on very large screens */
}

.carousel-caption {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: none;
}

/* Position carousel indicators over the banner so they're visible */
.banner-carousel {
    position: relative; /* ensure absolute children position to this */
}
.banner-carousel .carousel-indicators {
    position: absolute !important;
    bottom: 18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important; /* ensure it's above other elements */
    display: flex;
    gap: 0.5rem;
    padding: 0;
}
.banner-carousel .carousel-indicators button {
    width: 34px;
    height: 4px;
    border-radius: 3px;
    background-color: rgba(255,255,255,0.7);
    border: none;
    transition: all 0.18s ease;
}
.banner-carousel .carousel-indicators button.active {
    width: 44px;
    height: 6px;
    background-color: #ffffff;
    opacity: 1;
}

/* Ensure indicators are inside the visible banner area even if parent containers have overflow settings */
.banner-carousel {
    overflow: visible !important;
}
@media (max-width: 768px) {
    .banner-carousel .carousel-indicators {
        bottom: 12px;
        gap: 0.35rem;
    }
    .banner-carousel .carousel-indicators button {
        width: 26px;
        height: 4px;
    }
    .banner-carousel .carousel-indicators button.active {
        width: 34px;
        height: 5px;
    }
}

/* Desktop: set a taller hero height while keeping mobile fluid */
@media (min-width: 992px) {
    .banner-carousel {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        height: 853px;
        min-height: 450px;
    }
    .carousel-item img {
        height: 100%;
        object-fit: cover;
    }
}

/* Tablet & Mobile: fluid height, scale captions down */
@media (max-width: 991.98px) {
    .banner-carousel {
        height: auto;
        min-height: 180px;
    }
    .carousel-item img {
        height: auto;
        max-height: none;
    }
    .carousel-caption {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 0.5rem 0.8rem;
        width: calc(100% - 2rem);
    }
    .carousel-caption h1,
    .carousel-caption h2,
    .carousel-caption p {
        color: #fff;
        text-shadow: none;
    }
    .carousel-caption h1 { font-size: clamp(1rem, 6vw, 1.6rem); }
    .carousel-caption h2 { font-size: clamp(0.9rem, 4.5vw, 1.1rem); }
    .carousel-caption p  { font-size: clamp(0.8rem, 3.5vw, 1rem); }
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background-color: transparent; /* make sides transparent to remove dark panels */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: transparent; /* no darker hover */
}

/* Ensure the default SVG icons remain visible without dark background */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: none;
    opacity: 0.9;
}

/* Responsive untuk banner carousel */
@media (max-width: 768px) {
    .banner-carousel {
        height: 853px;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.25rem;
    }
    
    .carousel-caption h2 {
        font-size: 1rem;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
    }
}

.banner-custom {
    /* Background gambar dan styling banner */
    background-image: url('https://placehold.co/1920x250/228B22/FFFFFF/png?text=Selamat+Wisuda+Angkatan+11+Prodi+Fisika');
    background-size: cover;
    background-position: center;
    height: 250px;
    display: flex;
    align-items: center;
    padding: 2rem;
    color: white;
    position: relative;
}
.banner-text {
    background-color: rgba(15, 120, 19, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
}
.heading-green {
    border-bottom: 3px solid #80011B;
}
.news-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e0e0e0;
}

.news-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Judul berita rata kanan dan kiri */
.news-title {
    text-align: justify;
    text-justify: inter-word;
}

/* Deskripsi berita rata kanan dan kiri */
.news-summary {
    text-align: justify;
    text-justify: inter-word;
}
.sdg-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    margin-right: 1.25rem;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
}
/* Warna SDG (Simulasi) - Dipertahankan untuk tampilan berita */
.bg-sdg-1 { background-color: #e5243b; }
.bg-sdg-2 { background-color: #dda63a; }
.bg-sdg-3 { background-color: #4c9f38; }
.bg-sdg-4 { background-color: #c5192d; }
.bg-sdg-5 { background-color: #ff3a21; }
.bg-sdg-6 { background-color: #26bde2; }
.bg-sdg-7 { background-color: #fcc30b; }
.bg-sdg-8 { background-color: #a21942; }
.bg-sdg-9 { background-color: #fd6925; }
.bg-sdg-10 { background-color: #dd1367; }
.bg-sdg-11 { background-color: #fd9d24; }
.bg-sdg-12 { background-color: #bf8b2e; }
.bg-sdg-13 { background-color: #3f7e44; }
.bg-sdg-14 { background-color: #0a97d9; }
.bg-sdg-15 { background-color: #56c02b; }
.bg-sdg-16 { background-color: #00689d; }
.bg-sdg-17 { background-color: #19486a; }
/* Footer Styles */
.footer-cta { 
    background-color: #80011B; 
    color: white; 
    padding: 1rem 0; 
    text-align: center; 
}
.footer-main { 
    background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-main h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-main p {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-main .social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-main .social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* ===== Sidebar Cards Styling (Agenda, Pengumuman, Popular News, Visitors) ===== */
.sidebar-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.sidebar-card h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #80011B;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e8eef5;
}

/* Minimalist icon styling used next to sidebar headings */
.icon-heading {
    font-size: 1.05rem; /* slightly larger than body text */
    color: #80011B; /* match sidebar heading color */
    vertical-align: middle;
}
@media (max-width: 767.98px) {
    .icon-heading {
        font-size: 0.95rem;
    }
}
.sidebar-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}
.sidebar-card a {
    color: #730a0a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.sidebar-card a:hover {
    color: rgb(21, 51, 121);
    text-decoration: underline;
}

/* Popular News Item dalam Sidebar */
.sidebar-card .popular-news-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.sidebar-card .popular-news-item:hover {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin: -0.5rem 0 1.25rem -0.5rem;
}
.sidebar-card .popular-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.sidebar-card .popular-news-item img {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.sidebar-card .popular-news-item .text-sm {
    flex: 1;
}
.sidebar-card .popular-news-item a {
    font-size: 0.9rem;
    color: #333;
    display: block;
    margin: 0.25rem 0;
}
.sidebar-card .popular-news-item p {
    font-size: 0.8rem;
    color: #999;
    margin: 0.25rem 0;
}

/* Latest News (sidebar) styling */
#latestNewsCard {
    font-family: 'Poppins', sans-serif;
}
#latestNewsCard .latest-news-item { padding: 0.4rem 0; }
#latestNewsCard .latest-news-item .news-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}
#latestNewsCard .latest-news-title {
    display: block;
    font-size: 0.9rem; /* ukuran sedang */
    color: #111827;
    font-weight: 600; /* sedikit lebih ringan */
    line-height: 1.25;
    text-decoration: none;
    margin-bottom: 0.15rem;
}
#latestNewsCard .latest-news-title:hover { color: #730a0a; }
#latestNewsCard .latest-news-meta {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0;
}

@media (max-width: 576px) {
    #latestNewsCard .latest-news-item { gap: 0.6rem; }
    #latestNewsCard .latest-news-title { font-size: 0.88rem; }
}

/* Heading Green untuk Sidebar */
.heading-green {
    color: #80011B !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}



/* Pagination wrapper - compact box hanya untuk pagination */
.pagination-wrapper {
    display: inline-flex;
    width: auto;
    background-color: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
}

/* Pagination styling - dengan visual separator yang jelas */
nav[aria-label="News Pagination"] {
    margin-top: 0;
    margin-bottom: 0;
}

.pagination {
    margin-bottom: 0 !important;
    gap: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.page-item {
    margin: 0 !important;
}

.page-link {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 0.75rem !important;
    color: #730a0a !important;
    font-weight: 500 !important;
    font-family: 'Montserrat', sans-serif !important;
    background-color: #fff !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    min-width: 2.5rem !important;
    text-align: center !important;
}

.page-link:hover {
    background-color: #f0f2f5 !important;
    color: #730a0a !important;
    border-color: #730a0a !important;
}

.page-item.active .page-link {
    background-color: #730a0a !important;
    border-color: #730a0a !important;
    color: white !important;
}

.page-item.disabled .page-link {
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.page-link:focus {
    box-shadow: none !important;
    outline: 2px solid #730a0a !important;
    outline-offset: 2px !important;
}
.announcement-item a {
    display: block;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease, transform 0.08s ease;
}
.announcement-item a:hover {
    background-color: #f5f7fb;
    transform: translateY(-2px);
}
.announcement-item .text-xs {
    font-size: 0.75rem;
    color: #6b7280;
}
.announcement-item p.fw-semibold {
    font-weight: 600;
    margin-bottom: 0;
    color: #80011B;
}

/* Tablet breakpoint styling (768px - 991px) */
@media (max-width: 991.98px) and (min-width: 768px) {
    .navbar-custom .navbar-collapse {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    .navbar-custom .navbar-nav {
        gap: 0;
    }
}

@media (max-width: 767.98px) {
    #announcementsGrid .announcement-item {
        margin-bottom: 0.25rem;
    }
    
    .navbar-custom .navbar-collapse {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

/* Formal styling untuk konten artikel dan berita */
.news-card {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.news-card h6,
.news-card .sdg-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.heading-green {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Styling untuk link dan teks */
a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.text-gray-800,
.text-gray-600 {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

/* Sidebar heading styling */
.bg-white .h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Announcement styling */
.announcement-item a {
    font-family: 'Poppins', sans-serif;
}

.announcement-item p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}


/* Maps Section */
.maps-section {
    background-color: #f8f9fa;
    padding: 1rem 0;
}

.maps-container {
    background-color: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.maps-container iframe {
    display: block;
    width: 100%;
    height: 400px;
}

/* Responsive Maps */
@media (max-width: 768px) {
    .maps-container iframe {
        height: 300px;
    }
}

/* Ensure page uses flex layout so footer sits at bottom and remove excessive bottom whitespace */
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-content {
    flex: 1 0 auto;
    padding-top: 60px;
}

/* Slightly reduce maps height to avoid large empty area */
.maps-container iframe {
    height: 280px !important;
}

/* Reduce vertical padding in footer links section to save space */
.footer-links-section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Reduce Footer CTA padding so the bottom area is tighter */
.footer-cta {
    padding: 1rem 0 !important;
}

/* Responsive - Sejajarkan berita dengan sidebar */
@media (min-width: 992px) {
    .col-lg-9 {
        display: flex;
        flex-direction: column;
    }
    
    .col-lg-9 > div:not(.row) {
        flex: 1;
    }
    
    .col-lg-9 .bg-white:has(#latestNewsContainer) {
        display: flex;
        flex-direction: column;
    }
    
    .col-lg-9 .bg-white:has(#latestNewsContainer) #latestNewsContainer {
        flex: 1;
    }
}

/* Reduce footer links padding */
.footer-links-section {
    background: linear-gradient(135deg, #80011B 0%, #80011B 100%);
    color: #fff;
    border: none;
    margin-bottom: 0;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Sambutan section styling */
.sambutan-section {
    background: transparent;
}
.sambutan-card {
    background: #fff;
}
.sambutan-img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 11 / 13;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-left: auto;
    margin-right: auto;
}
.sambutan-text p {
    text-align: justify;
    color: #444;
}
@media (max-width: 767.98px) {
    .sambutan-img {
        max-width: 140px;
        margin: 0 auto;
    }
    .sambutan-card {
        text-align: center;
    }
}

/* Tablet breakpoint: slightly smaller than desktop but larger than mobile */
@media (max-width: 991.98px) and (min-width: 768px) {
    .sambutan-img {
        max-width: 180px;
    }
}
.footer-prodi-card {
    background: rgba(0,0,0,0.07);
    border-top: 3px solid #d40b0b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: center;
}
.footer-prodi-card h3 {
    font-family: 'Montserrat',sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #fff;
}
.footer-prodi-card p {
    color: #e0f7e9;
    font-size: 1.05rem;
}
.footer-prodi-card a {
    color: #fff;
    transition: color 0.2s;
}
.footer-prodi-card a:hover {
    color: #d40b0b;
}
.footer-link-list {
    margin: 0;
    padding: 0;
}
.footer-link-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}
.footer-link-list li:before {
    content: '\203A';
    position: absolute;
    left: 0;
    color: #d40b0b;
    font-size: 1.1em;
    top: 0.1em;
}
.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #d40b0b;
    text-decoration: underline;
}
.footer-links-section h5 {
    font-family: 'Montserrat',sans-serif;
    font-weight: 700;
    color: #fff;
}
.footer-links-section form input[type="email"] {
    background: #fff;
    color: #80011B;
    border: none;
    font-size: 1rem;
}
.footer-links-section form input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px #d40b0b;
}
.footer-links-section form .btn-success {
    background: linear-gradient(90deg,#1f5993,#d40b0b);
    border:0;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}
@media (max-width: 991.98px) {
    .footer-links-section .row > div {
        margin-bottom: 2rem;
    }
}
@media (max-width: 767.98px) {
    .footer-links-section .row > div {
        margin-bottom: 1.5rem;
    }
    .footer-prodi-card h3 {
        font-size: 1.3rem;
    }
}

/* Fix: prevent sticky sidebar from overlapping pagination on small screens */
@media (max-width: 991.98px) {
    .sticky-top {
        position: static !important;
        top: auto !important;
    }
    /* add comfortable spacing under pagination on mobile */
    .pagination-wrapper {
        margin-bottom: 1.25rem !important;
    }
    /* Ensure sidebar cards have normal flow spacing when not sticky */
    .sticky-top > .sidebar-card {
        margin-top: 0.5rem;
    }
}

/* Mobile Offcanvas Menu Styling */
.offcanvas {
    background-color: #fff;
    width: 75% !important;
    max-width: 320px !important;
}

.offcanvas-backdrop.show {
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 1 !important;
}

.offcanvas-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
    background-color: #80011B;
}

.offcanvas-header .navbar-brand img {
    max-height: 30px;
}

.offcanvas-header .btn-close {
    padding: 0.25rem;
    filter: invert(1);
}

.offcanvas-body {
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Offcanvas navbar styling */
.offcanvas .navbar-nav {
    width: 100%;
    margin: 0;
    padding: 0;
}

.offcanvas .nav-item {
    margin: 0;
    border-bottom: 1px solid #e9ecef;
    list-style: none;
}

.offcanvas .nav-item:last-child {
    border-bottom: none;
}

/* Collapse button styling in offcanvas */
.offcanvas .nav-link {
    padding: 1rem;
    color: #1f2937;
    background: transparent;
    border: none;
    text-align: left;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.offcanvas .nav-link:hover {
    background-color: #f8f9fa;
    color: #80011B;
}

/* Chevron rotation on collapse show/hide */
.toggle-chevron {
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.6);
    transition: transform 280ms ease;
    display: inline-block;
    margin-left: auto;
}

[aria-expanded="true"] .toggle-chevron {
    transform: rotate(180deg);
    color: rgba(11, 47, 81, 0.95);
}

/* Submenu collapse styling */
/* Offcanvas collapse - rely on Bootstrap's classes and only use max-height/opacity transitions
   to animate open/close. Avoid forcing display: block which conflicts with Bootstrap's internal
   show/hide and can cause flicker. */
.offcanvas .collapse {
    /* Keep padding default; rely on Bootstrap's collapse handling for show/hide and transition.
       Avoid custom max-height/opacity transitions that can conflict with Bootstrap's 'collapsing'
       state and cause quick flicker/close behavior. */
    padding: 0;
}

.offcanvas .collapse.show {
    padding: 0.5rem 0;
}

/* Simple mobile menu styles */
#mobileSimpleMenu .mobile-section { background: transparent; }
#mobileSimpleMenu .mobile-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: none;
    background: transparent;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
}
#mobileSimpleMenu .mobile-toggle:focus { outline: none; }
#mobileSimpleMenu .mobile-chevron { transition: transform 180ms ease; }
#mobileSimpleMenu .mobile-section.open > .mobile-toggle .mobile-chevron { transform: rotate(180deg); }
#mobileSimpleMenu .mobile-submenu { display: none; }
#mobileSimpleMenu .mobile-section.open > .mobile-submenu { display: block; }
#mobileSimpleMenu .mobile-submenu .nav-link { padding: 0.6rem 0; color: #374151; }
#mobileSimpleMenu .mobile-submenu.nested { display: none; padding-left: 0.5rem; }
#mobileSimpleMenu .mobile-submenu.nested .nav-link { padding-left: 0.75rem; }
#mobileSimpleMenu .mobile-submenu .mobile-toggle-sub.open + .mobile-submenu.nested { display: block; }

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.offcanvas .collapse ul {
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #f8f9fa;
    border-left: 3px solid #80011B;
}

.offcanvas .collapse li {
    border-bottom: 1px solid #e9ecef;
}

.offcanvas .collapse li:last-child {
    border-bottom: none;
}

.offcanvas .collapse .nav-link {
    padding: 0.75rem 1rem 0.75rem 1.5rem !important;
    font-size: 0.9rem;
    font-weight: 400;
    color: #374151;
    display: block;
}

.offcanvas .collapse .nav-link:hover {
    background-color: #e9ecef;
    color: #80011B;
}

.text-dark {
    color: #80011B !important;
}
/* HR in submenu */
.offcanvas .dropdown-divider {
    margin: 0.25rem 0;
    border-color: #dee2e6;
}


/* News Card Grid - 1 Kolom Full Width */
#latestNewsContainer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-card {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.5rem 1.5rem 1.5rem 1rem;
  margin-bottom: 0;
  border: 1px solid #f0f0f0;
  min-height: 120px;
  transition: box-shadow 0.2s;
}
.news-card:not(:last-child) {
  border-bottom: 2px solid #f0f0f0;
}
.news-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.sdg-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-right: 1.25rem;
}
.sdg-text {
  flex: 1;
}
@media (max-width: 767.98px) {
  .news-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  .sdg-icon {
    margin: 0 0 0.75rem 0;
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }
}

/* Footer bottom: visible background and left/right alignment */
.footer-bottom {
    background: #80011B;
    color: #fff;
    border-top: 1px solid rgba(45,227,161,0.15);
}
.footer-bottom .small {
    color: rgba(255,255,255,0.95);
}
.footer-bottom .footer-powered a,
.footer-powered {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}
.footer-powered:hover {
    color: #d40b0b;
    text-decoration: none;
}
@media (max-width: 767.98px) {
    .footer-bottom {
        text-align: center;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    .footer-bottom .text-start,
    .footer-bottom .text-end {
        text-align: center !important;
    }
}

/* Small search control overrides */
/* Reduce font-size and tighten padding for the news search input and button */
#newsSearchInput {
    font-size: 0.82rem !important;
    padding: 0.35rem 0.6rem !important;
}

#searchButton {
    font-size: 0.82rem !important;
    padding: 0.35rem 0.7rem !important;
    line-height: 1.2 !important;
}

@media (max-width: 767.98px) {
    #newsSearchInput, #searchButton {
        font-size: 0.78rem !important;
    }
}