/* ==========================================================================
   Impeleo Learn 3.1 - global styles (header, footer, pages, archives, forms).
   Home-page-only sections live in home.css (loaded on the front page only).
   Brand colours: primary #003366, secondary #8B0000, accent #DAA520 (unchanged).
   Fonts: system stacks only (no external requests).
   ========================================================================== */
:root {
	--primary: #003366;
	--primary-dark: #002244;
	--secondary: #8B0000;
	--secondary-dark: #6f0000;
	--accent: #DAA520;
	--dark: #1a1a1a;
	--light: #f4f6f8;
	--text: #2b3440;
	--muted: #566170;
	--line: #dde3ea;
	--white: #fff;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--font-head: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	/* Type scale */
	--fs-xs: .8125rem;
	--fs-sm: .9375rem;
	--fs-base: 1rem;
	--fs-md: 1.125rem;
	--fs-lg: 1.375rem;
	--fs-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
	--fs-2xl: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
	--radius: 12px;
	--radius-sm: 8px;
	--shadow-sm: 0 1px 3px rgba(16, 32, 56, .08), 0 1px 2px rgba(16, 32, 56, .06);
	--shadow: 0 6px 20px rgba(16, 32, 56, .10);
	--shadow-lg: 0 18px 40px rgba(16, 32, 56, .16);
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-base); color: var(--text); line-height: 1.65; background: #fff; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--primary); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3 { font-size: var(--fs-lg); } h4 { font-size: var(--fs-md); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }
.entry-content a, .archive-desc a, .comment-content a { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
svg.icon { flex: none; vertical-align: -3px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Accessibility */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; margin: 0; padding: 12px 20px; background: #fff; color: var(--primary); font-weight: 700; z-index: 100000; box-shadow: var(--shadow); border-radius: var(--radius-sm); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.page-header :focus-visible, .cta :focus-visible, .stats :focus-visible, .footer :focus-visible, .hero-slider :focus-visible, .admissions :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }

/* Top bar */
.top-bar { background: var(--dark); color: #e9edf2; font-size: var(--fs-xs); padding: 7px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.top-left { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.top-left span { display: inline-flex; align-items: center; gap: 6px; }
.top-bar a { color: var(--accent); }
.top-bar a.plain { color: inherit; }
.top-bar a:hover, .top-bar a.plain:hover { color: #fff; }
.social { display: flex; gap: 6px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; transition: background .2s, color .2s; }
.social a:hover { background: var(--accent); color: var(--dark); }
.top-links { margin-left: auto; }
.top-links-list { display: flex; flex-wrap: wrap; gap: 4px 4px; list-style: none; margin: 0; padding: 0; }
.top-links-list li { list-style: none; }
.top-links-list a { display: block; padding: 2px 11px; color: #e9edf2; font-weight: 600; border-radius: 14px; }
.top-links-list a:hover, .top-links-list .current-menu-item > a, .top-links-list .current_page_item > a { background: rgba(255, 255, 255, .14); color: #fff; }
.top-links + .account-links { margin-left: 4px; }
.account-links { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; margin-right: 12px; }
.account-links a { padding: 2px 12px; border: 1px solid rgba(218, 165, 32, .6); border-radius: 14px; font-weight: 600; }
.account-links a:hover { background: var(--accent); color: var(--dark); }

/* Header */
.header { background: #fff; box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(16, 32, 56, .05); position: sticky; top: 0; z-index: 100; transition: box-shadow .25s; }
.header .container { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; padding-bottom: 12px; gap: 16px; transition: padding .25s; }
.header.is-shrunk { box-shadow: var(--shadow); }
.header.is-shrunk .container { padding-top: 6px; padding-bottom: 6px; }
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo img { height: 54px; width: auto; transition: height .25s; }
.header.is-shrunk .logo img { height: 40px; }
.site-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.site-title a { color: var(--primary); }
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list li { list-style: none; }
.nav-list > li > a { display: block; padding: 14px 14px; font-weight: 600; font-size: var(--fs-sm); color: var(--primary); position: relative; }
.nav-list > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: var(--secondary); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-list > li:hover > a, .nav-list > li:focus-within > a, .nav-list .current-menu-item > a, .nav-list .current_page_item > a { color: var(--secondary); }
.nav-list > li:hover > a::after, .nav-list > li:focus-within > a::after, .nav-list .current-menu-item > a::after, .nav-list .current_page_item > a::after { transform: scaleX(1); }
.has-dropdown, .menu-item-has-children { position: relative; }
.has-dropdown.is-dismissed > .dropdown, .menu-item-has-children.is-dismissed > .sub-menu { display: none !important; }
.dropdown, .sub-menu { position: absolute; top: 100%; left: 0; background: #fff; min-width: 230px; box-shadow: var(--shadow-lg); border-radius: var(--radius-sm); border-top: 3px solid var(--secondary); list-style: none; padding: 8px 0; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 200; }
.dropdown-toggle { cursor: pointer; }
.dropdown-toggle::after { /* caret */ }
.has-dropdown.is-open > .dropdown, .menu-item-has-children.is-open > .sub-menu, .has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown, .menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown li a, .sub-menu li a { display: block; padding: 10px 18px; font-weight: 600; font-size: var(--fs-sm); color: var(--primary); }
.dropdown li a:hover, .sub-menu li a:hover { background: var(--light); color: var(--secondary); }
.apply-btn { margin-left: 12px; }
.header .btn.apply-btn { background: var(--secondary); color: #fff; }
.header .btn.apply-btn:hover { background: var(--secondary-dark); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: var(--radius-sm); color: var(--primary); }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; content: ""; position: relative; margin: 0 auto; }
.menu-toggle .bars::before { top: -7px; position: absolute; left: 0; }
.menu-toggle .bars::after { top: 7px; position: absolute; left: 0; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 24px; border: 2px solid transparent; border-radius: 999px; font: inherit; font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; cursor: pointer; background: var(--primary); color: #fff; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; text-align: center; }
.btn:hover { color: #fff; background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: var(--secondary-dark); color: #fff; }
.btn-gold { background: var(--accent); color: #1a1a1a; }
.btn-gold:hover { background: #f0b82d; color: #1a1a1a; }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-outline-dark { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: var(--fs-xs); }
.btn-lg { padding: 14px 32px; font-size: var(--fs-base); }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.text-link { font-weight: 700; color: var(--secondary); display: inline-flex; align-items: center; gap: 4px; }
.text-link:hover { text-decoration: underline; }

/* Page header banner + breadcrumbs */
.page-header { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #0a4a85 100%); color: #fff; padding: 42px 0 36px; position: relative; overflow: hidden; border-bottom: 4px solid var(--secondary); }
.page-header::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(218, 165, 32, .12); }
.page-header .container { position: relative; z-index: 1; }
.page-header-title { color: #fff; font-size: var(--fs-xl); margin: 0 0 6px; }
.page-header-sub { margin: 0 0 8px; opacity: .92; font-size: var(--fs-md); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 8px 0 0; padding: 0; font-size: var(--fs-xs); }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "›"; margin: 0 8px; opacity: .7; }
.breadcrumbs a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { opacity: .85; }

/* Page layouts */
.page-wrap { padding: 48px 20px 64px; }
.page-wrap.narrow { max-width: 820px; }
.narrow-read { max-width: 820px; }
.page-wrap.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.page-title { color: var(--primary); margin-bottom: 18px; }
.section-title { text-align: center; color: var(--primary); margin-bottom: 30px; }
.archive-main > .container { padding-top: 48px; padding-bottom: 64px; }
.archive-desc { max-width: 760px; margin: 0 auto 32px; text-align: center; color: var(--muted); }
.text-center { text-align: center; }
.lead-line { text-align: center; margin-bottom: 30px; color: var(--muted); }
.muted { color: var(--muted); margin-top: 20px; font-size: var(--fs-sm); }
.entry-thumb { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.entry-thumb img { width: 100%; }
.entry-meta, .entry-tags { color: var(--muted); font-size: var(--fs-sm); }
.entry-content { font-size: var(--fs-md); }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content blockquote { border-left: 4px solid var(--accent); margin: 1.4em 0; padding: .4em 0 .4em 1.2em; font-family: var(--font-head); font-size: var(--fs-lg); color: var(--primary); }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.alignwide { max-width: 1100px; }
.side-card { background: var(--light); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--secondary); position: sticky; top: calc(var(--header-h) + 16px); }
.side-title { font-size: var(--fs-md); margin-bottom: 12px; }
.tag { display: inline-block; background: #fdecec; color: var(--secondary); font-size: var(--fs-xs); font-weight: 700; padding: 2px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--light); border-radius: var(--radius); }
.big-404 { font-family: var(--font-head); font-size: clamp(5rem, 20vw, 9rem); font-weight: 700; color: var(--secondary); line-height: 1; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact-h { font-size: var(--fs-lg); }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; background: #fff; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-navigation a { font-weight: 600; }

/* Cards: programs, news, faculty, events, search */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.faculty-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.faculty-grid .faculty-card { flex: 0 1 250px; }
.prog-card, .news-card, .faculty-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; position: relative; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.prog-card { border-top: 4px solid var(--secondary); }
.prog-card:hover, .news-card:hover, .faculty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--light); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prog-card:hover .card-thumb img, .news-card:hover .card-thumb img { transform: scale(1.05); }
.prog-body, .news-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.prog-meta { color: var(--secondary); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.prog-title, .news-title { font-size: var(--fs-md); margin-bottom: 8px; }
.prog-title a, .news-title a { color: var(--primary); }
.prog-title a:hover, .news-title a:hover { color: var(--secondary); }
.prog-text { color: var(--muted); font-size: var(--fs-sm); }
.prog-actions { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.news-meta { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.news-body .text-link { margin-top: auto; }
.faculty-card { padding: 26px 20px; text-align: center; align-items: center; }
.faculty-avatar { display: block; }
.faculty-avatar img, .avatar-placeholder { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.faculty-avatar.large img, .faculty-avatar.large .avatar-placeholder { width: 160px; height: 160px; }
.avatar-placeholder { background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; }
.faculty-name { font-size: var(--fs-md); margin: 4px 0 2px; }
.faculty-name a { color: var(--primary); }
.faculty-role { color: var(--secondary); font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; }
.faculty-text { color: var(--muted); font-size: var(--fs-sm); }
.check-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--secondary); margin-top: 3px; }
.check-list.compact { gap: 5px; font-size: var(--fs-sm); }

/* Events */
.event-list { display: grid; gap: 16px; }
.event-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.event-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event-item.is-past { opacity: .8; }
.date-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 84px; height: 92px; border-radius: var(--radius-sm); background: var(--secondary); color: #fff; text-align: center; line-height: 1.1; }
.date-badge .d-day { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.date-badge .d-mon { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.date-badge .d-year { font-size: .7rem; opacity: .85; }
.date-badge-tbc { background: var(--primary); padding: 6px; }
.event-title { font-size: var(--fs-md); margin: 0 0 4px; }
.event-title a { color: var(--primary); }
.event-title a:hover { color: var(--secondary); }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: var(--fs-xs); margin: 0 0 6px; }
.event-meta span { display: inline-flex; gap: 5px; align-items: center; }
.event-text { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.event-more { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: var(--light); color: var(--primary); transition: background .2s, color .2s; }
.event-more:hover { background: var(--primary); color: #fff; }

/* Search */
.search-form { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 24px; }
.search-form .field { flex: 1; }
.search-results { list-style: none; padding: 0; display: grid; gap: 16px; max-width: 820px; margin: 0 auto; }
.search-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm); }
.search-title { font-size: var(--fs-lg); margin: 6px 0; }

/* Forms + notices */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.map-frame { border: 0; display: block; width: 100%; min-height: 350px; border-radius: var(--radius); }
.form-stack { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.field { width: 100%; padding: 12px 14px; border: 1px solid #b9c2cd; border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--text); }
.field:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 51, 102, .15); outline: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin: 16px 0; border-left: 4px solid var(--primary); background: #eef4fa; }
.notice-ok { background: #e8f5e9; border-color: #2e7d32; }
.notice-err { background: #fdecea; border-color: #c62828; }
.notice-info { background: #eef4fa; border-color: var(--primary); margin-top: 30px; }
.lms-page .container { max-width: 1180px; }
.comments-area { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--light); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px; border: 1px solid #b9c2cd; border-radius: var(--radius-sm); font: inherit; }
.comment-form .submit { background: var(--secondary); color: #fff; border: 0; padding: 12px 26px; border-radius: 999px; font-weight: 700; cursor: pointer; }

/* Bookstore fallback (plugin has its own styles) */
.ib-store { max-width: 1100px; margin: 0 auto; }
.ib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.ib-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; text-align: center; }
.ib-card img { width: 100%; height: 260px; object-fit: contain; background: #f4f6f8; border-radius: 6px; }
.ib-card h3 { margin: 6px 0; font-size: var(--fs-md); }
.ib-price { color: var(--secondary); font-weight: 700; margin: 8px 0; }
.ib-add { background: var(--secondary); color: #fff; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; }

/* Footer */
.footer { background: #12202f; color: #d5dce6; margin-top: 0; border-top: 4px solid var(--secondary); }
.footer a { color: #d5dce6; }
.footer a:hover { color: var(--accent); }
.footer-widgets { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; max-width: 1180px; margin: 0 auto; padding: 56px 20px 40px; }
.footer h4, .footer .widget-title { color: #fff; font-family: var(--font-head); font-size: var(--fs-md); margin: 0 0 16px; position: relative; padding-bottom: 10px; }
.footer h4::after, .footer .widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--accent); border-radius: 2px; }
.footer-name { color: #fff; font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 700; margin-bottom: 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer h1, .footer h2, .footer h3, .footer h5, .footer h6, .footer .wp-block-heading { color: #fff; font-size: var(--fs-md); margin: 0 0 12px; }
.footer .widget_block ul, .footer .widget ul { list-style: none; padding: 0; }
.footer .widget li { padding: 3px 0; }
.footer-links li { padding: 4px 0; }
.footer-contact li { display: flex; gap: 10px; padding: 5px 0; align-items: flex-start; }
.footer-contact .icon { color: var(--accent); margin-top: 4px; }
.footer-col .widget { margin-bottom: 18px; }
.social-footer { margin-top: 14px; }
.social-footer a { background: rgba(255, 255, 255, .1); }
.copyright-bar { background: #0b1520; font-size: var(--fs-xs); padding: 16px 0; color: #b5c0ce; }
.copyright-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: center; }
.copyright-bar a { color: #e1e7ee; text-decoration: underline; text-underline-offset: 2px; }
.footer .footer-menu { display: inline-flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.footer .quick-menu a { margin-left: 14px; }
.footer .footer-menu a { margin: 0; }

/* Floating buttons + social rail */
.float-btn { position: fixed; bottom: 20px; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; z-index: 900; box-shadow: var(--shadow); transition: transform .2s; }
.float-btn:hover { color: #fff; transform: scale(1.08); }
.whatsapp-btn { left: 20px; background: #1a7f43; }
.tawk-btn { right: 20px; background: var(--primary); }
.back-to-top { position: fixed; bottom: 82px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--secondary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 900; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.back-to-top.is-visible { opacity: 1; transform: none; }
.back-to-top:hover { background: var(--secondary-dark); }
.social-sidebar { display: none; }
@media (min-width: 1280px) {
	.social-sidebar { display: flex; flex-direction: column; position: fixed; right: 0; bottom: 140px; z-index: 800; box-shadow: var(--shadow); border-radius: var(--radius-sm) 0 0 var(--radius-sm); overflow: hidden; }
	.social-sidebar a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--primary); color: #fff; width: 46px; overflow: hidden; white-space: nowrap; transition: width .25s, background .2s; font-size: var(--fs-xs); font-weight: 600; }
	.social-sidebar a + a { border-top: 1px solid rgba(255, 255, 255, .15); }
	.soc-label { visibility: hidden; }
	.social-sidebar a:hover .soc-label, .social-sidebar a:focus-visible .soc-label { visibility: visible; }
	.social-sidebar a:hover, .social-sidebar a:focus-visible { width: 140px; background: var(--secondary); color: #fff; }
}

/* Scroll reveal (only when JS is on and the user has not asked for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
	.js .reveal.is-visible { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1000px) {
	.footer-widgets { grid-template-columns: 1fr 1fr; }
	.page-wrap.with-aside { grid-template-columns: 1fr; }
	.side-card { position: static; }
	.nav-list > li > a { padding: 14px 9px; }
}
@media (max-width: 860px) {
	.menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.header .container { flex-wrap: wrap; }
	.main-nav { display: contents; }
	.nav-list { display: none; flex-direction: column; align-items: stretch; width: 100%; }
	.main-nav.is-open .nav-list { display: flex; }
	.nav-list > li > a { padding: 13px 8px; border-bottom: 1px solid var(--line); }
	.nav-list > li > a::after { display: none; }
	.dropdown, .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; padding: 0 0 0 16px; display: none; }
	.has-dropdown.is-open > .dropdown, .menu-item-has-children.is-open > .sub-menu { display: block; }
	.apply-btn { margin: 12px 0; width: 100%; }
	.main-nav:not(.is-open) .apply-btn { display: none; }
	.logo { flex: 1; }
	.menu-toggle { order: 1; }
	.nav-list { order: 2; }
	.apply-btn { order: 3; }
	.top-bar .container { justify-content: center; }
	.top-left { justify-content: center; }
	.top-addr { display: none !important; }
	.account-links { margin: 0; }
	.top-links { margin-left: 0; }
	.contact-grid { grid-template-columns: 1fr; }
	.ib-grid { grid-template-columns: repeat(2, 1fr); }
	.event-item { grid-template-columns: 72px minmax(0, 1fr); }
	.event-more { display: none; }
	.date-badge { width: 72px; height: 82px; }
	.page-header { padding: 30px 0 26px; }
}
@media (max-width: 600px) {
	.footer-widgets { grid-template-columns: 1fr; padding-top: 40px; }
	.ib-grid { grid-template-columns: 1fr; }
	.site-title { font-size: 1rem; }
	.page-wrap { padding: 32px 16px 48px; }
	.copyright-inner { flex-direction: column; text-align: center; }
	.footer .quick-menu a { margin: 0 8px; }
	.whatsapp-btn, .tawk-btn { width: 46px; height: 46px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Print */
@media print {
	.top-bar, .header .main-nav, .menu-toggle, .hero-slider, .slider-controls, .float-btn, .back-to-top, .social-sidebar, .footer-widgets, .cta, .page-header::after, .skip-link, .search-bar, .comment-form, .post-navigation, .pagination, .admin-hint { display: none !important; }
	body { color: #000; background: #fff; font-size: 11pt; }
	.header { position: static; box-shadow: none; }
	.page-header { background: none !important; color: #000; padding: 0 0 10px; border-bottom: 2px solid #000; }
	.page-header-title, .page-header .breadcrumbs a { color: #000; }
	.page-wrap.with-aside { display: block; }
	.side-card { position: static; border: 1px solid #999; }
	.copyright-bar, .footer { background: none; color: #000; border: 0; }
	a[href^="http"]:not(.btn)::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
	.reveal { opacity: 1 !important; transform: none !important; }
	.prog-card, .news-card, .event-item { box-shadow: none; break-inside: avoid; }
}

/* Shared text helpers */
.lead { font-size: var(--fs-md); color: var(--muted); }
.muted a, .entry-meta a, .entry-tags a, .lead a, .side-card p a, .notice a, .archive-desc a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- v3.2: news page, filter chips, search ---------- */
.news-archive { padding-top: 40px; padding-bottom: 56px; }
.news-filter { margin: 0 0 32px; }
.news-search { display: flex; gap: 10px; max-width: 520px; margin: 0 auto 22px; }
.news-search input[type=search] { flex: 1; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--primary); color: var(--primary); font-weight: 600; font-size: var(--fs-sm); background: #fff; }
.pill:hover, .pill.is-active { background: var(--primary); color: #fff; }
.pill-count { background: var(--light); color: var(--primary); border-radius: 999px; font-size: var(--fs-xs); padding: 1px 8px; font-weight: 700; }
.pill.is-active .pill-count, .pill:hover .pill-count { background: rgba(255, 255, 255, .22); color: #fff; }
.archive-main .news-grid .news-card .tag, .news-card .tag { background: var(--light); color: var(--secondary); }
.faculty-archive .filter-pills { margin-bottom: 34px; }
.prog-scroll{display:flex;overflow-x:auto;gap:1rem;scroll-snap-type:x mandatory;padding-bottom:1rem}.prog-scroll .prog-card{flex:0 0 280px;scroll-snap-align:start}

.prog-scroll{display:flex;overflow-x:auto;gap:1rem;scroll-snap-type:x mandatory;padding-bottom:1rem;scroll-behavior:smooth}
.prog-scroll .prog-card,.prog-scroll .about-card{flex:0 0 280px;scroll-snap-align:start}
