/* ============================================
   WordPress-specific additions
   Built on top of the existing design tokens
   defined in main.css :root
   ============================================ */

/* ============================================
   Custom Logo (uploaded via Customize → Site Identity)
   WordPress outputs its own <a class="custom-logo-link">
   around the <img>, so these rules target that directly
   rather than relying on our .logo wrapper for sizing.
   ============================================ */
.logo { text-decoration: none; }
.logo-icon-link, .logo-text-link { text-decoration: none; display: flex; align-items: center; }

.logo .custom-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo .custom-logo-link img.custom-logo {
    height: 58px;
    width: 58px;
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.18);
}

.footer-brand .custom-logo-link {
    display: inline-flex;
    margin-bottom: 16px;
}
.footer-brand .custom-logo-link img.custom-logo {
    height: 64px;
    width: 64px;
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    font-size: 0.9rem;
}
.breadcrumbs .container { display: flex; align-items: center; gap: 8px; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.breadcrumbs a { color: var(--text-light); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs i { font-size: 0.7rem; color: var(--text-muted); }
.breadcrumbs span { color: var(--primary); font-weight: 500; }

/* Page / Single containers */
.page-section { padding-top: 48px; }
.page-header-block { text-align: center; max-width: 800px; margin: 0 auto 40px; }
.page-title-main { font-size: 2.2rem; color: var(--primary); margin-top: 8px; }
.page-thumb img, .single-thumb img { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.page-content-wrap, .single-content { max-width: 900px; margin: 0 auto; line-height: 1.9; color: var(--text-light); }
.page-content-wrap h2, .single-content h2 { color: var(--primary); margin: 32px 0 12px; font-size: 1.5rem; }
.page-content-wrap h3, .single-content h3 { color: var(--primary); margin: 24px 0 10px; font-size: 1.2rem; }
.page-content-wrap p, .single-content p { margin-bottom: 16px; }
.page-content-wrap img, .single-content img { max-width: 100%; border-radius: var(--radius); }
.page-content-wrap ul, .single-content ul,
.page-content-wrap ol, .single-content ol {
    margin: 0 0 20px; padding-inline-start: 22px; display: grid; gap: 10px;
}
.page-content-wrap ul li, .single-content ul li,
.page-content-wrap ol li, .single-content ol li {
    background: var(--bg); padding: 10px 16px; border-radius: 8px; list-style-position: inside;
}
.page-content-wrap blockquote, .single-content blockquote {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; border-radius: var(--radius); padding: 24px 28px; margin: 24px 0;
    border-inline-start: 4px solid var(--accent);
}
.page-content-wrap blockquote p, .single-content blockquote p {
    font-size: 1.1rem; margin-bottom: 8px; color: #fff;
}
.page-content-wrap blockquote cite, .single-content blockquote cite {
    display: block; font-style: normal; font-weight: 700; opacity: 0.9; font-size: 0.9rem;
}

.single-container { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; align-items: start; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.single-main, .single-sidebar { min-width: 0; } /* prevents grid children from overflowing their track and getting clipped when content (long names, emails, numbers) can't shrink below its intrinsic width */
.single-main { background: var(--bg-white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); overflow-wrap: break-word; }
.single-title { font-size: 1.9rem; color: var(--primary); margin: 12px 0 16px; line-height: 1.4; }
.single-meta { display: flex; gap: 20px; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.news-tag.static { display: inline-block; position: static; background: var(--accent); color: var(--primary-dark); padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }

.single-sidebar .widget { background: var(--bg-white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; overflow-wrap: break-word; word-break: break-word; }
.widget-title { color: var(--primary); font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.sidebar-news-list { list-style: none; padding: 0; margin: 0; }
.sidebar-news-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.sidebar-news-list li:last-child { border-bottom: none; }
.sidebar-news-list a { text-decoration: none; color: var(--text); display: block; }
.sidebar-news-list a:hover { color: var(--primary); }
.sidebar-news-date { display: block; font-size: 0.75rem; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.sidebar-news-title { font-size: 0.9rem; line-height: 1.5; }
.college-facts ul { list-style: none; padding: 0; margin: 0; }
.college-facts li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; color: var(--text-light); display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; line-height: 1.6; }
.college-facts i { color: var(--accent); width: 18px; flex-shrink: 0; margin-top: 3px; }

/* ---- Generic styling for any default WordPress widget an admin drags
   into the sidebar (search, recent posts, categories, archives, tag
   cloud, calendar, text, RSS...) so the sidebar always looks like part
   of the site design instead of raw unstyled WordPress markup. ---- */
.single-sidebar .widget * { max-width: 100%; box-sizing: border-box; }
.single-sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.single-sidebar .widget ul ul { padding-inline-start: 16px; margin-top: 6px; }
.single-sidebar .widget li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.single-sidebar .widget li:last-child { border-bottom: none; }
.single-sidebar .widget a { color: var(--text-light); text-decoration: none; transition: var(--transition); }
.single-sidebar .widget a:hover { color: var(--primary); }
.single-sidebar .widget p { color: var(--text-light); font-size: 0.9rem; line-height: 1.8; margin: 0 0 10px; }
.single-sidebar .widget p:last-child { margin-bottom: 0; }
.single-sidebar .widget img { height: auto; border-radius: 8px; }
.single-sidebar .widget select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-white); color: var(--text); font-family: inherit; }
.single-sidebar .widget .wp-block-search__input,
.single-sidebar .widget input[type="text"],
.single-sidebar .widget input[type="search"] {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px 0 0 8px; font-family: inherit; font-size: 0.92rem; background: var(--bg);
}
.single-sidebar .widget .wp-block-search__button,
.single-sidebar .widget input[type="submit"] {
    padding: 11px 16px; background: var(--primary); color: #fff; border: none; border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 700; transition: var(--transition);
}
.single-sidebar .widget .wp-block-search__button:hover,
.single-sidebar .widget input[type="submit"]:hover { background: var(--primary-light); }
.single-sidebar .widget form.search-form,
.single-sidebar .widget .wp-block-search__inside-wrapper { display: flex; }
.single-sidebar .widget table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.single-sidebar .widget caption { color: var(--primary); font-weight: 700; margin-bottom: 10px; text-align: start; }
.single-sidebar .widget th, .single-sidebar .widget td { padding: 8px; text-align: center; border: 1px solid var(--border); }
.single-sidebar .widget .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.single-sidebar .widget .tagcloud a { background: var(--bg); padding: 6px 12px; border-radius: 16px; font-size: 0.82rem !important; border-bottom: none; }
.single-sidebar .widget .tagcloud a:hover { background: var(--accent); color: var(--primary-dark); }

.info-block { background: var(--bg-white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-bottom: 24px; }
.about-tabs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1100px; margin: 0 auto; }
.info-block.wide { grid-column: 1 / -1; }
.info-block h3 { color: var(--primary); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.info-block h3 i { color: var(--accent); }
.info-block p { color: var(--text-light); margin-bottom: 10px; line-height: 1.8; }
.goals-list, .dept-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.goals-list li, .dept-list li { background: var(--bg); padding: 12px 16px; border-radius: 8px; color: var(--text-light); font-size: 0.93rem; display: flex; gap: 8px; align-items: flex-start; }
.dept-list li i { color: var(--accent); margin-top: 3px; }
.president-block { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }
.president-block h3, .president-block h3 i { color: #fff; }
.president-block blockquote { font-size: 1.1rem; font-style: normal; border-right: 4px solid var(--accent); padding-right: 16px; margin: 12px 0; line-height: 1.8; }
.president-name { font-weight: 800; margin-top: 12px; }
.president-title { opacity: 0.85; font-size: 0.9rem; }
.facts-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.fact-item { text-align: center; background: var(--bg); border-radius: 10px; padding: 20px 10px; }
.fact-num { display: block; font-size: 2rem; font-weight: 900; color: var(--primary); }
.fact-label { font-size: 0.82rem; color: var(--text-muted); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; max-width: 1100px; margin: 0 auto 40px; }
.contact-info-col { background: var(--bg-white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item i { width: 44px; height: 44px; background: var(--bg); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item h4 { color: var(--primary); margin-bottom: 4px; font-size: 0.95rem; }
.contact-item p { color: var(--text-light); font-size: 0.9rem; margin: 0; }
.contact-social { margin-top: 8px; }
.contact-form-col { background: var(--bg-white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-form-col .wpcf7-form-control, .wau-input {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
    font-family: 'Tajawal', sans-serif; margin-bottom: 16px; transition: var(--transition);
}
.contact-form-col .wpcf7-form-control:focus, .wau-input:focus { outline: none; border-color: var(--primary-light); }
.contact-form-col .wpcf7-submit, .comment-form .submit input {
    background: var(--primary); color: #fff; border: none; padding: 12px 32px; border-radius: 8px;
    cursor: pointer; font-family: 'Tajawal', sans-serif; font-weight: 700; transition: var(--transition);
}
.contact-form-col .wpcf7-submit:hover, .comment-form .submit input:hover { background: var(--primary-dark); }
.cf7-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; }
.map-wrap { max-width: 1100px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }

/* News grid (blog/archive/search) */
.news-grid-full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0; }
.pagination .page-numbers {
    display: flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
    border-radius: 8px; background: var(--bg-white); color: var(--text); text-decoration: none;
    box-shadow: var(--shadow); font-weight: 600; transition: var(--transition);
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary); color: #fff; }

/* Search form */
.wau-search-form { display: flex; border: 1px solid var(--border); border-radius: 30px; overflow: hidden; background: var(--bg-white); }
.wau-search-input { flex: 1; border: none; padding: 12px 20px; font-family: 'Tajawal', sans-serif; outline: none; }
.wau-search-btn { background: var(--primary); color: #fff; border: none; padding: 0 22px; cursor: pointer; }
.wau-search-btn:hover { background: var(--primary-dark); }

/* 404 */
.error-404-section { padding: 100px 0; }
.error-code { font-size: 7rem; font-weight: 900; color: var(--accent); line-height: 1; }
.error-404-section h1 { color: var(--primary); margin: 12px 0; }
.error-404-section p { color: var(--text-light); margin-bottom: 24px; }

/* Comments */
.comments-area { max-width: 900px; margin: 40px auto 0; }
.comments-title { color: var(--primary); margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { background: var(--bg-white); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.comment-form p { margin-bottom: 12px; }

/* Page links (multi-page posts) */
.page-links { margin: 24px 0; color: var(--text-muted); }
.page-links a { color: var(--primary); margin: 0 4px; }

/* Department cards (college page — الأقسام العلمية tab) */
.dept-cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.dept-card {
    background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 28px; transition: var(--transition);
    display: block; width: 100%; text-align: start; border: none; cursor: pointer; font-family: inherit;
}
.dept-card:hover, .dept-card:focus-visible { box-shadow: var(--shadow-lg); transform: translateY(-3px); outline: none; border-top: 3px solid var(--accent); padding-top: 25px; }
.dept-card h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 10px; }
.dept-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.7; margin-bottom: 16px; }
.dept-card-footer { display: flex; gap: 20px; font-size: 0.85rem; color: var(--text-muted); padding-top: 14px; border-top: 1px solid var(--border); }
.dept-card-footer span { display: flex; align-items: center; gap: 6px; }
.dept-card-footer i { color: var(--accent); }
.dept-card-cta { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.dept-card-cta i { transition: transform 0.25s; }
.dept-card:hover .dept-card-cta i { transform: translateX(-4px); }

/* Department detail panel (cloned from <template> on card click) */
.dept-detail-panel {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent);
    padding: 32px;
    margin-top: 28px;
}
.dept-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 8px; }
.dept-detail-head h3 { font-size: 1.5rem; color: var(--primary); margin: 10px 0 8px; }
.dept-detail-desc { color: var(--text-light); line-height: 1.8; max-width: 700px; }
.dept-detail-close {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg);
    color: var(--text-muted); cursor: pointer; flex-shrink: 0; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.dept-detail-close:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.dept-detail-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.dept-detail-section:first-of-type { margin-top: 24px; }
.dept-detail-section h4 { color: var(--primary); font-size: 1.1rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.dept-detail-section h4 i { color: var(--accent); }
.dept-head-card { display: flex; align-items: center; gap: 16px; }
.dept-head-card strong { display: block; color: var(--primary); font-size: 1.05rem; }
.dept-head-card span { color: var(--text-muted); font-size: 0.88rem; }

/* Repository item keywords (Dublin Core dc.subject) */
.pub-keywords { margin: 20px 0; }
.pub-keyword-tag {
    display: inline-block; background: var(--bg); color: var(--primary);
    font-size: 0.82rem; padding: 4px 14px; border-radius: 16px; margin: 4px 4px 0 0;
}

/* Faculty directory grid */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.staff-card {
    background: var(--bg-white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); display: block;
}
.staff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.staff-photo {
    height: 200px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-photo i { font-size: 4rem; color: rgba(255,255,255,0.85); }
.staff-body { padding: 20px; }
.staff-rank {
    display: inline-block; background: var(--accent); color: var(--primary-dark);
    font-size: 0.72rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; margin-bottom: 8px;
}
.staff-body h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 8px; }
.staff-body p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.staff-body p i { color: var(--accent); width: 16px; }

/* Faculty profile header */
.profile-header {
    display: flex; gap: 28px; align-items: center; background: var(--bg-white);
    border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.profile-photo {
    width: 160px; height: 160px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center; border: 4px solid var(--accent);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo i { font-size: 4rem; color: rgba(255,255,255,0.85); }
.profile-heading h1 { color: var(--primary); font-size: 1.7rem; margin: 8px 0 6px; }
.profile-spec, .profile-dept { color: var(--text-light); font-size: 0.95rem; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.profile-spec i, .profile-dept i { color: var(--accent); }
.profile-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.profile-links a {
    display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--primary);
    background: var(--bg); padding: 6px 14px; border-radius: 20px; text-decoration: none; transition: var(--transition);
}
.profile-links a:hover { background: var(--primary); color: #fff; }

@media (max-width: 968px) {
    .staff-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-header { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
    .staff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 968px) {
    .single-container, .about-tabs-grid, .contact-grid { grid-template-columns: 1fr; }
    .goals-list, .dept-list { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid-full { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .news-grid-full { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .error-code { font-size: 4.5rem; }
}

/* ============================================
   Leadership page (page-leadership.php) —
   President's message + University Council grid
   ============================================ */
.leader-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: center;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border-top: 4px solid var(--accent);
}
.leader-hero-photo img,
.leader-hero-photo-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    object-fit: cover;
    display: block;
}
.leader-hero-photo-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    font-size: 4rem;
}
.leader-hero-text blockquote,
.leader-hero-text .page-content-wrap {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.9;
    border-right: 4px solid var(--accent);
    padding-right: 20px;
    margin: 12px 0 20px;
}
body.dir-ltr .leader-hero-text blockquote,
body.dir-ltr .leader-hero-text .page-content-wrap {
    border-right: none;
    border-left: 4px solid var(--accent);
    padding-right: 0;
    padding-left: 20px;
}
.leader-name { font-size: 1.15rem; font-weight: 800; color: var(--primary); margin-top: 8px; }
.leader-title { color: var(--text-muted); font-size: 0.9rem; }

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.leader-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.leader-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}
.leader-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--primary); }
.leader-card p { color: var(--text-muted); font-size: 0.88rem; }
.leader-card-link .leader-card-icon { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%); color: var(--primary-dark); }

@media (max-width: 768px) {
    .leader-hero { grid-template-columns: 1fr; padding: 24px; }
    .leader-hero-photo { max-width: 240px; margin: 0 auto; }
}

/* ============================================
   Homepage — President's Message strip
   ============================================ */
.president-section {
    background: var(--primary-dark);
    color: white;
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.president-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    opacity: 0.9;
}
.president-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 40px;
    align-items: center;
}
.president-photo,
.president-photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
}
.president-quote { font-size: 1.2rem; line-height: 1.9; color: rgba(255,255,255,0.92); }
.president-quote i.fa-quote-right { color: var(--accent); margin-left: 10px; }
.president-meta { font-weight: 700; margin-top: 14px; color: var(--accent-light); }
.president-meta span { display: block; font-weight: 400; color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.president-cta {
    white-space: nowrap;
}
@media (max-width: 968px) {
    .president-grid { grid-template-columns: 1fr; text-align: center; }
    .president-photo, .president-photo-placeholder { margin: 0 auto; }
}

/* ============================================
   Default logo badge (wau_entity_logo()) —
   colleges / centers / administrations without
   a real uploaded logo yet
   ============================================ */
.wau-logo-badge {
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: 'Amiri', 'Tajawal', serif;
    font-size: 2rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.wau-logo-letter {
    font-weight: 800;
    font-family: 'Amiri', 'Tajawal', serif;
}
.college-logo .wau-logo-letter { font-size: 2.8rem; color: var(--primary); }
@media (max-width: 576px) {
    .college-logo .wau-logo-letter { font-size: 2.2rem; }
}

/* Centers & Administrations archive — rebuilt on the same light
   faculty-card pattern used by colleges (was previously a "glass"
   card meant for a dark section background, unreadable on the
   plain light section this archive actually renders in). */
.center-card-header {
    height: 130px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.center-card-header img,
.center-card-header .wau-logo-badge { width: 76px; height: 76px; }
.center-card-header img { object-fit: contain; background: #fff; border-radius: 50%; padding: 6px; box-shadow: 0 4px 14px rgba(0,0,0,0.15); }

/* Single center/administration hero (mirrors .college-logo) */
.center-logo {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.center-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; padding: 10px; }
.center-logo .wau-logo-letter { font-size: 2.8rem; color: var(--primary); }
@media (max-width: 576px) {
    .center-logo { width: 84px; height: 84px; }
    .center-logo .wau-logo-letter { font-size: 2.2rem; }
}

/* ============================================
   Homepage — Video section (university YouTube channel)
   ============================================ */
.video-section { background: var(--bg-white); }
.video-wrap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
    background: var(--primary-dark);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(255,255,255,0.85);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    text-align: center;
    padding: 20px;
}
.video-placeholder i { font-size: 3.5rem; color: var(--accent); }
.video-placeholder p { max-width: 420px; font-size: 0.95rem; }
.video-channel-link {
    text-align: center;
    margin-top: 20px;
}

/* ============================================
   Client-side grid pagination (data-paginate)
   ============================================ */
.wau-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}
.wau-page-numbers { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.wau-page-arrow, .wau-page-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--primary);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.wau-page-num:hover, .wau-page-arrow:not(:disabled):hover { background: var(--bg); border-color: var(--primary); }
.wau-page-num.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.wau-page-arrow:disabled { opacity: 0.35; cursor: not-allowed; }

/* ============================================
   Homepage — Admission CTA cards (replaces the
   old mid-page colleges grid)
   ============================================ */
.admission-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}
.admission-cta-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
    border-top: 4px solid var(--accent);
}
.admission-cta-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.admission-cta-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
}
.admission-cta-card h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 10px; }
.admission-cta-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.7; margin-bottom: 18px; }
.admission-cta-card .service-link { justify-content: center; }

/* ============================================
   Homepage — Testimonials ("ماذا قالوا عنا")
   ============================================ */
.testimonials-section { background: var(--bg-white); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}
.testimonial-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    border-top: 3px solid var(--accent);
}
.testimonial-quote-icon { color: var(--accent); opacity: 0.35; font-size: 1.8rem; margin-bottom: 12px; display: block; }
.testimonial-text { color: var(--text-light); line-height: 1.9; font-size: 0.98rem; margin-bottom: 22px; min-height: 90px; }
.testimonial-person { display: flex; align-items: center; gap: 14px; }
.testimonial-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial-person strong { display: block; color: var(--primary); font-size: 0.95rem; }
.testimonial-person span { color: var(--text-muted); font-size: 0.82rem; }

/* ---- Main-menu links: no browser-default blue/underline/visited-purple ---- */
.nav-item > a,
.nav-item > a:visited,
a.mobile-menu-item,
a.mobile-menu-item:visited {
    color: inherit;
    text-decoration: none;
}
.nav-item > a { display: block; }
.nav-item > a:hover,
.nav-item > a:focus-visible { color: var(--primary); text-decoration: none; }
