/* ============================================================
   Electronic services pages — خدمات الکترونیک
   Extends .page-minimal-doc
   ============================================================ */

.page-eservice {
    --eservice-accent: #85003e;
    --eservice-accent-soft: rgba(133, 0, 62, 0.1);
}

.page-eservice .doc-hero__kicker {
    background: var(--eservice-accent-soft);
    color: var(--eservice-accent);
}

.page-eservice .doc-hero__line {
    background: linear-gradient(90deg, transparent, var(--eservice-accent), transparent);
}

.page-eservice .cms-fancy-box__accent {
    background: linear-gradient(90deg, var(--eservice-accent), #b12969);
}

.page-eservice .cms-item--table .cms-item__kicker {
    background: var(--eservice-accent-soft);
    color: var(--eservice-accent);
}

.page-eservice .cms-table thead th {
    background: #f7f1f4;
}

.page-eservice .cms-table tbody tr:hover td {
    background: rgba(133, 0, 62, 0.05);
}

.page-eservice .eservice-notes,
.page-eservice .eservice-steps {
    margin: 18px 0 0;
    padding: 16px 18px 16px 0;
    border-radius: 12px;
    background: var(--eservice-accent-soft);
    list-style: none;
}

.page-eservice .eservice-notes li,
.page-eservice .eservice-steps li {
    position: relative;
    margin: 0 0 10px;
    padding-right: 18px;
    color: var(--doc-ink, #1c1418);
    font-size: 14px;
    line-height: 1.85;
}

.page-eservice .eservice-notes li:last-child,
.page-eservice .eservice-steps li:last-child {
    margin-bottom: 0;
}

.page-eservice .eservice-notes li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--eservice-accent);
}

.page-eservice .eservice-steps {
    counter-reset: eservice-step;
}

.page-eservice .eservice-steps li {
    padding-right: 34px;
}

.page-eservice .eservice-steps li::before {
    counter-increment: eservice-step;
    content: counter(eservice-step);
    position: absolute;
    right: 0;
    top: 0.1em;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--eservice-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
}

.page-eservice .eservice-callout {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px dashed rgba(47, 128, 237, 0.28);
    background: rgba(255, 255, 255, 0.7);
    color: var(--doc-ink, #1c1418);
    font-size: 14px;
    line-height: 1.85;
}

.page-eservice .eservice-callout strong {
    color: var(--eservice-accent);
}

.page-eservice .cms-table tbody td:last-child .cms-table-cell-text {
    font-weight: 600;
    color: var(--eservice-accent);
}

.page-eservice .eservice-stack {
    gap: 24px;
}

/* ---- Tuition fee schedule hub / year pages ---- */

.tuition-hub,
.tuition-year-page {
    max-width: 100%;
    width: 100%;
    margin-inline: auto;
}

.tuition-hub > p,
.tuition-year-lead {
    color: #5c4f56;
    line-height: 1.95;
    font-size: 0.98rem;
    text-align: center;
}

.tuition-year-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0 1.75rem;
}

.tuition-year-card {
    display: flex;
    align-items: stretch;
    gap: 0.9rem;
    padding: 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(133, 0, 62, 0.12);
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(28, 20, 24, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tuition-year-card:hover,
.tuition-year-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(133, 0, 62, 0.35);
    box-shadow: 0 12px 28px rgba(28, 20, 24, 0.1);
    outline: none;
}

.tuition-year-card__media {
    flex: 0 0 96px;
    width: 96px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3e8ed;
}

.tuition-year-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tuition-year-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
}

.tuition-year-card__body strong {
    color: #85003e;
    font-size: 1.05rem;
}

.tuition-year-card__body em {
    font-style: normal;
    color: #5c4f56;
    font-size: 0.88rem;
    line-height: 1.7;
}

.tuition-table-fig {
    margin: 1.25rem 0;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(133, 0, 62, 0.12);
    background: #fff;
    box-shadow: 0 6px 18px rgba(28, 20, 24, 0.06);
}

.tuition-table-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.tuition-table-fig figcaption,
.tuition-year-back {
    margin-top: 0.75rem;
    text-align: center;
    color: #5c4f56;
    font-size: 0.88rem;
}

.tuition-year-back a {
    color: #85003e;
    font-weight: 700;
}

@media (min-width: 720px) {
    .tuition-year-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.1rem;
    }

    .tuition-year-card {
        flex-direction: column;
        padding: 0.75rem;
    }

    .tuition-year-card__media {
        flex: none;
        width: 100%;
        height: 140px;
    }
}

@media (max-width: 767px) {
    .page-eservice .eservice-notes,
    .page-eservice .eservice-steps {
        padding-right: 14px;
    }
}

/* tuition PDF + full-size images */

.tuition-pdf-block {
    margin: 1.25rem 0;
    padding: 1.25rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(133, 0, 62, 0.12);
    background: #fff;
    box-shadow: 0 6px 18px rgba(28, 20, 24, 0.06);
    text-align: center;
}

