html, body, #konten-web{
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
    font-family: "Montserrat", sans-serif;
    scroll-behavior: smooth;
}

#berita-terkini {
    scroll-margin-top: 80px;
}

.bg-forestGreen{background-color: forestGreen!important}
.bg-feminim{background-color: #aa4d84!important;}
.bg-darkFeminim{background-color: #bc3568!important}
.bg-signature{background-color: #8c3568!important}
.bg-grape{background-color: #aa4d84!important}
.bg-midnightBlue{background-color: midnightBlue!important;}
.bg-white{background-color: white;<span class="fs-5 fw-bold mt-3 text-dark">{{ $_tautan_eksternal->title }}</span>}
.bg-darkOrange{background-color: darkOrange!important;}
.bg-darkGreen{background-color: darkGreen!important;}
.bg-darkPurple{background-color: #47003c;}
.bg-neutral{background-color: #f5f5f1!important}
.bg-customGray{
    background: #d6f9ff;
    background: -moz-linear-gradient(top,  #d6f9ff 0%, #9ee8fa 100%);
    background: -webkit-linear-gradient(top,  #d6f9ff 0%,#9ee8fa 100%);
    background: linear-gradient(to bottom,  #d6f9ff 0%,#9ee8fa 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d6f9ff', endColorstr='#9ee8fa',GradientType=0 );
}

.bg-teal-hover:hover{
    background-color: rgba(0,0,0,0.25);
    transition: all .5s;
}
.bg-light-hover:hover{
    background-color: rgba(0,0,0,0.1);
    transition: all .5s;
}
.text-white{color: white;}
.text-feminim{color: #853266!important;}
.text-gray25{color: #dddddd;}
.text-lightBlue{color: lightBlue;}
.text-lightPink{color: lightpink;}
.text-hover-underline:hover{
    text-decoration: underline!important;
}

.text-bg-deepPurple-transparent{
    color: white;
    background-color: rgba(71, 0, 60, 0.5)!important;
}

/*DISABILITAS CLASS*/
.text-bold-mode * {
    font-weight: bold !important;
}

/* Mode Sorot Tautan */
.highlight-link-mode a,
.highlight-link-mode a:visited {
    background-color: yellow;
    color: black !important;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: underline;
    transition: background-color 0.2s ease;
}

.highlight-link-mode a:hover {
    background-color: gold;
    color: black !important;
}

/* Mode Monokrom */
.monochrome-mode {
    filter: grayscale(100%) !important;
}

.monochrome-mode img,
.monochrome-mode video {
    filter: grayscale(100%) !important;
}

/* Mode Kontras Terang */
.high-contrast-mode {
    background-color: #ffffff !important;
    color: #000000 !important;
    filter: brightness(1.2) contrast(1.5);
}

/* Pastikan elemen yang memiliki warna tersendiri juga ikut menyesuaikan */
.high-contrast-mode a {
    color: #0000ee !important;
    text-decoration: underline !important;
}

.high-contrast-mode header,
.high-contrast-mode footer,
.high-contrast-mode nav {
    background-color: #f1f1f1 !important;
    color: #000 !important;
}

/* MODE KURSOR BESAR */
.large-cursor-mode,
.large-cursor-mode * {
    cursor: url("data:image/svg+xml;utf8,\
        <svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'>\
        <polygon points='2,2 2,38 14,28 18,44 24,42 20,26 38,26' \
        fill='black' stroke='white' stroke-width='2' stroke-linejoin='round'/>\
        </svg>") 2 2, auto !important;
}

/* Elemen interaktif (link, tombol, dsb) tetap pointer */
.large-cursor-mode a,
.large-cursor-mode button,
.large-cursor-mode input,
.large-cursor-mode label {
    cursor: url("data:image/svg+xml;utf8,\
        <svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'>\
        <polygon points='2,2 2,38 14,28 18,44 24,42 20,26 38,26' \
        fill='black' stroke='white' stroke-width='2' stroke-linejoin='round'/>\
        </svg>") 2 2, pointer !important;
}

/* Mode Animasi Dijeda */
.pause-animation-mode *,
.pause-animation-mode *::before,
.pause-animation-mode *::after {
    animation-play-state: paused !important;
    transition: none !important;
}

/* Jika ingin juga hentikan video & gif */
.pause-animation-mode video {
    animation-play-state: paused !important;
    transition: none !important;
}

.pause-animation-mode img[src$=".gif"] {
    opacity: 0.7;
    filter: grayscale(1);
}

/* Mode Sembunyikan Gambar */
.hide-image-mode img,
.hide-image-mode picture,
.hide-image-mode figure {
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}

/* Hilangkan semua background-image di halaman */
.hide-image-mode * {
    background-image: none !important;
}

/* Jika kamu ingin mengganti gambar dengan placeholder warna abu-abu */
.hide-image-mode img::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

/* Mode Rata Tulisan */
.align-left *:not(i):not(svg) {
    text-align: left !important;
}
.align-center *:not(i):not(svg) {
    text-align: center !important;
}
.align-right *:not(i):not(svg) {
    text-align: right !important;
}
.align-justify *:not(i):not(svg) {
    text-align: justify !important;
}

/* Atur Spasi Teks */
.spacing-kecil *:not(i):not(svg) {
    letter-spacing: -0.5px !important;
    transition: all 0.3s ease;
}

.spacing-normal *:not(i):not(svg) {
    letter-spacing: normal !important;
    transition: all 0.3s ease;
}

.spacing-besar *:not(i):not(svg) {
    letter-spacing: 2px !important;
    transition: all 0.3s ease;
}

.border-dark-hover:hover{
    border: 1px solid #aaaaaa!important;
}

.sec-header{
    background-color: #47003c;
}

.dropdown-menu{
    border-top: 5px solid #333333;
    border-bottom: 5px solid #333333;
    overflow-x: auto;
    max-width: 90vw;
}

.dropdown .dropdown-menu {
    animation-name: dropdownAnimation;
    animation-duration: .5s;
    -webkit-transition: all .1s linear;
    -o-transition: all .1s linear;
    transition: all .1s linear;
    opacity: 1;
}

.navbar .dropdown-menu-end {
    right: 0;
    left: auto;
}

.judul-widget{
    height: auto;
    border-bottom: 3px solid #bc3568;
    font-family: "DM Sans", sans-serif!important;
    font-weight: bold;
    color: #aa4d84;
}

@keyframes dropdownAnimation {
    from {
        margin-top: 25px;
        opacity: 0;
        -webkit-transition: all .1s linear;
        -o-transition: all .1s linear;
        transition: all .1s linear;
    }
    to {
        -webkit-transition: all .2s linear;
        -o-transition: all .2s linear;
        transition: all .2s linear;
        opacity: 1;
        margin-top: 0px;
    }
}

main{
	margin-top: 60px;
}

.navbar-nav > .nav-item > .active{
	font-weight: bold!important;
	font-size: 10pt;
    color: white!important;
}

.navbar-nav > .nav-item {
    color: white!important;
    font-family: "DM Sans", sans-serif!important;
	font-size: 10pt;
}

.navbar-nav > .nav-item > .nav-link:hover{
	color: white!important;
}

.navbar-brand > div{
    font-family: 'Amiri Quran', serif!important;
    background-color: white;
}

/*Tab Custom*/
.tab-custom{
    display: inline-flex;
    list-style: none;
    padding: 0px;
    margin: 0px;
    width: 100%;
    height: auto;
    height: auto;
    overflow-x: auto; 
}

.tab-custom > li{
    display: inline-grid;
    height: auto;
}

.tab-custom > li > a{
    color: #aaaaaa;
    text-decoration: none;
    white-space: nowrap;
    height: auto;
    display: inline;
    padding: 5px 30px;
}

.tab-custom > li > a:hover{
    background-color: #eeeeee;
    color: blue;
    transition: all .5s;
}

.tab-custom > li > .active{
    padding: 5px 30px;
    background-color: white;
    border-bottom: 2px solid darkOrange;
    white-space: nowrap;
    color: black;
    font-weight: bold;
    height: auto;
    display: inline;
}

.btn-medsos{
    border: 1px solid #ffffff;
    border-radius: 5px;
    background-color: rgba(255,255,255,0.25);
    color: white!important;
    text-decoration: none;
    opacity: .75;
}

.btn-medsos:hover{
    opacity: 1;
    background-color: rgba(64,64,255,0.5);
    transition: all .5s;
}

.sliderCurva{
    background-color: white;
    position: relative;
    height: 100px;
    width: 120%;
    margin-left: -10%;
    margin-right: 10%;
    z-index: 10;
    margin-top: -40px;
    -webkit-border-radius: 200vh 200vh 0 0/20vh 20vh 0 0;
}

.list-berita:hover{
    color: #853266;
    background-color: #efefef;
    transition: all 0.5s;
}

.list-img-berita{
    min-width: 175px!important;
    height: 100px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.widget-arrow:hover, .widget-disabilitas:hover{
    transform: scale(1.1);
    transition: all .25s;
}

.widget-arrow {
    margin-bottom: 75px !important;
    width: 48px;
    height: 48px;
    z-index: var(--bs-zindex-fixed, 1030);
    cursor: pointer;
}

.widget-disabilitas {
    width: 48px!important;
    height: 48px!important;
    z-index: var(--bs-zindex-fixed, 1030);
    cursor: pointer;
}

.menu-disabilitas {
    min-width: 180px;
    margin-left: 10px; /* jarak dari tombol */
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    bottom: 0;
}

.menu-disabilitas.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.lingkaran{
    border: 2px solid white;
    height: 40px;
    width: 40px;
}

.list-agenda{
    text-decoration: none;
    border: 1px solid #dddddd;
    padding: 5px;
    border-radius: 8px;
}

.list-agenda:hover{
    background-color: rgba(128, 0, 128, 0.1);
    transition: all 0.5s;
}

.breadcrumb > .breadcrumb-item + li::before {
    color: white !important;
}

@media (max-width: 575.98px) {
    .logo-footer{
        transform: scale(0.8)!important;
        align-self: flex-start;
    }
    
    .list-img-berita{
        height: 200px!important;
    }
}

@media (min-width: 576px) {
    .logo-footer{
        transform: scale(0.8)!important;
        align-self: flex-start;
    }
}

@media (max-width: 767.98px) {
    .logo-footer{
        transform: scale(0.8)!important;
        align-self: flex-start;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .logo-footer{
        transform: scale(0.8)!important;
        align-self: flex-start;
    }
}

.judul-berita > label{
    border-bottom: 2px solid #aaaaaa;
    color: #aaaaaa;
}

.judul-berita > .active{
    background-color: #aa4d84;
    border-bottom: 2px solid #aa4d84;
    color: #efeffe;
    font-weight: bold;
}

/*Animasi pencarian Home */
@keyframes fadeZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-zoom-in {
  animation: fadeZoomIn 1s ease-out forwards;
}

.modal .carousel-item {
    height: 100vh;
}

.modal .carousel-item img {
    max-height: 100vh;
    max-width: 100vw;
    object-fit: contain;
}

/*animasi card widget*/
.card-animate {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-in-out;
  overflow: hidden; /* biar overlay tidak keluar */
}

.card-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* overlay gelap saat hover */
.card-animate::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0); /* default transparan */
  transition: background 0.3s ease-in-out;
  z-index: 1;
}

.card-animate:hover::after {
  background: rgba(0,0,0,0.4); /* efek lebih gelap saat hover */
}

/* pastikan konten teks di atas overlay */
.card-animate > div {
  position: relative;
  z-index: 2;
}

.card-image-animate {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  height: 250px;
  text-decoration: none;
  color: inherit;
}

.card-image-animate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease; /* animasi zoom */
  z-index: 0;
}

.card-image-animate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.card-image-animate:hover::before {
  transform: scale(1.1); /* zoom in */
}

.card-image-animate span {
  position: relative;
  z-index: 2; /* teks di atas overlay */
}

/*garis tombol readmore */
.divider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.divider-btn::before,
.divider-btn::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #ccc;
}

.img-tautan{
    height: 75px!important;
}

.offcanvas-footer {
    background-color: #f8f9fa;
    position: sticky;
    bottom: 0;
    font-size: 8pt!important;
}