.schedule-section {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('images/Wallpaper calendario/659702e3dfb177561b9d4888.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    overflow-x: hidden;
    width: 100%;
}

.schedule-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

.schedule-title {
    text-align: center;
    margin-bottom: 10px;
}

.schedule-title h2 {
    font-size: 48px;
    color: #212121;
    margin-bottom: 15px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        align-items: start
    }
}

.schedule-day {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Collapsible schedule styles */
.schedule-day.collapsible .day-header {
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.schedule-day.collapsible .toggle-indicator {
    position: absolute;
    right: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.schedule-day.collapsed .time-slot {
    display: none;
}

.schedule-day.expanded .time-slot {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.day-header {
    background: var(--gracie-red);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 800;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.schedule-day.collapsible .day-header:hover {
    background-color: #d41730;
}

.time-slot {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.time-slot:last-child {
    border-bottom: none;
}

.time-slot:hover {
    background-color: #f8f8f8;
}

.time {
    font-weight: 800;
    margin-bottom: 5px;
    color: #333;
}

.schedule-legend {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-text {
    font-size: 0.9rem;
    color: rgb(51, 51, 51);
    font-weight: 700;
}

.gb1 {
    background-color: #1e88e5;
    color: white;
    border-radius: 4px;
    padding: 2px 8px;
    box-shadow: 0 2px 4px rgba(30, 136, 229, 0.3);
    margin-bottom: 6px;
}

.gb2 {
    background-color: #8e24aa;
    color: white;
    border-radius: 4px;
    padding: 2px 8px;
    box-shadow: 0 2px 4px rgba(142, 36, 170, 0.3);
    margin-bottom: 6px;
}

.no-gi {
    background-color: #6a1b9a;
    color: white;
    border-radius: 4px;
    padding: 2px 8px;
    box-shadow: 0 2px 4px rgba(106, 27, 154, 0.3);
    margin-bottom: 6px;
}

.kids {
    background-color: #43a047;
    color: white;
    border-radius: 4px;
    padding: 2px 8px;
    box-shadow: 0 2px 4px rgba(67, 160, 71, 0.3);
    margin-bottom: 6px;
}

.private {
    background-color: #f57c00;
    color: white;
    border-radius: 4px;
    padding: 2px 8px;
    box-shadow: 0 2px 4px rgba(245, 124, 0, 0.3);
    margin-bottom: 6px;
}

.free-training {
    background-color: #1fb6d1;
    color: white;
    border-radius: 4px;
    padding: 2px 8px;
    box-shadow: 0 2px 4px rgba(97, 97, 97, 0.3);
    margin-bottom: 6px;
}

.gbk {
    background-color: #43a047;
    color: white;
    border-radius: 4px;
    padding: 2px 8px;
    box-shadow: 0 2px 4px rgba(67, 160, 71, 0.3);
    margin-bottom: 6px;
}

@media (max-width: 1024px) {
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .schedule-grid {
        grid-template-columns: 1fr;
        margin: 0 -10px;
        width: calc(100% + 20px);
    }

    .schedule-title h2 {
        font-size: 32px;
        padding: 0 10px;
    }

    .schedule-day {
        margin: 0 10px;
    }
}

.class-desc {
    font-weight: 700;
}

.gb-text {
    font-weight: 700;
}

.gb-number {
    font-weight: 700;
}
