/* General page structure */
body, .footer, .running-text {
    font-family: "Poppins", sans-serif;
}

/* Header */
.header, .footer, .running-text {
    background-color: #5B5E61;
    color: #ffffff;
}



.beranda-profile-image {
    width: 240px;  /* Ukuran lebih kecil */
    height: 160px; /* Mempertahankan rasio 3:2 */
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.beranda-profile-image:hover {
    transform: translateY(-5px);
}

/* Wrapper untuk gambar */
.profile-images-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px;
}

/* Responsive adjustments dengan rasio yang sama */
@media (max-width: 991.98px) {
    .beranda-profile-image {
        width: 210px;
        height: 140px;
    }
}

@media (max-width: 767.98px) {
    .beranda-profile-image {
        width: 180px;
        height: 120px;
    }
}

@media (max-width: 575.98px) {
    .beranda-profile-image {
        width: 150px;
        height: 100px;
    }

    .profile-images-wrapper {
        gap: 10px;
    }
}

/* Untuk layar sangat kecil */
@media (max-width: 360px) {
    .beranda-profile-image {
        width: 135px;
        height: 90px;
    }
}

/* Style Navbar */
.navbar {
    background-color: #5B5E61;
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-container {
    padding: 0.5rem 1rem;
}

.navbar-brand-section {
    display: flex;
    gap: 0.5rem;
}

.navbar-brand-section .d-flex {
    display: flex !important;
    flex-direction: row !important;
}

.navbar-logo {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.site-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.site-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.navbar-nav {
    gap: 1rem;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.dropdown-menu:hover {
    background-color: #f8f9fa;
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
    .navbar-brand-section {
        flex-direction: row !important;
        align-items: center;
    }

    .navbar-brand-section .d-flex {
        flex-direction: row !important;
    }

    .navbar-logo {
        width: 35px;
    }

    .site-subtitle {
        font-size: 0.7rem;
    }

    .site-title {
        font-size: 0.9rem;
    }

    .text-white {
        margin-left: 0.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        width: 30px;
    }

    .site-subtitle {
        font-size: 0.6rem;
    }

    .site-title {
        font-size: 0.8rem;
    }
}




.btn-selengkapnya {
    border: 2px solid #000;
    border-radius: 20px;
    padding: 0.5rem 2rem;
    text-transform: uppercase;
}

/* Vision & Mission */
.vision-mission {
    text-align: center;
    padding: 3rem 0;
}
.vision-mission h2 {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Divisi Section */
.divisi-section {
    padding: 3rem 0;
}
.card {
    border-radius: 15px;
}
.card-title {
    font-weight: bold;
    text-transform: uppercase;
}
.btn-selengkapnya {
    border: 2px solid #000;
    border-radius: 20px;
    padding: 0.5rem 2rem;
    text-transform: uppercase;
}

/* Navbar Dropdown Hover */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Profile Section Responsive */
@media (max-width: 768px) {
    .profile-section {
        text-align: center;
    }

    .profile-section h1 {
        font-size: 1.8rem;
    }

    .profile-section .col-md-4 {
        margin-top: 2rem;
    }

    .profile-image {
        max-width: 160px;
        margin: 0.5rem auto;
    }

    .btn-selengkapnya {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Tambahan untuk layar sangat kecil */
@media (max-width: 576px) {
    .profile-section h1 {
        font-size: 1.5rem;
    }

    .profile-image {
        max-width: 140px;
    }
}

/* Layout Styles */
.container-fluid {
    max-width: 1400px;
}

/* Profile Section Styles */
.profile-section {
    height: 100%;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.profile-image {
    max-width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* Calendar Section Styles */
.calendar-section {
    height: 100%;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.calendar-wrapper {
    border-radius: 8px;
    overflow: hidden;
}

#calendar {
    padding: 1rem;
}

.calendar-header {
    padding: 0.5rem;
}

.calendar-header button {
    font-size: 1.2rem;
    padding: 0 0.5rem;
    color: #333;
}

.calendar-days {
    font-weight: bold;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

#dates .row {
    margin: 0;
    border-bottom: 1px solid #eee;
}

#dates .col {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    border-right: 1px solid #eee;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dates .col:last-child {
    border-right: none;
}

#dates .col.today {
    background-color: #e9ecef;
    font-weight: bold;
}

#dates .col.has-event {
    background-color: #cce5ff;
    cursor: pointer;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-section {
        padding: 1rem;
    }

    #calendar {
        padding: 0.5rem;
    }

    .calendar-days {
        font-size: 0.8rem;
    }

    #dates .col {
        font-size: 0.8rem;
        padding: 0.4rem;
        min-height: 2rem;
    }
}

@media (max-width: 576px) {
    .calendar-days {
        font-size: 0.7rem;
    }

    #dates .col {
        font-size: 0.7rem;
        padding: 0.3rem;
    }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .profile-section,
    .calendar-section {
        padding: 1.5rem;
    }

    .profile-image {
        max-width: 150px;
    }

    .calendar-wrapper {
        padding: 0.5rem;
    }

    #calendar {
        padding: 10px;
    }
}

@media (max-width: 767.98px) {
    .profile-image {
        max-width: 130px;
    }

    .profile-section h1 {
        font-size: 1.5rem;
    }

    .btn-selengkapnya {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Calendar specific styles */
#monthYear {
    font-size: 1.2rem;
    margin: 0;
}

.calendar-date {
    font-size: 0.9rem;
    padding: 0.5rem;
}

/* Existing calendar styles ... */

/* Article Styles */
.article-container {
    background-color: #fff;
}

.article-header {
    text-align: left;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.article-meta {
    font-size: 0.95rem;
    color: #6c757d;
}

.category-badge .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-featured-image {
    margin-bottom: 2rem;
}

.image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Rasio 16:9 (9/16 * 100%) */
    overflow: hidden;
    border-radius: 12px;
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ubah dari contain ke cover */
}

/* Responsive Image Adjustments */
@media (max-width: 768px) {
    .image-wrapper {
        padding-top: 56.25%; /* Tetap pertahankan rasio 16:9 */
    }
}

@media (max-width: 576px) {
    .image-wrapper {
        padding-top: 56.25%; /* Tetap pertahankan rasio 16:9 */
    }
}

.article-text p {
    margin-bottom: 1.5rem;
}

.article-navigation {
    margin-top: 3rem;
}

.share-buttons .btn {
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css");

/* Responsive Styles */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-meta {
        font-size: 0.85rem;
    }

    .article-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .share-buttons {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .article-title {
        font-size: 1.5rem;
    }

    .category-badge .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Profile Images Styles */
.profile-section .profile-image {
    width: 300px;  /* Ukuran tetap untuk lebar */
    height: 200px; /* Ukuran tetap untuk tinggi */
    object-fit: cover; /* Memastikan gambar menutupi area dengan baik */
    border-radius: 10px;
    margin: 0 10px; /* Memberikan jarak antara gambar */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Menambahkan bayangan halus */
    transition: transform 0.3s ease; /* Animasi hover */
}

.profile-section .profile-image:hover {
    transform: translateY(-5px); /* Efek hover mengangkat gambar */
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .profile-section .profile-image {
        width: 250px;
        height: 170px;
    }
}

@media (max-width: 767.98px) {
    .profile-section .profile-image {
        width: 200px;
        height: 140px;
        margin: 5px; /* Mengurangi margin pada layar kecil */
    }
}

@media (max-width: 575.98px) {
    .profile-section .profile-image {
        width: 150px;
        height: 100px;
    }
}

/* Carousel Styles */
.carousel {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.carousel-img {
    height: 500px;
    object-fit: cover;
    width: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    bottom: 20px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .carousel-img {
        height: 400px;
    }
}

@media (max-width: 767.98px) {
    .carousel-img {
        height: 300px;
    }

    .carousel-caption {
        padding: 10px;
    }

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

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

@media (max-width: 575.98px) {
    .carousel-img {
        height: 250px;
    }

    .carousel-caption {
        padding: 5px;
    }
}

/* Tambahkan style untuk sidebar */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1031; /* Di atas navbar */
    top: 0;
    right: 0;
    background-color: #5B5E61;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
}

.sidebar .navbar-nav {
    width: 100%;
}

.sidebar .nav-link {
    padding: 15px 25px;
    color: white !important;
    display: block;
    transition: 0.3s;
    white-space: nowrap;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidebar .dropdown-menu {
    background-color: #4a4d4f;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.sidebar .dropdown-item {
    color: white;
    padding: 12px 35px;
}

.sidebar .dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* Overlay ketika sidebar terbuka */
.sidebar-overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1030;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important;
    }

    .sidebar {
        width: 0;
    }

    .sidebar.active {
        width: 280px;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

/* Footer & Running Text Styles */
.running-text {
    overflow: hidden;
    background-color: #5B5E61;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.running-text-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.running-text-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: running-text 30s linear infinite;
}

.running-text-item {
    color: white;
    font-size: 0.9rem;
    margin-right: 20px;
}

@keyframes running-text {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

/* Pause animation on hover */
/* .running-text-container:hover .running-text-content {
    animation-play-state: paused;
} */

/* Responsive adjustments untuk running text */
@media (max-width: 768px) {
    .running-text-item {
        font-size: 0.8rem;
    }
}

/* Footer content styles */
.footer-content {
    background-color: #5B5E61;
}

.sponsor-wrapper {
    margin: 1rem 0;
}

.sponsor-image {
    transition: transform 0.3s ease;
}

.sponsor-image:hover {
    transform: scale(1.05);
}

.copyright {
    color: white;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .sponsor-image {
        height: 40px;
    }

    .copyright {
        font-size: 0.8rem;
    }
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: bold;
    border-bottom: 2px solid #fff;
}

/* Carousel styling */
.carousel-image-container {
    width: 100%;
    height: 500px; /* Sesuaikan tinggi yang diinginkan */
    overflow: hidden;
    position: relative;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    bottom: 20px;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Responsive styling */
@media (max-width: 768px) {
    .carousel-image-container {
        height: 300px;
    }

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

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

@media (max-width: 576px) {
    .carousel-image-container {
        height: 250px;
    }

    .carousel-caption {
        padding: 10px;
    }

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

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

/* Featured News Styles */
.featured-news {
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.featured-news:hover {
    transform: translateY(-5px);
}

.featured-news .card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-news .card-title {
        font-size: 1.5rem;
    }

    .featured-news img {
        min-height: 300px !important;
    }
}

@media (max-width: 576px) {
    .featured-news .card-title {
        font-size: 1.2rem;
    }

    .featured-news img {
        min-height: 250px !important;
    }
}

/* Layout fixes */
.divisi-section,
.article-container {
    min-height: calc(100vh - 300px); /* Menyesuaikan dengan tinggi footer */
    padding-bottom: 60px; /* Memberikan jarak dengan footer */
}

/* Card styling untuk halaman divisi */
.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-text {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.btn-selengkapnya {
    margin-top: auto;
    align-self: start;
}

/* Article container styling */
.article-container {
    background-color: #fff;
}

.article-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .divisi-section,
    .article-container {
        min-height: calc(100vh - 250px);
        padding-bottom: 40px;
    }

    .card-img-top {
        height: 180px;
    }

    .article-featured-image img {
        max-height: 300px;
    }
}

/* Layout fixes */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

main {
    flex: 1 0 auto;
    padding-bottom: 2rem;
}

.footer {
    flex-shrink: 0;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: auto;
}

/* Container spacing */
.container-spacing {
    padding-bottom: 2rem;
}

/* Page specific container adjustments */
.divisi-section,
.article-container,
.galeri-container,
.jadwal-container,
.selengkapnya-section {
    padding: 2rem 0;
}

/* Card adjustments */
.card {
    height: 100%;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main {
        padding-bottom: 1rem;
    }

    .container-spacing {
        padding-bottom: 1rem;
    }
}
