button {
    border: none;
    color: #fff;
    cursor: pointer;
}

.button_container {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.button_primary {
    background-color: #ffc107;
    color: #fff;
    font-size: 16px;
    padding: 10px 20px;
    /* width: 150px; */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease,
        transform 0.3s ease;
}

.button_primary:hover {
    background-color: #e0a800;
    color: #0088cc;
    transform: scale(1.05);
}

.button_primary:active {
    background-color: #d39e00;
    transform: scale(0.95) translateY(2px);
}

.button_primary:focus {
    background-color: #d39e00;
}

.button_secondary {
    background-color: #217efd;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 20px;
    transition: background-color 0.3s ease,
        transform 0.3s ease;
    /* width: 130px; */
}

.button_secondary:hover {
    background-color: #02275d;
    transform: scale(1.05);
}

.button_secondary:active {
    background-color: #02275d;
    transform: scale(0.95) translateY(2px);
}

.button_secondary:focus {
    background-color: #02275d;
}

/* Layout dan Container */
.layout_layanan_pajak {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
        0 3px 10px rgba(0, 0, 0, 0.19);
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    width: 100%;
    /* Ensure the container takes the full width */
}

.container_layanan_pajak {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    gap: 20px;
}

.content_layanan_pajak {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    /* Makes the container take up full width */
}

.image_layanan_pajak img {
    width: 150px;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
    /* Prevents the image from shrinking */
}

.text_layanan_pajak {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    overflow-wrap: break-word;
    /* Breaks long words to avoid overflow */
}

.info-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.content_layanan_pajak p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: justify;
    overflow-wrap: break-word;
    /* Ensures no overflow for long text */
}

