/* Countdown Timer Styles for Yayasan Peneraju */

/* Yayasan Peneraju Carousel Content Enhancements */
.carousel-item .content {
    position: relative;
    z-index: 2;
}

.carousel-item .content > p:first-of-type {
    font-size: 20px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-item .content > p:nth-of-type(2) {
    margin-bottom: 20px;
}

/* Yayasan Peneraju Content Responsive Styles */
.yayasan-intro-text {
    font-size: 20px;
    line-height: 1.4;
    word-wrap: break-word;
    margin-bottom: 15px;
}

.maset-full-name {
    font-size: 18px;
    line-height: 1.5;
    word-wrap: break-word;
    margin-bottom: 20px;
}

.mymahir-logo {
    max-width: 400px;
    height: auto;
    margin-bottom: 15px;
    width: 100%;
}

.countdown-container {
    margin: 35px auto 25px;
    padding: 30px 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(36, 9, 63, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 25, 73, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.countdown-label {
    color: #24093F;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.countdown-label i {
    color: #FF1949;
    font-size: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.countdown-wrapper {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.countdown-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px 25px;
    min-width: 90px;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(36, 9, 63, 0.2),
        0 5px 15px rgba(255, 25, 73, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FF1949, #ff6b35, #24093F, #FF1949);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.countdown-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 25, 73, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.countdown-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(36, 9, 63, 0.3),
        0 10px 25px rgba(255, 25, 73, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 25, 73, 0.4);
}

.countdown-item:hover::before {
    transform: scaleX(1);
}

.countdown-item:hover::after {
    width: 200px;
    height: 200px;
}

.countdown-number {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, #24093F, #FF1949, #24093F);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    letter-spacing: -1px;
    animation: gradientShift 3s ease infinite;
    position: relative;
    z-index: 2;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.countdown-label-text {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.countdown-separator {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #FF1949, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    align-self: center;
    margin: 0 -8px;
    animation: blink 1s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

.countdown-message {
    text-align: center;
    color: #0d3e6e;
    font-weight: 700;
    font-size: 15px;
    margin-top: 20px;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(255, 25, 73, 0.15), rgba(255, 107, 53, 0.1));
    border-radius: 15px;
    border-left: 5px solid #FF1949;
    box-shadow: 0 5px 15px rgba(255, 25, 73, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.countdown-message:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(255, 25, 73, 0.3);
}

.countdown-message i {
    color: #FF1949;
    margin-right: 8px;
    animation: pulse-icon 2s ease-in-out infinite;
}

.countdown-message strong {
    color: #FF1949;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(255, 25, 73, 0.3);
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .yayasan-intro-text {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .maset-full-name {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .mymahir-logo {
        max-width: 350px;
    }
    
    .countdown-container {
        padding: 25px 20px;
        margin-top: 25px;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .countdown-label {
        font-size: 16px;
        margin-bottom: 18px;
        flex-wrap: wrap;
        text-align: center;
    }
    
    .countdown-label span {
        display: block;
        width: 100%;
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    .yayasan-intro-text {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .maset-full-name {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .mymahir-logo {
        max-width: 280px;
        margin-bottom: 12px;
    }
    
    .countdown-container {
        padding: 20px 15px;
        margin-top: 20px;
        margin-left: 10px;
        margin-right: 10px;
        border-radius: 20px;
    }
    
    .countdown-label {
        font-size: 15px;
        margin-bottom: 15px;
        gap: 8px;
    }
    
    .countdown-label i {
        font-size: 16px;
    }
    
    .countdown-label span {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .countdown-wrapper {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 12px 10px;
        border-radius: 15px;
        flex: 1 1 auto;
        max-width: calc(25% - 6px);
    }
    
    .countdown-number {
        font-size: 26px;
        margin-bottom: 6px;
    }
    
    .countdown-label-text {
        font-size: 9px;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }
    
    .countdown-separator {
        font-size: 20px;
        margin: 0 -3px;
        align-self: center;
    }
    
    .countdown-message {
        font-size: 12px;
        padding: 12px 15px;
        margin-top: 15px;
        line-height: 1.5;
        text-align: center;
    }
    
    .countdown-message span {
        display: block;
        margin-top: 4px;
    }
}

@media (max-width: 576px) {
    .yayasan-intro-text {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .maset-full-name {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .mymahir-logo {
        max-width: 220px;
        margin-bottom: 10px;
    }
    
    .countdown-container {
        padding: 18px 12px;
        margin-top: 18px;
        margin-left: 5px;
        margin-right: 5px;
        border-radius: 18px;
    }
    
    .countdown-label {
        font-size: 13px;
        margin-bottom: 15px;
        gap: 6px;
    }
    
    .countdown-label i {
        font-size: 14px;
    }
    
    .countdown-label span {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .countdown-wrapper {
        gap: 6px;
        margin-bottom: 12px;
        justify-content: space-between;
    }
    
    .countdown-item {
        min-width: 0;
        padding: 10px 8px;
        border-radius: 12px;
        flex: 1 1 calc(25% - 5px);
        max-width: calc(25% - 5px);
    }
    
    .countdown-number {
        font-size: 22px;
        margin-bottom: 4px;
    }
    
    .countdown-label-text {
        font-size: 8px;
        letter-spacing: 0.3px;
        line-height: 1.1;
    }
    
    .countdown-separator {
        font-size: 18px;
        margin: 0 -2px;
    }
    
    .countdown-message {
        font-size: 11px;
        padding: 10px 12px;
        margin-top: 12px;
        line-height: 1.4;
    }
    
    .countdown-message i {
        font-size: 12px;
        margin-right: 6px;
    }
}

@media (max-width: 400px) {
    .yayasan-intro-text {
        font-size: 13px;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .maset-full-name {
        font-size: 11px;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .mymahir-logo {
        max-width: 180px;
        margin-bottom: 8px;
    }
    
    .countdown-container {
        padding: 15px 10px;
        margin-top: 15px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .countdown-label {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .countdown-label span {
        font-size: 11px;
    }
    
    .countdown-wrapper {
        gap: 4px;
    }
    
    .countdown-item {
        padding: 8px 6px;
        border-radius: 10px;
    }
    
    .countdown-number {
        font-size: 20px;
        margin-bottom: 3px;
    }
    
    .countdown-label-text {
        font-size: 7px;
    }
    
    .countdown-separator {
        font-size: 16px;
        margin: 0 -1px;
    }
    
    .countdown-message {
        font-size: 10px;
        padding: 8px 10px;
        margin-top: 10px;
    }
}

/* Animation for countdown updates */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes flip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

.countdown-item.updating {
    animation: pulse 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.countdown-item.updating .countdown-number {
    animation: flip 0.6s ease, gradientShift 3s ease infinite;
}

