.frontend-page {
    position: relative;
    padding: 7rem 0 4rem;
    background: #fff;
}

.frontend-page::before {
    position: absolute;
    inset: 0 0 auto;
    height: 18rem;
    content: "";
    background: linear-gradient(180deg, rgba(110, 218, 151, .14), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.frontend-page .container {
    position: relative;
    z-index: 1;
}

.frontend-page-header {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.frontend-eyebrow {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: rgba(110, 218, 151, .16);
    color: #006655;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.frontend-eyebrow svg {
    width: 1rem;
    height: 1rem;
}

.frontend-page-title {
    margin-bottom: .75rem;
    color: #0a3029;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.12;
}

.frontend-page-subtitle {
    margin-bottom: 0;
    color: #5e6c66;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
}

.frontend-panel,
.schedule-card {
    border: 1px solid rgba(0, 102, 85, .11);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1rem 2.5rem rgba(0, 84, 68, .08);
}

.schedule-card {
    height: 100%;
    overflow: hidden;
}

.schedule-card .card-body {
    padding: 1.35rem;
}

.schedule-card-header {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding-bottom: 1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid rgba(0, 102, 85, .1);
}

.schedule-card-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .5rem;
    background: rgba(110, 218, 151, .16);
    color: #006655;
}

.schedule-card-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.schedule-card-title {
    margin-bottom: .25rem;
    color: #0a3029;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
}

.schedule-card-meta {
    margin-bottom: 0;
    color: #7a8780;
    font-size: .85rem;
    font-weight: 600;
}

.schedule-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.schedule-item {
    position: relative;
    display: grid;
    grid-template-columns: 1.9rem 1fr;
    gap: .8rem;
    padding-bottom: 1.1rem;
}

.schedule-item:last-child {
    padding-bottom: 0;
}

.schedule-item::before {
    position: absolute;
    top: 1.8rem;
    bottom: .2rem;
    left: .9rem;
    width: 1px;
    content: "";
    background: rgba(0, 102, 85, .14);
}

.schedule-item:last-child::before {
    display: none;
}

.schedule-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    background: #006655;
    color: #fff;
}

.schedule-step-icon svg {
    width: .95rem;
    height: .95rem;
}

.schedule-step-label {
    margin-bottom: .2rem;
    color: #006655;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.schedule-step-value {
    margin-bottom: 0;
    color: #263a34;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.55;
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: .5rem;
    background: rgba(110, 218, 151, .16);
    color: #006655;
}

.school-filter-panel .card-body,
.school-table-panel .card-body {
    padding: 1.25rem;
}

.school-filter-panel {
    margin-bottom: 1rem;
}

.school-filter-panel .form-select,
.school-filter-panel .form-control {
    min-height: 2.75rem;
    border: 1.5px solid rgba(0, 102, 85, .26);
    border-radius: .5rem;
    color: #263a34;
}

.school-filter-panel .select2-container--bootstrap-5 .select2-selection {
    min-height: 2.75rem;
    border: 1.5px solid rgba(0, 102, 85, .26);
    border-radius: .5rem;
}

.school-filter-panel .form-select:focus,
.school-filter-panel .form-control:focus,
.school-filter-panel .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.school-filter-panel .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #006655;
    box-shadow: 0 0 0 .18rem rgba(0, 102, 85, .12);
}

.school-filter-actions {
    display: flex;
    gap: .6rem;
    align-items: stretch;
}

.school-filter-actions .btn {
    min-height: 2.75rem;
    border-radius: .5rem !important;
    font-weight: 800;
}

.frontend-page .btn-primary {
    border-color: #006655 !important;
    background: #006655 !important;
    color: #fff !important;
}

.frontend-page .btn-primary:hover,
.frontend-page .btn-primary:focus {
    border-color: #005243 !important;
    background: #005243 !important;
    color: #fff !important;
}

.frontend-page .btn-danger {
    border-color: rgba(0, 102, 85, .12) !important;
    background: rgba(110, 218, 151, .16) !important;
    color: #006655 !important;
}

.frontend-page .btn-danger:hover,
.frontend-page .btn-danger:focus {
    border-color: rgba(0, 102, 85, .18) !important;
    background: rgba(110, 218, 151, .24) !important;
    color: #005243 !important;
}

