body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #f9fafb;
  color: #333;
}

header,
.topbar,
footer {
  background: #fff;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Topbar - Tangaza-inspired maroon with sleek hover */
.topbar {
  background: linear-gradient(135deg, #a91f2e 0%, #8a1926 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar .topbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.9);
}

.topbar .topbar-left a {
  color: inherit;
  text-decoration: none;
}

.topbar .topbar-left a:hover,
.topbar .cta .btn:hover,
.topbar .cta .btn.primary:hover {
  text-decoration: none;
}

/* Topbar links - sleek hover transform */
.topbar .cta {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topbar .cta .btn {
  color: #fff;
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.topbar .cta .btn:hover {
  color: #f9bd00;
  background: rgba(255, 255, 255, 0.08);
}

.topbar .cta .btn.primary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topbar .cta .btn.primary:hover {
  background: #f9bd00;
  color: #8a1926;
}

.topbar-elearning-dropdown {
  position: relative;
}

.topbar-elearning-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.topbar-elearning-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 120%;
  min-width: 210px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  z-index: 1300;
}

.topbar-elearning-menu li a {
  display: block;
  padding: 8px 14px;
  color: #111827;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-elearning-menu li a:hover {
  background: #f3f4f6;
  color: #a91f2e;
}

.topbar-elearning-dropdown:hover .topbar-elearning-menu {
  display: block;
}

/* Hide Requirements and Online Application in top bar on mobile */
@media (max-width: 991px) {
  .topbar .cta .btn.topbar-hide-mobile {
    display: none !important;
  }
}

/* Only when side menu hamburger is visible: header above topbar so drawer is not covered */
@media (max-width: 768px) {
  header {
    z-index: 1150 !important;
  }
}

/* Navigation */
header {
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.tag {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
  font-weight: 400;
}

nav {
  flex: 1;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
  justify-content: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.25s ease;
}

/* Main nav: gold text on hover, no maroon block, no underline */
nav ul li a:hover {
  color: #f9bd00;
  background: transparent;
  text-decoration: none;
}

/* Dropdown arrow on the right side (Tangaza-style) */
nav ul li.dropdown>a::after {
  content: '▾';
  font-size: 0.65em;
  margin-left: 4px;
  opacity: 0.9;
}

/* Submenu fly-out arrow (right-pointing) */
.dropdown-menu .dropdown>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-menu .dropdown>a::after {
  content: '▸';
  font-size: 0.7em;
  margin-left: 8px;
}

.cta {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.btn {
  padding: 8px 18px;
  border-radius: 24px;
  border: none;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn:hover {
  background: #a91f2e;
  color: #fff;
}

.btn.primary {
  background: #a91f2e;
  color: #fff;
}

.btn.primary:hover {
  background: #8a1926;
}

.btn.accent {
  background: #fff;
  color: #a91f2e;
  border: none;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  background: #fff;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
}

.dropdown-menu li {
  border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  padding: 12px 16px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
  background: transparent;
  color: #a91f2e;
  text-decoration: none;
}

/* Multi-level dropdown */
.dropdown-menu .dropdown {
  position: relative;
}

.dropdown-menu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 2px;
  border-radius: 6px;
}

nav ul li:hover>.dropdown-menu {
  display: block;
}

/* Hero Slider - CUEA-inspired viewport and cards */
.hero-wrapper {
  position: relative;
  margin-bottom: 0;
}

.hero {
  position: relative;
  height: 75vh;
  min-height: 480px;
  max-height: 740px;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Slider overlay: gradient bottom (darker) to top (lighter) */
.hero-wrapper .hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45) 40%;
  pointer-events: none;
  z-index: 2;
}

/* Content overlay - CUEA style, on top of slider images */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.hero-overlay .hero-content {
  pointer-events: auto;
  text-align: center;
  color: #fff;
  padding: 2rem 2.5rem;
  max-width: 720px;
}

.hero-headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0 0 1.5rem;
  opacity: 0.95;
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-ctas .btn {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.hero-ctas .btn.primary {
  background: #f9bd00;
  color: #8a1926;
  border: none;
}

.hero-ctas .btn.primary:hover {
  background: #fff;
  color: #8a1926;
  transform: translateY(-2px);
}

/* Hero overlay text - white for readability (CUEA-style) */
.hero-overlay .hero-headline,
.hero-overlay .hero-subtext {
  color: #fff !important;
}

/* Prev/Next buttons */
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 4;
  transition: background 0.25s ease, color 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(169, 31, 46, 0.9);
  color: #fff;
}

.hero-prev {
  left: 1.5rem;
}

.hero-next {
  right: 1.5rem;
}

/* Hero stat counters - soft pink cards at bottom of slider */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
  z-index: 5;
}

.hero-stat {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.75rem;
  background: #fef7f7;
  border-radius: 8px;
  border: 1px solid #f3e0e0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hero-stat:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 30px rgba(169, 31, 46, 0.2);
}

.hero-stat-icon {
  display: block;
  font-size: 1.5rem;
  color: #a91f2e;
  margin-bottom: 0.35rem;
}

.hero-stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #a91f2e;
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
}

.hero-stat-label {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 0.6rem;
    padding: 0 0.75rem 1rem;
    max-width: 100%;
  }

  .hero-stat {
    padding: 0.8rem 0.4rem;
  }

  .hero-stat-number {
    font-size: 1.3rem;
  }

  .hero-stat-label {
    font-size: 0.65rem;
  }
}

/* Cards */
.section {
  padding: 80px 0;
  background: #fff;
}

.section h3 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
  color: #111;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.card h4 {
  margin: 0 0 8px;
  font-size: 20px;
}

