/* =========================================
   1. GENERAL SECTION STYLES
   ========================================= */
.schedule-section {
    padding: 40px 20px;
    background-color: #ffffff; /* Pure White */
}

.schedule-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.schedule-data {
    width: 100%;
    text-align: center;
    /* Note: Scroll properties removed to allow stacking */
}

.schedule-data h2 {
    font-family: 'Georgia', serif;
    font-size: 24px; 
    color: #333;
    margin-bottom: 30px;
}

.schedule-data h2 span {
    color: #F4B400; 
    font-weight: bold;
}

/* =========================================
   2. DESKTOP TABLE STYLING (Default)
   ========================================= */
table#Mass-Schedule {
    width: 100%;
    table-layout: fixed; /* Equal width columns on Desktop */
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #eee;
}

/* Header Styling */
table#Mass-Schedule thead th {
    background-color: #F4B400; /* Gold Header */
    color: white;
    padding: 20px 10px;
    text-align: center;
    
    font-size: 14px; 
    font-weight: bold;
    font-family: 'Georgia', serif;
    
    border: 1px solid #ddd;
    width: 14.28%; /* 1/7th width */
}

/* Body Cells */
table#Mass-Schedule tbody td {
    padding: 20px 10px;
    text-align: center;
    border: 1px solid #eee;
    background-color: #ffffff;
}

/* =========================================
   3. TIME & LIVE BADGE STYLING
   ========================================= */
.mass-time {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    white-space: nowrap; /* Prevents time wrapping */
}

/* "Live" Text Color */
.mass-time.live {
    color: #d32f2f; /* Red text for the time */
    font-weight: bold;
}

/* The "Live" Badge (The Red Box) */
.mass-time span {
    display: inline-block; 
    background-color: #d32f2f;
    color: white;
    font-size: 11px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* =========================================
   4. MOBILE RESPONSIVE (VERTICAL CARD STACK)
   ========================================= */
/* Activates on screens smaller than 1024px (Tablets & Phones) */
@media screen and (max-width: 1024px) {

  .schedule-wrapper {
    max-width: 500px;
}

    
    /* 1. Hide the main table header row */
    table#Mass-Schedule thead {
        display: none;
    }

    /* 2. Convert table elements to Block elements (Divs) */
    table#Mass-Schedule, 
    table#Mass-Schedule tbody, 
    table#Mass-Schedule tr, 
    table#Mass-Schedule td {
        display: block;
        border: none; /* Remove standard table borders */
    }

    /* 3. Style the "Cell" to look like a Card */
    table#Mass-Schedule tbody td {
        position: relative;
        margin-bottom: 20px; /* Space between cards */
        padding: 20px;
        padding-top: 60px; /* Make space for the header label */
        
        background-color: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 12px; /* Rounded corners */
        box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Card Shadow */
        text-align: center;
    }

    /* 4. Inject the Label (e.g., SUNDAY) using CSS */
    table#Mass-Schedule tbody td::before {
        content: attr(data-label); /* Pulls text from HTML */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 12px 0;
        
        background-color: #F4B400; /* Gold Card Header */
        color: white;
        font-weight: bold;
        font-family: 'Georgia', serif;
        font-size: 18px;
        
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        text-transform: uppercase;
    }
}