.student-hub{background:linear-gradient(120deg,#0b3e66,#176a87);color:#fff;border-radius:22px;margin:0 0 26px;padding:26px;box-shadow:0 12px 30px #123c6418}.student-hub-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.student-hub-heading h2{font-size:24px;color:#fff;margin:8px 0}.student-hub-heading p{margin:0;color:#deedf4}.student-hub-eyebrow{font-size:13px;color:#b9dae8}.student-hub-heading>.btn{background:#fff;color:#124967;border:0;white-space:nowrap}.student-hub-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:24px}.student-hub-nav a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px;border-radius:12px;color:#fff;background:#ffffff12;text-decoration:none;border:1px solid #ffffff30;transition:background .15s}.student-hub-nav a:hover{background:#ffffff28}.student-hub-nav a.is-active{background:#fff;color:#124967;font-weight:700}.student-unread{display:inline-block;border-radius:20px;padding:3px 9px;font-size:12px;background:#fff0ce;color:#745015;white-space:nowrap}.student-section-description{color:#64748b;line-height:1.9}.student-empty{padding:34px 20px;background:#f4f8fc;border:1px dashed #d1deea;border-radius:16px;color:#52677a;text-align:center;margin:20px 0}.student-payment-card,.student-notice-card{border:1px solid #dce6ef;border-radius:16px;padding:22px;margin:18px 0;background:#fff;overflow-wrap:anywhere}.student-row-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.student-row-heading h2,.student-row-heading h3{margin:0;font-size:18px;color:#173e5d}.student-amount{display:block;margin:18px 0;font-size:26px;color:#124967;font-variant-numeric:tabular-nums}.student-amount small{font-size:13px;font-weight:400}.student-payment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px}.student-notice-card time{display:block;color:#64748b;font-size:13px;margin-top:10px}.student-notice-card p{line-height:2;white-space:normal}.student-state{background:#edf4fa;color:#245472;border-radius:20px;padding:5px 12px;font-size:13px}.student-header-user{font-size:13px;line-height:1.8}.student-hub~.student-portal-card{border:1px solid #e1e9f1}.student-hub~.student-portal-card .student-registration-card{box-shadow:none;border:1px solid #dce6ef;border-radius:16px}.student-hub-nav a:focus-visible{outline:3px solid #f5ca70;outline-offset:3px}
@media(max-width:760px){.student-hub{padding:20px 16px;border-radius:18px}.student-hub-heading{align-items:flex-start;flex-direction:column;gap:14px}.student-hub-heading h2{font-size:20px}.student-hub-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:20px}.student-hub-nav a{font-size:13px;flex-wrap:wrap}.student-payment-card,.student-notice-card{padding:16px}.student-amount{font-size:23px}.student-header-user{width:100%}.student-hub~.student-portal-card .student-registration-meta{grid-template-columns:1fr}}
@media print{.student-hub{display:none}.student-payment-card,.student-notice-card{break-inside:avoid}}

/* Internal student navigation: the first grid column is on the right in RTL. */
.student-portal-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px;align-items:start;direction:rtl}
.student-sidebar{position:sticky;top:130px;background:linear-gradient(155deg,#0b3e66,#176a87);color:#fff;border-radius:20px;padding:22px 16px;box-shadow:0 10px 26px #123c6418;min-width:0}
.student-sidebar-heading{padding:0 10px 18px;border-bottom:1px solid #ffffff24}
.student-sidebar-heading span{font-size:13px;color:#c2e0ee}
.student-sidebar-heading h2{color:#fff!important;font-size:20px;margin:6px 0 0}
.student-sidebar .student-hub-nav{display:flex;flex-direction:column;gap:8px;margin:18px 0}
.student-sidebar .student-hub-nav a{justify-content:space-between;padding:12px 14px;min-height:46px;box-sizing:border-box}
.student-sidebar .student-hub-nav a:last-child{color:#ffe1dd;margin-top:12px;border-color:#ffffff20}
.student-sidebar-menu>summary{display:none}
.student-sidebar-profile{display:block;border-top:1px solid #ffffff24;padding:18px 10px 0;color:#d5eaf5;text-decoration:none;font-size:13px}
.student-sidebar-profile:hover{color:#fff;text-decoration:underline}
.student-sidebar-profile:focus-visible{outline:3px solid #f5ca70;outline-offset:3px}
.student-portal-content{min-width:0;overflow-wrap:anywhere}
.student-portal-content .student-portal-card{border:1px solid #e1e9f1}
.student-portal-content .student-registration-card{box-shadow:none;border:1px solid #dce6ef;border-radius:16px}
@media(max-width:1000px){.student-portal-layout{grid-template-columns:215px minmax(0,1fr);gap:16px}}
@media(max-width:760px){.student-portal-layout{grid-template-columns:minmax(0,1fr);gap:18px}.student-sidebar{position:static;padding:16px;border-radius:16px}.student-sidebar-heading{display:none}.student-sidebar-menu>summary{display:list-item;color:#fff;font-weight:700;cursor:pointer;padding:5px 4px}.student-sidebar .student-hub-nav{margin:14px 0 0}.student-sidebar .student-hub-nav a{font-size:14px;flex-wrap:nowrap}.student-sidebar-profile{margin-top:14px;padding-top:12px}.student-portal-content .student-registration-meta{grid-template-columns:1fr}}
@media print{.student-portal-layout{display:block}.student-sidebar{display:none}}

.top nav .guest-account-link{display:inline-flex;align-items:center;gap:8px;font-family:inherit;font-size:14px;font-weight:500}.guest-account-link .fa-user{font-size:15px}

/* A single account entry in the header keeps primary navigation in the panel. */
.top nav .guest-account-link{min-height:44px;padding:8px 16px;box-sizing:border-box;border:1px solid #ffffff65;background:#ffffff12;border-radius:12px;font-weight:600;gap:10px}
.top nav .guest-account-link:hover{background:#ffffff25;border-color:#fff}
.account-menu{position:relative;max-width:100%}
.account-menu>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 14px;box-sizing:border-box;border:1px solid #ffffff45;border-radius:12px;cursor:pointer;list-style:none;font-size:14px;color:#fff}
.account-menu>summary::-webkit-details-marker{display:none}
.account-menu>summary>span{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-menu>summary .fa-chevron-down{font-size:10px;transition:transform .15s}
.account-menu[open]>summary .fa-chevron-down{transform:rotate(180deg)}
.account-menu-items{position:absolute;left:0;top:calc(100% + 8px);min-width:220px;max-width:calc(100vw - 40px);padding:8px;background:#fff;border:1px solid #dce6ef;border-radius:14px;box-shadow:0 12px 32px #0b29422b;z-index:30}
.account-menu-label{display:block;padding:8px 12px;font-size:12px;color:#64748b;border-bottom:1px solid #edf2f7;margin-bottom:4px}
.top nav .account-menu-items a{display:flex;justify-content:flex-start;color:#173e5d;width:100%;min-height:44px;box-sizing:border-box;padding:10px 12px;font-size:14px}
.top nav .account-menu-items a:hover{background:#f0f5fa}
.top nav .account-menu-items .account-menu-logout{color:#b42318;border-top:1px solid #edf2f7;border-radius:0 0 8px 8px;margin-top:4px}
.account-menu>summary:focus-visible,.top nav .guest-account-link:focus-visible{outline:3px solid #f5ca70;outline-offset:3px}
@media(max-width:760px){.top nav{width:100%}.account-menu-items{left:0}.account-menu>summary>span{max-width:calc(100vw - 130px)}}

/* Readable Persian typography and clear actions within the student workspace. */
main.container:has(.student-portal-layout){padding:32px 24px 48px!important}
main.container>.student-portal-layout{max-width:1240px;border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none;border-radius:0!important;grid-template-columns:232px minmax(0,1fr);gap:24px}
.student-portal-layout{font-size:15px;line-height:1.9}
.student-portal-layout .student-sidebar{background:#154b6b;box-shadow:0 4px 16px #163b5210;border-radius:16px;top:24px}
.student-portal-layout .student-sidebar-heading h2{font-size:20px!important;font-weight:700!important;line-height:1.7!important;letter-spacing:0}
.student-portal-layout .student-hub-nav a{font-size:14px;font-weight:500;min-height:48px;border-radius:10px}
.student-portal-layout .student-hub-nav a.is-active{font-weight:700}
.student-portal-layout .student-portal-card{padding:28px!important;border-radius:16px!important;box-shadow:0 4px 20px #163b5208!important;background:#fff!important}
.student-portal-layout h1{font-size:24px!important;font-weight:700!important;line-height:1.7!important;letter-spacing:0;margin:0 0 8px!important}
.student-portal-layout .card h2{font-size:19px!important;font-weight:700!important;line-height:1.85!important;letter-spacing:0;margin:0 0 12px!important}
.student-portal-layout .card h3{font-size:17px!important;font-weight:700!important;letter-spacing:0}
.student-portal-layout .student-portal-heading{align-items:flex-start;padding-bottom:22px;margin-bottom:24px;border-bottom:1px solid #e5ebf1}
.student-portal-layout .student-portal-heading p{font-size:14px!important;color:#526277;line-height:1.9;margin:4px 0 0}
.student-portal-layout .student-registration-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:18px}
.student-portal-layout .student-registration-card{padding:20px;gap:14px;border-radius:12px;background:#fff}
.student-portal-layout .student-registration-card-head{flex-direction:column;gap:10px}
.student-portal-layout .student-registration-card-head h2{font-size:18px!important;margin:0!important;overflow-wrap:normal;word-break:normal}
.student-portal-layout .student-registration-card-head .badge{flex-shrink:0;font-size:12px!important;font-weight:500!important}
.student-portal-layout .student-registration-card>.hint{margin:0!important;font-size:12px!important;line-height:1.9;color:#526277}
.student-portal-layout .student-registration-meta>div{grid-template-columns:100px minmax(0,1fr);align-items:baseline;gap:10px;padding:9px 0}
.student-portal-layout .student-registration-meta dt{font-size:13px;color:#526277}
.student-portal-layout .student-registration-meta dd{font-size:14px;font-weight:500;text-align:end;min-width:0;unicode-bidi:plaintext}
.student-portal-layout .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px!important;font-size:14px!important;font-weight:500!important;line-height:1.8!important;border-radius:10px!important;background:#f2f6fb!important;color:#17548a!important;border:1px solid #d5e2ef!important;box-shadow:none!important;transform:none!important;white-space:normal;text-align:center}
.student-portal-layout .btn.primary,.student-portal-layout .student-portal-heading>.btn{background:#0866b5!important;color:#fff!important;border-color:#0866b5!important;font-weight:700!important}
.student-portal-layout .btn:hover{background:#e6eff9!important}
.student-portal-layout .btn.primary:hover,.student-portal-layout .student-portal-heading>.btn:hover{background:#075698!important}
.student-portal-layout .btn:focus-visible{outline:3px solid #c58318;outline-offset:3px}
.student-portal-layout .student-registration-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:14px;border-top:1px solid #e5ebf1}
.student-portal-layout .student-registration-actions .student-action-main{grid-column:1/-1}
.student-portal-layout .student-registration-actions .btn{font-size:13px!important;padding:10px 8px!important;width:100%}
@media(max-width:1000px){main.container>.student-portal-layout{grid-template-columns:205px minmax(0,1fr);gap:18px}.student-portal-layout .student-portal-heading{flex-direction:column;gap:16px}}
@media(max-width:760px){main.container:has(.student-portal-layout){padding:18px 12px 32px!important}main.container>.student-portal-layout{grid-template-columns:minmax(0,1fr);gap:16px}.student-portal-layout .student-portal-card{padding:20px 16px!important}.student-portal-layout h1{font-size:21px!important}.student-portal-layout .student-registration-card{padding:16px}.student-portal-layout .student-portal-heading>.btn{width:100%}.student-portal-layout .student-registration-meta>div{grid-template-columns:90px minmax(0,1fr)}.student-portal-layout .student-registration-meta dd{font-size:13px}.student-portal-layout .student-sidebar{position:static}.student-portal-layout .student-registration-actions{grid-template-columns:1fr}.student-portal-layout .student-registration-card-head h2{font-size:17px!important}}
@media print{main.container>.student-portal-layout{display:block}.student-portal-layout .student-registration-actions,.student-portal-heading>.btn{display:none!important}.student-portal-layout .student-registration-card{break-inside:avoid}}

/* Shared navigation and responsive registration forms. */
.student-nav-label{display:flex;align-items:center;gap:10px;min-width:0}
.student-nav-label>i{width:18px;flex:0 0 18px;text-align:center;font-size:16px}
.student-nav-label>span{min-width:0;line-height:1.8}
.student-portal-layout .student-sidebar .student-hub-nav a{justify-content:flex-start;gap:8px;padding:12px 10px}
.student-sidebar .student-unread{margin-inline-start:auto;font-size:11px;padding:2px 6px}
.student-portal-content>.ux-card,.student-portal-content>section.card{padding:28px!important;border-radius:16px!important;box-shadow:0 4px 20px #163b5208!important;min-width:0}
.student-portal-content .ux-card-head{margin-bottom:24px}
.student-portal-content .ux-card-head h2{font-size:22px!important;font-weight:700!important;line-height:1.8!important;margin:8px 0 12px!important;letter-spacing:0}
.student-portal-content .ux-card-head p{font-size:14px!important;line-height:2;color:#526277}
.student-portal-content .ux-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
.student-portal-content .ux-field{min-width:0}
.student-portal-content .ux-field label{font-size:14px!important;font-weight:500!important;margin:0 0 8px}
.student-portal-content .ux-field input,.student-portal-content .ux-field select,.student-portal-content .ux-field textarea{font-size:16px!important;min-height:48px;border-radius:10px!important;box-shadow:none!important;max-width:100%}
.student-portal-content .ux-field small{display:block;font-size:12px;line-height:1.9;margin-top:6px;color:#526277}
.student-portal-content .ux-field :is(input,select,textarea):focus-visible{outline:3px solid #a7caed;outline-offset:2px}
.student-portal-content .steps{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px!important;width:100%;max-width:100%!important;margin:0 0 20px!important}
.student-portal-content .steps>.step{padding:8px 4px!important;min-width:0;font-size:12px!important;font-weight:500!important;gap:4px!important;border-radius:10px!important;box-shadow:none!important;white-space:normal}
.student-portal-content .steps>.step span{flex-shrink:0;width:22px;height:22px;margin:0!important}
@media(max-width:1100px){.student-portal-content .steps{grid-template-columns:repeat(3,minmax(0,1fr))}.student-portal-content .ux-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 .student-portal-layout .student-sidebar{padding:12px}
 .student-sidebar-menu>summary{min-height:44px;line-height:2;padding:6px 8px;font-size:14px}
 .student-portal-layout .student-sidebar .student-hub-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 0}
 .student-portal-layout .student-sidebar .student-hub-nav a{margin:0;min-height:48px;padding:10px 8px;font-size:13px;align-items:center;flex-wrap:wrap}
 .student-sidebar .student-nav-label{gap:6px}
 .student-sidebar .student-hub-nav a:last-child{grid-column:1/-1;justify-content:center}
 .student-portal-content>.ux-card,.student-portal-content>section.card{padding:20px 16px!important}
 .student-portal-content .ux-card-head h2{font-size:20px!important}
 .student-portal-content .ux-grid{gap:18px}
 .student-portal-content .ux-actions{display:flex;flex-wrap:wrap;gap:10px}
 .student-portal-content .ux-actions>*{flex:1 1 100%;width:100%;min-height:48px}
 .student-portal-content .steps>.step{font-size:12px!important;min-height:44px!important}
 .top:has(.account-menu){padding:12px 16px}
 .top:has(.account-menu) nav{overflow:visible}
}
@media(max-width:360px){.student-portal-layout .student-sidebar .student-hub-nav{grid-template-columns:minmax(0,1fr)}}

/* Compact header identity with the service title below the university logo. */
.top .brand{flex-direction:column;align-items:flex-start;gap:5px;text-align:right}
.top .brand img,.top .brand .brand-logo-link img{height:36px!important;max-height:36px!important;width:auto!important;object-fit:contain}
.top .brand .brand-logo-link{display:flex!important;justify-content:flex-start;line-height:1}
.top .brand span{font-size:12px;line-height:1.8}
@media(max-width:760px){.top .brand img,.top .brand .brand-logo-link img{height:32px!important;max-height:32px!important}.top .brand span{font-size:11px}}

/* Preserve the source logo edges without hover scaling or glow. */
.top .brand img,.top .brand a:hover img{image-rendering:auto;transform:none!important;filter:none!important;opacity:1;transition:none}