/* Footer */
/* =============================================
   FOOTER
   ============================================= */
footer {
  margin-top: 0 !important;
}

.footer-main {
  background: linear-gradient(135deg, #a91f2e 0%, #8a1926 60%, #6b1520 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

/* Brand column */
.footer-brand-col {
  padding-right: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
  flex-shrink: 0;
  border-radius: 8px;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.footer-logo-text span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.footer-about-text {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

/* Social icons – ensure Remix Icon font loads (safeguard after WebP/CSS changes) */
.footer-social a i,
.footer-links a i,
.footer-contact li i {
  font-family: 'remixicon' !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.25s ease, transform 0.2s ease;
  text-decoration: none;
}

.footer-social a:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.footer-social a:nth-child(1):hover {
  background: #1877f2;
}

.footer-social a:nth-child(2):hover {
  background: #000;
}

.footer-social a:nth-child(3):hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social a:nth-child(4):hover {
  background: #ff0000;
}

.footer-social a:nth-child(5):hover {
  background: #0077b5;
}

/* Column headings */
.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2.5px;
  background: #f9bd00;
  border-radius: 2px;
}

/* Link lists */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a i {
  font-size: 0.85rem;
  color: #f9bd00;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
  text-decoration: none;
}

.footer-links a:hover i {
  color: #f9bd00;
}

/* Contact list */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
  color: #f9bd00;
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: none;
}

/* Footer bottom bar */
.footer-bottom {
  background: #5a1018;
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer-bottom-links span {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
}

.footer-bottom-links a:hover {
  color: #f9bd00;
  text-decoration: none;
}

/* Footer responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-main {
    padding: 2.5rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-brand-col {
    grid-column: auto;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* Mobile styles */
.menu-toggle {
  display: none;
  background: #a91f2e;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.25s ease;
}

.menu-toggle:hover {
  background: #8a1926;
}

@media(max-width:768px) {
  nav {
    display: none;
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  nav.active {
    display: block;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
  }

  .menu-toggle {
    display: block;
  }

  .cta {
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero {
    height: 68vh;
    min-height: 400px;
  }

  .hero-headline {
    font-size: 1.5rem;
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .hero-prev,
  .hero-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .hero-prev {
    left: 0.75rem;
  }

  .hero-next {
    right: 0.75rem;
  }
}

/* =============================================
   ABOUT US SECTION (CUEA-style)
   ============================================= */
.about-section {
  padding: 2rem 0 4.5rem;
  background: #fff;
}

.about-row {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  max-width: 1320px;
  margin: 0 auto;
}

.about-img-col {
  flex-shrink: 0;
  width: 46%;
}

.about-img {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.about-img::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 3px solid #a91f2e;
  border-radius: 10px;
  z-index: -1;
}

.about-text-col {
  flex: 1;
}

.about-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.about-accent-line {
  width: 60px;
  height: 3px;
  background: #a91f2e;
  margin-bottom: 1.25rem;
}

.about-text-col p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 0.85rem;
}

/* Mission / Vision / Philosophy pillars */
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.about-pillar {
  padding: 1.25rem;
  background: #fef7f7;
  border-radius: 8px;
  border-left: 3px solid #a91f2e;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(169, 31, 46, 0.1);
}

.about-pillar h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #a91f2e;
  margin: 0 0 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.about-pillar p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.btn-about {
  display: inline-block;
  background: #a91f2e;
  color: #fff;
  padding: 0.7rem 2rem;
  border: 2px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn-about:hover {
  background: transparent;
  color: #a91f2e;
  border-color: #a91f2e;
  transform: translateY(-1px);
}

/* About section responsive */
@media (max-width: 768px) {
  .about-row {
    flex-direction: column;
  }

  .about-img-col {
    width: 100%;
  }

  .about-img {
    height: 260px;
  }

  .about-img::after {
    display: none;
  }

  .about-title {
    font-size: 1.5rem;
  }

  .about-pillars {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* =============================================
   VC WELCOME MESSAGE SECTION (CUEA-style)
   ============================================= */
.vc-section {
  padding: 4rem 0;
  background: #fff;
}

.vc-row {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1320px;
  margin: 0 auto;
}

.vc-photo-col {
  flex-shrink: 0;
}

.vc-photo-col .vc-photo {
  width: 280px;
  height: 340px;
  background-size: cover;
  background-position: center top;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vc-photo-col .vc-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.vc-text-col {
  flex: 1;
}

.vc-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #a91f2e;
  margin: 0 0 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.vc-accent-line {
  width: 60px;
  height: 3px;
  background: #f9bd00;
  margin-bottom: 1.25rem;
}

.vc-greeting {
  font-size: 1.05rem;
  color: #a91f2e;
  margin-bottom: 1rem;
}

.vc-text-col p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 0.75rem;
}

.vc-sign {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.vc-sign strong {
  font-size: 1rem;
  color: #1f2937;
}

.vc-sign span {
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
}

/* VC section responsive */
@media (max-width: 768px) {
  .vc-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vc-photo-col .vc-photo {
    width: 200px;
    height: 250px;
  }

  .vc-accent-line {
    margin-left: auto;
    margin-right: auto;
  }

  .vc-title {
    font-size: 1.4rem;
  }
}

/* =============================================
   ANNOUNCEMENT OVERLAY (fullscreen on visit)
   ============================================= */
.announcement-overlay-full {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: announcementOverlayFadeIn 0.35s ease;
}

.announcement-overlay-full.announcement-overlay--hidden {
  display: none;
}

@keyframes announcementOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.announcement-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.announcement-overlay-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  width: max-content;
}

.announcement-overlay-wrap img,
.announcement-overlay-img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.announcement-overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border: 2px solid #fff;
  background: #a91f2e;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, color 0.2s ease;
}

.announcement-overlay-close:hover {
  background: #8a1926;
  color: #fff;
}

/* Text badge – below image, same width, transparent black backdrop */
.announcement-overlay-text-badge {
  width: 100%;
  padding: 1.25rem 1rem 1rem;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
}

.announcement-overlay-placeholder {
  min-height: 200px;
  width: 400px;
  background: linear-gradient(135deg, #a91f2e 0%, #8a1926 100%);
}

.announcement-overlay-badge {
  display: inline-block;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
  margin-bottom: 0.5rem;
  background: transparent;
}

.announcement-overlay-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
  color: #fff;
}

.announcement-overlay-teaser {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.announcement-overlay-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.announcement-overlay-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.announcement-overlay-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: #f9bd00;
  color: #8a1926;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.announcement-overlay-cta:hover {
  background: #fff;
  color: #8a1926;
  transform: translateX(4px);
}

/* =============================================
   ANNOUNCEMENTS SECTION (conversion-focused)
   ============================================= */
.announcements-section {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, #fff 0%, #fef7f7 50%, #fff 100%);
}

.announcements-section .section-heading {
  margin-bottom: 0.25rem;
}

.announcements-section .section-heading-line {
  margin-bottom: 2.5rem;
}

.announcement-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  background: #a91f2e;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(169, 31, 46, 0.3);
}

.announcement-post-btn:hover {
  background: #8a1926;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(169, 31, 46, 0.4);
}

.announcements-section .container {
  padding-left: 12px;
  padding-right: 12px;
}

.announcements-row {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.announcements-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.announcements-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  padding: 0.25rem 0;
  margin: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Override smooth for auto-scroll – JS handles per-frame animation */
.announcements-grid--auto-scroll {
  scroll-behavior: auto;
}

.announcements-grid::-webkit-scrollbar {
  display: none;
}

.announcements-row .cards-scroll-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-left: 0.75rem;
  background: rgba(169, 31, 46, 0.9);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.25s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.announcements-row .cards-scroll-arrow:hover {
  background: #8a1926;
  transform: scale(1.05);
}

/* Announcement cards – same style and size for all */
.announcement-card {
  flex: 0 0 500px;
  min-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(169, 31, 46, 0.2);
}

.announcement-card-inner {
  position: relative;
  height: 130px;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  overflow: hidden;
}

/* WebP picture/img fill for announcement cards */
.announcement-card-inner picture {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.announcement-card-inner picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.announcement-card-placeholder,
.announcement-card--no-img .announcement-card-inner {
  background: linear-gradient(135deg, #a91f2e 0%, #8a1926 100%) !important;
}

.announcement-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
}

.announcement-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  width: fit-content;
  max-width: 80%;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff !important;
  background: #a91f2e;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  display: inline-block;
}

/* Content above overlay - exclude picture (z-index 0) and badge (keeps position: absolute) */
.announcement-card-inner > *:not(picture):not(.announcement-badge) {
  position: relative;
  z-index: 2;
}

.announcement-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.announcement-title {
  font-size: 1.25rem;
}

.announcement-teaser {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
  margin: 0 0 0.6rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.announcement-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.announcement-meta i {
  font-size: 0.9rem;
  opacity: 0.9;
}

.announcement-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.announcement-view-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: #a91f2e;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.announcement-view-btn:hover {
  background: #8a1926;
  color: #fff;
  transform: translateX(4px);
}

.announcement-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  background: #f9bd00;
  color: #8a1926;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.announcement-cta:hover {
  background: #fff;
  color: #8a1926;
  transform: translateX(4px);
}

.announcements-cta {
  text-align: center;
  padding-top: 1.5rem;
}

.btn-announcements {
  display: inline-block;
  background: #a91f2e;
  color: #fff;
  padding: 0.7rem 2rem;
  border: 2px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-announcements:hover {
  background: transparent;
  color: #a91f2e;
  border-color: #a91f2e;
}

.announcements-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: #6b7280;
}

.announcements-empty i {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* =============================================
   EVENTS SECTION
   ============================================= */
.events-section {
  padding: 3.5rem 0 4rem;
  background: #f9fafb;
}

.section-heading {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
  font-family: 'Poppins', sans-serif;
}

.section-heading-line {
  width: 60px;
  height: 3px;
  background: #a91f2e;
  margin: 0 auto 2.5rem;
}

.events-section .container {
  padding-left: 12px;
  padding-right: 12px;
}

.events-row {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.cards-scroll-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.events-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  padding: 0.25rem 0;
  margin: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.events-grid::-webkit-scrollbar {
  display: none;
}

.cards-scroll-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-left: 0.75rem;
  background: rgba(169, 31, 46, 0.9);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.25s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cards-scroll-arrow:hover {
  background: #8a1926;
  transform: scale(1.05);
}

/* Hide scroll arrow on mobile – Events and News scroll by touch/swipe */
@media (max-width: 991px) {

  .events-row .cards-scroll-arrow,
  .news-row .cards-scroll-arrow,
  .announcements-row .cards-scroll-arrow {
    display: none !important;
  }
}

.event-card {
  flex: 0 0 280px;
  min-width: 280px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.event-img {
  position: relative;
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  overflow: hidden;
}

.event-img picture {
  position: absolute;
  inset: 0;
}
.event-img picture img,
.event-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-img-placeholder {
  background: linear-gradient(135deg, #a91f2e 0%, #d63447 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-body {
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex: 1;
}

.event-date-badge {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  background: #a91f2e;
  border-radius: 6px;
  padding: 0.5rem 0.25rem;
  color: #fff;
}

.event-date-badge .event-day {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.event-date-badge .event-month {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.event-info {
  flex: 1;
}

.event-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.4rem;
  line-height: 1.35;
  font-family: 'Poppins', sans-serif;
}

.event-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #6b7280;
  margin: 0;
}

.events-cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-events {
  display: inline-block;
  background: #a91f2e;
  color: #fff;
  padding: 0.7rem 2rem;
  border: 2px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn-events:hover {
  background: transparent;
  color: #a91f2e;
  border-color: #a91f2e;
  transform: translateY(-1px);
}

/* Events responsive */
@media (max-width: 600px) {
  .event-card {
    flex: 0 0 260px;
    min-width: 260px;
  }

  .event-img {
    height: 150px;
  }
}

/* =============================================
   NEWS & ARTICLES SECTION
   ============================================= */
.news-section {
  padding: 3.5rem 0 4rem;
  background: #fff;
}

.news-section .container {
  padding-left: 12px;
  padding-right: 12px;
}

.news-row {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.news-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  padding: 0.25rem 0;
  margin: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.news-grid::-webkit-scrollbar {
  display: none;
}

.news-card {
  flex: 0 0 340px;
  min-width: 340px;
  background: #f9fafb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  text-decoration: none;
  color: inherit;
}

.news-img {
  position: relative;
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  overflow: hidden;
}

.news-img picture {
  position: absolute;
  inset: 0;
}
.news-img picture img,
.news-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-img-placeholder {
  background: linear-gradient(135deg, #a91f2e 0%, #d35400 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-body {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.78rem;
  color: #a91f2e;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.4rem;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.news-excerpt {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-news {
  display: inline-block;
  background: #a91f2e;
  color: #fff;
  padding: 0.7rem 2rem;
  border: 2px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn-news:hover {
  background: transparent;
  color: #a91f2e;
  border-color: #a91f2e;
  transform: translateY(-1px);
}

/* News responsive */
@media (max-width: 600px) {
  .news-card {
    flex: 0 0 300px;
    min-width: 300px;
  }

  .news-img {
    height: 150px;
  }
}

/* News list page – consistent image sizing */
.news-article-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg, 8px);
  margin-bottom: 1rem;
  background: #f0f0f0;
}
.news-article-img picture,
.news-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.news-article-img--placeholder {
  background: linear-gradient(135deg, #a91f2e 0%, #d35400 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 576px) {
  .news-article-img {
    height: 180px;
  }
}

/* News detail page – article image */
.article-img-wrap.news-detail-img {
  width: calc(100% + 3rem);
  max-width: none;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  height: 400px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #f0f0f0;
}
.article-img-wrap.news-detail-img picture,
.article-img-wrap.news-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.article-img-wrap.news-detail-img picture img {
  border-radius: 0.75rem 0.75rem 0 0;
}
.article-img-wrap.news-detail-img > img {
  border-radius: 0.75rem 0.75rem 0 0;
}
.article-img-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
}
@media (max-width: 576px) {
  .article-img-wrap.news-detail-img {
    height: 280px;
  }
}

/* ── Quick Links Bar (CUEA-style) ── */
.quick-links-bar {
  background: linear-gradient(100deg, #6b1520 0%, #a91f2e 30%, #c0392b 60%, #d35400 100%);
  padding: 1rem 0;
  position: relative;
  z-index: 10;
}

.quick-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.quick-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.quick-link-btn i {
  font-size: 1rem;
  flex-shrink: 0;
}

.quick-link-btn:hover {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.quick-link-btn:active {
  transform: translateY(0);
  background: rgba(0, 0, 0, 0.4);
}

/* Quick Links responsive */
@media (max-width: 768px) {
  .quick-links-bar {
    padding: 0.75rem 0;
  }

  .quick-links-row {
    gap: 0.45rem;
  }

  .quick-link-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.76rem;
  }

  .quick-link-btn i {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .quick-links-row {
    justify-content: center;
    gap: 0.4rem;
  }

  .quick-link-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
  }

  .quick-link-btn i {
    font-size: 0.85rem;
  }
}

/* =============================================
   About CIU page (matches home About CIU + full-width banner)
   ============================================= */

.about-ciu-section {
  padding: 3rem 0 4rem;
  background: #fff;

}

.about-ciu-section .section-heading {
  margin-bottom: 0.25rem;
}

.about-ciu-section .section-heading-line {
  margin-bottom: 4.25rem;
}

/* Full-width Our Lady banner below title */
.about-ciu-banner {
  width: 100%;
  margin: 1.5rem 0 2.5rem;
  overflow: hidden;
}

.about-ciu-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: 320px;
}

.about-ciu-section .about-ciu-h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #a91f2e;
  margin: 0 0 1rem;
}

.about-ciu-section .about-ciu-h3-section {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.about-history-block {
  margin-bottom: 2rem;
}

.about-history-block p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
}

.about-history-block p:last-child {
  margin-bottom: 0;
}

.about-pillars-three {
  margin-top: 2.75rem;
}

.about-values-wrap {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.about-motto {
  font-size: 1.1rem;
  font-weight: 600;
  color: #a91f2e;
  text-align: center;
  margin: 0 0 0.5rem;
  font-style: italic;
}

.about-values-intro {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Theme blue (saved for future use): #0B2D72, light shade: #eff6ff */
.about-value-card {
  padding: 1.25rem;
  background: #fef7f7;
  border-radius: 8px;
  border-left: 3px solid #a91f2e;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(169, 31, 46, 0.1);
}

.about-value-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #a91f2e;
  margin: 0 0 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.about-value-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

@media (max-width: 768px) {
  .about-ciu-banner {
    margin: 1rem 0 2rem;
  }

  .about-ciu-banner img {
    max-height: 220px;
  }

  .about-ciu-section .about-ciu-h3-section {
    margin-top: 2rem;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   Leadership page
   ============================================= */
.leadership-section {
  padding: 3rem 0 4rem;
  background: #fff;
}

.leadership-intro {
  text-align: center;
  font-size: 1.05rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Vice Chancellor featured block (CUEA-style) */
.leadership-vc-featured {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: #f9fafb;
  border-radius: 12px;
  border-left: 4px solid #a91f2e;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.leadership-vc-photo {
  flex-shrink: 0;
  width: 240px;
  height: 300px;
  border-radius: 8px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.leadership-vc-info {
  flex: 1;
  min-width: 0;
}

.leadership-vc-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #a91f2e;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.leadership-vc-title {
  font-size: 1.1rem;
  color: #1f2937;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.leadership-vc-office {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

@media (max-width: 768px) {
  .leadership-vc-featured {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .leadership-vc-photo {
    width: 200px;
    height: 260px;
  }

  .leadership-vc-name {
    font-size: 1.25rem;
    text-align: center;
  }

  .leadership-vc-title,
  .leadership-vc-office {
    text-align: center;
  }
}

.leadership-section .section-heading {
  margin-bottom: 0.25rem;
}

.leadership-section .section-heading-line {
  margin-bottom: 2.5rem;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.leadership-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.leadership-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.leadership-card-photo {
  width: 100%;
  height: 320px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #fff;
}

.leadership-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.leadership-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #a91f2e;
  margin: 0 0 0.35rem;
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
}

.leadership-title {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 992px) {
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .leadership-card-photo {
    height: 280px;
  }

  .leadership-section {
    padding: 2rem 0 3rem;
  }
}

/* =============================================
   LIBRARY PAGE
   ============================================= */
.library-section {
  padding-top: 2rem !important;
  padding-bottom: 3.5rem;
}

.library-section .section-heading {
  margin-bottom: 0.25rem;
}

.library-section .section-heading-line {
  margin-bottom: 1rem;
}

.library-intro {
  font-size: 1.05rem;
  color: #555;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.library-librarian-block {
  /* Match VC featured card style */
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 1040px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: #f9fafb;
  border-radius: 12px;
  border-left: 4px solid #a91f2e;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.library-librarian-photo {
  flex-shrink: 0;
  width: 220px;
  height: 260px;
  border-radius: 8px;
  background-size: cover;
  background-position: center top;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.library-librarian-text {
  flex: 1;
  min-width: 0;
}

.library-librarian-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #a91f2e;
  margin: 0 0 0.35rem;
  font-family: 'Poppins', sans-serif;
}

.library-librarian-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.15rem;
}

.library-librarian-title {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 1rem;
}

.library-librarian-text p:last-of-type {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

@media (max-width: 768px) {
  .library-librarian-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .library-librarian-photo {
    width: 160px;
    height: 160px;
  }
}

.library-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .library-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.library-service-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: #fef7f7;
  border-radius: 10px;
  border-left: 4px solid #a91f2e;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.library-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(169, 31, 46, 0.12);
  color: inherit;
}

.library-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #a91f2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.library-service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #a91f2e;
  margin: 0 0 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.library-service-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #555;
  margin: 0 0 1rem;
  flex: 1;
}

.library-service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #a91f2e;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.library-service-card:hover .library-service-link {
  color: #8a1926;
}

.library-content {
  max-width: 1320px;
  margin: 0 auto;
}

.library-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  margin: 2.25rem 0 0.75rem;
  font-family: 'Poppins', sans-serif;
}

.library-content h2:first-of-type {
  margin-top: 0;
}

.library-content p,
.library-content ul {
  font-size: 1rem;
  line-height: 1.65;
  color: #444;
  margin: 0 0 1rem;
}

.library-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.library-content li {
  margin-bottom: 0.35rem;
}

.library-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .library-meta-grid {
    grid-template-columns: 1fr;
  }
}

.library-meta-card {
  position: relative;
  padding: 1.5rem 1.75rem 1.4rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, rgba(169, 31, 46, 0.05), rgba(255, 255, 255, 0.97));
}

.library-meta-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0B2D72;
  margin: 0 0 0.6rem;
  font-family: 'Poppins', sans-serif;
}

.library-meta-card ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
}

.library-meta-card li {
  margin-bottom: 0.4rem;
}

.library-meta-card p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: #444;
}