* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-family: "Times new roman", serif;
}

a {
    all: unset;
    cursor: pointer;
}

html,
body {
    background-color: #f7f7f7;
}

/* Header */
header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 10px 0;
    color: #727377;
    margin: 0 0 20px 0;
    box-shadow: 0px 4px 5px -3px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow: 0px 4px 5px -3px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 4px 5px -3px rgba(0, 0, 0, 0.75);
    /* border: 1px solid red; */
}

header img {
    height: 50px;
}

header .menu {
    /* border: 1px solid red; */
    text-align: center;
    margin-right: 20px;
    position: absolute;
    left: 0;
    margin: 0 0 0 10px;
    display: flex;
    align-items: center;
}

header .menu i {
    font-size: 24px;
}

header .menu p {
    font-size: 7px;
}

/* header {
    height: 100px;
    background-color: #f7f7f7;
    box-shadow: 0kbpx 4px 5px 0px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.75);
    margin: 0 0 20px 0;
} */

iframe {
    width: 397px;
    margin: 10px 0;
}

.center {
    height: auto;
    width: 100%;
    display: inline-flex;
    justify-content: center;
}

h1 {
    padding: 0 22px;
    margin: 20px 0;
    font-family: var(--font-family);
}

h2 {
    padding: 0 22px;
    margin: 5px 0;
    font-family: var(--font-family);
}

h3 {
    padding: 0 22px;
    margin: 5px 0;
    font-family: var(--font-family);
}

h4 {
    padding: 0 22px;
    margin: 5px 0;
    font-family: var(--font-family);
}

h5 {
    padding: 0 22px;
    margin: 5px 0;
    font-family: var(--font-family);
}

h6 {
    padding: 0 22px;
    margin: 5px 0;
    font-family: var(--font-family);
}

p {
    padding: 0 22px;
    font-size: 15px;
    margin: 15px 0;
    line-height: 1.5;
}

figure {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
    flex-wrap: wrap;
}

figure figcaption {
    width: 100%;
    font-size: 10px;
    margin: 10px 0;
}

.content {
    margin: 10px 0;
    min-height: 50vh;
}

.content p {
    margin: 0 !important;
    font-size: 17px;
    font-family: var(--font-family);
}

.content p .ql-size-small {
    display: inline-block;
    font-size: 0.75em !important;
    line-height: 1.5;
}

.content p img {
    width: 100%;
    display: block;
    margin: 0 auto;
}

