* {
    font-family: "Montserrat", sans-serif;
}

.font-logo {
    font-family: "Lucida Bright";
}

:root {
    --primary-color: #2d5382;
    --secondary-color: #abcaed;
    --tertiary-color: #2d5382;
}

.secondary-color {
    color: var(--secondary-color);
}
.primary-color {
    color: var(--primary-color);
}

.bg-primary-color {
    background-color: var(--primary-color);
}

.montserrat {
    font-family: "Montserrat", sans-serif;
}

.arial {
    font-family: "Arial", sans-serif;
}
h1 {
    font-weight: bold;
}

@media (max-width: 992px) {
    * {
        font-size: 12px;
    }
}
@media (max-width: 576px) {
    * {
        font-size: 10px;
    }
    #video_div {
        width: 100% !important;
    }
    .galery_beranda {
        width: 75% !important;
    }
}

body {
    background-color: white;
    /* height: 100%; */
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}
nav a:hover {
    color: #2d5382;
    background-color: white;
    border-radius: 10px;
}

/* nav */
p {
    text-align: justify;
    margin: 0px;
    font-family: "Arial", sans-serif;
}

li {
    font-family: "Arial", sans-serif;
}

nav li {
    list-style-type: none;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1001;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;
    background-color: #2d5382;
}

.dropdown-profil {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: white;
}

.dropdown-profil::after {
    font-family: "Material Icons";
    content: "arrow_drop_down";
}

.dropdown-content-profil {
    border-style: solid none none none;
    border-color: #2d5382;
    display: none;
    position: absolute;
    top: 25px;
    left: -30px;
    background-color: #f9f9f9;
    min-width: 170px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 12px;
}
.dropdown-content-profil ul {
    padding: 0;
    margin: 0;
}

.dropdown-profil:hover .dropdown-content-profil {
    display: flex;
    flex-direction: column;
}

.dropdown-content-profil a {
    color: #2d5382;
}

.dropdown-content-profil a:hover {
    color: white;
    background-color: #2d5382;
    border-radius: 10px;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: #2d5382;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav a,
.sidenav span {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 12px;
    color: white;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: black;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

@media (min-width: 768px) {
    #icon-nav {
        display: none;
    }
}
@media (max-width: 767px) {
    .container {
        padding: 0px 20px !important ;
    }
    #nav-normal {
        display: none !important;
    }
}
@media (max-width: 992px) {
    .container {
        padding: 0px 30px !important ;
    }
}

/* beranda */
.judul {
    position: relative;
}
.mini-jumbotron {
    min-height: 300px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.jumbotron {
    min-height: 600px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.overlay {
    display: flex;
    justify-content: end;
    flex-direction: column;
    align-items: start;
    position: absolute;
    top: 0;
    background: rgba(0, 0, 0, 0.5); /* Black see-through */
    color: #f1f1f1;
    width: 100%;
    transition: 0.5s ease;
    opacity: 1;
    color: white;
    font-size: 20px;
    padding: 20px;
    text-align: center;
    height: 100%;
    padding: 6% 6%;
    letter-spacing: 1;
}

.overlay h1 {
    font-size: 50px;
}

@media (max-width: 768px) {
    .overlay {
        justify-content: center;
        text-align: center;
        align-items: center;
    }
    .overlay h1 {
        font-size: 30px;
    }
    .subjudul {
        text-align: center;
    }
    .judul h1 {
        font-size: 30px !important;
    }
    #apbdesaChart {
        max-width: 100% !important;
        height: 300px !important;
    }
}

.space {
    margin-top: 4em;
    margin-bottom: 4em;
}

.card {
    /* border: 3px solid #5F8D4E; */
    border-radius: 25px;
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    width: 80%;
}

.info-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
}

.info-icon img {
    height: 100%;
}
.info-text {
    font-size: 16px;
    color: #2d5d91;
    font-weight: bold;
}

.info-subtext {
    color: #2d5d91;
}