.tuition-pdf-block__title {
    margin: 0 0 0.85rem;
    color: #5c4f56;
    font-size: 0.95rem;
    line-height: 1.8;
}

.tuition-pdf-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: #85003e;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(133, 0, 62, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tuition-pdf-download:hover,
.tuition-pdf-download:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(133, 0, 62, 0.28);
    outline: none;
}

.tuition-year-card__pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: #85003e;
    background: linear-gradient(145deg, #f3e8ed, #e8d4de);
}

.tuition-table-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    image-rendering: auto;
}

/* Tuition table viewer — full image, download, lightbox */
.tuition-table-viewer {
    max-width: min(100%, 960px);
    margin: 1.25rem auto 1.5rem;
}

.tuition-table-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem;
    background: linear-gradient(180deg, #faf7f9 0%, #fff 100%);
    border-radius: 10px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.tuition-table-viewer .tuition-table-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
    border-radius: 8px;
    cursor: zoom-in;
    image-rendering: auto;
}

.tuition-table-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.85rem;
}

.tuition-table-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: #85003e;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(133, 0, 62, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tuition-table-download:hover,
.tuition-table-download:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(133, 0, 62, 0.28);
    outline: none;
}

@media (max-width: 767px) {
    .tuition-table-viewer .tuition-table-frame {
        padding: 0.35rem;
    }
}

/* ============================================================
   Modern Education Forms & Rules Styling (.page-eservice)
   ============================================================ */

.edu-forms-container {
    direction: rtl;
    margin-bottom: 2.5rem;
}

.edu-welcome-banner {
    background: linear-gradient(135deg, #fdf2f8 0%, #fff1f2 100%);
    border: 1px solid #fbcfe8;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.edu-banner-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #85003e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(133, 0, 62, 0.25);
}

.edu-banner-title {
    margin: 0 0 0.35rem 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #85003e;
}

.edu-banner-desc {
    margin: 0;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.7;
}

/* Toolbar: Search + Filter Chips */
.edu-toolbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.edu-search-box {
    position: relative;
    flex: 1 1 320px;
}

.edu-search-input {
    width: 100%;
    padding: 0.72rem 2.85rem 0.72rem 2.5rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.94rem;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.edu-search-input:focus {
    background: #ffffff;
    border-color: #85003e;
    box-shadow: 0 0 0 3px rgba(133, 0, 62, 0.12);
}

.edu-search-box::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.edu-search-clear {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    background: #cbd5e1;
    color: #334155;
    border-radius: 50%;
    font-size: 16px;
    line-height: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease;
}

.edu-search-clear:hover {
    background: #94a3b8;
    color: #ffffff;
}

.edu-chips-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.edu-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-family: inherit;
}

.edu-chip:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.edu-chip.active {
    background: #85003e;
    color: #ffffff;
    border-color: #85003e;
    box-shadow: 0 2px 6px rgba(133, 0, 62, 0.28);
}

.edu-search-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    white-space: nowrap;
}

/* Cards & Modern Table */
.edu-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.edu-table-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.1rem 1.5rem;
    border-bottom: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.edu-table-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.edu-table-title-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(133, 0, 62, 0.08);
    color: #85003e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.edu-count-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.edu-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.edu-table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.9rem 1rem;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
}

.edu-table thead th.th-title {
    text-align: right;
    padding-right: 1.5rem;
}

.edu-table tbody tr {
    transition: background-color 0.15s ease;
}

.edu-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.edu-table tbody tr:hover {
    background-color: #f1f5f9;
}

.edu-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.93rem;
}

.edu-table tbody tr:last-child td {
    border-bottom: none;
}

