@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap");

/* === Base Styles === */
.adzan-popup,
.iqomah-popup,
.friday-info-popup,
.friday-image-display,
.adzan-image-display {
    position: fixed;        /* bukan absolute */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-color: #000000;
    display: flex;

    aspect-ratio: 16 / 9;
    width: min(100vw, calc(100vh * 16 / 9));
    height: min(100vh, calc(100vw * 9 / 16));

    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-sizing: border-box;
}

/* Override global: sembunyikan progress bar jumbotron sepenuhnya */
.jumbotron-progress-container {
    display: none !important;
}

.jumbotron-progress-bar {
    animation: none !important;
    width: 0 !important;
}

.jumbotron-image {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;

    aspect-ratio: 16 / 9;
    width: min(100vw, calc(100vh * 16 / 9));
    height: min(100vh, calc(100vw * 9 / 16));

    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-sizing: border-box;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.adzan-popup,
.iqomah-popup,
.friday-info-popup {
    border: 12px solid #d4af37;
    padding: 0;
}

.friday-image-display {
    z-index: 9998;
}

.adzan-image-display img,
.friday-image,
.iqomah-image,
.currentFridayImage {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
}

.iqomah-image,
.friday-image {
    flex: 1;
    background-color: black;
}

#currentIqomahImage,
.currentFridayImage {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.adzan-popup-content,
.iqomah-popup-content,
.friday-info-content {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.iqomah-popup-content,
.friday-info-content {
    flex: 1;
}

.iqomah-popup,
.friday-info-popup {
    flex-direction: row;
    padding: 0;
}

.adzan {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
}

.adzan-title,
.iqomah-title {
    color: #d4af37;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 0;
}

.iqomah-title,
.adzan-title {
    font-size: 10rem;
    font-family: "Arial", sans-serif;
}

.friday-date,
.friday-officials {
    font-size: 1.5rem;
}

.friday-date {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
}

.day-name-popup {
    font-size: 3.5rem;
    color: #d4af37;
}

.progress-container,
.iqomah-progress-container {
    width: 100%;
    max-width: 600px;
    height: 55px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    margin: 0 auto 0.5rem;
    overflow: hidden;
}

.progress-bar,
.iqomah-progress-bar {
    height: 100%;
    background-color: #d4af37;
    width: 0;
    animation: none;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.countdown,
.iqomah-countdown {
    font-family: 'JetBrains Mono', 'Roboto Mono', 'Roboto Mono', 'Courier New', monospace;
    font-weight: 700;
    font-size: 13rem;
    color: #ffffff;
    text-shadow: 0 4px 8px rgb(76, 76, 76);
    letter-spacing: 0.05em;
    padding: 0;
    border-radius: 8px;
    display: inline-block;
}

.responsive-table {
    width: 100%;
    margin: 0.5rem 1rem;
    border-collapse: collapse;
    color: white;
}

.responsive-table td {
    padding: 5px 7px;
    border: none;
    vertical-align: top;
    text-align: left;
}

.responsive-table .official-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.responsive-table .official-name-value {
    font-size: 2.5rem;
}

.logo-popup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-popup img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.jumbotron-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    height: 65px;
    width: auto;
    z-index: 10000;
}

.jumbotron-countdown,
.jumbotron-digital-clock {
    font-family: 'JetBrains Mono', 'Roboto Mono', 'Courier New', monospace;
    position: absolute;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 9.6px;
    padding: 14.4px 21.6px;
    color: #ffffff;
    font-size: 1.98rem;
    font-weight: 800;
    z-index: 10000;
}

.jumbotron-countdown {
    text-transform: uppercase;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 14.4px;
}

.jumbotron-digital-clock {
    right: 20px;
}

.jumbotron-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    z-index: 10000;
}

.jumbotron-progress-bar {
    height: 100%;
    background-color: #ff0000;
    width: 0;
    animation: none;
}

.digital-clock {
    font-family: "JetBrains Mono", "Roboto Mono", "Courier New", monospace;
    color: #ffffff;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.9));
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    margin: 1rem auto;
    display: inline-block;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.clock-time {
    letter-spacing: 3px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    font-size: 2.5rem;
}

.adzan-popup .digital-clock {
    font-size: 4rem;
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
}

.iqomah-popup .digital-clock {
    font-size: 3.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 14px;
}

.friday-info-popup .digital-clock {
    font-size: 2.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
}

/* === Responsive Styles === */

/* Ultra-high resolution: 4K and above (≥3840px x 2160px) */
@media (min-width: 3840px) and (min-height: 2160px) {

    .adzan-popup,
    .iqomah-popup,
    .friday-info-popup,
    .friday-image-display {
        border-width: 16px;
    }

    .adzan {
        font-size: 10rem;
        letter-spacing: 4px;
    }

    .adzan-title,
    .iqomah-title {
        font-size: 24rem;
        margin-bottom: 1rem;
    }

    .progress-container,
    .iqomah-progress-container {
        height: 140px;
        max-width: 1550px;
    }

    .countdown,
    .iqomah-countdown {
        font-size: 32rem;
    }

    .friday-date,
    .friday-officials {
        font-size: 6rem;
    }

    .day-name-popup {
        font-size: 10rem;
    }

    .responsive-table td {
        padding: 1rem 9rem;
        font-size: 4rem;
    }

    .responsive-table .official-name {
        font-size: 4rem;
    }

    .responsive-table .official-name-value {
        font-size: 6.5rem;
    }

    .adzan-image-display {
        padding: 0;
    }

    .adzan-image-display img {
        max-width: 100%;
        object-fit: cover;
    }

    .logo-popup {
        margin-top: 0;
    }

    .logo-popup img {
        height: 100px;
    }

    .jumbotron-image {
        padding: 2.34rem;
    }

    .jumbotron-logo {
        top: 46.8px;
        left: 46.8px;
        height: 140.4px;
    }

    .jumbotron-countdown,
    .jumbotron-digital-clock {
        bottom: 78px;
        font-size: 5.68rem;
        padding: 44.48px 59.3px;
        border-radius: 34.6px;
    }

    .jumbotron-countdown {
        left: 46.8px;
        gap: 29.65px;
    }

    .jumbotron-digital-clock {
        right: 46.8px;
    }

    .jumbotron-progress-container {
        height: 20px;
    }

    .adzan-popup .digital-clock {
        font-size: 10rem;
        padding: 1.2rem 2.4rem;
        border-radius: 24px;
    }

    .iqomah-popup .digital-clock {
        font-size: 9rem;
        padding: 1.1rem 2.2rem;
        border-radius: 22px;
    }

    .friday-info-popup .digital-clock {
        margin-top: 5rem;
        font-size: 6rem;
        padding: 0.9rem 1.8rem;
        border-radius: 20px;
    }

    .clock-time {
        font-size: 10rem;
        letter-spacing: 4px;
    }
}

/* High resolution: QHD+ (2560px–3839px) */
@media (min-width: 2560px) and (max-width: 3839px) and (min-height: 1440px) {

    .adzan-popup,
    .iqomah-popup,
    .friday-info-popup,
    .friday-image-display {
        border-width: 14px;
    }

    .adzan {
        font-size: 6.5rem;
        letter-spacing: 6px;
    }

    .adzan-title {
        font-size: 16rem;
        margin-bottom: 1.5rem;
    }

    .progress-container,
    .iqomah-progress-container {
        height: 100px;
        max-width: 1100px;
    }

    .countdown,
    .iqomah-countdown {
        font-size: 21rem;
    }

    .iqomah-title {
        font-size: 16rem;
        margin-bottom: 1.5rem;
    }

    .friday-date,
    .friday-officials {
        font-size: 4rem;
    }

    .day-name-popup {
        font-size: 5rem;
    }

    .responsive-table td {
        padding: 1rem 5rem;
        font-size: 3rem;
    }

    .responsive-table .official-name {
        font-size: 3rem;
    }

    .responsive-table .official-name-value {
        font-size: 4rem;
    }

    .adzan-image-display {
        padding: 0;
    }

    .adzan-image-display img {
        max-width: 100%;
        object-fit: cover;
    }

    .logo-popup {
        margin-top: 0;
    }

    .logo-popup img {
        height: 80px;
    }

    .jumbotron-image {
        padding: 1.44rem;
    }

    .jumbotron-logo {
        top: 30px;
        left: 30px;
        height: 96px;
    }

    .jumbotron-countdown,
    .jumbotron-digital-clock {
        bottom: 40px;
        font-size: 3.99rem;
        padding: 26.6px 39.9px;
        border-radius: 22.8px;
    }

    .jumbotron-countdown {
        left: 30px;
        gap: 22.8px;
    }

    .jumbotron-digital-clock {
        right: 30px;
    }

    .jumbotron-progress-container {
        height: 15px;
    }

    .adzan-popup .digital-clock {
        font-size: 6rem;
        padding: 0.9rem 1.8rem;
        border-radius: 20px;
    }

    .iqomah-popup .digital-clock {
        font-size: 5rem;
        padding: 0.85rem 1.7rem;
        border-radius: 18px;
    }

    .friday-info-popup .digital-clock {
        font-size: 4rem;
        padding: 0.7rem 1.4rem;
        border-radius: 16px;
    }

    .clock-time {
        letter-spacing: 3px;
        font-weight: bold;
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
        font-size: 4rem;
    }

}

/* Full HD: 1920px–2559px */
@media (min-width: 1920px) and (max-width: 2559px) and (min-height: 1080px) {

    .adzan-popup,
    .iqomah-popup,
    .friday-info-popup,
    .friday-image-display {
        border-width: 12px;
    }

    .adzan {
        font-size: 5rem;
        letter-spacing: 3px;
    }

    .adzan-title,
    .iqomah-title {
        font-size: 12rem;
    }

    .progress-container,
    .iqomah-progress-container {
        height: 80px;
        max-width: 850px;
    }

    .countdown,
    .iqomah-countdown {
        font-size: 16rem;
    }

    .friday-date,
    .friday-officials {
        font-size: 3rem;
    }

    .day-name-popup {
        font-size: 6rem;
    }

    .responsive-table td {
        padding: 0.2rem 4rem;
        font-size: 3rem;
    }

    .responsive-table .official-name {
        font-size: 2rem;
    }

    .responsive-table .official-name-value {
        font-size: 3rem;
    }

    .adzan-image-display {
        padding: 0;
    }

    .adzan-image-display img {
        max-width: 100%;
        object-fit: cover;
    }

    .logo-popup {
        margin-top: 0;
    }

    .logo-popup img {
        height: 70px;
    }

    .jumbotron-image {
        padding: 1rem;
    }

    .jumbotron-logo {
        top: 20px;
        left: 20px;
        height: 65px;
    }

    .jumbotron-countdown,
    .jumbotron-digital-clock {
        bottom: 30px;
        font-size: 2.61rem;
        padding: 19px 28.5px;
        border-radius: 15.8px;
    }

    .jumbotron-countdown {
        left: 20px;
        gap: 19px;
    }

    .jumbotron-digital-clock {
        right: 20px;
    }

    .jumbotron-progress-container {
        height: 10px;
    }

    .adzan-popup .digital-clock {
        font-size: 5rem;
        padding: 0.8rem 1.6rem;
        border-radius: 18px;
    }

    .iqomah-popup .digital-clock {
        font-size: 4.5rem;
        padding: 0.75rem 1.5rem;
        border-radius: 16px;
    }

    .friday-info-popup .digital-clock {
        font-size: 3rem;
        padding: 0.65rem 1.3rem;
        border-radius: 14px;
    }

    .clock-time {
        font-size: 3.2rem;
    }
}

/* 1366px–1599px */
@media (min-width: 1366px) and (max-width: 1599px) and (min-height: 768px) {

    .adzan-popup,
    .iqomah-popup,
    .friday-info-popup,
    .friday-image-display {
        border-width: 8px;
    }

    .adzan {
        font-size: 3.2rem;
        letter-spacing: 3px;
    }

    .adzan-title,
    .iqomah-title {
        font-size: 10rem;
        margin-bottom: 1rem;
    }

    .progress-container,
    .iqomah-progress-container {
        height: 50px;
        max-width: 600px;
    }

    .countdown,
    .iqomah-countdown {
        font-size: 13rem;
    }

    .friday-date,
    .friday-officials {
        font-size: 2rem;
    }

    .responsive-table td {
        padding: 7px 10px;
        font-size: 1.6rem;
    }

    .adzan-image-display {
        padding: 0;
    }

    .adzan-image-display img {
        max-width: 100%;
        object-fit: cover;
    }

    .logo-popup {
        margin-top: 0;
    }

    .logo-popup img {
        height: 55px;
    }

    .jumbotron-image {
        padding: 0.7rem;
    }

    .jumbotron-logo {
        top: 12px;
        left: 12px;
        height: 55px;
    }

    .jumbotron-countdown,
    .jumbotron-digital-clock {
        bottom: 24px;
        font-size: 2.22rem;
        padding: 12.7px 19px;
        border-radius: 11.1px;
    }

    .jumbotron-countdown {
        left: 12px;
        gap: 12.7px;
    }

    .jumbotron-digital-clock {
        right: 12px;
    }

    .jumbotron-progress-container {
        height: 8px;
    }

    .adzan-popup .digital-clock {
        font-size: 4rem;
        padding: 0.65rem 1.3rem;
        border-radius: 14px;
    }

    .iqomah-popup .digital-clock {
        font-size: 3.5rem;
        padding: 0.6rem 1.2rem;
        border-radius: 12px;
    }

    .friday-info-popup .digital-clock {
        font-size: 2rem;
        padding: 0.5rem 1rem;
        border-radius: 10px;
    }
}

/* 1024px–1365px */
@media (min-width: 1024px) and (max-width: 1365px) and (min-height: 768px) {

    .adzan-popup,
    .iqomah-popup,
    .friday-info-popup,
    .friday-image-display {
        border-width: 6px;
    }

    .adzan {
        font-size: 2rem;
        letter-spacing: 1.2px;
    }

    .adzan-title,
    .iqomah-title {
        font-size: 5rem;
        margin-bottom: 1rem;
    }

    .progress-container,
    .iqomah-progress-container {
        height: 50px;
        max-width: 400px;
    }

    .countdown,
    .iqomah-countdown {
        font-size: 14rem;
    }

    .friday-date,
    .friday-officials {
        font-size: 1.2rem;
    }

    .responsive-table td {
        padding: 6px 8px;
        font-size: 1rem;
    }

    .adzan-image-display {
        padding: 0;
    }

    .adzan-image-display img {
        max-width: 100%;
        object-fit: cover;
    }

    .iqomah-popup,
    .friday-info-popup {
        flex-direction: column;
    }

    .iqomah-image,
    .friday-image {
        height: 50%;
        width: 100%;
    }

    .iqomah-popup-content,
    .friday-info-content {
        flex: none;
        height: 50%;
    }

    .logo-popup {
        margin-top: 0;
    }

    .logo-popup img {
        height: 50px;
    }

    .jumbotron-image {
        padding: 0.5rem;
    }

    .jumbotron-logo {
        top: 10px;
        left: 10px;
        height: 50px;
    }

    .jumbotron-countdown,
    .jumbotron-digital-clock {
        bottom: 20px;
        font-size: 1.52rem;
        padding: 9.2px 13.2px;
        border-radius: 7.9px;
    }

    .jumbotron-countdown {
        left: 10px;
    }

    .jumbotron-digital-clock {
        right: 10px;
    }

    .jumbotron-progress-container {
        height: 8px;
    }

    .adzan-popup .digital-clock {
        font-size: 3.5rem;
        padding: 0.6rem 1.2rem;
        border-radius: 12px;
    }

    .iqomah-popup .digital-clock {
        font-size: 3rem;
        padding: 0.55rem 1.1rem;
        border-radius: 10px;
    }

    .friday-info-popup .digital-clock {
        font-size: 1.5rem;
        padding: 0.45rem 0.9rem;
        border-radius: 8px;
    }
}

/* Tablet Landscape: 992px–1199px */
@media screen and (max-width: 1199px) {
    .adzan-title {
        font-size: 7rem;
    }

    .countdown {
        font-size: 7rem;
    }

    .iqomah-title,
    .iqomah-countdown {
        font-size: 5rem;
    }

    .friday-date {
        font-size: 1rem;
    }

    .adzan-image-display {
        padding: 0;
    }

    .adzan-image-display img {
        max-width: 100%;
        object-fit: cover;
    }
}

/* Tablet Portrait: 768px–991px */
@media screen and (max-width: 991px) {

    .adzan-popup,
    .iqomah-popup,
    .friday-info-popup {
        border: 8px solid #d4af37;
    }

    .adzan-title {
        font-size: 5rem;
        margin-bottom: 1.5rem;
    }

    .countdown {
        font-size: 5rem;
    }

    .adzan {
        font-size: 2.5rem;
    }

    .iqomah-popup,
    .friday-info-popup {
        flex-direction: column;
        border: 8px solid #d4af37;
    }

    .iqomah-popup-content,
    .friday-info-content {
        flex: none;
        height: 50%;
        padding: 0;
    }

    .iqomah-image,
    .friday-image {
        flex: none;
        height: 50%;
    }

    .iqomah-title,
    .iqomah-countdown {
        font-size: 10rem;
        margin-bottom: 1rem;
    }

    .friday-date {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .friday-officials {
        font-size: 1.2rem;
    }

    .progress-container,
    .iqomah-progress-container {
        width: 90%;
        height: 35px;
    }

    .adzan-image-display {
        padding: 0;
    }

    .adzan-image-display img {
        max-width: 100%;
        object-fit: cover;
    }

    .logo-popup {
        margin-top: 0;
    }

    .logo-popup img {
        height: 45px;
    }

    .jumbotron-image {
        padding: 0.5rem;
    }

    .jumbotron-logo {
        top: 10px;
        left: 10px;
        height: 40px;
    }

    .jumbotron-countdown,
    .jumbotron-digital-clock {
        bottom: 10px;
        font-size: 1.15rem;
        padding: 7px 10px;
        border-radius: 6px;
    }

    .jumbotron-countdown {
        left: 10px;
    }

    .jumbotron-digital-clock {
        right: 10px;
    }

    .jumbotron-progress-container {
        height: 6px;
    }

    .adzan-popup .digital-clock {
        font-size: 3rem;
        padding: 0.55rem 1.1rem;
        border-radius: 10px;
    }

    .iqomah-popup .digital-clock {
        font-size: 2.5rem;
        padding: 0.5rem 1rem;
        border-radius: 9px;
    }

    .friday-info-popup .digital-clock {
        font-size: 1.2rem;
        padding: 0.4rem 0.8rem;
        border-radius: 7px;
    }
}

/* Mobile Landscape: 576px–767px */
@media screen and (max-width: 767px) {

    .adzan-popup,
    .iqomah-popup,
    .friday-info-popup {
        border: 6px solid #d4af37;
    }

    .adzan-title {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

    .countdown {
        font-size: 3.5rem;
    }

    .adzan {
        font-size: 2rem;
    }

    .iqomah-popup-content,
    .friday-info-content {
        padding: 0;
    }

    .iqomah-title,
    .iqomah-countdown {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }

    .friday-date {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .friday-officials {
        font-size: 1rem;
    }

    .progress-container,
    .iqomah-progress-container {
        width: 95%;
        height: 30px;
    }

    .responsive-table td {
        padding: 6px 8px;
        font-size: 0.9rem;
    }

    .adzan-image-display {
        padding: 0;
    }

    .adzan-image-display img {
        max-width: 100%;
        object-fit: cover;
    }

    .logo-popup {
        margin-top: 0;
    }

    .logo-popup img {
        height: 40px;
    }

    .jumbotron-image {
        padding: 0.25rem;
    }

    .jumbotron-logo {
        top: 8px;
        left: 8px;
        height: 35px;
    }

    .jumbotron-countdown,
    .jumbotron-digital-clock {
        bottom: 8px;
        font-size: 1rem;
        padding: 6px 8px;
        border-radius: 5px;
    }

    .jumbotron-countdown {
        left: 8px;
    }

    .jumbotron-digital-clock {
        right: 8px;
    }

    .jumbotron-progress-container {
        height: 6px;
    }

    .adzan-popup .digital-clock {
        font-size: 2.5rem;
        padding: 0.5rem 1rem;
        border-radius: 9px;
    }

    .iqomah-popup .digital-clock {
        font-size: 2rem;
        padding: 0.45rem 0.9rem;
        border-radius: 8px;
    }

    .friday-info-popup .digital-clock {
        font-size: 1rem;
        padding: 0.35rem 0.7rem;
        border-radius: 6px;
    }
}

/* Mobile Portrait: ≤575px */
@media screen and (max-width: 575px) {

    .adzan-popup,
    .iqomah-popup,
    .friday-info-popup {
        border: 4px solid #d4af37;
    }

    .adzan-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .countdown {
        font-size: 2.5rem;
    }

    .adzan {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .iqomah-popup-content,
    .friday-info-content {
        padding: 0;
    }

    .iqomah-title,
    .iqomah-countdown {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .friday-date {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .friday-officials {
        font-size: 0.8rem;
    }

    .progress-container,
    .iqomah-progress-container {
        width: 98%;
        height: 25px;
    }

    .responsive-table td {
        padding: 4px 6px;
        font-size: 0.8rem;
    }

    .adzan-image-display {
        padding: 0;
    }

    .adzan-image-display img {
        max-width: 100%;
        object-fit: cover;
    }

    .logo-popup {
        margin-top: 0;
    }

    .logo-popup img {
        height: 35px;
    }

    .jumbotron-image {
        padding: 0.125rem;
        background-size: contain;
    }

    .jumbotron-logo {
        top: 6px;
        left: 6px;
        height: 30px;
    }

    .jumbotron-countdown,
    .jumbotron-digital-clock {
        bottom: 6px;
        font-size: 0.9rem;
        padding: 5px 7px;
        border-radius: 5px;
    }

    .jumbotron-countdown {
        left: 6px;
    }

    .jumbotron-digital-clock {
        right: 6px;
    }

    .jumbotron-progress-container {
        height: 6px;
    }

    .adzan-popup .digital-clock {
        font-size: 2rem;
        padding: 0.45rem 0.9rem;
        border-radius: 8px;
    }

    .iqomah-popup .digital-clock {
        font-size: 1.5rem;
        padding: 0.4rem 0.8rem;
        border-radius: 7px;
    }

    .friday-info-popup .digital-clock {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
        border-radius: 5px;
    }
}

/* Extra Small Mobile: ≤320px */
@media screen and (max-width: 320px) {
    .adzan-title {
        font-size: 2rem;
    }

    .countdown {
        font-size: 2rem;
    }

    .adzan {
        font-size: 1.2rem;
    }

    .iqomah-title,
    .iqomah-countdown {
        font-size: 1.5rem;
    }

    .friday-date {
        font-size: 1rem;
    }

    .friday-officials {
        font-size: 0.7rem;
    }

    .progress-container,
    .iqomah-progress-container {
        height: 20px;
    }

    .adzan-image-display img {
        max-width: 100%;
        object-fit: cover;
    }

    .logo-popup {
        margin-top: 0;
    }

    .logo-popup img {
        height: 30px;
    }

    .jumbotron-image {
        padding: 0.125rem;
        background-size: contain;
    }

    .jumbotron-logo {
        top: 5px;
        left: 5px;
        height: 25px;
    }

    .jumbotron-countdown,
    .jumbotron-digital-clock {
        bottom: 5px;
        font-size: 0.8rem;
        padding: 4px 6px;
        border-radius: 4px;
    }

    .jumbotron-countdown {
        left: 5px;
    }

    .jumbotron-digital-clock {
        right: 5px;
    }

    .jumbotron-progress-container {
        height: 6px;
    }

    .adzan-popup .digital-clock {
        font-size: 1.5rem;
        padding: 0.4rem 0.8rem;
        border-radius: 7px;
    }

    .iqomah-popup .digital-clock {
        font-size: 1.2rem;
        padding: 0.35rem 0.7rem;
        border-radius: 6px;
    }

    .friday-info-popup .digital-clock {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
    }
}

/* Landscape Orientation: max-height 480px */
@media screen and (orientation: landscape) and (max-height: 480px) {

    .iqomah-popup,
    .friday-info-popup {
        flex-direction: row;
    }

    .iqomah-popup-content,
    .friday-info-content {
        height: 100%;
        flex: 1;
    }

    .iqomah-image,
    .friday-image {
        height: 100%;
        flex: 1;
    }

    .iqomah-title,
    .iqomah-countdown {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .friday-date {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .friday-officials {
        font-size: 0.8rem;
    }

    .adzan-image-display img {
        max-width: 100%;
        object-fit: cover;
    }

    .jumbotron-image {
        padding: 0.25rem;
        background-size: contain;
    }

    .jumbotron-logo {
        top: 8px;
        left: 8px;
        height: 35px;
    }

    .jumbotron-countdown,
    .jumbotron-digital-clock {
        bottom: 8px;
        font-size: 1rem;
        padding: 6px 8px;
        border-radius: 5px;
    }

    .jumbotron-countdown {
        left: 8px;
    }

    .jumbotron-digital-clock {
        right: 8px;
    }

    .jumbotron-progress-container {
        height: 10px;
    }
}
