/* MUAST Library Modern Design Layer (2026) */
:root{
  --m-bg: #f6f8fb;
  --m-surface: rgba(255,255,255,0.86);
  --m-surface-solid: #ffffff;
  --m-ink: #0b1220;
  --m-muted: #516072;
  --m-brand: #225622;
  --m-accent: #bfa12c;
  --m-shadow: 0 18px 55px rgba(11,18,32,0.16);
  --m-shadow-soft: 0 10px 26px rgba(11,18,32,0.10);
  --m-radius-lg: 22px;
  --m-radius-md: 16px;
}

html, body {
  background: var(--m-bg);
  margin: 0;
  padding: 0;
}
body{
  color: var(--m-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reduce vertical whitespace across sections (~50%) */
.section-padding{ padding: 60px 0 !important; }
.section-top-padding{ padding: 60px 0 0 0 !important; }

/* Keep template structure, just make it premium */
.bg-white{ background: transparent !important; }
.container{ max-width: 1180px; }

/* True responsiveness: override template fixed container widths */
@media (max-width: 767px){
  .container{
    width: 100% !important;
    max-width: 100% !important;
  }
  .as-mainwrapper,
  .as-mainwrapper.wrapper-boxed{
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Remove any template page gutter so header is flush */
.page-margin-wrapper{
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Kill any leftover inline margins on mobile/desktop */
.page-margin-wrapper{
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.header-logo-menu.sticker{
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}


/* Header */
.header-top{
  background: linear-gradient(135deg, rgba(34,86,34,0.92), rgba(191,161,44,0.78)) !important;
}
.header-top, .header-top span, .header-top a{ color:#fff !important; }
.header-top:before,
.header-top:after{
  display: none !important; /* remove diagonal wedge gap */
}
.header-top span{
  padding: 4px 0 !important;
}
.header-top-right{
  padding-top: 4px !important;
}
.header-top-right > .content{
  padding: 0 !important;
}
.header-top-right > .content{
  margin-left: 10px !important;
  padding-left: 12px !important;
}

/* Reduce header height (logo/nav) */
.logo{
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}
.logo a{ display: inline-flex; align-items: center; }
.logo img{
  max-width: 100%;
  height: auto;
  max-height: 72px;
  width: auto;
}

/* Header nav: explicit desktop vs mobile (Bootstrap utilities can fail / conflict with theme) */
@media (min-width: 1200px){
  .lib-mobile-menu-wrap,
  .lib-hamburger-btn{
    display: none !important;
  }
  .lib-desktop-nav-col{
    display: block !important;
  }
  .lib-desktop-mainmenu{
    display: inline-block !important;
  }
}
@media (max-width: 1199.98px){
  .lib-desktop-nav-col,
  .lib-desktop-mainmenu{
    display: none !important;
  }
}

/* Always-visible black hamburger (MeanMenu toggle is delegated via JS) */
.lib-hamburger-btn{
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  margin: 0;
  border: 2px solid #111111;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.lib-hamburger-btn::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 3px;
  background: #111111;
  border-radius: 2px;
  box-shadow: 0 -7px 0 #111111, 0 7px 0 #111111;
}
.lib-hamburger-btn:active{
  background: #f3f3f3;
}

/* Mobile / tablet header: logo + MeanMenu (matches Bootstrap xl = 1200px) */
@media (max-width: 1199.98px){
  .header-logo-menu.sticker{
    overflow: visible !important;
  }
  .header-logo-menu.sticker .container,
  .header-top .container{
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .header-logo-menu.sticker .header-search{ display: none !important; }

  .lib-mobile-menu-wrap{
    position: relative;
    z-index: 10050;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 52px;
  }
  .lib-mobile-menu-area{
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    flex: 0 1 auto;
    min-width: 0;
    overflow: visible !important;
  }
  /* MeanMenu adds class mean-container ON .lib-mobile-menu-area (no nested .container) */
  .lib-mobile-menu-area.mean-container{
    position: relative !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    min-width: 1px !important;
  }
  .lib-mobile-menu-area .mobile-menu{
    position: relative;
  }
  .lib-mobile-menu-area.mean-container > .mean-bar{
    position: relative !important;
    float: none !important;
    min-height: 0 !important;
    width: auto !important;
    min-width: 1px !important;
    background: transparent !important;
    padding: 0 !important;
  }
  .lib-mobile-menu-area.mean-container > .mean-bar:before{
    display: none !important;
  }
  /* MeanMenu toggle: hidden visually; .lib-hamburger-btn triggers it via JS */
  .lib-mobile-menu-area.mean-container > .mean-bar > a.meanmenu-reveal{
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
  }
  /* Dropdown panel: position/top/right/width set in mobile-header.js (fixed to viewport) — avoids MeanMenu bar width clipping */
  .lib-mobile-menu-area.mean-container > .mean-bar > nav.mean-nav{
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    visibility: hidden;
    pointer-events: none;
    border-radius: 14px !important;
    overflow-x: visible !important;
    overflow-y: auto !important;
    box-shadow: 0 22px 60px rgba(11,18,32,0.22) !important;
    z-index: 10051 !important;
    max-height: min(70vh, 520px);
    -webkit-overflow-scrolling: touch;
  }

  .logo{
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    text-align: left;
  }
  .logo img{
    max-height: 56px;
  }
  .header-top .col-lg-7{ display: none !important; }
  .header-top-right{ display: flex; justify-content: flex-end; gap: 10px; }
  .header-top-right > .content{ margin-left: 0 !important; padding-left: 0 !important; }
}

@media (max-width: 520px){
  .logo img{ max-height: 46px; }
}
.mainmenu ul#nav > li > a{
  line-height: 78px !important;
  position: relative;
  transition: color .18s ease, transform .18s ease, text-shadow .18s ease;
}
.header-logo-menu.stick .mainmenu ul#nav > li > a{
  line-height: 70px !important;
}

/* Cool menu hover: animated gradient underline + subtle lift */
.mainmenu ul#nav > li > a::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(34,86,34,0) 0%, rgba(34,86,34,0.95) 25%, rgba(191,161,44,0.95) 70%, rgba(191,161,44,0) 100%);
  box-shadow: 0 10px 26px rgba(34,86,34,0.18);
  opacity: 0;
  transition: width .22s cubic-bezier(.2,.9,.2,1), opacity .18s ease;
  pointer-events: none;
}
.mainmenu ul#nav > li:hover > a,
.mainmenu ul#nav > li > a:focus-visible{
  color: rgba(11,18,32,0.92) !important;
  transform: translateY(-1px);
  text-shadow: 0 10px 30px rgba(11,18,32,0.18);
}
.mainmenu ul#nav > li:hover > a::after,
.mainmenu ul#nav > li > a:focus-visible::after{
  width: 44px;
  opacity: 1;
}
.mainmenu ul#nav > li.current > a::after{
  width: 34px;
  opacity: 1;
}

/* Dropdown hover: clean highlight + left accent */
#nav > li > ul.sub-menu a{
  position: relative;
  transition: background .16s ease, color .16s ease, padding-left .16s ease;
}
#nav > li > ul.sub-menu a::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(34,86,34,0.9) 0%, rgba(191,161,44,0.75) 100%);
  transition: width .16s ease;
  opacity: 0.85;
}
#nav > li > ul.sub-menu li:hover > a,
#nav > li > ul.sub-menu a:focus-visible{
  background: rgba(34,86,34,0.08);
  color: rgba(11,18,32,0.92) !important;
  padding-left: 22px;
}
#nav > li > ul.sub-menu li:hover > a::before,
#nav > li > ul.sub-menu a:focus-visible::before{
  width: 6px;
}
/* Desktop nav must stay readable on white sticky header */
@media (min-width: 1200px){
  .header-logo-menu.sticker .mainmenu ul#nav > li > a{
    color: rgba(45,62,80,0.95) !important;
  }
}

