:root {
    --navy-950: #12191e;
    --navy-900: #171f25;
    --navy-850: #203035;
    --navy-800: #29464a;
    --blue-700: #287f7a;
    --blue-600: #3f9891;
    --blue-500: #59aaa4;
    --cyan-400: #05b6d7;
    --gold-500: #f3aa34;
    --gold-400: #ffc45c;
    --green-500: #22a875;
    --red-500: #dc4e67;
    --purple-500: #8a67df;
    --orange-500: #ec8b29;
    --ink-900: #17242a;
    --ink-700: #465d61;
    --ink-500: #74878a;
    --line: #d9e7e6;
    --surface: #ffffff;
    --surface-soft: #f5f9f8;
    --page: #edf5f4;
    --shadow-sm: 0 8px 22px rgba(23, 48, 51, .08);
    --shadow-md: 0 18px 45px rgba(19, 39, 42, .14);
    --shadow-blue: 0 14px 36px rgba(63, 152, 145, .22);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --sidebar-width: 220px;
    --rail-width: 338px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--ink-900);
    background: var(--navy-950);
    font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    direction: rtl;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
    direction: ltr;
    background: linear-gradient(180deg, #172125 0, #29464a 120px, var(--page) 260px, var(--page) 100%);
}
body.sidebar-right .app-shell { grid-template-columns: minmax(0, 1fr) var(--sidebar-width); }
body.sidebar-right .sidebar { grid-column: 2; grid-row: 1; }
body.sidebar-right .main-shell { grid-column: 1; grid-row: 1; }

