/*--------------------------------------------------------------
# bmkg section
--------------------------------------------------------------*/

.bmkg {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f4f7fa;
    padding: 20px;
}

.bmkg h4 {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin-bottom: 50px;
}

.bmkg .loading {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    text-align: center;
}

.bmkg .error {
    color: red;
    text-align: center;
    font-size: 18px;
}

/* Styling untuk wrapper border dan section-title */
.bmkg .urls-wrapper {
    border-radius: 15px;
    padding: 15px;
    margin: 10px;
    background-color: white;
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.8); /* Efek glowing gold */
    transition: box-shadow 0.3s ease-in-out;
}

.bmkg .urls-wrapper:hover {
    box-shadow: 0 0 20px rgba(184, 134, 11, 1); /* Glow lebih kuat saat hover */
}




/* Styling untuk container dan section-title */
.bmkg .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bmkg .section-title h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.bmkg .section-title p {
    font-size: 1.2rem;
    color: #777;
}

.bmkg .tables-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bmkg table {
    caption-side: top;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    table-layout: fixed;
}

.bmkg th, td {
    padding: 0px;
    text-align: left;
    word-wrap: break-word;
}

.bmkg th {
    background-color: #f7f7f7;
    font-size: 1.1rem;
}

.bmkg caption {
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
    white-space: pre-line;
}

.bmkg img {
    max-width: 45px;
    height: auto;
}

/* Kontainer untuk grup cuaca */
.bmkg .urls-container {
    display: flex;
    flex-wrap: nowrap;
    max-height: 45vh; /* Batasi tinggi */
    overflow-x: auto; /* Scroll horizontal */
    gap: 10px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.bmkg .urls-container::-webkit-scrollbar {
    display: none;
}

/* Setiap section bisa di-scroll sendiri jika kontennya lebih tinggi */
.bmkg .url-section {
    min-width: 80%;
    max-width: 80%;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 10px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: 40vh; /* Batasi tinggi */
    overflow-y: auto; /* Scroll jika kontennya panjang */
}

/* Warna selang-seling */
.bmkg .url-section:nth-child(odd) {
    background-color: #d9f1ff;
}

.bmkg .url-section:nth-child(even) {
    background-color: #ffffff;
}

/* Tombol Refresh */
.bmkg #refresh-button {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 12px 20px;
    font-size: 18px;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
    transition: background-color 0.3s ease;
}

.bmkg #refresh-button:hover {
    background-color: #0056b3;
}

/* Responsif untuk perangkat mobile */
@media (max-width: 768px) {
    .bmkg .urls-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
    }

    .bmkg .urls-container::-webkit-scrollbar {
        display: none;
    }

    .bmkg .url-section {
        min-width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}

/* Tampilan desktop */
@media (min-width: 769px) {
    .bmkg .urls-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Menyesuaikan jumlah kolom */
        max-height: 45vh;
        overflow-y: auto;
        gap: 15px;
        padding-right: 10px;
    }

    .bmkg .url-section {
        min-width: auto; /* Tidak terlalu melebar */
        max-width: 280px; /* Batasi ukuran maksimal */
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}

