/* Frontend Styles for Bootcamp Schedule Table */

.bootcamp-schedule-wrapper {
    margin: 30px 0;
}

.bootcamp-schedule-wrapper h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.bootcamp-schedule-table {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bootcamp-schedule-table thead {
    background: #2c3e50;
    color: #fff;
}

.bootcamp-schedule-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #34495e;
}

.bootcamp-schedule-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.bootcamp-schedule-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.bootcamp-schedule-table tbody tr:hover {
    background-color: #f0f8ff;
}

.bootcamp-schedule-table td {
    padding: 12px 10px;
    font-size: 14px;
    color: #555;
    border: 1px solid #e0e0e0;
    vertical-align: top;
}

.bootcamp-schedule-table td p {
    margin: 0;
    padding: 0;
}

/* Column widths - matching your example */
.bootcamp-schedule-table th:nth-child(1),
.bootcamp-schedule-table td:nth-child(1) {
    width: 18%;
}

.bootcamp-schedule-table th:nth-child(2),
.bootcamp-schedule-table td:nth-child(2) {
    width: 28%;
}

.bootcamp-schedule-table th:nth-child(3),
.bootcamp-schedule-table td:nth-child(3) {
    width: 12%;
}

.bootcamp-schedule-table th:nth-child(4),
.bootcamp-schedule-table td:nth-child(4) {
    width: 12%;
}

.bootcamp-schedule-table th:nth-child(5),
.bootcamp-schedule-table td:nth-child(5) {
    width: 30%;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .bootcamp-schedule-table {
        width: 100%;
        font-size: 12px;
    }
    
    .bootcamp-schedule-table th,
    .bootcamp-schedule-table td {
        padding: 8px 5px;
        font-size: 12px;
    }
    
    .bootcamp-schedule-wrapper h2 {
        font-size: 22px;
    }
}

@media screen and (max-width: 480px) {
    /* Stack table on very small screens */
    .bootcamp-schedule-table,
    .bootcamp-schedule-table thead,
    .bootcamp-schedule-table tbody,
    .bootcamp-schedule-table th,
    .bootcamp-schedule-table td,
    .bootcamp-schedule-table tr {
        display: block;
    }
    
    .bootcamp-schedule-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .bootcamp-schedule-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
    }
    
    .bootcamp-schedule-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }
    
    .bootcamp-schedule-table td:before {
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        content: attr(data-label);
    }
}