.info-card .title {
    font-weight: bold;
    color: #2d5d91;
    font-size: 18px;
}

.info-card .value {
    color: #2d5d91;
    align-self: end;
}

.edu-chart-labels td {
    padding: 4px 8px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 14px;
}

.edu-chart-labels tr:first-child td {
    font-weight: bold;
    background: #f8f9fa;
}
.table-occupation th {
    background-color: #2d5d91;
    color: white;
}

.table-occupation td,
.table-occupation th {
    border: 1px solid #ccc;
    font-size: 14px;
}

.accordion-button.custom-header {
    background-color: #2c5282;
    font-size: 16px;
    color: white;
    font-weight: bold;
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
}
.accordion-button::after {
    filter: brightness(0) invert(1); /* turn black arrow to white */
}
.accordion-body {
    margin: 0.5em 0;
    border-radius: 10px;
    background-color: var(--secondary-color);
    color: black;
}
.accordion-body ol {
    margin: 0;
}

.event-card {
    background-color: var(--primary-color); /* Dark blue */
    color: white;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid black;
    height: 550px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
a:hover .event-card {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* optional for depth effect */
    z-index: 1;
}

.event-card h5 {
    padding: 1rem;
    font-weight: bold;
    margin-bottom: 0;
    border-bottom: 3px solid white;
}

.event-card img {
    object-fit: contain;
    width: 100%;
    max-height: 80%;
}

.card-body-content {
    flex-grow: 1;
    /* background-color: white; */
    color: black;
    font-size: 14px;
}

@media (min-width: 768px) {
    .row-cols-md-8 > * {
        flex: 0 0 auto;
        width: 12.5%; /* 100% / 8 */
    }
}

/* peta */
.peta-card {
    width: 70%;
    border: 3px solid #2d5382;
    border-radius: 20px;
    box-shadow: 0 4px 8px 0 rgb(45, 83, 130, 0.6),
        0 6px 20px 0 rgb(45, 83, 130, 0.6);
}
.btn-bukapeta {
    background: rgb(45, 83, 130, 1);
    border-radius: 5px;
    border: none;
    color: white;
    margin-top: 20px;
    margin-bottom: 50px;
    padding: 10px 5px;
    width: 100%;
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
    .jumbotron-kanan,
    .jumbotron-kiri {
        background-size: 100% 100%;
        min-height: 350px;
    }
    .row .col-6 {
        width: 100%;
        /* padding: 10px !important; */
    }

    .row h3 {
        text-align: center;
    }
    .space {
        margin-top: 2.5em;
        margin-bottom: 2.5em;
    }

    #footer p {
        font-size: 7px;
    }
    #footer .container {
        padding: 10px !important;
    }

    .event-card{
        height: auto !important;
    }

    .rpjm-img{
        width: 70% !important;
    }
    .photo-box{
        height: 250px !important;
    }
    .space .carousel-inner{
        width: 85% !important;
        margin: auto;
    }
    .event-card .lurah-polo{
        width: 80% !important;
        margin: auto;
    }
}

.rpjm-img{
    box-shadow: 0 4px 8px 3px #75757599;
    padding:0px; 
    width:30%;
}

/* footer */
#footer {
    background-color: #2d5382;
}
#footer p {
    text-align: center;
    color: white;
}

.hideme {
    opacity: 0;
    transition: all 1s ease;
}

.showme {
    opacity: 1 !important;
    transition: all 1s ease;
}

.isipost > div {
    text-align: justify;
}

.vidcon {
    position: relative;
}

video {
    width: 100%;
    object-fit: cover;
}
.buttonPlay {
    background-color: transparent;
    border: medium none;
    color: #fff;
    display: block;
    font-size: 18px;
    left: 0;
    margin: 0 auto;
    padding: 8px 16px;
    position: absolute;
    right: 0;
    top: 35%;
    width: 20%;
    z-index: 99;
}
.buttonPlay.active img {
    opacity: 0.05;
}
.buttonPlay.active:hover img {
    opacity: 0.3;
}

