body.dark .card-berita,
body.dark .card-berita-content {
    background: #CCC;
}

.pg-header-content {
    background: linear-gradient(rgba(6, 10, 236, 0.199), rgba(0, 0, 0, 0.1)), url('/storage/images/yayasan.webp');
    background-size: cover;
    display: block;
    background-attachment: fixed;
    min-height: 100vh;
    flex: 1;
    background-position: center;
    background-repeat: no-repeat;
}
@media (max-width: 768px) {
    .pg-header-content {
        background-attachment: scroll;
    }
}


/* ALASAN */
#alasan .Prof {
    width: 100%;
}

.circle-number {
    width: 80px;
    height: 80px;
    background-color: #3C763D;
    color: white;
    font-size: 45px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid #FF7F00;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-right: 15px;
    flex-shrink: 0;
}

/* Elemen default saat belum terlihat */
.col-lg-8 .list-unstyled li {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Elemen saat terlihat */
.col-lg-8 .list-unstyled li.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mode Gelap */
body.dark #alasan h1,
body.dark #alasan ul,
body.dark #alasan li {
    color: #CCC !important;
}

body.dark #alasan li strong {
    color: #CCC !important;
}

/* Teams section styling */
section .title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
}

.teams {
    color: #111;
}

body.dark .teams .max-width .text-center h2 {
    color: #CCC;
}

.teams .title::before {
    background: #111;
}

.teams .carousel .card {
    background: #FFF;
    border-radius: 6px;
    padding: 55px 35px;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.teams .carousel .card:hover {
    background: rgba(9, 131, 64, 0.562);
}

.teams .carousel .card .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

body.dark .teams .carousel .card {
    background: #CCC;
}

body.dark .teams .carousel .card:hover {
    background: rgba(9, 131, 64, 0.562);
}

.teams .carousel .card:hover .box {
    transform: scale(1.05);
}

.teams .carousel .card:hover .text,
.teams .carousel .card:hover p {
    color: #FFF;
}

.teams .carousel .card .text {
    color: #111;
    font-size: 20px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}

.teams .carousel .card p {
    color: #111;
}

.teams .carousel .card img {
    height: 200px;
    width: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #0983408F;
    transition: all 0.3s ease;
}

.teams .carousel .card:hover img {
    border-color: #fff;
}

/* Owl Carousel Dots */
.owl-dots {
    display: block !important;
    text-align: center;
    margin-top: 50px;
}

.owl-dot {
    height: 13px;
    width: 13px;
    margin: 0 5px;
    outline: none !important;
    border-radius: 50%;
    border: 2px solid crimson !important;
    transition: all 0.3s ease;
}

.owl-dot.active {
    width: 35px;
    border-radius: 14px;
}

.owl-dot.active,
.owl-dot:hover {
    background: crimson !important;
}

/* Responsif */
@media (max-width: 850px) {
    .teams .carousel .card img {
        height: 150px;
        width: 150px;
    }

    .teams .carousel .card {
        padding: 45px 5px;
    }

    .teams .max-width {
        max-width: 1300px;
        padding: 0 50px;
    }

    .teams .carousel .owl-stage .owl-item .active {
        width: 300px;
        margin-right: 20px;
    }
}

/* Berita Edukasi Yayasan */
.section-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 10%;
    background: rgba(9, 131, 64, 0.562);
    gap: 30px;
}

.section-container:nth-child(odd) {
    flex-direction: row;
}

.section-container:nth-child(even) {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.text-content h2 {
    font-size: 2rem;
    color: #FFF;
    margin-bottom: 15px;
}

.text-content p {
    font-size: 1rem;
    color: #FFF;
    line-height: 1.6;
}

.text-content .btn {
    display: inline-flex;
    align-items: center;
    background: #FF7F00;
    color: #FFF;
    padding: 10px 20px;
    margin-top: 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3 ease;
}

.text-content .btn:hover {
    background-color: #002855;
}

.text-content .btn i {
    margin-left: 10px;
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-content img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 800px) {
    .section-container {
        flex-direction: column !important;
        text-align: center;
        padding: 30px 5%;
    }

    .image-content {
        order: -1;
    }
}

/* Banner Berita */
#banner {
    position: relative;
    width: 100%;
    height: 100px;
    background-color: #002855;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInBanner 2s ease-in-out;
}

