/* General Heading Styles */
.page-subtitle {
    color: #8c2a30;
    text-align: center;
    margin-bottom: 5px;
}
.page-title {
    font-weight: normal;
    text-align: center;
    color: #222;
    margin-bottom: 40px;
}

.section-header {
    color: #8c2a30;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 25px;
    font-weight: normal;
    position: relative;
}

.section-header::after {
    content: '';
    display: block;
    width: 100px;
    height: 1px;
    background-color: #e3c790; /* Golden line */
    margin: 10px auto 0;
}

.general-text {
    text-align: center;
    margin-bottom: 30px;
}

/* Timetable Section */
.timetable-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.timetable-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    min-width: 80px; /* Ensure columns don't get too small */
}
.timetable-time {
    font-weight: bold;
    color: #8c2a30;
    margin-bottom: 5px;
}
.timetable-label {
    color: #666;
    text-align: center;
}
.timetable-note {
    color: #888;
    text-align: center;
    margin-bottom: 40px;
}

/* House System Section */
.house-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; /* Space between logos */
    margin-bottom: 30px;
}
.house-logo-item img {
    max-width: 120px; /* Adjust size of house crests */
    height: auto;
    display: block;
}
.house-description {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* School Culture Section */
.culture-list {
    max-width: 600px;
    margin: 0 auto 50px;
}
.culture-item {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0; /* Light grey border */
    color: #444;
    text-align: center;
}
.culture-item:last-child {
    border-bottom: none; /* No border for the last item */
}

/* Extracurricular Programs Section */
.extracurricular-columns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.extracurricular-column {
    flex: 1;
    min-width: 280px; /* Minimum width for each column */
    max-width: 350px;
    margin: 0 15px 30px;
    text-align: center;
}
.extracurricular-column h3 {
    font-size: 1.4rem;
    color: #8c2a30;
    margin-bottom: 20px;
    font-weight: bold;
}
.extracurricular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.extracurricular-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #444;
}
.extracurricular-list li:last-child {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timetable-item {
        padding: 8px 10px;
        min-width: 65px;
    }
    .house-logo-item img {
        max-width: 100px;
    }
    .extracurricular-column {
        margin: 0 10px 20px;
    }
}

@media (max-width: 576px) {
    .extracurricular-column {
        width: 100%;
        margin: 0 0 20px;
    }
    .house-logos {
        gap: 15px;
    }
}