#video_div {
    width: 75%;
}
.galery_beranda {
    width: 30%;
}

.slider-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 1rem;
    background-color: #a8c7e6;
}

.card-wrapper {
    display: inline-block;
    width: 150px;
    margin-right: 1rem;
    vertical-align: top;
}

.photo-box {
    height: 180px;
    border: 1px solid #003366;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    background-color: #cde;
}

.footer-box {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.8rem;
}

.footer-box div:first-child {
    font-weight: bold;
    font-size: 0.75rem;
}

.footer-box div:last-child {
    text-transform: uppercase;
    font-weight: bold;
}

.slider .carousel-item.active,
.slider .carousel-item-start,
.slider .carousel-item-next,
.slider .carousel-item-prev {
    display: flex;
}

@media (min-width: 768px) {
    .slider .carousel-item-right.active,
    .slider .carousel-item-next,
    .slider .carousel-item-next:not(.carousel-item-start) {
        transform: translateX(16.7%) !important;
    }

    .slider .carousel-item-left.active,
    .slider .carousel-item-prev:not(.carousel-item-end),
    .slider .active.carousel-item-start,
    .slider .carousel-item-prev:not(.carousel-item-end) {
        transform: translateX(-16.7%) !important;
    }

    .slider .carousel-item-next.carousel-item-start,
    .slider .active.carousel-item-end {
        transform: translateX(0) !important;
    }

    .slider .carousel-item-prev,
    .slider .carousel-item-prev:not(.carousel-item-end) {
        transform: translateX(-16.7%) !important;
    }
}
@media (max-width: 768px) {
    .slider .carousel-item > div {
        display: none;
    }

    .slider .carousel-item > div:first-child {
        display: block;
    }
    .peta {
        width: 80% !important;
    }
    .peta iframe {
        height: 40vw !important;
    }
    .slider .carousel-item.active,
    .slider .carousel-item-start,
    .slider .carousel-item-next,
    .slider .carousel-item-prev {
        display: block;
    }
    .animation-vid {
        width: 100% !important;
    }
    #tugasPerangkatCarousel {
        display: none !important;
    }
    #tugasPerangkatCarouselMobile {
        display: block !important;
    }
}

#tugasPerangkatCarousel {
    display: block;
}
#tugasPerangkatCarouselMobile {
    display: none;
}

.animation-vid {
    width: 50%;
}
.sejarah .container .row p {
    color: var(--primary-color);
    padding-top: 1rem;
    font-weight: normal;
    font-size: 1.5rem;
    text-align: justify;
}

.btn.dropdown-toggle.show {
    background-color: white !important;
    color: var(--primary-color) !important;
}
.dropdown-item:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}
.btn-group .dropdown-menu .dropdown-item {
    white-space: normal; /* allow wrapping */
    word-wrap: break-word; /* break long words if needed */
    font-size: 12px !important;
}

.position {
    font-size: 12px !important;
    position: relative;
}

.position::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    border-bottom: 3px solid white;
}
.table-container {
    max-height: 500px;
    overflow-y: auto;
}

.table-container thead th {
    background-color: var(--primary-color) !important; /* custom dark blue */
    color: white !important;
    text-align: center;
}

.table-container tbody td {
    background-color: var(--secondary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 500;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
}

.table.table-bordered td,
.table.table-bordered th {
    border: 1px solid #000 !important; /* black border */
}

#map {
    height: 600px;
    width: 100%;
    border: 1px solid #ccc;
}

.controls {
    margin: 10px 0;
    text-align: start;
    padding: 10px;
    margin: 10px;
}
.peta {
    width: 50%;
}

.menu-peta {
    position: absolute;
    top: 80px;
    left: 10px;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    opacity: 0.6;
}
.menu-peta:hover {
    opacity: 1;
}

.leaflet-control-attribution .leaflet-attribution-flag {
    display: none !important;
}