.detail-of-news {
    background: #fff;
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.detail-of-news table {
    width: 100%;
    border-collapse: collapse;
    color: #333;
    font-size: 14px;
}

.detail-of-news td {
    padding: 10px 6px;
    vertical-align: top;
}

.detail-of-news tr td:first-child {
    font-weight: bold;
    width: 120px;
    color: #222;
}

.detail-of-news tr td:nth-child(2) {
    width: 10px;
    text-align: center;
    color: #888;
}

.detail-of-news tr {
    border-bottom: 1px solid #eee;
}

.detail-of-news tr:last-child {
    border-bottom: none;
}

.tags-container {
    display: block;
    width: 90%;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
}

.tags-container .tag {
    display: inline-block;
    background-color: #e0e0e0;
    color: black;
    padding: 5px 10px;
    margin: 5px 5px 0 0;
    font-size: 12px;
}

.ads-1 {
    width: 397px;
    height: 100px;
    background-color: green;
    color: white;
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.logo {
    display: block;
    padding: 20px 22px 0;
}

.news-slide {
    margin: 25px 0;
    width: 100%;
}

.news-slide .news-slide-list {
    padding: 0 22px;
}

.news-slide .news-slide-list .list-group {
    margin: 0 0 15px;
}

.news-slide .news-slide-list .list-group li {
    margin: 0 0 0 15px;
    font-size: 16px;
    font-weight: bold;
}

.news-slide .news-slide-list .list-group .red-text {
    color: #ec3237;
    font-size: 12px;
}

.news-slide .news-slide-list .list-group .date-news-slide-list {
    color: #727377;
    font-size: 10px;
    margin: 0 0 0 15px;
}

.now-news {
    width: 100%;
    margin: 20px 0 0;
    padding: 0 22px;
}

.now-news .now-news-list {
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    min-width: 340px;
    max-width: 400px;
}

.now-news .now-news-list .now-news-content {
    width: 160px;
    height: auto;
    margin: 0 0 20px 0;
}

.now-news .now-news-list .now-news-content figure {
    width: 100%;
    height: 110px;
    overflow: hidden;
}

.now-news .now-news-list .now-news-content figure img {
    height: 100%;
}

.now-news .now-news-list .now-news-content .theme-date {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    height: 40px;
    padding: 10px 0 0;
}

.now-news .now-news-list .now-news-content .theme-date .red-text {
    color: #ec3237;
    font-size: 12px;
}

.now-news .now-news-list .now-news-content .theme-date .date-now-news {
    color: #727377;
    font-size: 10px;
}

.instagram {
    width: 100%;
    height: auto;
    padding: 10px 0;
    color: white;
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0 0 20px 0;
}

main .igonesia-academy {
    padding: 20px 0 30px;
    width: 397px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #0095ff;
}

main .igonesia-academy img {
    width: 70%;
    margin: 20px 0;
}

footer .footer-menu {
    padding: 20px 10px;
    background-color: #727377;
    color: white;
}

footer .footer-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
}

footer .footer-menu a {
    text-decoration: none;
    color: white;
}

footer .footer-menu a li {
    list-style: none;
    margin: 10px;
}

/* 1. Wrapper utama, posisinya relatif untuk menampung tombol */
.slider-container {
    position: relative;
    width: 100vw;
    max-width: 470px;
    margin: 10px auto; /* Margin atas/bawah 10px, dan tengahkan */
}

/* 2. Viewport/jendela. Ini yang akan menyembunyikan slide lainnya */
.slide-viewport {
    width: 100%;
    overflow-x: hidden; /* Sembunyikan bagian slide yang "meluber" */
}

/* 3. Kontainer "filmstrip" yang menampung semua slide */
.slide {
    display: flex; /* Menyusun slide-item berdampingan */
    /* Kita tidak set lebar di sini. Lebarnya akan otomatis 
      dari total lebar semua slide-item.
    */

    /* Ini adalah kunci pergeseran yang mulus! */
    transition: transform 0.5s ease-in-out;
}

/* 4. Setiap item slide (tag <a>) */
.slide-item {
    width: 100%; /* Lebar harus pas 100% dari viewport */
    flex-shrink: 0; /* Mencegah item "menciut" */
    box-sizing: border-box; /* Konsistensi layout */
    padding: 0 22px; /* Ganti margin-left/right lama Anda dengan padding */
}

/* 5. Gambar di dalam slide-item */
.slide-item img {
    width: 100%; /* Buat gambar memenuhi .slide-item */
    height: auto; /* Jaga rasio aspek */
    display: block; /* Menghilangkan spasi ekstra di bawah gambar */
}

/* 6. Styling untuk tombol */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Menengahkan tombol secara vertikal */
    z-index: 10;
    opacity: 0.5;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 50%;
    user-select: none; /* Mencegah teks tombol terseleksi */
}

.slide-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Posisikan tombol prev/next */
#prevBtn {
    left: 5px;
}

#nextBtn {
    right: 5px;
}

/* Style saat tombol tidak aktif (misal di slide pertama/terakhir) */
.slide-btn:disabled {
    background-color: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

/* Share Button */

.share-button {
    display: flex;
    width: 200px;
    height: 40px;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin: 10px 0 0;
}

.share-button .icon {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.share-button .icon svg {
    width: 20px;
}

.share-button .icon.facebook {
    background-color: blue;
}

.share-button .icon.instagram {
    background-color: rgb(255, 0, 255);
}

.share-button .icon.whatsapp {
    background-color: rgb(0, 192, 0);
}
.share-button .icon.tiktok {
    background-color: black;
}