.permohonan-section {
    display: none;
    /* Hidden by default */
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.permohonan-section>div {
    display: flex;
    flex-direction: row;
}

.permohonan-section ul {
    list-style-type: none;
    padding: 0;
    flex: 1;
}

.lainnya-section {
    display: none;
    /* Hidden by default */
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.lainnya-section>div {
    display: flex;
    flex-direction: row;
}

.lainnya-section ul {
    list-style-type: none;
    padding: 0;
    flex: 1;
}

.content-permohonan {
    background-color: #ffff;
    border: 1px solid #ddd;
    width: 100%;
    border-radius: 4px;
    padding: 2px 5px;
}

.isi-permohonan {
    display: none;
    padding: 20px;
}

.list-permohonan a.active-link {
    background-color: #ffc107 !important;
    color: #000;
    /* Optional: changes text color when active */
}

.list-lainnya {
    display: flex;
    flex-direction: column;
    padding-right: 5px;
    margin-right: 10px;
    align-items: space-between;
}

.content-lainnya {
    border: 1px solid #ddd;
    width: 100%;
    border-radius: 4px;
    padding: 2px 5px;
}

.isi-lainnya {
    display: none;
}

.list-lainnya a.active-link {
    background-color: #ffc107 !important;
    color: #000;
    /* Optional: changes text color when active */
}

.list-lainnya a {
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 200px;
    color: #02275d;
    /* font-weight: bold; */
    text-decoration: none;
}

.list-lainnya a:hover {
    background-color: #ffc107;
}

.list-lainnya a:focus {
    background-color: #ffc107;
}

.image_container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    /* The container spans the full width */
    margin: 0 auto;
}

.responsive-image {
    width: 100%;
    /* Image takes full width of the container */
    height: auto;
    /* Maintains aspect ratio */
    max-width: 100%;
    /* Prevents image from exceeding container width */
}

/* Media Query for Large Screens (Web Mode) */
@media (min-width: 768px) {
    .responsive-image {
        max-width: 100%;
        /* Full width on larger screens */
    }
}

/* Media Query for Small Screens (Phone Mode) */
@media (max-width: 400px) {
    .responsive-image {
        max-width: 90%;
        /* Scales down slightly on smaller screens */
        margin: 0 auto;
        /* Centers the image */
    }
}

.container_tahun_layanan {
    display: flex;
    justify-content: space-around;
    /* Ensures equal spacing between items */
    align-items: center;
    /* Vertically aligns content */
    gap: 20px;
    /* Adds space between the items */
    flex-wrap: wrap;
    /* Ensures responsiveness for smaller screens */
    padding: 20px;
    /* Adds space around the container */
}

.box_tahun_layanan {
    text-align: center;
    /* Centers text inside each box */
    flex: 1;
    /* Allows boxes to grow or shrink equally */
    max-width: 400px;
    /* Limits the maximum width of each box */
    margin: 0 10px;
    /* Adds horizontal margin for spacing */
}

/* Highlight Style for Years */
.highlight {
    color: red;
    /* Red text for the years */
    font-weight: bold;
}

.text_pelaporan_pajak {
    flex: 2;
    /* Gives the text more space than the image */
}

.desc_layanan {
    display: flex;
    flex-direction: row;
    /* Ensures horizontal alignment */
    gap: 10px;
    /* Adds space between the text and the button */
    align-items: center;
    /* Aligns items vertically to the center */
    padding: 10px 20px;
    text-align: justify;
}

.content-pelaporan {
    border: 1px solid #ddd;
    width: 100%;
    border-radius: 4px;
    padding: 2px 5px;
}

.isi-pelaporan {
    display: none;
}

/* Gaya untuk Modal */
.modal-popup {
    display: none;
    /* Hidden secara default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Warna latar belakang transparan */
}

/* Konten Modal */
.modal-popup-content {
    position: relative;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Header Modal */
.modal-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.modal-popup-header h2 {
    margin: 0;
    font-size: 20px;
}

/* Tombol Close */
.close-popup-button {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Body Modal */
.modal-popup-body {
    margin-top: 10px;
    font-size: 14px;
    margin-bottom: 50px;
}

/* Footer Modal */
.modal-popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Tombol Footer */
.btn-popup {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.btn-popup-warning {
    background-color: #ffb800;
    color: #000;
}

.btn-popup-primary {
    background-color: #25367e;
    color: #fff;
}

.btn-popup-warning:hover {
    background-color: #e6a800;
}

.btn-popup-primary:hover {
    background-color: #1e2e68;
    color: #fff;
}

.separator-layanan {
    width: 100%;
    /* Lebar penuh agar elemen memenuhi ruang horisontal */
    height: 5px;
    /* Menetapkan tinggi separator */
    background-color: #ddd;
    /* Warna latar belakang separator */
    margin: 0px;
    /* Memberikan jarak vertikal */
}

/* Main Container */
.main-container-layanan {
    display: flex;
    margin-bottom: 20px;

}

/* Sidebar */
.sidebar-layanan {
    padding-top: 10px;
    margin-top: 5px;
    width: 20%;
    display: flex;
    /* Make the sidebar a flex container */
    flex-direction: column;
}

.sidebar-layanan a {
    padding: 8px 12px;
    background-color: #212c5f;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 150px;
    color: #fafafa;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 5px;
}

.sidebar-layanan a:hover {
    background-color: #ffc107;
}

.sidebar-layanan a:focus {
    background-color: #ffc107;
}

.sidebar-layanan a:active {
    background-color: #ffc107;
    transform: scale(0.95) translateY(2px);
}

.sidebar-layanan a[active="true"] {
    background-color: #ffc107;
    font-weight: bold;
}

/* Content Section */
.main-content-layanan {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;

    margin-top: 5px;
    background-color: #ffff;
    border: 1px solid #ddd;
    width: 100%;
    border-radius: 12px;
    padding: 10px;
}

/* Cards Container */
.cards {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #fafafa;
}

.cards[active="true"] {
    display: flex;
}

/* Individual Card */
.card {
    background-color: #fff7cd;
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    min-width: 250px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px,
        rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.card h4 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.card ul {
    /* list-style: none; */
    padding-left: 15px;
}

.card li {
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

@media screen and (max-width: 576px) {

    /* Responsive Layout Adjustments */
    .main-container-layanan {
        flex-direction: column;
    }

    .sidebar-layanan {
        width: 100%;
        margin-bottom: 15px;
    }

    .sidebar-layanan a {
        width: 100%;
        margin-bottom: 10px;
    }

    .container_layanan_pajak {
        padding: 10px;
    }

    .layout_layanan_pajak {
        padding: 15px;
    }

    /* Responsive Typography */
    html {
        font-size: 14px;
    }

    .info-title {
        font-size: 20px;
    }

    .content_layanan_pajak p {
        font-size: 13px;
    }

    /* Flexible Containers */
    .container_tahun_layanan {
        flex-direction: column;
        gap: 15px;
    }

    .box_tahun_layanan {
        width: 100%;
        max-width: none;
    }

    /* Modal Responsiveness */
    .modal-popup-content {
        width: 95%;
        margin: 20% auto;
    }
}

@media screen and (min-width: 577px) and (max-width: 768px) {
    .main-container-layanan {
        flex-direction: column;
    }

    .sidebar-layanan {
        width: 100%;
        margin-bottom: 15px;
    }

    .sidebar-layanan a {
        width: 100%;
        margin-bottom: 10px;
    }

    html {
        font-size: 15px;
    }

    .container_tahun_layanan {
        flex-wrap: wrap;
        justify-content: center;
    }

    .box_tahun_layanan {
        flex-basis: calc(50% - 20px);
    }
}

/* Medium Devices (Tablets and Small Desktops - 769px to 992px) */
@media screen and (min-width: 769px) and (max-width: 992px) {
    .sidebar-layanan {
        width: 30%;
    }

    .container_tahun_layanan {
        gap: 15px;
    }
}

/* Large Devices (Desktops - 993px and up) */
@media screen and (min-width: 993px) {
    .container_layanan_pajak {
        max-width: 1400px;
        /* Slightly increased for better readability on large screens */
    }
}

@media (max-width: 768px) {

    .button_primary {
        min-height: 44px;
        margin-top: 20px;
        padding: 12px 15px;
    }

    .button_secondary,
    .sidebar-layanan a {
        min-height: 44px;
        /* Minimum touch target size for accessibility */
        padding: 12px 15px;
    }

    .desc_layanan {
        display: inline;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        padding: 10px 20px;
        text-align: justify;
    }
}


/*BAYAR*/
/* Bagian Pembayaran */

.bayar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.bayar-container-tahun {
    display: flex;
    justify-content: space-between;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.bayar-container-new {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Bagian teks */
.bayar-text-content {
    margin-left: 20px;
    margin-top: 20px;
}

.bayar-text-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

/* Bagian "Tata Cara Pendaftaran" */

/* Tombol */
.bayar-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.bayar-btn-outline {
    background-color: #007bff;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.bayar-btn-yellow {
    background-color: #ffc107;
    color: #fff;
    padding: 12px 40px;
    font-size: 16px;
    cursor: pointer;
    border: none;
}

/* Memusatkan tombol "Pendaftaran" */
.bayar-btn-center {
    text-align: center;
    margin-top: 60px;
}

/* Bagian gambar */
.bayar-image-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-left: 20px;
}

.bayar-div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.separator-bayar {
    width: 5px;

    background: repeating-linear-gradient(0deg,
            /* Arah vertikal */
            #ddd,
            /* Warna dash */
            #ddd 10px,
            /* Panjang dash */
            transparent 10px,
            /* Awal jeda */
            transparent 20px
            /* Akhir jeda */
        );
    margin: 0 10px;
}

.link-div {
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 10px;
    margin-bottom: 15px;
}

@media screen and (max-width: 768px) {
    .bayar-container-tahun {
        display: inline;
        background-color: #f9f9f9;
        border-radius: 8px;
    }

    .separator-bayar {
        display: none;
    }
}

.image_container_lapor {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    /* The container spans the full width */
    margin: 0 auto;
}

.ikn-card-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ikn-card {
    background-color: #1a2a4f;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: calc(50% - 10px);
    color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.ikn-card ul {
    list-style-type: disc;
    padding-left: 20px;
}

.ikn-card li {
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.ikn-card li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.ikn-card li a:hover {
    color: #ffc91b;
}

/* Responsive Styling */
@media screen and (max-width: 768px) {
    .ikn-card {
        max-width: 100%;
    }
}