.header-logo-menu.sticker{
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11,18,32,0.06);
  box-shadow: 0 10px 30px rgba(11,18,32,0.10);
  position: relative;
  z-index: 9999;
  overflow: visible;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

/* Remove huge gap between hero and About section */
.about-area{
  /* Pull the angled green header up so it overlaps the section above */
  margin-top: -34px !important;
  padding-top: 34px !important;
  position: relative;
  z-index: 3;
}
/* Keep the green angled header, but reduce its size/gap */
.about-area:before{
  display: block !important;
  top: -34px !important;
  height: 70px !important;
}
.about-area:after{
  display: block !important;
  top: -34px !important;
  border-width: 35px 20px !important;
}
.about-area h3{
  /* Place heading inside the green angled band */
  margin: 0 0 22px !important;
  padding-top: 0 !important;
  transform: translateY(-34px);
  color: #fff !important;
  text-shadow: 0 10px 26px rgba(0,0,0,0.35);
  position: relative;
  z-index: 4;
}

@media (max-width: 768px){
  .about-area{
    margin-top: -22px !important;
    padding-top: 22px !important;
  }
  .about-area:before,
  .about-area:after{
    top: -22px !important;
  }
  .about-area h3{
    transform: translateY(-22px);
    margin-bottom: 18px !important;
    font-size: clamp(16px, 4.2vw, 20px) !important;
  }
}
.header-logo-menu.sticker::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:100vw;
  transform: translateX(-50%);
  background: #ffffff;
  z-index: -1;
}