.main-shell { min-width: 0; direction: rtl; }

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
    display: flex;
    flex-direction: column;
    padding: 20px 14px 14px;
    color: #eef8ff;
    background:
        linear-gradient(180deg, rgba(49, 125, 120, .97), rgba(23, 31, 37, .99)),
        url("../images/pattern.svg") center/cover;
    border-inline-end: 1px solid rgba(5, 182, 215, .22);
    box-shadow: inset -1px 0 rgba(255,255,255,.04), 10px 0 28px rgba(1, 13, 24, .22);
    direction: rtl;
}
body.sidebar-right .sidebar { border-inline-end: 0; border-inline-start: 1px solid rgba(104, 195, 255, .16); }
.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 28%);
}
.sidebar-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; position: relative; z-index: 1; }
.mini-counter {
    flex: 1;
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(128, 209, 255, .28);
    background: linear-gradient(145deg, rgba(18, 91, 143, .5), rgba(4, 32, 55, .65));
    border-radius: 16px;
    box-shadow: inset 0 1px rgba(255,255,255,.1), var(--shadow-sm);
}
.mini-counter-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--gold-400);
    font-size: 24px;
    border-radius: 12px;
    background: rgba(2, 22, 39, .38);
}
.mini-counter small, .mini-counter strong { display: block; }
.mini-counter small { font-size: 12px; color: #cce9fb; }
.mini-counter strong { font-size: 24px; color: var(--gold-400); line-height: 1.1; }
.sidebar-close { display: none; width: 38px; height: 38px; border: 0; border-radius: 10px; color: #fff; background: rgba(255,255,255,.09); }

.sidebar-nav { display: flex; flex-direction: column; gap: 5px; position: relative; z-index: 1; overflow: auto; scrollbar-width: thin; padding-inline: 2px; }
.sidebar-link {
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #d6e8f5;
    font-size: 12.8px;
    font-weight: 700;
    transition: .2s ease;
}
.sidebar-link i { width: 20px; text-align: center; color: #9fd8ff; font-size: 14px; }
.sidebar-link:hover { color: #fff; background: rgba(31, 132, 197, .18); transform: translateX(2px); }
.sidebar-link.is-active {
    color: #fff;
    border-color: rgba(5, 182, 215, .34);
    background: linear-gradient(90deg, rgba(5, 182, 215, .54), rgba(63, 152, 145, .28));
    box-shadow: inset 0 1px rgba(255,255,255,.08), 0 8px 18px rgba(3, 27, 45, .22);
}
.sidebar-link.is-active::after {
    content: "";
    position: absolute;
    inset-inline-start: -3px;
    width: 3px;
    height: 24px;
    border-radius: 4px;
    background: var(--gold-400);
    box-shadow: 0 0 12px rgba(255, 196, 92, .8);
}
.nav-badge { margin-inline-start: auto; min-width: 22px; height: 20px; display: grid; place-items: center; padding: 0 6px; border-radius: 20px; background: var(--red-500); color: #fff; font-size: 10px; }
.sidebar-profile {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 9px;
    border: 1px solid rgba(116, 201, 255, .19);
    border-radius: 14px;
    background: rgba(12, 71, 112, .32);
    position: relative;
    z-index: 1;
    color: #fff;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}
.sidebar-profile:hover { border-color: rgba(116, 201, 255, .42); background: rgba(12, 83, 132, .5); }
.avatar-ring {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #b9e9ff;
    font-size: 20px;
    border: 2px solid #46bdf2;
    background: #0d466f;
    box-shadow: 0 0 18px rgba(41, 171, 239, .35);
}
.avatar-ring span { position: absolute; left: 0; bottom: 0; width: 10px; height: 10px; background: #2bd785; border: 2px solid #0d466f; border-radius: 50%; }
.sidebar-profile strong, .sidebar-profile small { display: block; }
.sidebar-profile strong { font-size: 11.5px; }
.sidebar-profile small { color: #a7c9df; font-size: 9px; margin-top: 3px; }
.logout-button {
    margin-top: 12px;
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(64, 174, 237, .34);
    border-radius: 9px;
    color: #dff4ff;
    background: linear-gradient(180deg, rgba(18, 101, 157, .62), rgba(7, 55, 91, .55));
    font-size: 12px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.sidebar-overlay { display: none; }

.site-header {
    position: relative;
    min-height: 120px;
    display: grid;
    grid-template-columns: 1fr minmax(430px, 1.45fr) 1fr;
    align-items: center;
    gap: 24px;
    padding: 16px 28px 12px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(23, 31, 37, .98), rgba(49, 125, 120, .94), rgba(23, 31, 37, .98)),
        url("../images/pattern.svg") center/cover no-repeat;
    border-bottom: 3px solid var(--cyan-400);
    overflow: hidden;
}
.site-header::after {
    content: "";
    position: absolute;
    inset: auto 24% -80px 24%;
    height: 130px;
    border-radius: 50%;
    background: rgba(5, 182, 215, .12);
    filter: blur(35px);
}
.brand-block, .header-title, .header-meta, .mobile-menu-button { position: relative; z-index: 1; }
.brand-block { display: flex; align-items: center; gap: 13px; justify-self: start; }
.brand-logo { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,.25)); }
.brand-block strong, .brand-block span { display: block; }
.brand-block strong { font-size: 14px; margin-bottom: 5px; }
.brand-block span { font-size: 12px; color: #e0f1fb; line-height: 1.8; font-weight: 600; }
.header-title { text-align: center; }
.header-title .eyebrow { margin: 0 0 3px; color: var(--gold-400); font-size: 10px; letter-spacing: .15em; }
.header-title h1 { margin: 0; font-size: clamp(24px, 2.15vw, 37px); line-height: 1.3; font-weight: 900; text-shadow: 0 4px 14px rgba(0,0,0,.25); }
.header-title > p:last-child { margin: 5px 0 0; color: #bfd8e8; font-size: 14px; }
.header-meta { display: flex; justify-content: flex-end; gap: 10px; direction: ltr; }
.meta-card {
    min-width: 166px;
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid rgba(101, 194, 255, .26);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(17, 81, 128, .45), rgba(5, 34, 58, .68));
    box-shadow: inset 0 1px rgba(255,255,255,.08), 0 12px 28px rgba(0,0,0,.16);
    direction: rtl;
}
.meta-card.compact { min-width: 142px; }
.meta-card > i { color: var(--gold-400); font-size: 25px; }
.meta-card small, .meta-card strong, .meta-card em { display: block; }
.meta-card small { font-size: 10px; color: #bad9ec; }
.meta-card strong { font-size: 13px; margin: 2px 0; }
.meta-card em { font-style: normal; font-size: 9px; color: var(--gold-400); }
.mobile-menu-button { display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; color: #fff; background: rgba(11, 90, 145, .55); }

.ticker {
    min-height: 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 0 28px;
    color: #dfefff;
    background: #202d31;
    border-bottom: 1px solid rgba(5, 182, 215, .2);
    font-size: 10.5px;
}
.ticker-label { color: var(--gold-400); font-weight: 800; white-space: nowrap; }
.ticker-label i { margin-inline-end: 5px; }
.ticker-track { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 9px; overflow: hidden; }
.ticker-track p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-dot { width: 5px; height: 5px; background: var(--gold-400); border-radius: 50%; box-shadow: 0 0 9px rgba(255, 196, 92, .9); }
.ticker-important { color: #f5bd4e; font-weight: 800; white-space: nowrap; }

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--rail-width);
    gap: 14px;
    padding: 14px;
    direction: ltr;
    align-items: start;
}
.page-grid.without-rail { grid-template-columns: minmax(0, 1fr); }
.page-content, .right-rail { direction: rtl; min-width: 0; }
.page-content {
    min-height: calc(100vh - 230px);
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 10px 32px rgba(8, 40, 65, .14);
    border: 1px solid rgba(215, 227, 237, .9);
}
.right-rail { display: flex; flex-direction: column; gap: 12px; }

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.search-box {
    min-width: 250px;
    max-width: 340px;
    flex: 1;
    height: 43px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(10, 47, 74, .03);
}
.search-box i { color: var(--blue-600); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink-900); background: transparent; font-size: 12px; }
.filter-chips { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-chip {
    min-height: 35px;
    padding: 7px 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--ink-700);
    background: #f5f7fa;
    font-size: 11px;
    font-weight: 700;
    transition: .2s ease;
}
.filter-chip:hover, .filter-chip.active { color: #fff; background: linear-gradient(180deg, #3f9891, #287f7a); box-shadow: 0 7px 16px rgba(40, 127, 122, .2); }

.home-primary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 252px;
    gap: 14px;
    align-items: stretch;
}
.hero-card {
    position: relative;
    min-height: 245px;
    overflow: hidden;
    border-radius: 14px;
    color: #fff;
    background: var(--navy-900);
    box-shadow: var(--shadow-md);
}
.hero-card > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 31, 37, .97) 5%, rgba(47, 116, 112, .8) 48%, rgba(23, 31, 37, .16) 100%); }
.hero-content { position: relative; z-index: 2; width: 57%; min-width: 440px; min-height: 245px; display: flex; flex-direction: column; justify-content: center; padding: 25px 30px; }
.hero-badge { align-self: flex-start; padding: 4px 11px; border-radius: 0 0 8px 8px; color: #563700; background: linear-gradient(180deg, #ffd37c, #f1a929); font-size: 10px; font-weight: 900; position: absolute; top: 0; right: 20px; }
.hero-content h2 { margin: 0 0 9px; font-size: clamp(24px, 2vw, 34px); line-height: 1.45; }
.hero-content h2 span { color: var(--gold-400); display: block; }
.hero-content p { margin: 0; color: #dcebf4; line-height: 1.85; font-size: 12px; }
.hero-actions { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.primary-button, .ghost-button, .outline-button {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    transition: .2s ease;
}
.primary-button { color: #fff; background: linear-gradient(180deg, #4aa39d, #287f7a); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 9px 18px rgba(31, 105, 101, .22); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 13px 24px rgba(3, 37, 63, .3); }
.ghost-button { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); }
.outline-button { color: var(--blue-700); background: #fff; border: 1px solid #bcd9eb; }
.hero-date { color: #d9e8f2; font-size: 10px; white-space: nowrap; }
.hero-dots { position: absolute; z-index: 2; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.hero-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.hero-dots span.active { width: 18px; border-radius: 8px; background: #fff; }

.quick-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: #fbfcfd;
    box-shadow: var(--shadow-sm);
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.section-heading h2, .section-heading h3 { margin: 0; color: #193b5b; font-size: 15px; }
.section-heading a { color: var(--blue-700); font-size: 10px; font-weight: 800; }
.section-heading a i { margin-inline-start: 5px; }
.quick-announcement-list { display: flex; flex-direction: column; gap: 8px; }
.quick-announcement {
    display: grid;
    grid-template-columns: 40px minmax(0,1fr);
    gap: 9px;
    align-items: center;
    min-height: 53px;
    padding: 7px;
    border: 1px solid #e4ebf1;
    border-radius: 9px;
    background: #fff;
    transition: .2s ease;
}
.quick-announcement:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(7, 52, 86, .08); }
.quick-announcement .doc-icon { width: 36px; height: 39px; display: grid; place-items: center; border-radius: 8px; font-size: 18px; }
.doc-icon.blue { color: #1d77bf; background: #eaf5ff; }
.doc-icon.red { color: #d54159; background: #fff0f3; }
.doc-icon.green { color: #178d62; background: #eafaf4; }
.doc-icon.orange { color: #d87417; background: #fff5e9; }
.doc-icon.purple { color: #7853ca; background: #f4f0ff; }
.quick-announcement strong, .quick-announcement small { display: block; }
.quick-announcement strong { color: #24425e; font-size: 10.5px; line-height: 1.55; }
.quick-announcement small { color: #8a98a6; font-size: 8.5px; margin-top: 3px; }

.content-section { margin-top: 16px; }
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.news-card {
    overflow: hidden;
    border: 1px solid #dde6ee;
    border-radius: 12px;
    background: #fff;
    transition: .25s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(7, 46, 75, .12); }
.news-card-image { position: relative; height: 105px; overflow: hidden; background: #dfe9f0; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: .35s ease; }
.news-card:hover img { transform: scale(1.06); }
.news-card-tag { position: absolute; top: 8px; right: 8px; padding: 3px 8px; color: #fff; background: rgba(6, 43, 70, .88); border-radius: 6px; font-size: 8px; font-weight: 800; backdrop-filter: blur(5px); }
.news-card-body { padding: 10px 11px 9px; }
.news-card h3 { margin: 0; font-size: 11.2px; line-height: 1.7; color: #193a58; }
.news-card p { margin: 5px 0 8px; color: #6f7f8f; font-size: 9px; line-height: 1.7; min-height: 30px; }
.news-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #8492a0; font-size: 8px; }

.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.stat-card { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #dfe6ed; border-radius: 11px; background: linear-gradient(180deg, #fff, #fbfcfd); box-shadow: 0 6px 16px rgba(7, 43, 69, .04); }
.stat-card .stat-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-size: 20px; }
.stat-card small, .stat-card strong, .stat-card em { display: block; }
.stat-card small { color: #5b6d7d; font-size: 9px; }
.stat-card strong { font-size: 25px; line-height: 1.15; margin: 3px 0; }
.stat-card em { font-style: normal; color: #8b98a4; font-size: 8px; }
.tone-blue .stat-icon { color: #2878d1; background: #edf5ff; } .tone-blue strong { color: #1f65b4; }
.tone-green .stat-icon { color: #169668; background: #ebfbf5; } .tone-green strong { color: #16825d; }
.tone-purple .stat-icon { color: #8658d8; background: #f5efff; } .tone-purple strong { color: #7d53c7; }
.tone-orange .stat-icon { color: #dd7c1d; background: #fff5e8; } .tone-orange strong { color: #d67116; }
.tone-red .stat-icon { color: #d64b63; background: #fff0f3; } .tone-red strong { color: #c94259; }

.bottom-content-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 12px; margin-top: 14px; }
.gallery-strip, .posts-strip { border-top: 1px solid #e3e9ef; padding-top: 10px; min-width: 0; }
.gallery-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.gallery-thumb { position: relative; height: 80px; overflow: hidden; border-radius: 9px; background: #dbe6ee; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(2, 25, 43, .7)); opacity: 0; transition: .2s; }
.gallery-thumb:hover::after { opacity: 1; }
.post-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.post-card { min-height: 80px; display: flex; flex-direction: column; justify-content: flex-end; padding: 11px; border-radius: 9px; color: #fff; overflow: hidden; position: relative; }
.post-card::before { content: ""; position: absolute; width: 75px; height: 75px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; top: -26px; left: -20px; }
.post-card.cyan { background: linear-gradient(135deg, #087aa3, #08a6bf); }
.post-card.orange { background: linear-gradient(135deg, #dc7a0c, #f1ad2d); }
.post-card.blue { background: linear-gradient(135deg, #093e83, #1274c7); }
.post-card.purple { background: linear-gradient(135deg, #3a267d, #6950c0); }
.post-card span { position: relative; font-size: 8px; color: rgba(255,255,255,.78); }
.post-card strong { position: relative; font-size: 10px; line-height: 1.5; }

.rail-panel {
    overflow: hidden;
    border: 1px solid rgba(102, 183, 234, .25);
    border-radius: 15px;
    color: #e8f6ff;
    background: linear-gradient(180deg, #315f60, #171f25);
    box-shadow: 0 12px 28px rgba(2, 26, 46, .16), inset 0 1px rgba(255,255,255,.05);
}
.panel-heading { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; font-size: 14px; font-weight: 900; }
.panel-heading span { display: flex; align-items: center; gap: 8px; }
.light-heading { color: #ecf8ff; background: linear-gradient(180deg, rgba(24, 100, 154, .45), rgba(9, 48, 80, .15)); }
.gold-heading { min-height: 41px; color: var(--gold-400); font-size: 11px; border-bottom: 1px solid rgba(118, 194, 239, .15); }
.media-slide { position: relative; height: 260px; margin: 0 12px 12px; overflow: hidden; border-radius: 10px; background: #102f47; }
.media-slide img { width: 100%; height: 100%; object-fit: cover; }
.media-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 34%, rgba(2, 20, 35, .92)); }
.media-slide-overlay { position: absolute; z-index: 2; inset: auto 20px 35px; text-align: center; }
.media-slide-overlay span { display: block; font-size: 21px; font-weight: 900; }
.media-slide-overlay strong { display: block; margin-top: 7px; font-size: 12px; line-height: 1.7; }
.slide-arrow { position: absolute; z-index: 3; top: 50%; width: 33px; height: 33px; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; background: rgba(3, 28, 46, .65); }
.slide-arrow.prev { right: 10px; } .slide-arrow.next { left: 10px; }
.slide-dots { position: absolute; z-index: 3; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.slide-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.slide-dots span.active { width: 16px; border-radius: 6px; background: #fff; }
.rail-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rail-list-item { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 10px; border-bottom: 1px solid rgba(123, 196, 240, .1); }
.rail-list-item > i { color: #70c6f4; }
.rail-list-item strong, .rail-list-item small { display: block; }
.rail-list-item strong { font-size: 8.5px; line-height: 1.35; }
.rail-list-item small { color: #99bad0; font-size: 7px; margin-top: 2px; }
.rail-more { min-height: 29px; display: flex; align-items: center; justify-content: center; margin: 7px; border-radius: 6px; color: #fff; background: linear-gradient(180deg, #3f9891, #287f7a); font-size: 8.5px; font-weight: 800; }
.rail-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 7px; }
.rail-gallery-grid a { height: 55px; overflow: hidden; border-radius: 6px; border: 1px solid rgba(255,255,255,.14); }
.rail-gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.leadership-banner { min-height: 135px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; border: 1px solid #d5e5f2; border-radius: 14px; color: #0b4778; background: linear-gradient(100deg, #fff 0 52%, #e4f2fb 52% 100%); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.leadership-banner::after { content: ""; position: absolute; left: 22px; bottom: -18px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(16, 104, 166, .18), transparent 70%); }
.leadership-banner span, .leadership-banner strong, .leadership-banner small { display: block; position: relative; z-index: 1; }
.leadership-banner span { color: var(--orange-500); font-size: 9px; font-weight: 900; }
.leadership-banner strong { max-width: 190px; margin: 5px 0; font-size: 24px; line-height: 1.35; }
.leadership-banner small { font-size: 9px; color: #697c8d; }
.leadership-banner > i { position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue-700); }
.values-panel { min-height: 81px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; padding: 10px; }
.value-item { display: flex; align-items: center; gap: 7px; padding: 4px 7px; border-inline-end: 1px solid rgba(123, 196, 240, .14); }
.value-item:last-child { border-inline-end: 0; }
.value-item > i { color: #73c3ef; font-size: 20px; }
.value-item strong, .value-item small { display: block; }
.value-item strong { font-size: 8.5px; } .value-item small { font-size: 7px; color: #a9c6d8; }

.page-hero {
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px 30px;
    overflow: hidden;
    border-radius: 15px;
    color: #fff;
    background:
        linear-gradient(100deg, rgba(96, 176, 175, .98), rgba(23, 31, 37, .92)),
        url("../images/pattern.svg") center/cover;
    box-shadow: var(--shadow-blue);
}
.page-hero::after { content: ""; position: absolute; width: 270px; height: 270px; left: -80px; top: -125px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.page-hero-content, .page-hero-icon { position: relative; z-index: 1; }
.page-hero .breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: #aad7f1; font-size: 9px; }
.page-hero h1 { margin: 0; font-size: 28px; }
.page-hero p { max-width: 620px; margin: 7px 0 0; color: #d6e8f3; font-size: 11px; line-height: 1.8; }
.page-hero-icon { width: 76px; height: 76px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 20px; color: var(--gold-400); font-size: 34px; border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.08); box-shadow: inset 0 1px rgba(255,255,255,.12); }

.listing-toolbar { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.result-count { color: #66798b; font-size: 10px; }
.result-count strong { color: var(--blue-700); }
.select-control { height: 40px; min-width: 150px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: #42566a; background: #fff; outline: 0; font-size: 10px; }

.news-listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 15px; }
.large-news-card { overflow: hidden; border: 1px solid #dfe7ee; border-radius: 14px; background: #fff; transition: .25s ease; }
.large-news-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(7, 45, 73, .12); }
.large-news-image { position: relative; height: 190px; overflow: hidden; }
.large-news-image img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.large-news-card:hover img { transform: scale(1.05); }
.large-news-image .category-pill { position: absolute; right: 12px; top: 12px; padding: 5px 10px; border-radius: 7px; color: #fff; background: rgba(5, 49, 82, .9); font-size: 9px; font-weight: 800; }
.large-news-body { padding: 15px; }
.large-news-body h2 { margin: 0; font-size: 15px; line-height: 1.65; color: #173b59; }
.large-news-body p { margin: 8px 0 12px; color: #6d7e8d; font-size: 10px; line-height: 1.8; }
.card-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #edf1f4; color: #8997a4; font-size: 8.5px; }
.card-meta-row span { display: flex; align-items: center; gap: 5px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; }
.pagination a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dce5ec; border-radius: 8px; color: #54697b; background: #fff; font-size: 10px; font-weight: 800; }
.pagination a.active { color: #fff; background: var(--blue-700); border-color: var(--blue-700); }

.announcement-list { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.announcement-row { display: grid; grid-template-columns: 58px minmax(0,1fr) 140px auto; align-items: center; gap: 14px; padding: 13px; border: 1px solid #dfe7ee; border-radius: 12px; background: #fff; transition: .2s; }
.announcement-row:hover { border-color: #bcd6e8; box-shadow: 0 10px 24px rgba(7, 44, 70, .08); }
.announcement-file { width: 50px; height: 55px; display: grid; place-items: center; border-radius: 10px; font-size: 23px; }
.announcement-cover { width: 50px; height: 55px; display: block; overflow: hidden; border: 1px solid #d8e3eb; border-radius: 8px; background: #eef4f8; }
.announcement-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.announcement-file.blue { color: #267fc1; background: #eaf5ff; } .announcement-file.red { color: #d84b62; background: #fff0f3; } .announcement-file.green { color: #1c9369; background: #eafaf4; } .announcement-file.orange { color: #dc7b1c; background: #fff5e8; } .announcement-file.purple { color: #7d55c7; background: #f4efff; }
.announcement-main span { display: inline-block; padding: 3px 8px; border-radius: 20px; background: #f0f5f9; color: #5d7183; font-size: 8px; font-weight: 800; }
.announcement-main h3 { margin: 6px 0 0; color: #183b59; font-size: 13px; }
.announcement-date { color: #7f8e9b; font-size: 9px; }
.download-button { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid #cfe0ec; border-radius: 8px; color: var(--blue-700); background: #f8fbfd; font-size: 9px; font-weight: 800; }
.important-label { color: var(--red-500); margin-inline-start: 6px; }

.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 15px; }
.event-card { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 14px; padding: 14px; border: 1px solid #dfe7ee; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.event-date-box { min-height: 106px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; color: #fff; background: linear-gradient(180deg, #0e72b8, #07456f); }
.event-date-box strong { font-size: 32px; line-height: 1; }
.event-date-box span { margin-top: 7px; font-size: 11px; }
.event-card h3 { margin: 0; color: #173b59; font-size: 15px; }
.event-card p { margin: 5px 0 9px; color: #6f7f8e; font-size: 10px; line-height: 1.7; }
.event-meta { display: flex; gap: 12px; flex-wrap: wrap; color: #67798a; font-size: 9px; }
.event-meta span { display: flex; align-items: center; gap: 5px; }
.capacity-line { margin-top: 11px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 8px; background: #e8eef3; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0e7ac2, #29b2eb); }
.capacity-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; color: #7c8a97; font-size: 8px; }
.event-status { display: inline-block; margin-top: 10px; padding: 4px 9px; border-radius: 20px; color: #157d59; background: #e8faf3; font-size: 8px; font-weight: 800; }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 15px; }
.course-card { overflow: hidden; border: 1px solid #dfe7ee; border-radius: 14px; background: #fff; transition: .25s; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(8, 47, 75, .11); }
.course-image { position: relative; height: 145px; overflow: hidden; }
.course-image img { width: 100%; height: 100%; object-fit: cover; }
.course-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(3, 28, 46, .54)); }
.course-type { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 4px 9px; border-radius: 7px; color: #fff; background: rgba(7, 62, 102, .9); font-size: 8px; font-weight: 800; }
.course-code { position: absolute; z-index: 2; bottom: 9px; left: 10px; color: #fff; font-size: 8px; }
.course-body { padding: 14px; }
.course-body h3 { margin: 0 0 9px; color: #173b59; font-size: 13px; line-height: 1.6; }
.course-info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; color: #657889; font-size: 8.5px; }
.course-info-list span { display: flex; align-items: center; gap: 5px; }
.course-footer { margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf1f4; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 20px; color: #137452; background: #e9faf3; font-size: 8px; font-weight: 800; }
.course-details-link { color: var(--blue-700); font-size: 9px; font-weight: 800; }

.gallery-masonry { columns: 3 240px; column-gap: 12px; margin-top: 15px; }
.gallery-item { position: relative; break-inside: avoid; margin-bottom: 12px; overflow: hidden; border-radius: 13px; background: #dce8ef; cursor: zoom-in; }
.gallery-item:nth-child(3n+1) { height: 220px; } .gallery-item:nth-child(3n+2) { height: 170px; } .gallery-item:nth-child(3n) { height: 250px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay { position: absolute; inset: auto 0 0; padding: 28px 13px 12px; color: #fff; background: linear-gradient(180deg, transparent, rgba(2, 24, 41, .9)); transform: translateY(35%); transition: .25s; }
.gallery-item:hover .gallery-item-overlay { transform: translateY(0); }
.gallery-item-overlay strong, .gallery-item-overlay small { display: block; }
.gallery-item-overlay strong { font-size: 11px; } .gallery-item-overlay small { margin-top: 4px; color: #c9dce8; font-size: 8px; }

.report-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 15px; }
.report-kpi { padding: 17px; border: 1px solid #dfe7ee; border-radius: 13px; background: #fff; }
.report-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.report-kpi-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--blue-700); background: #edf6fc; font-size: 18px; }
.report-kpi small, .report-kpi strong { display: block; }
.report-kpi small { color: #738493; font-size: 9px; }
.report-kpi strong { margin-top: 5px; color: #173b59; font-size: 27px; }
.report-kpi em { color: #1b9a6e; font-style: normal; font-size: 8px; }
.dashboard-panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 14px; }
.dashboard-panel { padding: 15px; border: 1px solid #dfe7ee; border-radius: 14px; background: #fff; }
.bar-chart { height: 220px; display: flex; align-items: flex-end; gap: 18px; padding: 22px 10px 0; border-bottom: 1px solid #dfe6ed; background: repeating-linear-gradient(to top, #f2f5f7 0 1px, transparent 1px 45px); }
.bar-column { flex: 1; min-width: 30px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; height: 100%; }
.bar-column span { width: min(42px, 80%); min-height: 12px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #28a9e8, #0a5c96); box-shadow: 0 6px 14px rgba(10, 92, 150, .16); }
.bar-column small { color: #6d7e8d; font-size: 8px; white-space: nowrap; }
.donut-wrap { min-height: 220px; display: grid; place-items: center; }
.donut { width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#0b6eaf 0 48%, #21a77a 48% 76%, #f0a32f 76% 90%, #8a67df 90% 100%); position: relative; }
.donut::after { content: ""; width: 92px; height: 92px; border-radius: 50%; background: #fff; }
.donut-label { position: absolute; z-index: 2; text-align: center; }
.donut-label strong, .donut-label small { display: block; } .donut-label strong { font-size: 23px; color: #173b59; } .donut-label small { font-size: 8px; color: #7a8996; }
.legend-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; color: #657788; font-size: 8px; }
.legend-list span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; background: #0b6eaf; }
.legend-list span:nth-child(2)::before { background: #21a77a; } .legend-list span:nth-child(3)::before { background: #f0a32f; } .legend-list span:nth-child(4)::before { background: #8a67df; }

.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 15px; }
.library-card { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid #dfe7ee; border-radius: 12px; background: #fff; }
.file-type-icon { width: 52px; height: 58px; display: grid; place-items: center; border-radius: 10px; color: #d94b5f; background: #fff0f3; font-size: 22px; font-weight: 900; }
.file-type-icon.docx { color: #2878c2; background: #edf5ff; } .file-type-icon.xlsx { color: #17845e; background: #eaf9f3; }
.library-card h3 { margin: 0; color: #193b58; font-size: 12px; }
.library-card p { margin: 5px 0 0; color: #7a8996; font-size: 8.5px; }
.library-card p span { margin-inline-end: 10px; }
.library-download { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #cfe0ec; border-radius: 9px; color: var(--blue-700); background: #f7fbfd; }

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 15px; }
.service-card { min-height: 180px; display: flex; flex-direction: column; padding: 18px; border: 1px solid #dfe7ee; border-radius: 15px; background: #fff; transition: .25s; position: relative; overflow: hidden; }
.service-card::after { content: ""; position: absolute; width: 100px; height: 100px; left: -35px; bottom: -45px; border-radius: 50%; background: rgba(14, 118, 185, .07); }
.service-card:hover { transform: translateY(-4px); border-color: #bcd9eb; box-shadow: 0 15px 30px rgba(7, 48, 77, .1); }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #0e7cc4, #064a78); font-size: 20px; box-shadow: 0 9px 18px rgba(9, 89, 143, .2); }
.service-card h3 { margin: 12px 0 6px; color: #173b59; font-size: 13px; }
.service-card p { margin: 0; color: #718190; font-size: 9.5px; line-height: 1.8; }
.service-card a { position: relative; z-index: 1; margin-top: auto; padding-top: 12px; color: var(--blue-700); font-size: 9px; font-weight: 800; }

.faq-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 14px; margin-top: 15px; }
.faq-list { display: flex; flex-direction: column; gap: 9px; }
.faq-item { border: 1px solid #dfe7ee; border-radius: 11px; overflow: hidden; background: #fff; }
.faq-question { width: 100%; min-height: 53px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border: 0; color: #183b59; background: #fff; font-size: 11px; font-weight: 800; text-align: right; }
.faq-question i { color: var(--blue-700); transition: .2s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-answer p { margin: 0; padding: 0 15px 15px; color: #6d7e8d; font-size: 10px; line-height: 1.9; }
.faq-item.open .faq-answer { max-height: 220px; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-side { padding: 18px; border-radius: 14px; color: #fff; background: linear-gradient(160deg, #0b609d, #073251); }
.faq-side i { color: var(--gold-400); font-size: 34px; }
.faq-side h3 { margin: 12px 0 7px; font-size: 17px; }
.faq-side p { color: #d1e5f1; font-size: 9px; line-height: 1.8; }

.contact-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; margin-top: 15px; }
.form-card, .info-card { padding: 18px; border: 1px solid #dfe7ee; border-radius: 14px; background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #425a6d; font-size: 9px; font-weight: 800; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dbe4eb; border-radius: 9px; outline: 0; color: #263f55; background: #fbfcfd; font-size: 10px; transition: .2s; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #4da8dc; box-shadow: 0 0 0 3px rgba(28, 139, 205, .1); background: #fff; }
.submit-row { display: flex; align-items: center; justify-content: flex-end; margin-top: 13px; }
.submit-button { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 22px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(180deg, #0d79c0, #075181); font-size: 10px; font-weight: 800; box-shadow: 0 9px 18px rgba(8, 83, 131, .2); }
.contact-info-list { display: flex; flex-direction: column; gap: 11px; }
.contact-info-item { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: #f5f9fc; }
.contact-info-item i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--blue-700); background: #e7f3fb; }
.contact-info-item strong, .contact-info-item span { display: block; }
.contact-info-item strong { font-size: 10px; color: #203f5a; } .contact-info-item span { margin-top: 3px; color: #728392; font-size: 8px; }
.map-placeholder { height: 190px; display: grid; place-items: center; margin-top: 12px; border-radius: 12px; color: #fff; background: linear-gradient(rgba(7, 65, 105, .74), rgba(5, 42, 69, .8)), url("../images/pattern.svg") center/cover; }
.map-placeholder i { font-size: 34px; color: var(--gold-400); }
.map-placeholder strong { display: block; margin-top: 8px; font-size: 11px; }

.trainers-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 15px; }
.trainer-card { overflow: hidden; border: 1px solid #dfe7ee; border-radius: 14px; background: #fff; text-align: center; }
.trainer-photo { height: 180px; overflow: hidden; background: #dce7ee; }
.trainer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.trainer-body { padding: 14px; }
.trainer-body h3 { margin: 0; color: #173b59; font-size: 13px; }
.trainer-body p { margin: 5px 0 10px; color: #6c7d8d; font-size: 9px; min-height: 29px; }
.trainer-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding-top: 9px; border-top: 1px solid #edf1f4; }
.trainer-stats strong, .trainer-stats small { display: block; }
.trainer-stats strong { color: var(--blue-700); font-size: 11px; } .trainer-stats small { color: #83919e; font-size: 7px; }

.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 16px; margin-top: 15px; }
.article-card { overflow: hidden; border: 1px solid #dfe7ee; border-radius: 14px; background: #fff; }
.article-cover { height: 350px; position: relative; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(2, 24, 41, .8)); }
.article-header { padding: 20px 22px 12px; }
.article-category { display: inline-block; padding: 4px 10px; border-radius: 20px; color: var(--blue-700); background: #e9f5fc; font-size: 8px; font-weight: 800; }
.article-header h1 { margin: 10px 0; color: #173b59; font-size: 25px; line-height: 1.55; }
.article-meta { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; color: #7a8a98; font-size: 8.5px; }
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-body { padding: 0 22px 24px; color: #445b6f; font-size: 11px; line-height: 2.1; }
.article-body h2 { color: #173b59; font-size: 17px; margin: 22px 0 8px; }
.article-body blockquote { margin: 18px 0; padding: 14px 18px; border-right: 4px solid var(--gold-500); border-radius: 8px; color: #315269; background: #f6f9fb; font-weight: 700; }
.article-side { display: flex; flex-direction: column; gap: 12px; }
.side-card { padding: 15px; border: 1px solid #dfe7ee; border-radius: 12px; background: #fff; }
.side-card h3 { margin: 0 0 10px; color: #173b59; font-size: 12px; }
.share-buttons { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.share-buttons button, .share-buttons a { height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #fff; background: var(--blue-700); }
.related-mini { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid #edf1f4; }
.related-mini:last-child { border-bottom: 0; }
.related-mini img { width: 65px; height: 50px; object-fit: cover; border-radius: 7px; }
.related-mini strong { font-size: 9px; line-height: 1.5; color: #23435e; }
.related-mini small { display: block; margin-top: 4px; color: #84929e; font-size: 7px; }

.course-detail-top { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 15px; margin-top: 15px; }
.course-detail-main, .registration-box { border: 1px solid #dfe7ee; border-radius: 14px; background: #fff; overflow: hidden; }
.course-detail-cover { height: 260px; position: relative; }
.course-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(3, 29, 48, .88)); }
.course-detail-title { position: absolute; z-index: 2; right: 22px; left: 22px; bottom: 20px; color: #fff; }
.course-detail-title span { padding: 4px 9px; border-radius: 6px; background: var(--gold-500); color: #5b3a00; font-size: 8px; font-weight: 900; }
.course-detail-title h1 { margin: 8px 0 0; font-size: 24px; }
.course-detail-content { padding: 18px; }
.detail-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.detail-fact { padding: 10px; border-radius: 10px; background: #f6f9fb; }
.detail-fact i { color: var(--blue-700); margin-inline-end: 5px; }
.detail-fact strong, .detail-fact small { display: block; }
.detail-fact small { color: #82919e; font-size: 7px; } .detail-fact strong { margin-top: 4px; color: #28465e; font-size: 9px; }
.course-description { margin-top: 16px; color: #506578; font-size: 10px; line-height: 1.9; }
.registration-box { padding: 18px; align-self: start; position: sticky; top: 12px; }
.registration-box h3 { margin: 0; color: #173b59; font-size: 15px; }
.registration-box p { color: #748594; font-size: 9px; line-height: 1.7; }
.registration-number { display: flex; align-items: baseline; gap: 5px; margin: 13px 0 6px; color: #173b59; }
.registration-number strong { font-size: 30px; } .registration-number span { font-size: 10px; color: #7d8b98; }
.registration-box .primary-button { width: 100%; margin-top: 14px; }
.registration-note { margin-top: 11px; padding: 10px; border-radius: 9px; color: #805c16; background: #fff7e6; font-size: 8px; line-height: 1.7; }

.verify-box { max-width: 720px; margin: 18px auto 0; padding: 24px; border: 1px solid #dfe7ee; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.verify-icon { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #19a779, #0c7654); font-size: 30px; box-shadow: 0 12px 25px rgba(17, 145, 102, .22); }
.verify-box h2, .verify-box > p { text-align: center; }
.verify-box h2 { margin: 0; color: #173b59; font-size: 20px; }
.verify-box > p { color: #748594; font-size: 9px; }
.verify-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 17px; }
.verify-form input { height: 45px; padding: 0 13px; border: 1px solid #d8e3eb; border-radius: 9px; outline: 0; }
.verify-result { display: none; margin-top: 16px; padding: 15px; border: 1px solid #bce8d8; border-radius: 11px; background: #effcf7; }
.verify-result.show { display: block; }
.verify-result strong { color: #147654; font-size: 12px; }
.verify-result p { margin: 5px 0 0; color: #547365; font-size: 9px; line-height: 1.7; }

.posts-page-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 15px; }
.big-post-card { aspect-ratio: 1 / .75; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; border-radius: 15px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-md); }
.big-post-card::before, .big-post-card::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.big-post-card::before { width: 170px; height: 170px; top: -75px; left: -55px; } .big-post-card::after { width: 90px; height: 90px; bottom: -45px; right: -25px; }
.big-post-card.cyan { background: linear-gradient(135deg, #06779c, #0ea8bd); } .big-post-card.orange { background: linear-gradient(135deg, #d66d0a, #eeaa2e); } .big-post-card.blue { background: linear-gradient(135deg, #063c7d, #0f77ca); } .big-post-card.purple { background: linear-gradient(135deg, #342378, #735bd1); }
.big-post-card span, .big-post-card h2, .big-post-card a { position: relative; z-index: 1; }
.big-post-card span { align-self: flex-start; padding: 4px 9px; border-radius: 20px; background: rgba(255,255,255,.14); font-size: 8px; }
.big-post-card h2 { margin: 10px 0 13px; font-size: 22px; line-height: 1.45; }
.big-post-card a { align-self: flex-start; color: #fff; font-size: 9px; font-weight: 800; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(120deg, rgba(3, 27, 47, .97), rgba(5, 71, 113, .92)), url("../images/pattern.svg") center/cover; }
.login-shell { width: min(980px, 100%); min-height: 590px; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 24px; background: #fff; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.login-visual { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 42px; color: #fff; background: linear-gradient(160deg, rgba(4, 40, 67, .96), rgba(8, 104, 164, .85)), url("https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=1200&q=85") center/cover; }
.login-visual img { position: absolute; top: 28px; right: 30px; width: 88px; }
.login-visual h1 { margin: 0; font-size: 36px; line-height: 1.4; }
.login-visual h1 span { color: var(--gold-400); display: block; }
.login-visual p { color: #d6eaf6; font-size: 11px; line-height: 1.9; }
.login-form-area { display: flex; flex-direction: column; justify-content: center; padding: 50px; }
.login-form-area h2 { margin: 0; color: #173b59; font-size: 25px; }
.login-form-area > p { margin: 7px 0 24px; color: #7b8b98; font-size: 10px; }
.input-with-icon { position: relative; margin-bottom: 12px; }
.input-with-icon i { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: #6b8aa0; }
.input-with-icon input { width: 100%; height: 48px; padding: 0 42px 0 13px; border: 1px solid #d8e3eb; border-radius: 10px; outline: 0; }
.login-options { display: flex; align-items: center; justify-content: space-between; color: #6d7d8b; font-size: 9px; }
.login-form-area .submit-button { width: 100%; justify-content: center; margin-top: 18px; }
.back-link { margin-top: 18px; text-align: center; color: var(--blue-700); font-size: 9px; font-weight: 800; }

.site-footer { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 22px 14px; color: #71818f; font-size: 9px; direction: rtl; }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { color: #39566e; }
.footer-links { display: flex; gap: 14px; }
.footer-links a:hover { color: var(--blue-700); }

.toast { position: fixed; z-index: 120; left: 20px; bottom: 20px; min-width: 250px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 11px; color: #fff; background: #126f53; box-shadow: 0 16px 34px rgba(0,0,0,.22); transform: translateY(120px); opacity: 0; transition: .3s; direction: rtl; font-size: 10px; }
.toast.show { transform: translateY(0); opacity: 1; }
.image-modal { position: fixed; z-index: 130; inset: 0; display: none; place-items: center; padding: 30px; background: rgba(1, 15, 26, .9); backdrop-filter: blur(8px); }
.image-modal.open { display: grid; }
.image-modal img { max-width: min(1050px, 92vw); max-height: 80vh; border-radius: 14px; box-shadow: 0 25px 70px rgba(0,0,0,.5); }
.image-modal > button { position: fixed; top: 20px; left: 20px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); font-size: 20px; }
.image-modal > strong { margin-top: 12px; color: #fff; font-size: 13px; }

.empty-state { padding: 45px 20px; text-align: center; color: #738391; }
.empty-state i { display: block; margin-bottom: 12px; color: #9cc9e4; font-size: 42px; }
.hidden-by-filter { display: none !important; }

@media (max-width: 1440px) {
    :root { --sidebar-width: 208px; --rail-width: 312px; }
    .site-header { grid-template-columns: 1fr 1.45fr 1fr; padding-inline: 20px; }
    .brand-logo { width: 72px; height: 72px; }
    .brand-block span { font-size: 10.5px; }
    .meta-card { min-width: 145px; }
    .desktop-only { display: none; }
    .news-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .news-card:nth-child(4) { display: none; }
    .stats-grid { grid-template-columns: repeat(5, minmax(120px,1fr)); overflow-x: auto; }
    .hero-content { min-width: 380px; }
    .media-slide { height: 235px; }
    .values-panel { grid-template-columns: 1fr; }
    .value-item { border-inline-end: 0; border-bottom: 1px solid rgba(123,196,240,.12); }
    .value-item:last-child { border-bottom: 0; }
}

@media (max-width: 1180px) {
    :root { --sidebar-width: 198px; }
    .page-grid { grid-template-columns: minmax(0,1fr); }
    .right-rail { display: grid; grid-template-columns: 1.4fr 1fr; }
    .rail-grid-two, .leadership-banner, .values-panel { min-width: 0; }
    .media-screen { grid-row: span 2; }
    .values-panel { grid-template-columns: repeat(3,1fr); }
    .value-item { border-bottom: 0; border-inline-end: 1px solid rgba(123,196,240,.12); }
    .header-title h1 { font-size: 27px; }
    .home-primary-grid { grid-template-columns: minmax(0,1fr) 235px; }
    .course-grid, .news-listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .trainers-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
    .app-shell, body.sidebar-right .app-shell { display: block; }
    .sidebar, body.sidebar-right .sidebar {
        position: fixed;
        top: 0;
        right: auto;
        left: -300px;
        width: min(290px, 86vw);
        height: 100vh;
        transition: left .28s ease;
        border: 0;
    }
    body.sidebar-right .sidebar { right: -300px; left: auto; transition: right .28s ease; }
    body.sidebar-open .sidebar { left: 0; }
    body.sidebar-right.sidebar-open .sidebar { right: 0; left: auto; }
    .sidebar-close { display: grid; place-items: center; }
    .sidebar-overlay { position: fixed; z-index: 35; inset: 0; display: block; pointer-events: none; opacity: 0; background: rgba(1, 17, 28, .65); backdrop-filter: blur(3px); transition: .25s; }
    body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
    .site-header { min-height: 100px; grid-template-columns: 1fr auto; padding: 13px 16px; }
    .header-title { text-align: right; }
    .header-title .eyebrow { display: none; }
    .header-title h1 { font-size: 22px; }
    .header-title > p:last-child { font-size: 10px; }
    .brand-block { justify-self: end; }
    .brand-logo { width: 66px; height: 66px; }
    .brand-block > div { display: none; }
    .header-meta { display: none; }
    .mobile-menu-button { display: grid; place-items: center; position: absolute; left: 16px; top: 29px; }
    .ticker { padding-inline: 14px; grid-template-columns: auto 1fr; }
    .ticker-important { display: none; }
    .page-grid { padding: 10px; }
    .page-content { padding: 12px; }
    .right-rail { grid-template-columns: 1fr; }
    .media-screen { grid-row: auto; }
    .rail-grid-two { grid-template-columns: 1fr 1fr; }
    .values-panel { grid-template-columns: repeat(3,1fr); }
    .toolbar { align-items: stretch; flex-direction: column; }
    .search-box { min-width: 0; max-width: none; }
    .home-primary-grid { grid-template-columns: 1fr; }
    .hero-content { min-width: 0; width: 68%; }
    .quick-panel { order: 2; }
    .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .news-card:nth-child(4) { display: block; }
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
    .bottom-content-grid { grid-template-columns: 1fr; }
    .announcement-row { grid-template-columns: 52px minmax(0,1fr) auto; }
    .announcement-date { display: none; }
    .event-grid { grid-template-columns: 1fr; }
    .report-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-panels, .contact-layout, .article-layout, .course-detail-top { grid-template-columns: 1fr; }
    .article-side { display: grid; grid-template-columns: 1fr 1fr; }
    .registration-box { position: static; }
    .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .faq-layout { grid-template-columns: 1fr; }
    .library-grid { grid-template-columns: 1fr; }
    .posts-page-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
    .site-header { min-height: 88px; }
    .brand-logo { width: 56px; height: 56px; }
    .header-title h1 { font-size: 17px; }
    .header-title > p:last-child { font-size: 8.5px; }
    .mobile-menu-button { top: 23px; width: 40px; height: 40px; }
    .ticker-label { font-size: 8.5px; }
    .ticker-track p { font-size: 8px; }
    .page-grid { padding: 7px; }
    .page-content { padding: 9px; border-radius: 12px; }
    .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .filter-chip { white-space: nowrap; }
    .hero-card { min-height: 300px; }
    .hero-card::after { background: linear-gradient(180deg, rgba(4, 32, 54, .22), rgba(3, 28, 47, .96) 55%); }
    .hero-content { width: 100%; min-height: 300px; justify-content: flex-end; padding: 20px; }
    .hero-content h2 { font-size: 23px; }
    .hero-content p { font-size: 9.5px; }
    .hero-actions { align-items: flex-end; }
    .news-grid, .news-listing-grid, .course-grid, .trainers-grid, .services-grid, .posts-page-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { min-height: 84px; padding: 9px; }
    .stat-card strong { font-size: 20px; }
    .gallery-row, .post-row { grid-template-columns: repeat(2,1fr); }
    .rail-grid-two { grid-template-columns: 1fr; }
    .leadership-banner strong { font-size: 19px; }
    .page-hero { min-height: 130px; padding: 20px; }
    .page-hero h1 { font-size: 22px; }
    .page-hero-icon { width: 58px; height: 58px; font-size: 25px; }
    .announcement-row { grid-template-columns: 48px minmax(0,1fr); }
    .download-button { grid-column: 1 / -1; justify-content: center; }
    .event-card { grid-template-columns: 68px minmax(0,1fr); gap: 10px; padding: 10px; }
    .event-date-box { min-height: 100px; }
    .event-date-box strong { font-size: 27px; }
    .report-kpi-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-panels { grid-template-columns: 1fr; }
    .bar-chart { gap: 8px; }
    .library-card { grid-template-columns: 50px minmax(0,1fr) auto; padding: 10px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field.full { grid-column: auto; }
    .article-cover { height: 230px; }
    .article-header h1 { font-size: 20px; }
    .article-side { grid-template-columns: 1fr; }
    .detail-facts { grid-template-columns: 1fr 1fr; }
    .verify-form { grid-template-columns: 1fr; }
    .login-page { padding: 10px; }
    .login-shell { grid-template-columns: 1fr; min-height: 0; }
    .login-visual { min-height: 260px; padding: 24px; }
    .login-visual h1 { font-size: 27px; }
    .login-form-area { padding: 30px 24px; }
    .site-footer { flex-direction: column; align-items: flex-start; }
}

.access-code-result {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 14px;
}

.access-code-result > i {
    color: #168b8d;
    font-size: 46px;
}

.access-code-result h2,
.access-code-result p {
    margin: 0;
}

.access-code-result > strong {
    direction: ltr;
    letter-spacing: 0;
    font-size: 42px;
    color: #0b5f78;
    border: 2px dashed rgba(11, 95, 120, .35);
    background: #f4fbfc;
    padding: 10px 30px;
    border-radius: 8px;
}

.access-code-result .submit-button {
    width: auto;
    text-decoration: none;
}

.existing-access-link {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 16px;
}

.existing-access-link a {
    color: #0b6d86;
    font-weight: 800;
}

.public-error {
    color: #a62222;
    border-color: rgba(166, 34, 34, .24);
    background: #fff2f2;
}

.requests-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.requests-account-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: #f8fbfd;
}

.requests-account-info,
.requests-account-actions,
.request-item-main,
.request-reply {
    display: flex;
    align-items: center;
}

.requests-account-info { gap: 12px; min-width: 0; }
.requests-account-info small,
.request-number small,
.request-subject small,
.request-reply small { display: block; color: var(--ink-500); font-size: 9px; font-weight: 700; }
.requests-account-info h2 { margin: 2px 0 0; color: var(--ink-900); font-size: 17px; }
.requests-account-info p { margin: 3px 0 0; color: var(--ink-500); font-size: 10px; }
.requests-account-icon { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #0b79bd, #07517f); font-size: 19px; box-shadow: var(--shadow-blue); }
.requests-account-actions { gap: 8px; }
.secondary-button { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid #d8e3eb; border-radius: 9px; color: #41596c; background: #fff; font-size: 10px; font-weight: 800; }

.requests-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 12px;
}
.requests-section-heading h3 { margin: 0; font-size: 15px; color: var(--ink-900); }
.requests-section-heading p { margin: 4px 0 0; color: var(--ink-500); font-size: 9px; }
.requests-section-heading > span { min-width: 64px; padding: 6px 10px; border-radius: 7px; color: var(--blue-700); background: #eaf5fc; text-align: center; font-size: 9px; font-weight: 800; }

.request-list { display: grid; gap: 10px; padding: 0 20px 20px; }
.request-item { overflow: hidden; border: 1px solid #dfe8ef; border-radius: 10px; background: #fff; box-shadow: 0 5px 16px rgba(6, 48, 78, .05); }
.request-item-main { display: grid; grid-template-columns: minmax(170px, .9fr) minmax(220px, 1.4fr) auto auto; align-items: center; gap: 18px; padding: 15px 17px; }
.request-number strong { display: block; margin-top: 4px; direction: ltr; text-align: right; color: #16496d; font-size: 11px; }
.request-subject h4 { margin: 4px 0 0; color: var(--ink-900); font-size: 12px; }
.request-status { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 92px; padding: 7px 10px; border-radius: 7px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.request-status.is-pending { color: #a86600; background: #fff4df; }
.request-status.is-done { color: #08774f; background: #e5f8ef; }
.request-item time { direction: ltr; display: inline-flex; align-items: center; gap: 6px; color: #637687; font-size: 9px; white-space: nowrap; }
.request-reply { gap: 10px; padding: 12px 17px; border-top: 1px solid #edf2f5; background: #f8fbfd; }
.request-reply > i { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #0c719f; background: #e4f3fa; }
.request-reply p { margin: 3px 0 0; color: #334d62; font-size: 10px; line-height: 1.8; }
.request-reply.is-waiting > i { color: #a86600; background: #fff0d5; }
.requests-empty { padding: 42px 20px; border: 1px dashed #d5e2eb; border-radius: 10px; color: var(--ink-500); background: #fbfdfe; text-align: center; }
.requests-empty > i { font-size: 35px; color: #8fbdd6; }
.requests-empty h3 { margin: 10px 0 3px; color: var(--ink-700); font-size: 14px; }
.requests-empty p { margin: 0; font-size: 9px; }

.content-empty {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 28px 18px;
    border: 1px dashed #cddde8;
    border-radius: 8px;
    color: var(--ink-500);
    background: #f9fcfe;
    text-align: center;
    font-weight: 700;
}

.download-button.is-disabled {
    cursor: default;
    color: #718391;
    background: #edf2f5;
    box-shadow: none;
}

.verify-result.is-invalid { border-color: #f3b8b8; color: #a22b2b; background: #fff1f1; }

.summer-portal-card { display: grid; gap: 18px; padding: 22px; }
.portal-form-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.portal-form-head h2 { margin: 0; color: var(--ink-900); font-size: 18px; }
.portal-form-head p { margin: 5px 0 0; color: var(--ink-500); font-size: 10px; }
.portal-form-head .outline-button { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid #90c6df; border-radius: 7px; color: #075f8d; background: #f4fbff; text-decoration: none; font-size: 10px; font-weight: 800; white-space: nowrap; }
.upload-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.upload-pair > label { min-height: 112px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; padding: 15px; border: 1px dashed #9ebed0; border-radius: 8px; color: var(--ink-900); background: #f8fcfe; cursor: pointer; }
.upload-pair > label > i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 7px; color: #08774f; background: #e5f8ef; font-size: 19px; }
.upload-pair span, .upload-pair small { display: block; }
.upload-pair small { margin-top: 4px; color: var(--ink-500); font-size: 9px; }
.upload-pair input { grid-column: 1 / -1; width: 100%; font-size: 10px; }
.portal-success { display: grid; justify-items: center; gap: 9px; padding: 34px 18px; text-align: center; color: var(--ink-900); }
.portal-success > i { color: #0b9663; font-size: 42px; }
.portal-success h2, .portal-success p { margin: 0; }
.portal-success p, .portal-success small { color: var(--ink-500); }
.portal-success strong { padding: 9px 16px; border-radius: 7px; color: #075f8d; background: #e8f5fb; direction: ltr; letter-spacing: 2px; font-size: 18px; }
.portal-success .outline-button { margin-top: 6px; text-decoration: none; }
.portal-tracking-box { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, .8fr) auto; align-items: end; gap: 14px; padding: 15px; border: 1px solid #cfe1eb; border-radius: 8px; background: #f7fbfd; }
.portal-tracking-box > div { display: flex; align-items: center; gap: 11px; }
.portal-tracking-box > div > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; color: #075f8d; background: #e3f2f9; }
.portal-tracking-box strong, .portal-tracking-box small, .portal-tracking-box label span { display: block; }
.portal-tracking-box small { margin-top: 3px; color: var(--ink-500); font-size: 9px; }
.portal-tracking-box label { display: grid; gap: 5px; color: var(--ink-700); font-size: 10px; font-weight: 800; }
.portal-tracking-box input { min-height: 42px; padding: 0 12px; border: 1px solid #cbdce6; border-radius: 7px; background: #fff; direction: ltr; text-align: left; font: inherit; text-transform: uppercase; }
.portal-tracking-box .outline-button { min-height: 42px; }
.tracking-result-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tracking-result-head > div, .tracking-details-grid article { padding: 14px; border: 1px solid #dce7ed; border-radius: 8px; background: #f9fcfd; }
.tracking-result-head span, .tracking-details-grid span, .tracking-details-grid small { display: block; color: var(--ink-500); font-size: 9px; }
.tracking-result-head strong, .tracking-details-grid strong { display: block; margin-top: 5px; color: var(--ink-900); }
.tracking-result-head > div:nth-child(2) strong { direction: ltr; text-align: right; letter-spacing: 1px; }
.tracking-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; border: 1px solid #dce7ed; border-radius: 8px; }
.tracking-progress > div { position: relative; min-height: 78px; display: grid; justify-items: center; align-content: center; gap: 7px; color: #8a9aa7; background: #f8fafb; font-size: 9px; font-weight: 800; text-align: center; }
.tracking-progress > div + div { border-inline-start: 1px solid #dce7ed; }
.tracking-progress i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #92a4b1; background: #e9eff3; font-size: 10px; }
.tracking-progress .is-done { color: #08774f; background: #f1fbf6; }
.tracking-progress .is-done i { color: #fff; background: #0b9663; }
.tracking-details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tracking-details-grid small { margin-top: 4px; }
.institution-student-results { display: grid; gap: 12px; padding-top: 4px; }
.institution-results-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid #cfe1eb; border-radius: 8px; background: #f3f9fc; }
.institution-results-head span, .institution-results-head strong { display: block; }
.institution-results-head span { color: var(--ink-900); font-weight: 900; }
.institution-results-head strong { margin-top: 4px; color: var(--ink-500); font-size: 9px; }
.institution-results-head > i { width: 38px; height: 38px; display: grid; place-items: center; color: #0875a8; background: #dff1f8; border-radius: 7px; }
.institution-result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.institution-result-actions .outline-button { min-height: 36px; padding: 0 12px; font-size: 9px; }
.institution-results-table-wrap { overflow-x: auto; border: 1px solid #dce7ed; border-radius: 8px; }
.institution-results-table { width: 100%; min-width: 940px; border-collapse: collapse; background: #fff; font-size: 10px; }
.institution-results-table th, .institution-results-table td { padding: 12px 10px; border-bottom: 1px solid #e3ebef; text-align: right; vertical-align: middle; }
.institution-results-table th { color: #526979; background: #f6f9fb; font-size: 9px; white-space: nowrap; }
.institution-results-table tbody tr:last-child td { border-bottom: 0; }
.institution-results-table td strong, .institution-results-table td small { display: block; }
.institution-results-table td small { margin-top: 4px; color: var(--ink-500); font-size: 8px; }
.result-status, .result-pending { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border-radius: 5px; font-size: 9px; font-weight: 900; }
.result-status.is-complete { color: #08774f; background: #e4f8ef; }
.result-status.is-incomplete { color: #a23d24; background: #fff0eb; }
.result-pending { color: #946200; background: #fff7df; }
.portal-back-link { width: fit-content; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }

.managed-internal-banner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 18px 0;
    padding: 12px 18px;
    border-radius: 8px;
    color: #fff;
    background: #07517f;
}
.managed-internal-banner img { width: 84px; height: 48px; object-fit: cover; border-radius: 6px; }
.managed-internal-banner strong, .managed-internal-banner small { display: block; }
.managed-internal-banner small { margin-top: 4px; color: #dceefa; }

.managed-popup {
    position: fixed;
    z-index: 90;
    inset-inline-start: 24px;
    bottom: 24px;
    width: min(420px, calc(100vw - 48px));
    overflow: hidden;
    border: 1px solid #b9d8e9;
    border-radius: 8px;
    color: var(--ink-900);
    background: #fff;
    box-shadow: 0 18px 45px rgba(3, 42, 67, .25);
}
.managed-popup > button { position: absolute; top: 8px; inset-inline-end: 8px; width: 32px; height: 32px; border: 0; border-radius: 6px; color: #fff; background: rgba(0, 35, 57, .8); }
.managed-popup > img { width: 100%; max-height: 180px; object-fit: cover; }
.managed-popup > div { padding: 18px; }
.managed-popup strong { font-size: 16px; }
.managed-popup p { margin: 7px 0 14px; color: var(--ink-500); font-size: 11px; line-height: 1.8; }

@media print {
    .sidebar, .site-header, .ticker, .page-hero, .listing-toolbar, .site-footer { display: none !important; }
    .main-shell, .page-grid, .page-content { width: 100% !important; margin: 0 !important; display: block !important; }
    .dashboard-panel, .report-kpi { break-inside: avoid; box-shadow: none !important; }
}

@media (max-width: 1050px) {
    .request-item-main { grid-template-columns: minmax(150px, .8fr) minmax(200px, 1.2fr) auto; }
    .request-item time { grid-column: 1 / -1; direction: rtl; }
}

@media (max-width: 700px) {
    .portal-form-head { align-items: stretch; flex-direction: column; }
    .portal-form-head .outline-button { justify-content: center; }
    .upload-pair { grid-template-columns: 1fr; }
    .portal-tracking-box, .tracking-result-head, .tracking-details-grid { grid-template-columns: 1fr; }
    .tracking-progress { grid-template-columns: 1fr; }
    .tracking-progress > div + div { border-inline-start: 0; border-top: 1px solid #dce7ed; }
    .requests-account-bar { align-items: stretch; flex-direction: column; padding: 14px; }
    .requests-account-actions > * { flex: 1; justify-content: center; }
    .requests-section-heading { padding-inline: 14px; }
    .request-list { padding-inline: 14px; }
    .request-item-main { grid-template-columns: 1fr auto; gap: 12px; }
    .request-subject { grid-column: 1 / -1; grid-row: 2; }
    .request-item time { grid-row: 3; }
}
