/* ===== AIOU Solved Assignments – public site ===== */
:root {
    --green: #0b6b3a;
    --green-dark: #084d2a;
    --green-light: #e8f5ee;
    --gold: #f2b705;
    --ink: #1c1f23;
    --muted: #5d6670;
    --line: #e2e6ea;
    --bg: #f6f8f7;
    --red: #d32f2f;
    --wa: #25d366;
    --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.6; }
a { color: var(--green); }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---- Query bar (above top bar) ---- */
.querybar { background: #062f1a; color: #fff; font-size: 14px; }
.querybar .container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; padding-top: 5px; padding-bottom: 5px; text-align: center; }
.querybar a { color: #fff; text-decoration: none; font-weight: bold; display: inline-flex; align-items: center; gap: 5px; }
.querybar .q-wa svg { width: 16px; height: 16px; fill: var(--wa); }
.querybar .q-call { background: rgba(255,255,255,.12); padding: 1px 10px; border-radius: 20px; }

/* ---- Top bar ---- */
.topbar { background: var(--green-dark); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.menu-btn { background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.menu-btn span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; }
.brand { flex: 1; align-self: stretch; }
.btn-channel { background: var(--wa); color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 30px; font-weight: bold; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn-channel svg { width: 18px; height: 18px; fill: #fff; }
.btn-channel .short { display: none; }

/* ---- Side menu ---- */
.side-menu { position: fixed; top: 0; left: -320px; width: 300px; max-width: 85vw; height: 100%; background: #fff; z-index: 100; transition: left .25s; box-shadow: 4px 0 20px rgba(0,0,0,.2); overflow-y: auto; }
.side-menu.open { left: 0; }
.side-menu .head { background: var(--green); color: #fff; padding: 18px; display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
.side-menu .close { background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }
.side-menu a { display: block; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.side-menu a:hover { background: var(--green-light); }
.side-menu .main-site { background: var(--gold); font-weight: bold; }
.side-menu .all-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: var(--green-light); border: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; font: inherit; font-weight: bold; color: var(--green-dark); cursor: pointer; text-align: left; }
.side-menu .all-toggle .arr { transition: transform .2s; }
.side-menu .all-toggle.on .arr { transform: rotate(180deg); }
.side-menu .all-list { background: #fafcfb; }
.side-menu .all-group { background: var(--green); color: #fff; font-size: 13px; font-weight: bold; padding: 6px 18px; letter-spacing: .5px; }
.side-menu .all-list a { padding: 10px 18px 10px 26px; font-size: 15px; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; display: none; }
.overlay.show { display: block; }

/* ---- Hero ---- */
.hero { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; text-align: center; padding: 34px 0 40px; }
.hero .container { text-align: center; }
.hero .uni { margin: 0 auto; letter-spacing: 2px; font-size: clamp(20px, 4.5vw, 38px); font-weight: bold; text-align: center; line-height: 1.25; }
.hero h1 { margin: 10px 0 8px; font-size: clamp(20px, 3.6vw, 32px); color: var(--gold); }
.hero p { margin: 0 auto; max-width: 760px; opacity: .95; }

/* ---- Search bar (under the green header) ---- */
.search-bar { margin-top: -22px; position: relative; z-index: 2; }
.search-form { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--green); border-radius: 40px; padding: 4px 6px 4px 16px; max-width: 720px; margin: 0 auto; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.search-form .s-ico { font-size: 18px; }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 10px 6px; background: transparent; }
.search-none { text-align: center; color: var(--red); font-weight: bold; margin: 14px 0 0; }

/* ---- Sections & cards ---- */
.section { padding: 22px 0 4px; }
.group-title { font-size: clamp(20px, 3vw, 26px); color: var(--green-dark); border-left: 6px solid var(--gold); padding-left: 12px; margin: 0 0 18px; text-transform: uppercase; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 40px 14px 16px; display: flex; flex-direction: column; justify-content: center; min-height: 92px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; border-left: 5px solid var(--green); background-image: linear-gradient(135deg, #fff 70%, var(--green-light) 100%); }
.card:hover { border-color: var(--green); }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.card h3 { margin: 0 0 4px; font-size: 17px; text-transform: uppercase; line-height: 1.3; color: var(--green-dark); }
.card .sub { color: var(--red); font-weight: bold; font-size: 12.5px; line-height: 1.3; letter-spacing: .2px; }
.card .go { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-weight: bold; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.card:hover .go { background: var(--gold); color: #000; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
table.list { width: 100%; border-collapse: collapse; }
table.list th { background: #111; color: #fff; text-align: left; padding: 10px; font-size: 15px; white-space: nowrap; }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:nth-child(even) td { background: #fafbfa; }
table.list td.code { font-weight: bold; white-space: nowrap; }
.btn-dl { display: inline-block; background: var(--green); color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 6px; font-weight: bold; font-size: 14px; white-space: nowrap; }
.btn-dl:hover { background: var(--green-dark); }
.not-up { color: var(--red); font-weight: bold; font-size: 14px; white-space: nowrap; }
.btn-get { display: inline-block; background: var(--gold); color: #000; text-decoration: none; padding: 6px 14px; border-radius: 6px; font-weight: bold; white-space: nowrap; }
.table-title { text-align: center; font-size: clamp(20px, 3.4vw, 30px); margin: 16px 0 8px; color: var(--green-dark); }

/* ---- Programme page ---- */
.breadcrumb { font-size: 14px; color: var(--muted); padding: 14px 0 0; }
.breadcrumb a { text-decoration: none; }
.article { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(16px, 3vw, 30px); margin-top: 14px; }
.article h1 { margin: 0 0 10px; font-size: clamp(24px, 4vw, 34px); color: var(--green-dark); line-height: 1.3; }
.article .featured { display: block; width: 100%; border-radius: 10px; margin: 0 0 12px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.article .lead { font-size: 17px; line-height: 1.55; color: #333; margin: 0 0 12px; padding: 10px 14px; background: var(--green-light); border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; }
.article > .content > :first-child { margin-top: 0; }
.article > .content > :last-child { margin-bottom: 0; }
.content p { margin: 0 0 10px; }
.content h2, .content h3 { margin: 16px 0 8px; line-height: 1.3; }
.content { overflow-wrap: anywhere; }
.content table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.content table td, .content table th { border: 1px solid #ccc; padding: 8px; }
.content iframe { max-width: 100%; border: 0; }
.content img { border-radius: 8px; }
.order-box { background: var(--green-light); border: 2px dashed var(--green); border-radius: var(--radius); padding: 14px; text-align: center; margin: 16px 0; display: flex; align-items: center; justify-content: center; gap: 18px; }
.order-box img { width: 180px; max-width: 40%; border-radius: 10px; object-fit: cover; flex: none; }
.order-box .order-text { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.order-box.has-img .order-text { align-items: flex-start; text-align: left; }
.order-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; background: var(--wa); color: #fff; text-decoration: none; font-weight: bold; font-size: 15px; padding: 7px 16px; border-radius: 30px; line-height: 1.2; }
.order-btn svg { width: 18px; height: 18px; fill: #fff; flex: none; }
.order-btn:hover { background: #1ebe5a; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; text-decoration: none; font-size: 15px; }

/* ---- Reviews ---- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.review .who { font-weight: bold; }
.review .date { color: var(--muted); font-size: 13px; }
.stars { color: var(--gold); font-size: 20px; letter-spacing: 2px; }
.stars .off { color: #ccc; }
.review-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 18px; max-width: 640px; }
.review-form label { display: block; font-weight: bold; margin: 10px 0 4px; }
.review-form input[type=text], .review-form textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { display: none; }
.star-input label { font-size: 32px; color: #ccc; cursor: pointer; margin: 0; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.btn { background: var(--green); color: #fff; border: 0; padding: 10px 22px; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 16px; }
.alert-ok { background: #e7f6ec; border: 1px solid #9bd3ae; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.alert-err { background: #fdecec; border: 1px solid #f1a9a9; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.hp { position: absolute; left: -9999px; }
.show-sm { display: none; }

/* ---- Footer ---- */
.footer { background: #0e1b14; color: #dfe7e2; margin-top: 24px; padding: 24px 0 14px; }
.footer h4 { color: var(--gold); margin: 0 0 8px; font-size: 19px; }
.footer p { margin: 0 0 8px; }
.footer a { color: #fff; }
.footer .about { text-align: justify; hyphens: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.social a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 0; }
.social .ico { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.social .ico svg { width: 18px; height: 18px; fill: #fff; }
.copy { border-top: 1px solid rgba(255,255,255,.15); margin-top: 16px; padding-top: 10px; font-size: 14px; text-align: center; color: #aab8b0; }
.copy a { color: #aab8b0; }
.copy .sep { opacity: .5; margin: 0 4px; }

/* ---- Floating WhatsApp ---- */
.wa-float { position: fixed; right: 16px; bottom: 18px; z-index: 80; background: var(--wa); width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); animation: pulse 2s infinite; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.6)} 70%{box-shadow:0 0 0 14px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }

@media (max-width: 640px) {
    body { font-size: 16px; }
    .brand { font-size: 15px; }
    .btn-channel { padding: 7px 10px; font-size: 13px; }
    .btn-channel .long { display: none; }
    .btn-channel .short { display: inline; }
    .article { padding: 12px; }
    .hide-sm { display: none; }
    .show-sm { display: inline; }
    table.list th, table.list td { padding: 7px 4px; font-size: 13px; }
    table.list th { white-space: normal; line-height: 1.2; }
    table.list td.code small { font-size: 10px; }
    .btn-dl { padding: 5px 7px; font-size: 12px; }
    table.list td.code { white-space: normal; }
    .not-up { font-size: 11px; white-space: normal; }
    table.list td:nth-child(2) { min-width: 80px; }
    .container > .article { margin-left: -6px; margin-right: -6px; }
    .querybar { font-size: 13px; }
    .hero { padding: 24px 0 36px; }
    .hero .uni { letter-spacing: 1px; }
    .search-form input { font-size: 16px; padding: 8px 4px; }
    .cards { grid-template-columns: 1fr 1fr; gap: 8px; }
    .card { padding: 10px 10px 26px; min-height: 84px; border-left-width: 4px; justify-content: flex-start; }
    .card h3 { font-size: 13.5px; line-height: 1.25; }
    .card .sub { font-size: 10.5px; }
    .card .go { top: auto; bottom: 6px; right: 6px; transform: none; width: 20px; height: 20px; font-size: 12px; }
    .section { padding: 18px 0 4px; }
    .group-title { font-size: 18px; margin-bottom: 10px; }
    .hero { padding: 16px 0 34px; }
    .hero h1 { font-size: 18px; margin: 6px 0 0; }
    .hero p:not(.uni) { display: none; }
    .order-box { flex-direction: column; gap: 10px; padding: 14px; }
    .order-box img { width: 100%; max-width: 260px; }
    .order-box.has-img .order-text { align-items: center; text-align: center; }
    .footer-grid { gap: 18px; }
    .footer { padding-bottom: 10px; }
    .copy { padding-right: 56px; text-align: left; }
    .footer-grid { gap: 14px; }
    .breadcrumb { padding-top: 8px; font-size: 13px; }
    .article { margin-top: 8px; }
    .article .lead { font-size: 15.5px; padding: 8px 10px; }
    .table-title { margin: 12px 0 6px; }
    .wa-float { width: 52px; height: 52px; right: 12px; bottom: 14px; }
    .wa-float svg { width: 28px; height: 28px; }
}

/* ---- Justified text: headings + descriptions (all programme pages, articles, reviews) ---- */
.article h1, .article .lead, .content p, .content li, .content h2, .content h3, .content h4,
.home-article p, .review p, .footer .about, .order-box .order-text span {
    text-align: justify;
    text-justify: inter-word;
    hyphens: manual;
}
.content [dir="rtl"], .content [dir="rtl"] p { text-align: justify; text-align-last: right; }
.article h1 { text-align-last: left; }

/* ---- Assignment due-date table (above the course table) ---- */
.schedule { max-width: 560px; margin-left: auto; margin-right: auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 10px; margin-bottom: 12px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.sch-head { background: var(--green-dark); color: #fff; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 10px; padding: 3px 10px; font-size: 14px; border-bottom: 2px solid var(--gold); }
.sch-head .en { font-weight: bold; letter-spacing: .3px; }
.sch-head .ur { font-size: 15px; color: var(--gold); line-height: 1.7; }
.sch-cat { background: var(--green-light); border-bottom: 2px solid var(--gold); padding: 7px 14px; text-align: center; }
.sch-cat strong { display: block; color: var(--green-dark); font-size: 16.5px; line-height: 1.35; }
.sch-cat small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 1px; }
.sch-table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.25; }
.sch-table th { background: #111; color: #fff; padding: 4px 6px; text-align: center; font-size: 12.5px; line-height: 1.2; white-space: nowrap; }
.sch-table th small { font-weight: normal; color: var(--gold); font-size: 11px; margin-left: 3px; }
.sch-table th .ur { display: inline; color: var(--gold); font-weight: normal; margin-left: 4px; }
.sch-table td { padding: 3px 6px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); text-align: center; vertical-align: middle; white-space: nowrap; }
.sch-table td.no { border-left: 0; background: #f3f6f4 !important; width: 18%; }
.sch-table td .date { font-weight: bold; color: var(--red); font-size: 14px; white-space: nowrap; }
.sch-table td .date.none { color: #b5bdb9; }
.sch-table td .date.past { color: #9aa3a0; text-decoration: line-through; }
.sch-table td small { color: var(--muted); font-size: 11px; margin-left: 4px; }
.sch-table tr:nth-child(even) td { background: #fafbfa; }
.sch-study { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; padding: 5px 10px; font-size: 13.5px; background: #fff8e1; border-top: 2px solid var(--gold); font-weight: bold; color: var(--ink); }
.sch-study a { background: var(--green); color: #fff; text-decoration: none; padding: 3px 12px; border-radius: 30px; font-size: 13px; white-space: nowrap; }
.sch-study a:hover { background: var(--green-dark); }
@media (max-width: 640px) {
    .sch-head { font-size: 12.5px; padding: 2px 8px; }
    .sch-head .ur { font-size: 13px; }
    .sch-table { font-size: 12.5px; }
    .sch-table th { font-size: 11.5px; padding: 3px 4px; }
    .sch-table th small { display: block; margin: 0; font-size: 10px; }
    .sch-table th .ur { font-size: 11px; margin-left: 2px; }
    .sch-table td { padding: 2px 4px; }
    .sch-table td .date { font-size: 13px; }
    .sch-table td small { font-size: 10px; margin-left: 3px; }
    .sch-study { font-size: 12.5px; padding: 4px 8px; }
    .sch-study a { font-size: 12.5px; padding: 2px 10px; }
}
}

/* ---- Small phones: header on one line, top bar fits ---- */
@media (max-width: 640px) {
    .querybar { font-size: 11.5px; }
    .querybar .container { flex-wrap: nowrap; gap: 6px; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
    .querybar .q-wa svg { width: 13px; height: 13px; }
    .querybar .q-call { padding: 0 8px; }
    .topbar .container { min-height: 46px; }
    .hero .uni { font-size: 5.1vw; letter-spacing: .5px; white-space: nowrap; }
    .hero h1 { font-size: 4.1vw; line-height: 1.3; }
    .search-bar { margin-top: -20px; }
    .search-form { padding: 2px 4px 2px 12px; }
    .container { padding-left: 10px; padding-right: 10px; }
    .cards { gap: 6px; }
    .card h3 { font-size: 3.4vw; }
    .card .sub { font-size: 2.6vw; }
    .group-title { font-size: 16px; padding-left: 8px; border-left-width: 4px; }
}
@media (max-width: 360px) {
    .querybar span:first-child { display: none; }
}

/* ===== Hidden text for Google / screen readers ===== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.featured-fig { margin: 0 0 12px; }
.featured-fig .featured { margin: 0; }
.yt-link { color: #c4302b; font-weight: bold; text-decoration: none; white-space: nowrap; }
.yt-link:hover { text-decoration: underline; }

/* ===== Study material bar ===== */
.study-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin: 10px auto; max-width: 720px; padding: 8px 12px; background: #fff8e1; border: 1px solid #f3dfa0; border-left: 4px solid var(--gold); border-radius: 10px; font-weight: bold; font-size: 15px; text-align: center; }
.study-bar a { background: var(--green); color: #fff; text-decoration: none; padding: 5px 14px; border-radius: 30px; font-size: 14px; white-space: nowrap; }
.study-bar a:hover { background: var(--green-dark); }

/* ===== Help banners: one compact row of 3 cells ===== */
.hb { margin: 10px auto 12px; max-width: 720px; border-radius: 12px; overflow: hidden; border: 1px solid #cfe0f5; background: #f5f9ff; box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.hb-ba { border-color: #f3d58a; background: #fffaf0; }
.hb .ur { font-family: var(--font-main); }
.hb-head { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 10px; padding: 4px 10px 2px; text-align: center; background: #0d3d7a; color: #fff; }
.hb-ba .hb-head { background: #7a4b00; }
.hb-head strong { font-size: 17px; line-height: 1.9; }
.hb-head span { font-size: 13px; line-height: 1.9; color: #ffe08a; }
.hb-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.hb-cell { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-left: 1px solid #d6e3f3; min-width: 0; }
.hb-cell:last-child { border-left: 0; }
.hb-ba .hb-cell { border-color: #f0e2bd; }
.hb-ico { font-size: 20px; flex: none; }
.hb-txt { display: flex; flex-direction: column; min-width: 0; }
.hb-txt b { font-size: 14.5px; line-height: 1.75; color: #0d3d7a; }
.hb-ba .hb-txt b { color: #7a4b00; }
.hb-txt span { font-size: 12.5px; line-height: 1.75; color: #333; }
.hb .hb-wa { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--wa); color: #fff; text-decoration: none; font-weight: bold; font-size: 14.5px; padding: 4px 10px; }
.hb .hb-wa svg { width: 16px; height: 16px; fill: #fff; }
.hb .hb-wa:hover { background: #1ebe5a; }

/* ===== Assessment policy (donut chart) ===== */
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.policy { margin: 12px auto; max-width: 820px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.policy-grid .policy { margin: 0; max-width: none; }
.policy-grid.one { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.policy-title { margin: 0; padding: 8px 12px; background: var(--green-dark); color: #fff; font-size: 16px; line-height: 1.35; text-align: center; border-bottom: 3px solid var(--gold); }
.policy-title .ur { display: block; color: var(--gold); font-weight: normal; font-size: 16px; line-height: 1.8; }
.policy.classic .policy-title { background: #0d3d7a; }
.policy-body { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 14px 12px 8px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; border-radius: 50%; position: relative; flex: none; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.donut-hole { position: absolute; inset: 26%; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.donut-hole b { font-size: 26px; color: var(--green-dark); }
.donut-hole small { font-size: 12px; color: var(--muted); }
.policy-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 200px; }
.policy-legend li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 2px 8px; font-size: 15px; }
.policy-legend i { width: 14px; height: 14px; border-radius: 4px; grid-row: span 2; }
.policy-legend .en { font-weight: bold; }
.policy-legend .ur { grid-column: 2; font-size: 14px; color: var(--muted); line-height: 1.6; }
.policy-legend b { grid-row: 1 / span 2; grid-column: 3; font-size: 22px; color: var(--ink); }
.policy-pass { margin: 0 12px 12px; padding: 8px 12px; background: #fff8e1; border-left: 4px solid var(--gold); border-radius: 8px; font-size: 14.5px; line-height: 1.5; text-align: justify; }
.policy-pass .ur { font-size: 15.5px; line-height: 2; margin-top: 4px; text-align: justify; text-align-last: right; }

@media (max-width: 760px) {
    .policy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .study-bar { font-size: 13px; padding: 6px 8px; margin: 8px 0; }
    .study-bar a { font-size: 12.5px; padding: 3px 10px; }
    .hb { margin: 8px 0 10px; border-radius: 10px; }
    .hb-head { padding: 2px 6px; gap: 0 6px; }
    .hb-head strong { font-size: 14px; line-height: 1.8; }
    .hb-head span { font-size: 11px; line-height: 1.8; }
    .hb-cell { flex-direction: column; gap: 0; padding: 3px 4px; text-align: center; }
    .hb-ico { font-size: 16px; line-height: 1.2; }
    .hb-txt b { font-size: 12px; line-height: 1.7; }
    .hb-txt span { font-size: 10.5px; line-height: 1.65; }
    .hb .hb-wa { font-size: 13px; padding: 3px 8px; }
    .policy { margin: 10px 0; }
    .policy-title { font-size: 13.5px; padding: 6px 8px; }
    .policy-title .ur { font-size: 14px; }
    .policy-body { gap: 14px; padding: 10px 8px 6px; flex-wrap: nowrap; }
    .donut { width: 112px; height: 112px; }
    .donut-hole b { font-size: 20px; }
    .policy-legend { min-width: 0; gap: 6px; }
    .policy-legend li { font-size: 13.5px; }
    .policy-legend .ur { font-size: 12.5px; }
    .policy-legend b { font-size: 18px; }
    .policy-pass { margin: 0 8px 8px; padding: 6px 8px; font-size: 13px; }
    .policy-pass .ur { font-size: 14px; }
}

/* ===== Course names: English / Urdu (Urdu isolated right-to-left, Nastaleeq) ===== */
table.list td.cname { line-height: 1.5; }
table.list td.cname .sep { color: #9aa3a0; margin: 0 4px; }
.ur-name { unicode-bidi: isolate; direction: rtl; font-family: var(--font-main); font-size: 1.08em; line-height: 2; white-space: normal; display: inline-block; }
.content [dir="rtl"] bdi[dir="ltr"] { unicode-bidi: isolate; font-family: 'Times New Roman', Times, serif; }
@media (max-width: 640px) {
    table.list td.cname .sep { display: none; }
    .ur-name { display: block; font-size: 1em; line-height: 1.9; text-align: right; }
}

/* Pasted text with a fixed left / right alignment is justified too (centered blocks stay centered) */
.content :is(p, li, h2, h3, h4, blockquote)[style*="text-align"]:not([style*="center"]) { text-align: justify !important; }
.content [dir="rtl"][style*="text-align"]:not([style*="center"]) { text-align-last: right; }

/* Footer links to separate pages (About, Contact, Privacy …) */
.footer-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 12px 0 4px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 14px; font-size: 14px; }
.footer-pages a { color: inherit; opacity: .9; text-decoration: none; }
.footer-pages a:hover { text-decoration: underline; opacity: 1; }
/* Ad boxes (Google AdSense) */
.ad-box { margin: 16px auto; text-align: center; min-height: 90px; overflow: hidden; }

/* Edit buttons, shown only to the logged-in admin */
.admin-edit { display: inline-block; font-size: 13px; background: #fff3cd; color: #6b4e00 !important; border: 1px solid #f0d68a; border-radius: 6px; padding: 2px 8px; margin: 0 4px 8px 0; text-decoration: none; font-family: Arial, sans-serif; }
.footer-pages .admin-edit { margin: 0; opacity: 1; }
