/* Kibogora Polytechnic - design polish (added 2026-09-19).
   Adds consistency and fixes layout issues WITHOUT changing brand colors, logo or layout settings.
   Remove this file + its two lines in gavias_edmix.libraries.yml to revert completely. */

/* 1. Type system: use the two fonts the theme already loads (Raleway headings, Open Sans body) */
html body, html body p, html body li, html body td, html body th, html body label, html body input, html body select, html body textarea, html body a { font-family: "Open Sans", Arial, sans-serif !important; }
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6, html body .title, html body .widget-title, html body .gsc-button, html body .btn, html body .menu > li > a { font-family: "Raleway", "Open Sans", Arial, sans-serif !important; }
body { line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
p { line-height: 1.75; }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -0.005em; }

/* 2. Justified text creates huge gaps between words; left-align is more readable */
[style*="text-align:justify"], [style*="text-align: justify"],
.field--type-text-with-summary p, .field--name-body p, .course-content .title, .course-content .title a { text-align: left !important; hyphens: none; }

/* 3. Course grid: real CSS grid, equal-height cards, no ragged rows */
.gva-view-grid-inner:has(.course-block) { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 24px; margin: 0 !important; }
.gva-view-grid-inner:has(.course-block) > .item-columns { float: none !important; width: auto !important; padding: 0 !important; margin: 0 !important; display: flex; }
.gva-view-grid-inner:has(.course-block) > .item-columns > div,
.gva-view-grid-inner:has(.course-block) .course-block,
.gva-view-grid-inner:has(.course-block) .course-block-inner { display: flex; flex-direction: column; width: 100%; }
.course-block-inner { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid rgba(20, 40, 90, .10); box-shadow: 0 2px 10px rgba(20, 40, 90, .06); transition: transform .2s ease, box-shadow .2s ease; }
.course-block-inner:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 40, 90, .14); }
.course-block-inner img:not(.hidden) { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; display: block; }
/* image slot: fixed ratio; also acts as the branded placeholder when the photo is missing */
.course-block-inner > :first-child:not(.course-content) { aspect-ratio: 3 / 2; overflow: hidden; background: linear-gradient(135deg, #7abce9, #2f4a9b); }
.course-block-inner:not(:has(img:not(.hidden)))::before { content: ""; display: block; aspect-ratio: 3 / 2; background: linear-gradient(135deg, #7abce9, #2f4a9b); }
.course-block-inner .course-content { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 14px; }
.course-block-inner .course-content .content-inner { flex: 1; }
.course-block-inner .course-content .title { font-size: 17px; font-weight: 700; margin: 0 0 10px; min-height: 2.6em; }
.course-block-inner .course-content .teacher { font-size: 13px; color: #55607a; }
.course-block-inner .content-action { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(20, 40, 90, .08); }
.course-block-inner .content-action a { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 12.5px; }

/* 4. Images that fail to load (set by kp-polish.js): hide the broken-image icon, show the branded placeholder */
img.kp-img-missing { visibility: hidden; }
.kp-img-missing-wrap { background: linear-gradient(135deg, #7abce9, #2f4a9b) !important; min-height: 140px; }

/* 5. Buttons and links: consistent rounded style, clear focus for keyboard users */
.gsc-button, a.btn, .btn { border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.gsc-button:hover, a.btn:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20, 40, 90, .2); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid #2f4a9b; outline-offset: 2px; }

/* 6. Header polish: clearer nav, larger click targets, subtle sticky shadow */
#header .menu > li > a { font-weight: 700; letter-spacing: .03em; }
.stuck, .gv-sticky-menu.has-sticky, .header-v1 .stuck { box-shadow: 0 4px 18px rgba(20, 40, 90, .14); }

/* 7. Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* 8. Service tiles (Students' Email / Apply Online / MIS / E-Learning / Journal): equal heights */
div:has(> .gsc-column.col-lg-2 + .gsc-column.col-lg-2 + .gsc-column.col-lg-2) { display: flex; flex-wrap: wrap; align-items: stretch; }
div:has(> .gsc-column.col-lg-2 + .gsc-column.col-lg-2 + .gsc-column.col-lg-2) > .gsc-column { float: none; display: flex; }
div:has(> .gsc-column.col-lg-2 + .gsc-column.col-lg-2 + .gsc-column.col-lg-2) > .gsc-column > .column-inner { width: 100%; }

/* 9. White text on the brand blue, everywhere (requested). Icons/links inherit white too. */
.gbb-row .gsc-column.col-lg-2 .column-inner, .gbb-row .gsc-column.col-lg-2 .column-inner *,
.gbb-row .gsc-column .notice, .gbb-row .gsc-column .notice *,
footer#footer, footer#footer *:not(.kp-keep),
.course-meta, .course-meta *,
.course-content:not(.course-block-inner > .course-content), .course-content:not(.course-block-inner > .course-content) *,
.kp-on-blue, .kp-on-blue * { color: #fff !important; }
.course-meta a, footer#footer a, .course-content:not(.course-block-inner > .course-content) a { text-decoration: none; }
.course-meta a:hover, footer#footer a:hover, .course-content:not(.course-block-inner > .course-content) a:hover { text-decoration: underline; }
/* thin white rules/borders inside blue panels stay visible */
.course-content:not(.course-block-inner > .course-content) .field--name-field-course-features .field__label { border-bottom-color: rgba(255,255,255,.55) !important; }

/* 10. Proportionate call-to-action button (was "extra large" and left-hugging the edge) */
.gsc-button.extra-large { font-size: 18px !important; padding: 14px 34px !important; line-height: 1.3 !important; display: inline-block; max-width: 100%; white-space: normal; }
/* 8b. Stretch the whole nested chain so the visible coloured tile fills the equal-height column */
div:has(> .gsc-column.col-lg-2 + .gsc-column.col-lg-2 + .gsc-column.col-lg-2) > .gsc-column > .column-inner,
div:has(> .gsc-column.col-lg-2 + .gsc-column.col-lg-2 + .gsc-column.col-lg-2) > .gsc-column > .column-inner > .column-content-inner { display: flex; flex-direction: column; flex: 1 1 auto; height: 100%; }
div:has(> .gsc-column.col-lg-2 + .gsc-column.col-lg-2 + .gsc-column.col-lg-2) > .gsc-column .column-content-inner > .widget,
div:has(> .gsc-column.col-lg-2 + .gsc-column.col-lg-2 + .gsc-column.col-lg-2) > .gsc-column .column-content-inner > .widget > .gsc-box-text-inner,
div:has(> .gsc-column.col-lg-2 + .gsc-column.col-lg-2 + .gsc-column.col-lg-2) > .gsc-column .column-content-inner > .widget > .content { flex: 1 1 auto; height: 100%; }

/* 11. Course info tiles (Teacher / Category / Duration / Level) */
.single-course .course-meta, .course-meta { display: flex; flex-wrap: wrap; gap: 18px 28px; padding: 22px 24px !important; }
.single-course .course-meta .meta-item, .course-meta .meta-item { flex: 1 1 200px; float: none !important; width: auto !important; margin: 0 !important; display: flex !important; gap: 12px; align-items: flex-start; min-width: 0; }
.course-meta .meta-item .content { min-width: 0; }
.course-meta .meta-item .lab { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; opacity: .95; }
.course-meta .meta-item .val, .course-meta .meta-item .val * { text-align: left !important; font-size: 16px; line-height: 1.45; }
.single-course .course-meta .meta-item.kp-empty, .course-meta .meta-item.kp-empty { display: none !important; }

/* 12. Article text on the blue course panel: comfortable measure and spacing */
.course-content:not(.course-block-inner > .course-content) p { line-height: 1.75; margin: 0 0 14px; }
.course-content:not(.course-block-inner > .course-content) .field--name-field-course-features li { padding: 6px 0; }

/* 13. Info-tile icons: white on the blue panel, one consistent size */
.single-course .course-meta .meta-item .icon, .course-meta .meta-item .icon { flex: 0 0 40px !important; width: 40px !important; height: 40px !important; margin: 0 !important; background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; filter: brightness(0) invert(1); }

/* 14. Info tiles: let the text use the space next to the icon (theme floats/fixed widths made it wrap into slivers) */
.single-course .course-meta .meta-item .content, .course-meta .meta-item .content { flex: 1 1 auto !important; float: none !important; width: auto !important; padding: 0 !important; margin: 0 !important; }
.single-course .course-meta .meta-item .lab, .single-course .course-meta .meta-item .val, .course-meta .meta-item .lab, .course-meta .meta-item .val { float: none !important; width: auto !important; display: block !important; }
.single-course .course-meta, .course-meta { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* 15. Text pasted into articles often carries inline font-family/size (Arial etc.); normalise to the site font */
[style*="font-family"] { font-family: inherit !important; }
.single-course .course-meta::before, .single-course .course-meta::after, .course-meta::before, .course-meta::after { display: none !important; content: none !important; }
.course-meta .meta-item .val, .course-meta .meta-item .val * { font-family: "Open Sans", Arial, sans-serif !important; }

/* 16. FOOTER polish ------------------------------------------------------------- */
footer#footer .footer-inner { padding-top: 56px; padding-bottom: 40px; }
/* column widths: contact / quick links / partners use the full row instead of leaving 3 empty columns */
@media (min-width: 992px) {
  footer#footer .footer-first.col-md-3 { width: 26%; }
  footer#footer .footer-second.col-md-2 { width: 18%; }
  footer#footer .footer-four.col-md-4 { width: 56%; }
}
/* headings */
footer#footer .widget-title, footer#footer h3, footer#footer h4 { font-size: 15px; letter-spacing: .12em; margin-bottom: 22px; padding-bottom: 12px; }
/* contact details: icon + text aligned, no awkward wrapping under the icon */
footer#footer .footer-first li, footer#footer .contact-info li { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; line-height: 1.55; list-style: none; }
footer#footer .footer-first li i, footer#footer .contact-info li i { flex: 0 0 18px; margin-top: 3px; text-align: center; }
footer#footer .footer-first ul, footer#footer .contact-info { padding: 0; margin: 0; }
footer#footer .footer-second li { margin: 0 0 10px; list-style: none; }
footer#footer .footer-second ul { padding: 0; margin: 0; }
footer#footer a { transition: opacity .15s ease; }
footer#footer a:hover { opacity: .8; }

/* partner logos: no table borders, even white cards in a responsive grid */
footer#footer table, footer#footer table tbody, footer#footer table tr, footer#footer table td, footer#footer table th,
.footer-inner table, .footer-inner table td, .footer-inner table tr { border: 0 !important; border-collapse: separate !important; box-shadow: none !important; outline: 0 !important; background: transparent; }
footer#footer table { width: 100% !important; display: block; }
footer#footer table tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
footer#footer table tr { display: contents; }
footer#footer table td { display: flex !important; align-items: center; justify-content: center; height: 100px; padding: 14px 16px !important; background: #fff !important; border-radius: 12px; box-shadow: 0 2px 10px rgba(11, 42, 85, .12) !important; transition: transform .18s ease, box-shadow .18s ease; }
footer#footer table td:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(11, 42, 85, .22) !important; }
footer#footer table td:empty { display: none !important; }
footer#footer table td a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
footer#footer table td img { max-width: 100% !important; max-height: 70px !important; width: auto !important; height: auto !important; object-fit: contain; display: block; }

/* copyright bar: clean white strip with BLACK text (requested) */
footer#footer .copyright { background: #fff !important; border-top: 1px solid rgba(11, 42, 85, .10); padding: 20px 0; }
footer#footer .copyright, footer#footer .copyright *, footer#footer .copyright a { color: #000 !important; text-align: center; font-size: 14px; }
footer#footer .copyright a { text-decoration: underline; }
@media (max-width: 575px) {
  footer#footer table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  footer#footer table td { height: 84px; padding: 10px 12px !important; }
  footer#footer table td img { max-height: 56px !important; }
  footer#footer .footer-inner { padding-top: 40px; }
}

/* 17. STATISTICS band (milestone counters) ---------------------------------------- */
.gbb-row:has(.milestone-block) {
  background: linear-gradient(135deg, #7abce9 0%, #4f9bd8 55%, #3f86c8 100%) !important;
  padding: 56px 0 !important; position: relative; overflow: hidden;
}
.gbb-row:has(.milestone-block)::before {           /* soft decorative glow, purely visual */
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 68%); pointer-events: none;
}
/* the columns' parent becomes a centred 4-up grid (was 4 narrow columns hugging the left edge) */
div:has(> .gsc-column .milestone-block) {
  display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
  max-width: 1170px; margin: 0 auto !important; padding: 0 15px !important; position: relative; z-index: 1;
}
div:has(> .gsc-column .milestone-block)::before, div:has(> .gsc-column .milestone-block)::after { display: none !important; content: none !important; }
div:has(> .gsc-column .milestone-block) > .gsc-column { float: none !important; width: auto !important; padding: 0 !important; margin: 0 !important; height: auto !important; min-height: 0 !important; }
div:has(> .gsc-column .milestone-block) > .gsc-column > .column-inner,
div:has(> .gsc-column .milestone-block) > .gsc-column .column-content-inner { height: auto !important; padding: 0 !important; margin: 0 !important; }

.milestone-block {
  display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 30px 20px 26px !important; margin: 0 !important; height: auto !important;
  background: rgba(255,255,255,.16) !important; border: 1px solid rgba(255,255,255,.38); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(11, 42, 85, .16), inset 0 1px 0 rgba(255,255,255,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.milestone-block:hover { transform: translateY(-6px); background: rgba(255,255,255,.24) !important; box-shadow: 0 18px 40px rgba(11, 42, 85, .26), inset 0 1px 0 rgba(255,255,255,.45); }
.milestone-block .milestone-icon { margin: 0 0 8px !important; }
.milestone-block .milestone-icon span, .milestone-block .milestone-icon i {
  display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45); font-size: 26px; color: #fff !important; line-height: 1;
}
.milestone-block .milestone-right { width: 100%; padding: 0 !important; margin: 0 !important; float: none !important; text-align: center; }
.milestone-block .milestone-number {
  font-family: "Raleway", "Open Sans", Arial, sans-serif !important; font-weight: 800; font-size: clamp(38px, 4.4vw, 54px) !important;
  line-height: 1.05 !important; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: #fff !important; text-shadow: 0 2px 10px rgba(11, 42, 85, .25);
}
.milestone-block .milestone-text {
  margin-top: 10px !important; font-size: 13px !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff !important; opacity: .95;
}
.milestone-block .milestone-text::before { content: ""; display: block; width: 34px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.7); margin: 0 auto 12px; }
@media (max-width: 575px) { .gbb-row:has(.milestone-block) { padding: 40px 0 !important; } div:has(> .gsc-column .milestone-block) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .milestone-block { padding: 22px 12px 20px !important; } .milestone-block .milestone-icon span { width: 50px; height: 50px; font-size: 21px; } .milestone-block .milestone-text { letter-spacing: .1em; font-size: 12px !important; } }
.milestone-block, .gbb-row .widget.milestone-block { border-radius: 20px !important; overflow: hidden; }
.milestone-block .milestone-text { font-family: "Open Sans", Arial, sans-serif !important; font-weight: 700 !important; }
/* Stat cards must never depend on the scroll-animation script to become visible (it fails on some phones) */
.milestone-block, .milestone-block[data-aos], .milestone-block.aos-init { opacity: 1 !important; transform: none !important; }
.milestone-block:hover { transform: translateY(-6px) !important; }
.gsc-column:has(.milestone-block), .gsc-column:has(.milestone-block) .column-inner, .gsc-column:has(.milestone-block) .column-content-inner { background: transparent !important; box-shadow: none !important; border: 0 !important; }
.gbb-row:has(.milestone-block) { padding-left: 16px !important; padding-right: 16px !important; }
div:has(> .gsc-column .milestone-block) { padding-left: 0 !important; padding-right: 0 !important; }
/* stats grid: explicit columns (2 on phones/tablets, 4 on desktop), centred with safe side margins */
div:has(> .gsc-column .milestone-block) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; width: min(1170px, calc(100vw - 40px)) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important; box-sizing: border-box; }
@media (min-width: 992px) { div:has(> .gsc-column .milestone-block) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }

/* 18. ABOUT-style pages: accordion cards, intro panel, sidebar ---------------------------- */
/* Accordion (Vision / Mission / Motto ...): clean cards with an accent edge and a chevron */
.panel-group .panel, .panel-group .panel-default { border: 0 !important; border-left: 5px solid #7abce9 !important; border-radius: 14px !important; box-shadow: 0 4px 18px rgba(11, 42, 85, .08) !important; margin: 0 0 16px !important; overflow: hidden; background: #fff; }
.panel-group .panel-heading { background: #fff !important; border: 0 !important; padding: 0 !important; }
.panel-group .panel-title { margin: 0 !important; }
.panel-group .panel-title a { display: block !important; position: relative; padding: 20px 56px 20px 24px !important; background: transparent !important; color: #0b2a55 !important; font-size: 21px !important; font-weight: 800 !important; line-height: 1.3 !important; text-decoration: none !important; text-shadow: none !important; }
.panel-group .panel-title a::after { content: "\f107"; font-family: FontAwesome; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; transition: transform .25s ease; color: #3f86c8; }
.panel-group .panel-title a[aria-expanded="true"]::after { transform: translateY(-50%) rotate(180deg); }
.panel-group .panel-title a::selection, .panel-group .panel-title *::selection { background: rgba(122, 188, 233, .35); color: #0b2a55; }
.panel-group .panel-body { padding: 2px 24px 24px !important; border: 0 !important; font-size: 16.5px; line-height: 1.8; color: #26324a; }
.panel-group .panel-body p, .panel-group .panel-body span { font-size: 16.5px !important; line-height: 1.8 !important; color: #26324a !important; }
/* On the About page, show Vision / Mission / Motto all at once (they are short) */
body:has(.menu--menu-second a.is-active[href="/about"]) .panel-collapse.collapse { display: block !important; height: auto !important; visibility: visible !important; }
body:has(.menu--menu-second a.is-active[href="/about"]) .panel-title a::after { display: none; }

/* Intro panel with a harsh inline azure (#037fec): bring it into the brand palette, rounded, roomy */
.column-inner[style*="#037fec"], [style*="background-color:#037fec"], [style*="background-color: #037fec"] {
  background: linear-gradient(135deg, #7abce9 0%, #4f9bd8 55%, #3f86c8 100%) !important; border-radius: 18px; box-shadow: 0 12px 34px rgba(11, 42, 85, .18); padding: 8px 6px;
}
.column-inner[style*="#037fec"] p, .column-inner[style*="#037fec"] p * { color: #fff !important; font-size: 17.5px !important; line-height: 1.8 !important; }

/* Sidebar: readable block titles, left-aligned link list with an active marker, legible promo card */
.sidebar .block-title, .sidebar .block-title span { color: #0b2a55 !important; font-size: 17px; font-weight: 800; letter-spacing: .04em; }
.sidebar .gva_menu, .sidebar .menu--menu-second ul { list-style: none; margin: 0; padding: 0; text-align: left !important; }
.sidebar .gva_menu li { display: block !important; float: none !important; text-align: left !important; margin: 0 !important; border-bottom: 1px solid rgba(11, 42, 85, .08); }
.sidebar .gva_menu li a { display: block !important; padding: 13px 14px 13px 16px !important; color: #0b2a55 !important; font-weight: 700; border-left: 4px solid transparent; transition: background .15s ease, border-color .15s ease; }
.sidebar .gva_menu li a:hover { background: rgba(122, 188, 233, .14); border-left-color: #7abce9; }
.sidebar .gva_menu li a.is-active, .sidebar .gva_menu li.menu-item--active-trail > a { border-left-color: #3f86c8; background: rgba(122, 188, 233, .2); color: #0b2a55 !important; }
.company-presentation { border-radius: 16px; box-shadow: 0 6px 22px rgba(11, 42, 85, .1); }
.company-presentation .title { color: #0b2a55 !important; font-size: 20px; font-weight: 800; }
.company-presentation .desc { color: #3b475c !important; font-size: 15.5px; line-height: 1.7; }
/* 18b. Accordion headings: kill the azure strip (theme + pasted highlight) -> white card header, navy text */
.panel-group .panel-heading, .panel-group .panel-heading *, .panel-group .panel-title, .panel-group .panel-title *,
.panel-group .panel-title a, .panel-group .panel-title a * { background: transparent !important; background-color: transparent !important; background-image: none !important; }
.panel-group .panel-heading { background: #fff !important; }
.panel-group .panel-title a, .panel-group .panel-title a * { color: #0b2a55 !important; }
/* Sidebar menu: full-width vertical list (the theme floated / right-aligned it) */
.sidebar .gva_menu, .sidebar .menu--menu-second .gva_menu, .sidebar .block-menu ul { display: block !important; width: 100% !important; float: none !important; justify-content: flex-start !important; text-align: left !important; }
.sidebar .gva_menu > li, .sidebar .block-menu li { display: block !important; width: 100% !important; float: none !important; }

/* 19. NOTICES heading + KP LANGUAGE CENTER tile: these sit on WHITE, so their text must be black (my white-on-blue rule reached them by mistake) */
.gbb-row .gsc-column .column-inner.notice .gsc-heading, .gbb-row .gsc-column .column-inner.notice .gsc-heading *,
.gbb-row .gsc-column .column-inner.notice h2.title, .gbb-row .gsc-column .column-inner.notice h2.title * { color: #000 !important; text-shadow: none !important; }
.gbb-row .gsc-column .column-inner.notice .gsc-heading .fa, .gbb-row .gsc-column .column-inner.notice .gsc-heading i, .gbb-row .gsc-column .column-inner.notice .gsc-heading .icon * { color: #3f86c8 !important; }
/* the notice list itself stays white on its blue box */
.gbb-row .gsc-column .column-inner.notice .gsc-box-text, .gbb-row .gsc-column .column-inner.notice .gsc-box-text * { color: #fff !important; }

/* KP Language Center: a readable white card in the same row as the blue service tiles */
.gbb-row .gsc-column.col-lg-2:has(a[href*="language-center"]) .column-inner {
  background: #fff !important; border-radius: 18px; box-shadow: 0 8px 26px rgba(11, 42, 85, .14); padding: 22px 18px !important; text-align: center;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 14px;
}
.gbb-row .gsc-column.col-lg-2:has(a[href*="language-center"]) .column-inner,
.gbb-row .gsc-column.col-lg-2:has(a[href*="language-center"]) .column-inner *:not(img) { color: #000 !important; text-shadow: none !important; }
.gbb-row .gsc-column.col-lg-2:has(a[href*="language-center"]) h2.title { font-size: 22px !important; line-height: 1.25 !important; font-weight: 800 !important; letter-spacing: .01em; margin: 0 !important; text-align: center !important; }
.gbb-row .gsc-column.col-lg-2:has(a[href*="language-center"]) h2.title::after, .gbb-row .gsc-column.col-lg-2:has(a[href*="language-center"]) .gsc-heading::after { margin-left: auto; margin-right: auto; }
.gbb-row .gsc-column.col-lg-2:has(a[href*="language-center"]) img { width: 100% !important; height: auto !important; border-radius: 14px; box-shadow: 0 4px 14px rgba(11, 42, 85, .18); display: block; }
.gbb-row .gsc-column.col-lg-2:has(a[href*="language-center"]) a:hover img { transform: scale(1.02); transition: transform .2s ease; }
/* service-tile row: side breathing room (tiles were flush with the screen edges) */
div:has(> .gsc-column.col-lg-2 + .gsc-column.col-lg-2 + .gsc-column.col-lg-2) { padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box; }

/* 20. Course cards: "Apply now" (goes to MIS) + "Details" (program page) button pair ------------- */
.kp-actions { display: flex !important; flex-wrap: wrap; gap: 10px; align-items: center; float: none !important; width: auto !important; }
.course-block-inner .content-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.course-block-inner .content-action .right:empty, .course-block-inner .content-action .right:has(.course-price:empty) { display: none; }
.kp-btn, .course-block-inner .content-action a.kp-btn { display: inline-flex !important; align-items: center; justify-content: center; padding: 10px 20px !important; border-radius: 999px !important; font-size: 12.5px !important; font-weight: 800 !important; letter-spacing: .07em; text-transform: uppercase; line-height: 1 !important; text-decoration: none !important; white-space: nowrap; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; }
.kp-btn-apply, .course-block-inner .content-action a.kp-btn-apply { background: linear-gradient(135deg, #7abce9 0%, #3f86c8 100%) !important; color: #fff !important; border: 2px solid transparent !important; box-shadow: 0 4px 12px rgba(63, 134, 200, .35); }
.kp-btn-apply:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(63, 134, 200, .45); color: #fff !important; }
.kp-btn-details, .course-block-inner .content-action a.kp-btn-details { background: #fff !important; color: #0b2a55 !important; border: 2px solid #0b2a55 !important; }
.kp-btn-details:hover { background: #0b2a55 !important; color: #fff !important; transform: translateY(-2px); }
@media (max-width: 400px) { .kp-btn { padding: 10px 16px !important; } }
/* button pair: sit side by side on narrow cards, align with the card text (theme added an indent) */
.kp-actions { gap: 8px !important; padding: 0 !important; margin: 0 !important; flex-wrap: wrap; }
.kp-btn, .course-block-inner .content-action a.kp-btn { flex: 1 1 auto; padding: 10px 14px !important; font-size: 12px !important; letter-spacing: .05em; }
.course-block-inner .content-action .left.kp-actions { flex: 1 1 100%; }
/* course grid: the theme's clearfix pseudo-elements became empty grid cells (pushed the first card right) */
.gva-view-grid-inner:has(.course-block)::before, .gva-view-grid-inner:has(.course-block)::after { display: none !important; content: none !important; }

/* 21. NOTICE BOARD (scoped to the Notices block ONLY; the service tiles use the same box class and must stay plain) ------------------------------------------------------------------------------- */
.gbb-row .gsc-column .column-inner.notice .gsc-box-text, .column-inner.notice .gsc-box-text, .column-inner.notice .gsc-box-text {
  background: linear-gradient(160deg, #7abce9 0%, #4f9bd8 60%, #3f86c8 100%) !important;
  border-radius: 20px !important; padding: 8px 0 !important; overflow: hidden; position: relative;
  box-shadow: 0 14px 34px rgba(11, 42, 85, .18) !important; border: 1px solid rgba(255, 255, 255, .35);
}
.column-inner.notice .gsc-box-text .box-content, .column-inner.notice .gsc-box-text .box-content { padding: 0 !important; }
/* each notice = one row */
.column-inner.notice .gsc-box-text .box-content p, .column-inner.notice .gsc-box-text .box-content p {
  display: flex !important; align-items: center; gap: 14px; margin: 0 !important; padding: 16px 22px 16px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .22); background: none !important; line-height: 1.45 !important;
  transition: background .18s ease, padding-left .18s ease; position: relative;
}
.column-inner.notice .gsc-box-text .box-content p:last-child, .column-inner.notice .gsc-box-text .box-content p:last-child { border-bottom: 0; }
.column-inner.notice .gsc-box-text .box-content p:hover, .column-inner.notice .gsc-box-text .box-content p:hover { background: rgba(255, 255, 255, .14) !important; padding-left: 26px !important; }
/* bell marker replaces the old yellow star */
.column-inner.notice .gsc-box-text .box-content p::before, .column-inner.notice .gsc-box-text .box-content p::before {
  content: "\f0f3"; font-family: FontAwesome; flex: 0 0 36px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .42); color: #fff; font-size: 15px; position: static; background-image: none;
}
.column-inner.notice .gsc-box-text .box-content p > span:first-child, .column-inner.notice .gsc-box-text .box-content p > span:first-child { flex: 1 1 auto; min-width: 0; }
.column-inner.notice .gsc-box-text .box-content a, .column-inner.notice .gsc-box-text .box-content a { color: #fff !important; font-weight: 700 !important; font-size: 15px; text-decoration: none !important; letter-spacing: .01em; }
.column-inner.notice .gsc-box-text .box-content a:hover, .column-inner.notice .gsc-box-text .box-content a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
/* NEW badge: compact red pill pinned to the right */
.column-inner.notice .gsc-box-text .badge { flex: 0 0 auto; margin-left: auto; padding: 4px 10px !important; border-radius: 999px !important; background: linear-gradient(135deg, #ff5a4f, #d9271c) !important; color: #fff !important; font-size: 10.5px !important; font-weight: 800 !important; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; box-shadow: 0 2px 8px rgba(217, 39, 28, .45); animation: kp-pulse 2.4s ease-in-out infinite; }
@keyframes kp-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
/* stray wrapper divs inside the list must not add gaps */
.column-inner.notice .gsc-box-text .box-content > div, .column-inner.notice .gsc-box-text .box-content > div { margin: 0; padding: 0; }
/* Notice card and any scroll-animated block must never stay invisible if the animation script misses (phones) */
.gsc-box-text[data-aos], .gsc-box-text.aos-init { opacity: 1 !important; transform: none !important; }
@media (max-width: 991px) { [data-aos] { opacity: 1 !important; transform: none !important; transition-property: none !important; } }