/* Give the hero a little bottom space so the green overlap is visible */
.slider-area.lib-hero{
  position: relative;
  z-index: 1;
  margin-bottom: 34px;
}
@media (max-width: 768px){
  .slider-area.lib-hero{ margin-bottom: 22px; }
}

/* White separator under hero (classic section break) */
.lib-hero-sep{
  height: 44px;
  /* Slight tint to match MUAST green section */
  background: linear-gradient(180deg, #eef8f1 0%, #dff1e6 100%);
  border-top: 1px solid rgba(34,86,34,0.14);
  position: relative;
  z-index: 2;
  box-shadow: 0 18px 50px rgba(11,18,32,0.10);
}
@media (max-width: 768px){
  .lib-hero-sep{ height: 34px; }
}

/* Ensure dropdown menus are visible above slider */
#nav > li{ position: relative; }
#nav > li > ul.sub-menu{
  z-index: 10000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(11,18,32,0.08);
  box-shadow: 0 22px 60px rgba(11,18,32,0.18);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#nav > li > ul.sub-menu a{
  font-weight: 700;
}

/* Section titles */
.section-title-wrapper{ margin-bottom: 22px; }
.section-title h3{
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
}
.section-title p{ color: var(--m-muted) !important; }

/* Course/resources section spacing in particular */
.course-area .section-title-wrapper{ margin-bottom: 54px !important; }

