
.festivals-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: nowrap;
}

.festival-item {
    flex: 1;
    min-width: 140px;
    max-width: 160px;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 11px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.festival-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    opacity: 0.5;
    z-index: 0;
}

.festival-item.traditional::after {
    background-color: #FF8C00;
}

.festival-item.solar::after {
    background-color: #4CAF50;
}

.festival-item.international::after {
    background-color: #9370DB;
}

.festival-item.national::after {
    background-color: #4682B4;
}

.festival-item.foreign::after {
    background-color: #b3b5ff;
}

.festival-item.today::after {
    background-color: var(--primary);
    opacity: 0.3;
    height: 3px;
}

.festival-countdown {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    min-height: 32px;
    position: relative;
    z-index: 1;
}

.festival-countdown .festival-name {
    color: var(--text-color);
    font-weight: 400;
}

.festival-countdown .festival-days {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    margin: 0 2px;
}

.festival-subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    padding: 1px 8px;
    background: transparent;
    border: 1.2px solid;
    border-radius: 10px;
    width: fit-content;
    margin-top: 2px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.festival-item.traditional .festival-subtitle {
    color: #FF8C00;
    border-color: rgba(255, 140, 0, 0.4);
}

.festival-item.solar .festival-subtitle {
    color: #4CAF50;
    border-color: rgba(76, 175, 80, 0.4);
}

.festival-item.international .festival-subtitle {
    color: #9370DB;
    border-color: rgba(147, 112, 219, 0.4);
}

.festival-item.national .festival-subtitle {
    color: #4682B4;
    border-color: rgba(70, 130, 180, 0.4);
}

.festival-item.foreign .festival-subtitle {
    color: #b3b5ff;
    border-color: #b3b5ff66;
}

.festival-item.today .festival-subtitle {
    color: var(--primary);
    border-color: rgba(59, 130, 246, 0.4);
    font-weight: 400;
}

.festival-item.loading {
    opacity: 0.7;
    cursor: default;
}

.festival-item.loading::after {
    background-color: var(--gray);
}

@media (max-width: 900px) {
    .festivals-display {
        flex-wrap: wrap;
        max-width: 600px;
    }
    
    .festival-item {
        min-width: calc(33.33% - 10px);
        max-width: calc(33.33% - 10px);
        margin-bottom: 8px;
    }
}

@media (max-width: 768px) {
    .logo-section {
        margin-bottom: 25px;
    }
    
    .logo-image {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .logo-subtitle {
        font-size: 1.1rem;
        max-width: 90%;
    }
    
    .date-display-full {
        font-size: 0.9rem;
    }
    
    .festivals-display {
        max-width: 500px;
        gap: 8px;
    }
    
    .festival-item {
        min-width: calc(50% - 8px);
        max-width: calc(50% - 8px);
        padding: 9px 5px;
    }
    
    .festival-countdown {
        font-size: 0.8rem;
        min-height: 28px;
    }
    
    .festival-countdown .festival-days {
        font-size: 0.85rem;
    }
    
    .festival-subtitle {
        font-size: 0.65rem;
        padding: 1px 6px;
    }
}

@media (max-width: 480px) {
    .logo-subtitle {
        font-size: 1rem;
    }
    
    .logo-image {
        width: 80px;
        height: 80px;
    }
    
    .date-display-full {
        font-size: 0.85rem;
    }
    
    .festivals-display {
        flex-direction: column;
        max-width: 300px;
    }
    
    .festival-item {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 6px;
        padding: 8px 5px;
    }
    
    .festival-countdown {
        font-size: 0.75rem;
        min-height: 26px;
    }
    
    .festival-countdown .festival-days {
        font-size: 0.8rem;
    }
    
    .festival-subtitle {
        font-size: 0.6rem;
        padding: 0px 5px;
    }
}