* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body{
    overflow-x: hidden; /* prevents horizontal scroll */
    font-family: Arial, sans-serif;
    background-image: url("images/hero.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

header{
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
}

.navbar {  
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.5);
}

.logo{
    padding: 0px;
    color: rgb(3, 100, 92);
    font-weight: bold;
    font-size: 25px;
    font-family: 'Times New Roman', Times, serif;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-family: 'Times New Roman', Times, serif;
}


.schedule {
    width: 100%;       
    display: flex;    
    flex-direction: column;       
    justify-content: center;      
    align-items: center;
    text-align: center;
    margin-top: 30px;
}

.schedule h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.schedule p {
    color: #ddd;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.schedule-table {
    width: auto;              /* shrink to content */
    margin: 0 auto;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
    flex-wrap: wrap;
    table-layout: auto;

}

.schedule-table th,
.schedule-table td {
    padding: 8px 12px;          /* smaller padding so cells hug content */
    white-space: nowrap; 
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    
}



.schedule-table th {
    background: rgb(3, 100, 92);
    font-weight: bold;
    color: #fff;
}

.schedule-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.schedule-table tr:hover {
    background: rgba(3, 100, 92, 0.6);
    transition: 0.3s;
}

.footer {
    background: #111;
    color: #eee;
    text-align: center;
    padding: 20px;
    
}

.footer a {
    color: rgb(3, 100, 92);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: bold;
}

.footer a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    /* Navbar */
    .navbar{
       display: flex;
       flex-direction: column;
       gap: 10px;      
      /* align-items: flex-start; */
    } 
    .nav-links {
    gap: 20px;   
    }

    /* Schedule Section */

    .schedule h2 {
        font-size: 1.8rem;
    }

    .schedule p {
        font-size: 1rem;
    }
    .schedule-table {
        width: auto;          /* allow it to take full width on mobile */
        display: block;
        overflow-x: auto;     /* enable horizontal scroll if needed */
        white-space: nowrap;  /* prevent content wrapping inside */
        margin-right: 30%;
        border-radius: 0px;
    }

    /* 1st column */
.schedule-table th:nth-child(1),
.schedule-table td:nth-child(1) {
    width: 80%;
}

/* 2nd column */
.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
    width: 80%;
}

/* 1st column */
.schedule-table th:nth-child(3),
.schedule-table td:nth-child(3) {
    width: 80%;
}

/* 2nd column */
.schedule-table th:nth-child(4),
.schedule-table td:nth-child(4) {
    width: 80%;
}

    /* Make schedule table mobile-friendly */
    .schedule-table, 
    .schedule-table thead, 
    .schedule-table tbody, 
    .schedule-table th, 
    .schedule-table td, 
    .schedule-table tr {
        display: block;
        width: 100%;
    }

    .schedule-table thead {
        display: none; /* hide table head on small screens */
    }

    .schedule-table tr {
        margin-bottom: 15px;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 8px;
        padding: 10px;

        width: 100%;
    }

    .schedule-table td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        text-align: left;
    }

    .schedule-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: rgb(3, 200, 192);
    }

    /* Footer */
     .footer {
        font-size: 0.85rem;
        padding: 15px;
    }
}