/* 3-Digit Code Badges */
.edu-idx-pill {
    display: inline-block;
    min-width: 68px;
    padding: 0.22rem 0.65rem;
    line-height: 1.5;
    text-align: center;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.edu-code-pill {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
    font-weight: 800;
}

.badge-file-type {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    margin-left: 0.6rem;
    letter-spacing: 0.5px;
}

.badge-pdf { background: #fee2e2; color: #991b1b; }
.badge-word { background: #dbeafe; color: #1e40af; }
.badge-zip { background: #fef3c7; color: #92400e; }
.badge-img { background: #d1fae5; color: #065f46; }

/* Download Buttons */
.edu-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.edu-btn-download::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* PDF Button (Burgundy / Brand Crimson) */
.btn-pdf {
    background: #85003e;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(133, 0, 62, 0.25);
}
.btn-pdf:hover {
    background: #680031;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(133, 0, 62, 0.35);
    color: #ffffff !important;
}
.btn-pdf::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

/* Word Button (Royal Navy) */
.btn-word {
    background: #1e40af;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(30, 64, 175, 0.25);
}
.btn-word:hover {
    background: #172554;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.35);
    color: #ffffff !important;
}
.btn-word::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

/* ZIP / Archive Button (Amber) */
.btn-zip {
    background: #b45309;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(180, 83, 9, 0.25);
}
.btn-zip:hover {
    background: #78350f;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(180, 83, 9, 0.35);
    color: #ffffff !important;
}
.btn-zip::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

/* Image Button (Teal) */
.btn-img {
    background: #0f766e;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 118, 110, 0.25);
}
.btn-img:hover {
    background: #115e59;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.35);
    color: #ffffff !important;
}
.btn-img::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
}

/* Fast Access Navigation Cards */
.edu-quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.edu-link-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    text-decoration: none !important;
    color: #1e293b;
    transition: all 0.22s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.edu-link-card:hover {
    border-color: #85003e;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(133, 0, 62, 0.12);
    color: #85003e;
}

.edu-link-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(133, 0, 62, 0.08);
    color: #85003e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
}

.edu-link-card-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.edu-link-card-desc {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.5;
}

/* No results alert */
.edu-no-results {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    margin-bottom: 2rem;
}

.d-md-none {
    display: none;
}
.d-md-inline-flex {
    display: inline-flex;
}

/* Mobile Responsive Transformation (<= 768px) */
@media (max-width: 768px) {
    .edu-welcome-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
        gap: 0.85rem;
    }

    .edu-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.85rem;
    }

    .edu-search-box {
        width: 100%;
    }

    .edu-chips-group {
        justify-content: center;
    }

    .edu-chip {
        flex: 1 1 auto;
        text-align: center;
        padding: 0.45rem 0.6rem;
        font-size: 0.8rem;
    }

    /* Transform Table to Native Mobile Cards */
    .edu-table thead {
        display: none !important;
    }

    .edu-table,
    .edu-table tbody,
    .edu-table tr,
    .edu-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .edu-table tbody tr {
        margin-bottom: 1rem;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 1.1rem;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    }

    .edu-table tbody tr:nth-child(even) {
        background-color: #ffffff;
    }

    .edu-table tbody td {
        padding: 0 !important;
        border: none !important;
    }

    .edu-table td.col-idx {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.6rem;
    }

    .edu-table td.col-title {
        font-size: 1.02rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.65;
        text-align: right !important;
        margin-bottom: 0.95rem;
    }

    .edu-table td.col-action {
        border-top: 1px dashed #e2e8f0 !important;
        padding-top: 0.85rem !important;
        text-align: center !important;
    }

    .edu-btn-download {
        display: flex !important;
        width: 100% !important;
        padding: 0.7rem 1rem;
        font-size: 0.92rem;
        border-radius: 10px;
        justify-content: center;
    }

    .d-md-none {
        display: inline-flex !important;
    }
    .d-md-inline-flex {
        display: none !important;
    }
}


/* ============================================================
   Tuition Schedule Full-Width & Full-Screen Enhancements
   ============================================================ */

.page-eservice:has(.tuition-hub),
.page-eservice:has(.tuition-year-page),
.page-eservice:has(.tuition-table-viewer) {
    max-width: 100% !important;
}

body:has(.tuition-hub) .container--page,
body:has(.tuition-year-page) .container--page,
body:has(.tuition-table-viewer) .container--page {
    max-width: 1360px !important;
    width: 96% !important;
}

.tuition-hub {
    width: 100% !important;
    max-width: 100% !important;
}

.tuition-year-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    width: 100% !important;
    margin: 1.5rem 0 2rem !important;
}

.tuition-year-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    border: 1px solid rgba(133, 0, 62, 0.16) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    box-sizing: border-box !important;
}

.tuition-year-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 40px rgba(133, 0, 62, 0.12) !important;
    border-color: rgba(133, 0, 62, 0.35) !important;
}

.tuition-year-card__media {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.tuition-year-card__media img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

.tuition-year-card__body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 1.25rem 0.5rem 0.5rem !important;
    text-align: center !important;
    gap: 0.5rem !important;
}

.tuition-year-card__body strong {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #85003e !important;
}

.tuition-year-card__body em {
    font-size: 1rem !important;
    color: #64748b !important;
    font-style: normal !important;
}

/* Subpage full-width enhancements */
.tuition-table-viewer {
    width: 100% !important;
    max-width: 100% !important;
}

.tuition-table-fig {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
}

.tuition-table-frame {
    width: 100% !important;
}

.tuition-table-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    cursor: zoom-in !important;
}

/* Lightbox Modal */
.tuition-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    box-sizing: border-box;
}

.tuition-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.tuition-modal__toolbar {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.tuition-modal__title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.tuition-modal__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tuition-modal__btn {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.tuition-modal__btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.tuition-modal__close {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.tuition-modal__close:hover {
    background: #e11d48;
}

.tuition-modal__img-wrap {
    max-width: 96vw;
    max-height: 88vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tuition-modal__img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
