
.devotional-event-section{

    background:  linear-gradient(to left, #0a2e76c5 0%, #0a2e76b7 100%), 
    url('../images/main-picture.jpg') fixed no-repeat center / cover;
}
 .subtitle {
    color: #7f8c8d;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: -40px;
    z-index: 990;
    position: relative;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
}

.card.slide-in {
    opacity: 1;
    transform: translateY(0);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: #0a2e7638;
    border-radius: 35px !important;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
    color: white;
}

.devotional-icon {
    background: #0a2e76;
}

.event-icon {
    background: #fff06e;
}

.card-title {
    font-size: 1.6rem;
    color: #0a2e76;
    font-weight: 500;
}

.card-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 5px;
}

.card-content {
    margin-bottom: 25px;
}

.devotional-text {
    font-style: italic;
    line-height: 1.8;
    color: #555;
    border-left: 3px solid #3498db;
    padding-left: 15px;
    margin: 15px 0;
}
.bible-ref{
    font-weight: 500;
    font-size: 15px;
    color: #03225f;
}
.card-status{
    display: flex;
    flex: 1;
    margin-left: 50px;
}
.badge-success{
    background:#31e604 !important;
}
.devotional-title{
    color: #03225f;
}
.event-details {
    margin: 15px 0;
    display: flex;
}

.event-detail {
    flex: 1;
    margin-bottom: 10px;
}



.btn {
    padding: 12px 25px;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.modal-date {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.modal-body {
    line-height: 1.8;
    color: #555;
}

.modal-body p {
    margin-bottom: 15px;
}
 .countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unit-label {
    margin-top: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    color: #c4c4c4;
}

.flip-card {
    position: relative;
    width: 65px;
    height: 100px;
    perspective: 250px;
}

.flip-card-top, .flip-card-bottom {
    position: absolute;
    width: 100%;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #081f4e;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.flip-card-top {
    top: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.flip-card-bottom {
    bottom: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 0 0 8px 8px;
    display:none
}

.flip-card-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.3);
}

.number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f4c025;
    text-shadow: 0 0 10px rgba(240, 187, 11, 0.685);
    font-family: 'Courier New', monospace;
}


.flip-card-bottom .number {
    align-self: flex-start;
}

.flip-animation {
    position: absolute;
    top: 0;
    width: 100%;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #081f4e;
    border-radius: 8px;
    transform-origin: bottom;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.flip-animation.flipping {
    animation: flip 0.5s ease-in-out;
}

@keyframes flip {
    0% {
        transform: rotateX(0deg);
        z-index: 2;
    }
    50% {
        transform: rotateX(-90deg);
        z-index: 2;
    }
    100% {
        transform: rotateX(-180deg);
        z-index: 1;
    }
}

.separator {
    font-size: 3rem;
    font-weight: bold;
    color: #081f4e;
    display: flex;
    margin: 0;
}

@media (max-width: 768px) {
    .flip-card {
        width: 80px;
        height: 100px;
    }
    
    .number {
        font-size: 3rem;
    }
    
    .separator {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .countdown-container {
        gap: 10px;
    }
    
    .flip-card {
        width: 60px;
        height: 80px;
    }
    
    .number {
        font-size: 2.2rem;
    }
    
    .separator {
        font-size: 1.5rem;
    }
    
    .unit-label {
        font-size: 0.8rem;
    }
}