.school-table-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 102, 85, .1);
}

.school-table-title {
    margin-bottom: .15rem;
    color: #0a3029;
    font-size: 1.15rem;
    font-weight: 800;
}

.school-table-note {
    margin-bottom: 0;
    color: #7a8780;
    font-size: .88rem;
    font-weight: 500;
}

.school-table-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .5rem;
    background: rgba(110, 218, 151, .16);
    color: #006655;
}

.frontend-page #datatable {
    width: 100% !important;
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
}

.frontend-page #datatable thead th {
    border: 0;
    background: rgba(110, 218, 151, .16);
    color: #006655;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.frontend-page #datatable tbody td {
    border-color: rgba(0, 102, 85, .08);
    color: #344840;
    vertical-align: top;
}

.frontend-page #datatable tbody tr:hover td {
    background: rgba(110, 218, 151, .08);
}

.frontend-page #datatable ul {
    padding-left: 1rem;
    margin-bottom: 0;
}

.school-card-list .dataTables_scroll,
.school-card-list .dataTables_scrollBody {
    border: 0 !important;
}

.school-card-list .dataTables_wrapper,
.school-card-list .dataTables_wrapper .row,
.school-card-list .dataTables_wrapper .col-sm-12 {
    border: 0 !important;
}

.school-card-list .dataTables_length,
.school-card-list .dataTables_info,
.school-card-list .dataTables_paginate {
    display: none !important;
}

.school-card-table,
.school-card-table tbody,
.school-card-table tr,
.school-card-table td {
    display: block;
    width: 100% !important;
}

.school-card-table thead {
    display: none;
}

.school-card-table,
.school-card-table.no-footer,
.school-card-table.dataTable {
    border: 0 !important;
}

.school-card-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.school-card-table tbody tr,
.school-card-table tbody td {
    border: 0 !important;
    background: transparent !important;
}

.school-card-table tbody td {
    padding: 0 !important;
}

.school-card {
    height: 100%;
    padding: 1.15rem;
    border: 1px solid rgba(0, 102, 85, .11);
    border-radius: .5rem;
    background: #fff;
    box-shadow: 0 .85rem 2rem rgba(0, 84, 68, .07);
}

.school-card-top {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.school-card-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: .5rem;
    background: rgba(110, 218, 151, .16);
    color: #006655;
}

.school-card-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.school-card-name {
    margin-bottom: .25rem;
    color: #0a3029;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.4;
}

.school-card-year {
    margin-bottom: 0;
    color: #7a8780;
    font-size: .82rem;
    font-weight: 600;
}

.school-card-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    border-radius: .5rem;
    background: rgba(110, 218, 151, .12);
}

.school-card-total span {
    color: #5e6c66;
    font-size: .82rem;
    font-weight: 700;
}

.school-card-total strong {
    color: #006655;
    font-size: 1.35rem;
    font-weight: 800;
}

.school-card-meta {
    display: grid;
    gap: .8rem;
}

.school-card-meta-block {
    display: grid;
    gap: .35rem;
}

.school-card-meta-label {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    color: #006655;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.school-card-meta-label svg {
    width: .9rem;
    height: .9rem;
}

.school-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.school-card-tags li {
    padding: .35rem .55rem;
    border-radius: 999px;
    background: rgba(0, 102, 85, .07);
    color: #43554e;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
}

.school-card-empty {
    padding: 1.5rem;
    border: 1px dashed rgba(0, 102, 85, .18);
    border-radius: .5rem;
    color: #7a8780;
    text-align: center;
}

.frontend-page .dataTables_wrapper .dataTables_info {
    color: #5e6c66;
    font-weight: 600;
}

.frontend-page .page-item.active .page-link {
    border-color: #006655;
    background: #006655;
}

.frontend-page .page-link {
    color: #006655;
}

@media (max-width: 767.98px) {
    .frontend-page {
        padding-top: 6rem;
    }

    .frontend-page-title {
        font-size: 2.2rem;
    }

    .school-filter-actions {
        flex-direction: column;
    }

    .school-card-table tbody {
        grid-template-columns: 1fr;
    }
}