/* Buttons */
.button-default{
  border-radius: 999px !important;
  padding: 12px 22px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
  background: linear-gradient(135deg, var(--m-brand), #2f7a3c) !important;
  box-shadow: 0 12px 26px rgba(34,86,34,0.18);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.button-default:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 18px 40px rgba(34,86,34,0.24);
}

/* Electronic resources (upgrade) */
.electronic-resources-area{
  border-radius: var(--m-radius-lg) !important;
  box-shadow: var(--m-shadow-soft) !important;
  border: 1px solid rgba(11,18,32,0.06);
}
.electronic-resources-area .section-title h3{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.electronic-resources-area > .container > .row:first-child p{
  max-width: 980px;
  margin-left: auto !important;
  margin-right: auto !important;
  color: rgba(11,18,32,0.72) !important;
}
.electronic-resources-area h3{
  letter-spacing: 0.01em !important;
}
.electronic-resources-area .resource-list.row{
  margin-top: 18px !important;
}
.electronic-resources-area .resource-item{
  margin-bottom: 22px !important;
}
.electronic-resources-area .resource-item > div{
  border-radius: 18px !important;
  padding: 20px 20px 18px !important;
  border: 1px solid rgba(11,18,32,0.06);
  box-shadow: 0 14px 40px rgba(11,18,32,0.10) !important;
  transition: transform .22s ease, box-shadow .22s ease !important;
}
.electronic-resources-area .resource-item > div:hover{
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(11,18,32,0.16) !important;
}
.electronic-resources-area .resource-item h4{
  margin: 0 0 8px !important;
  font-weight: 950 !important;
  font-size: 1.05rem !important;
  line-height: 1.2;
}
.electronic-resources-area .resource-item p{
  margin: 0 !important;
  color: rgba(11,18,32,0.70) !important;
  line-height: 1.55 !important;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.electronic-resources-area .resource-item a.button-default{
  align-self: flex-start;
  margin-top: 14px !important;
  padding: 10px 18px !important;
  box-shadow: 0 14px 34px rgba(34,86,34,0.18);
}

/* Loan periods table (upgrade) */
.loan-periods-section{
  border-radius: var(--m-radius-lg) !important;
  box-shadow: var(--m-shadow-soft) !important;
  border: 1px solid rgba(11,18,32,0.06);
}
.loan-periods-section .section-title h3{
  font-weight: 950 !important;
  letter-spacing: 0.01em;
}
.loan-periods-section .loan-table-wrapper{
  margin-top: 18px !important;
  border-radius: 16px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(11,18,32,0.08);
  box-shadow: 0 16px 50px rgba(11,18,32,0.10);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.loan-periods-section .loan-table{
  width: 100% !important;
  min-width: 860px; /* keeps columns readable; wrapper scrolls on mobile */
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-size: 1.03rem !important;
}
.loan-periods-section .loan-table th,
.loan-periods-section .loan-table td{
  padding: 16px 18px !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(11,18,32,0.06);
  white-space: nowrap;
}
.loan-periods-section .loan-table th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(135deg, #225622 0%, #1f6e50 55%, #1c5c4b 100%) !important;
  color: #fff !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  border-bottom: 1px solid rgba(255,255,255,0.20) !important;
}
.loan-periods-section .loan-table th:first-child{ border-top-left-radius: 14px; }
.loan-periods-section .loan-table th:last-child{ border-top-right-radius: 14px; }

/* First column reads better left-aligned */
.loan-periods-section .loan-table td:first-child,
.loan-periods-section .loan-table th:first-child{
  text-align: left !important;
  white-space: normal;
  min-width: 260px;
}

/* Softer zebra + hover */
.loan-periods-section .loan-table tbody tr td{ background: rgba(255,255,255,0.86) !important; }
.loan-periods-section .loan-table tbody tr:nth-child(even) td{ background: rgba(248,250,252,0.92) !important; }
.loan-periods-section .loan-table tbody tr:hover td{
  background: rgba(230,240,250,0.92) !important;
  color: #1f6e50 !important;
}

/* Make overdue fine stand out slightly */
.loan-periods-section .loan-table td:last-child{
  font-weight: 900 !important;
  color: rgba(11,18,32,0.78) !important;
}

@media (max-width: 992px){
  .loan-periods-section .loan-table-wrapper{ border-radius: 14px; }
  .loan-periods-section .loan-table{ min-width: 760px; }
  .loan-periods-section .loan-table th,
  .loan-periods-section .loan-table td{ padding: 14px 14px !important; }
}

@media (max-width: 520px){
  .loan-periods-section .section-title h3{ font-size: 1.25rem !important; }
  .loan-periods-section .loan-table{ min-width: 700px; }
}

/* Cards */
.single-item,
.single-event-item,
.latest-area .single-latest-item{
  border-radius: var(--m-radius-md) !important;
  overflow: hidden;
  background: var(--m-surface-solid);
  box-shadow: var(--m-shadow-soft) !important;
  border: 1px solid rgba(11,18,32,0.06);
}

/* Latest News (upgrade + non-stretched images) */
.latest-area .single-latest-item{
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 220px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.latest-area .single-latest-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(11,18,32,0.14) !important;
}
.latest-area .single-latest-image{
  flex: 0 0 40%;
  max-width: 40%;
  position: relative;
  background: #0b1220;
}
.latest-area .single-latest-image a{
  display: block;
  width: 100%;
  height: 100%;
}
.latest-area .single-latest-image img{
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important; /* prevents stretching */
  object-position: center !important;
}
.latest-area .single-latest-text{
  flex: 1 1 auto;
  padding: 18px 18px 16px !important;
  display: flex;
  flex-direction: column;
}
.latest-area .single-latest-text h3{
  margin: 0 0 8px !important;
  font-weight: 950 !important;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.latest-area .single-latest-text h3 a{ color: rgba(11,18,32,0.92) !important; }
.latest-area .single-item-comment-view{
  margin: 0 0 10px !important;
  color: rgba(11,18,32,0.60) !important;
}
.latest-area .single-item-comment-view span{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
}
.latest-area .single-latest-text p{
  margin: 0 !important;
  color: rgba(11,18,32,0.72) !important;
  line-height: 1.55 !important;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  padding-right: 14px;
}
.latest-area .single-latest-text p::after{
  content: "…";
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.96) 55%, rgba(255,255,255,1) 100%);
  color: rgba(11,18,32,0.78);
  font-weight: 900;
}
.latest-area .latest-btn-wrap{
  margin-top: auto;
  padding-top: 14px;
}

@media (max-width: 991.98px){
  .latest-area .single-latest-item{
    flex-direction: column;
    min-height: 0;
  }
  .latest-area .single-latest-image{
    flex: none;
    max-width: 100%;
    height: 200px;
  }
  .latest-area .single-latest-text{ padding: 16px 16px 16px !important; }
}

@media (max-width: 520px){
  .latest-area .single-latest-image{ height: 180px; }
  .latest-area .single-latest-text p{ -webkit-line-clamp: 5; }
}

/* Testimonial staff images (50% bigger, non-stretched, responsive) */
.testimonial-area{ position: relative; }
.testimonial-image-slider{
  /* Reserve vertical space so the page doesn't jump on slide change */
  min-height: 220px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-image-slider .slick-list{
  overflow: hidden !important; /* ensures only 3 visible */
  padding-left: 0 !important;  /* override slick centerPadding visuals */
  padding-right: 0 !important;
}
.testimonial-image-slider .slick-track{ display: flex !important; align-items: center; }
.testimonial-image-slider .sin-testiImage{
  padding: 10px 6px;
}
.testimonial-image-slider .sin-testiImage img{
  width: 120px !important;
  height: 120px !important;
  aspect-ratio: 1 / 1;
  display: block !important;
  margin: 22px auto 22px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 3px solid rgba(255,255,255,0.85) !important;
  box-shadow: 0 14px 40px rgba(11,18,32,0.18) !important;
  transform: none !important;
  transition: width .22s ease, height .22s ease, margin .22s ease, box-shadow .22s ease, border-color .22s ease;
}

/* Slick uses .slick-current for the centered active slide here */
.testimonial-image-slider .sin-testiImage.slick-current img{
  width: 180px !important;  /* +50% vs 120px */
  height: 180px !important;
  margin-top: 0 !important;
  border-color: rgba(191,161,44,0.55) !important;
  box-shadow: 0 22px 60px rgba(11,18,32,0.28) !important;
}

@media (max-width: 520px){
  .testimonial-image-slider .sin-testiImage img{
    width: 96px !important;
    height: 96px !important;
    margin: 18px auto 18px !important;
  }
  .testimonial-image-slider .sin-testiImage.slick-current img{
    width: 144px !important; /* +50% vs 96px */
    height: 144px !important;
    margin-top: 0 !important;
  }
}

/* Testimonial arrows (stable + beautiful) */
.testimonial-area .testimonial-image-slider .slick-prev,
.testimonial-area .testimonial-image-slider .slick-next{
  width: 44px !important;
  height: 44px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  background: rgba(11,18,32,0.35) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 44px rgba(0,0,0,0.28);
  z-index: 5;
}
.testimonial-area .testimonial-image-slider .slick-prev{ left: -54px !important; }
.testimonial-area .testimonial-image-slider .slick-next{ right: -54px !important; }

.testimonial-area .testimonial-image-slider .slick-prev:before,
.testimonial-area .testimonial-image-slider .slick-next:before{
  opacity: 1 !important; /* stop "flicker" on hover */
  font-size: 26px !important;
  line-height: 44px !important;
  width: 44px !important;
  height: 44px !important;
  text-align: center !important;
  left: 0 !important;
  top: 0 !important;
  color: rgba(255,255,255,0.95) !important;
  text-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
.testimonial-area .testimonial-image-slider .slick-prev:hover,
.testimonial-area .testimonial-image-slider .slick-next:hover{
  background: linear-gradient(135deg, rgba(34,86,34,0.75) 0%, rgba(191,161,44,0.55) 100%) !important;
  border-color: rgba(255,255,255,0.55) !important;
  box-shadow: 0 22px 60px rgba(0,0,0,0.34);
}
.testimonial-area .testimonial-image-slider .slick-prev:focus-visible,
.testimonial-area .testimonial-image-slider .slick-next:focus-visible{
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 4px;
}

@media (max-width: 768px){
  .testimonial-area .testimonial-image-slider .slick-prev{ left: 10px !important; }
  .testimonial-area .testimonial-image-slider .slick-next{ right: 10px !important; }
}

/* Events cards (equal height + non-stretched images + mobile friendly) */
/* Only flex the event card columns (avoid affecting the title row) */
.event-area .col-lg-4.col-md-6{
  display: flex;
}
.event-area .single-event-item{
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.event-area .single-event-image{
  flex: 0 0 auto;
  height: 220px;
  overflow: hidden;
  border-top-left-radius: var(--m-radius-md);
  border-top-right-radius: var(--m-radius-md);
}
.event-area .single-event-image img{
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
  object-position: center !important;
}
.event-area .single-event-text{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 18px !important;
}
.event-area .single-event-text p{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.event-area .single-event-text .button-default{
  margin-top: auto !important;
  align-self: flex-start;
}

/* Center the "OUR EVENTS" heading block horizontally */
.event-area .section-title-wrapper,
.event-area .section-title{
  text-align: center !important;
}
.event-area .section-title h3{
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}
.event-area .section-title p{
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 991.98px){
  .event-area .single-event-image{ height: 200px; }
}
@media (max-width: 520px){
  .event-area .col-lg-4.col-md-6{ display: block; }
  .event-area .single-event-image{ height: 190px; }
  .event-area .single-event-text p{ -webkit-line-clamp: 5; }
}

/* Resource cards: shorter, cleaner, consistent */
.course-area .single-item{
  display: flex;
  flex-direction: column;
}
.course-area .single-item .single-item-image{
  height: 82px;
  padding: 10px 14px 0;
}
.course-area .single-item .single-item-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  display: block;
  margin: 0 auto;
}
.course-area .single-item-text{
  padding: 10px 18px 0 !important;
  flex: 1 1 auto;
}
.course-area .single-item-text h4{
  margin: 0 0 6px !important;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.15;
}
.course-area .single-item-text p{
  margin: 0 !important;
  color: rgba(11,18,32,0.70) !important;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-area .button-bottom{
  padding: 12px 18px 16px !important;
}
.course-area .button-bottom .button-default{
  margin-bottom: 16px !important;
}
.single-item:hover,
.single-event-item:hover,
.latest-area .single-latest-item:hover{
  transform: translateY(-6px);
  box-shadow: var(--m-shadow) !important;
  transition: transform .22s ease, box-shadow .22s ease;
}

/* Hero slider: add clean vignette */
.slider-area .preview-2{ position: relative; }
.slider-area .preview-2::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 420px at 20% 35%, rgba(191,161,44,0.18), transparent 60%),
    radial-gradient(900px 420px at 80% 40%, rgba(34,86,34,0.18), transparent 62%),
    linear-gradient(180deg, rgba(11,18,32,0.25), rgba(11,18,32,0.55));
  z-index: 1;
}
/* Do NOT force positioning on all descendants (breaks Nivo captions). */
.slider-area .preview-2 .nivoSlider,
.slider-area .preview-2 #nivoslider{
  position: relative;
  z-index: 2;
}
.slider-area .preview-2 .nivo-caption{
  z-index: 3;
}

/* Make slider captions readable + modern */
.slider-area .text-content{
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 20px 55px rgba(0,0,0,0.35);
}
.slider-area .banner-content h1,
.slider-area .banner-content p{
  text-shadow: 0 6px 26px rgba(0,0,0,0.75);
}

/* New hero carousel (Slick) */
.lib-hero{
  position: relative;
  overflow: hidden;
}
.lib-hero-carousel{
  position: relative;
}
/* Single visible slide until Slick runs (broken stacked layout if JS/plugins fail or load late — e.g. AMD on shared hosting) */
.lib-hero-carousel:not(.slick-initialized) > .lib-hero-slide:not(:first-child){
  display: none !important;
}
.lib-hero-slide{
  min-height: 520px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.lib-hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 25% 40%, rgba(191,161,44,0.18), transparent 60%),
    radial-gradient(900px 520px at 75% 45%, rgba(34,86,34,0.18), transparent 62%),
    linear-gradient(110deg, rgba(11,18,32,0.75) 0%, rgba(11,18,32,0.50) 45%, rgba(11,18,32,0.25) 100%);
}
.lib-hero-layer{
  position:absolute;
  inset:-120px;
  pointer-events:none;
  z-index: 1;
  opacity: 0.55;
  transition: transform 0.25s ease;
}
.lib-hero-layer--grid{
  background-image:
    linear-gradient(rgba(255,255,255,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: translate3d(0,0,0);
}
.lib-hero-layer--dots{
  background-image: radial-gradient(rgba(255,255,255,0.20) 1px, transparent 1px);
  background-size: 22px 22px;
}
.lib-hero-layer--rings{
  background-image:
    radial-gradient(circle at 20% 30%, rgba(191,161,44,0.28) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(34,86,34,0.26) 0%, transparent 58%);
}
.lib-hero-content{
  position: relative;
  z-index: 2;
  padding: 92px 0 76px;
  max-width: 680px;
}
.lib-hero-kicker{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.lib-hero-content h1{
  color: #fff;
  font-weight: 950;
  font-size: clamp(2.2rem, 4.5vw, 3.7rem);
  line-height: 1.03;
  margin: 14px 0 12px;
  text-shadow: 0 10px 40px rgba(0,0,0,0.65);
}
.lib-hero-content p{
  color: rgba(255,255,255,0.92);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0 0 18px;
  text-shadow: 0 6px 26px rgba(0,0,0,0.55);
}
.lib-hero-ctas{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
}
.lib-hero-cta-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.08);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .2s ease, background .2s ease;
}
.lib-hero-cta-ghost:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.14);
}

/* Slick arrows + dots */
.lib-hero-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(11,18,32,0.35);
  color: #fff;
  z-index: 4;
  box-shadow: 0 14px 40px rgba(0,0,0,0.30);
}
.lib-hero-arrow span{ font-size: 34px; line-height: 1; display:block; margin-top:-2px; }
.lib-hero-prev{ left: 18px; }
.lib-hero-next{ right: 18px; }
.lib-hero .slick-dots{
  position:absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 4;
}
.lib-hero .slick-dots li button:before{
  color: rgba(255,255,255,0.9);
  opacity: 0.55;
}
.lib-hero .slick-dots li.slick-active button:before{
  opacity: 1;
}

/* Progress + counter */
.lib-hero-status{
  position:absolute;
  left: 18px;
  right: 18px;
  bottom: 54px;
  z-index: 4;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  pointer-events:none;
}

/* Thumbnail nav */
.lib-hero-thumbs{
  position:absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  z-index: 5;
}
.lib-hero-thumb{
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  padding: 10px 12px;
  margin: 0 6px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}
.lib-hero-thumb-title{
  display:block;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.lib-hero-thumb-sub{
  display:block;
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  font-size: 0.86rem;
  margin-top: 2px;
}
.lib-hero-thumbs .slick-current .lib-hero-thumb{
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.36);
  transform: translateY(-2px);
}
.lib-hero-progress{
  height: 4px;
  flex: 1 1 auto;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  overflow: hidden;
}
.lib-hero-progress > span{
  display:block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(191,161,44,1), rgba(34,86,34,1));
  transform-origin: left center;
  transform: scaleX(0);
}
.lib-hero-counter{
  color: rgba(255,255,255,0.88);
  font-weight: 800;
  font-size: 0.95rem;
  text-shadow: 0 8px 26px rgba(0,0,0,0.55);
}

@media (max-width: 768px){
  .lib-hero-slide{ min-height: 460px; }
  .lib-hero-content{ padding: 70px 0 74px; }
  .lib-hero-prev{ left: 10px; }
  .lib-hero-next{ right: 10px; }
  .lib-hero-arrow{ width: 42px; height: 42px; border-radius: 12px; }
  .lib-hero-arrow span{ font-size: 30px; }
  .lib-hero-thumbs{ left: 12px; right: 12px; }
}

/* Open Access (resources page) */
.oa-hero{
  margin: 26px 0 18px;
}
.oa-hero-card{
  background: var(--m-surface);
  border: 1px solid rgba(11,18,32,0.08);
  border-radius: var(--m-radius-lg);
  box-shadow: var(--m-shadow);
  padding: 22px 20px;
}
.oa-hero-title{
  font-weight: 950;
  margin: 0 0 6px;
}
.oa-hero-subtitle{
  margin: 0;
  color: rgba(11,18,32,0.68);
  line-height: 1.6;
}
.oa-search{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(11,18,32,0.10);
}
.oa-search i{ color: rgba(11,18,32,0.55); }
.oa-search input{
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 700;
}

/* Footer thumbnails */
.footer-img img{
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(11,18,32,0.14);
}