body.dark #banner {
    background-color: #021325;
}

#banner .red-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: #8a0000;
    z-index: 2;
}

.banner-content .background-text {
    position: absolute;
    top: 10px;
    left: 0;
    padding-left: 60%;
    width: 100%;
    text-align: center;
    font-size: 60px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    z-index: 1;
    margin: 0;
}

.banner-content .text-content {
    position: relative;
    z-index: 3;
    color: white;
    padding-right: 30px;
}

body.dark #berita .banner-content .text-content {
    color: #CCC !important;
}

.banner-content .text-content h1 {
    font-size: 32px;
    font-weight: 600;
    text-transform: capitalize;
    margin: 0;
    padding-top: 25px;
    letter-spacing: 2px;
}

.banner-content .text-content p {
    font-size: 16px;
    font-weight: 300;
    color: #FFF;
}

#banner::before {
    content: '*';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(white 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: 0;
    animation: moveStars 15s infinite linear;
}

@keyframes moveStars {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* Card Berita */
.card-berita {
    width: 350px;
    height: 380px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-berita:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-berita img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-berita-content {
    padding: 15px;
}

.card-berita-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.card-berita-text {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
    display: -webkit-box;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-berita-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #777;
}

.card-berita-footer a {
    text-decoration: none;
    color: crimson;
    font-weight: bold;
    transition: color 0.3s;
}

.card-berita-footer a:hover {
    color: orangered;
}

/* Bawah Berita */
.column {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

body.dark .column h2,
body.dark .column h4 {
    color: #CCC;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}


/*gambar prestasi*/
.image-date-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 10px; /* jarak atas agar tidak mepet */
}

.image-wrapper {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px; /* sudut membulat */
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* menjaga proporsional */
    display: block;
    transition: transform 0.3s ease;
}

.image-wrapper img:hover {
    transform: scale(1.05); /* efek hover opsional */
}


/*tanggal pengumuman*/

.date-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

body.dark .date-content-wrapper .date {
    color: #CCC;
}

.date-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
}

.month-day {
    text-align: center;
    width: 60px;
    height: 80px;
    padding: 5px;
    margin-right: 10px;
    background-color: #f0f0f0;
}

.month {
    font-size: 12px;
    margin-bottom: 2px;
    background-color: orangered;
    color: #FFF;
    width: 50px;
    display: block;
}

.day {
    font-size: 35px;
    font-weight: 800;
    color: #333;
    width: 50px;
}

.event-content,
.announcement-item,
.news-item {
    text-align: left;
    margin-bottom: 10px;
    padding-bottom: 2px;
}

.news-content a,
.event-content a,
.announcement-content a {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

body.dark .news-content a,
body.dark .event-content a,
body.dark .announcement-content a {
    color: #CCC;
}

body.dark .event-content p {
    color: #CCC;
}

.news-content a:hover,
.event-content a:hover,
.announcement-content a:hover {
    color: #ffd700;
    text-decoration: none;
}

@media (min-width: 990px) {
    .container {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }

    .image-date-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .image-date-wrapper img {
        width: 80px;
    }

    .date-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Video */
.video-card {
    background: #0c1326;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.video-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15;
    width: 94%;
    height: 6px;
    background: #0047ab;
}

.video-title {
    position: absolute;
    top: -31px;
    left: 15;
    background: #0047ab;
    color: white;
    padding: 8px 25px 8px 8px;
    font-size: 14px;
    border-bottom-right-radius: 15px;
    clip-path: polygon(0% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.video-card iframe {
    width: 100%;
    height: 200px;
}

/* Button Scroll-Up */
.scroll-up-btn {
    position: fixed;
    height: 45px;
    width: 42px;
    background: #006400;
    right: 30px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 9999;
    font-size: 30px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.scroll-up-btn.show {
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
}

.scroll-up-btn:hover {
    filter: brightness(90%);
}
