:root {
    --jumaa-color: #420163;
}

.container {
    flex-direction: row;
}

.left-column, .right-column {
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 1vh, 20px);
    overflow: hidden;
    padding: 1vh 0.1vw;
}

.slide-show {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #a5d6a7;
    border-radius: clamp(8px, 1vw, 20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    min-height: 200px;
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease;
}

.slideshow-image.active {
    opacity: 1;
}

.prayer-card {
    flex: 1;
    width: 90%;
}

.prayer-card-header {
    font-size: clamp(1rem, 1vw, 3rem);
}

/* Unique color for Jumaa prayer in ads */
.Jumaa .prayer-card-header {
    background-color: var(--jumaa-color);
}

.prayer-card .prayer-card-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.time-label {
    font-size: clamp(1rem, 1vw, 3rem);
}

.time-value {
    font-size: clamp(1rem, calc(1vh + 1.5vw), 3rem);
}


.footer {
    height: 5vh;
    flex-shrink: 0;
    width: 100%;
}

.news-ticker {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: clamp(14px, 2vw, 18px);
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    padding-left: 100%;
    will-change: transform;
    animation: ticker-scroll 30s linear infinite;
    align-items: center;
    height: 100%;
}

.news-item {
    display: inline-block;
    padding: 0 1em;
}

.news-separator {
    display: inline-block;
    padding: 0 1em;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Mobile specific for ads */
.prayer-grid-mobile {
    display: none;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-column, .right-column {
        display: none;
    }

    .prayer-grid-mobile {
        order: 1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        grid-auto-rows: auto;
        gap: 3vw;
        height: auto;
    }

    .slide-show {
        width: 100%;
        height: 40vh;
        order: 2;
        border-radius: 15px;
        margin-top: 15px;
    }

    .prayer-card {
        width: 100%;
    }

    .prayer-card-content {
        gap: 10px;
    }

    .news-ticker {
        font-size: clamp(12px, 3vw, 16px);
        padding: 0 10px;
    }

    .prayer-card .prayer-card-content {
        flex-direction: column;
        gap: 5px;
        padding: 8px;
    }

    .time-container {
        width: 100%;
    }
}
