/********** Template CSS **********/

/* =====================================================
   ROOT VARIABLES
   ===================================================== */
:root {
  --ks-primary: #0f5132;
  --ks-dark: #1a2a36;
  --ks-gold: #f6c343;
  --ks-gold-hover: #e0b038;
  --ks-light-bg: #f8fafc;
  --ks-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --ks-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --primary: #32C36C;
    --light: #F6F7F8;
    --dark: #1A2A36;
}

body {
  background-color: var(--ks-light-bg);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #334155;
}

/* =====================================================
   HERO CAROUSEL - FULLY FIXED
   ===================================================== */
.hero-section {
  position: relative;
  height: 85vh;
  min-height: 520px;
  overflow: hidden;
  background-color: #1a2a36; /* fallback so it never goes white */
}

/* Critical fix against old template .carousel rule */
.hero-section .carousel,
#heroCarousel.carousel {
  max-width: 100% !important;
  width: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 100% !important;
}

.hero-section .carousel-inner,
.hero-section .carousel-item {
  height: 100% !important;
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 2;
}

/* Caption */
.carousel-caption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  text-align: left !important;
  padding: 0;
  color: #fff;
  z-index: 3;
}

/* Text Styles */
.hero-subtitle {
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ks-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Text Animations */
.anim-item {
  opacity: 0;
  transform: translateY(35px);
  transition: all 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-item.active .hero-subtitle.anim-item { transition-delay: 0.15s; }
.carousel-item.active .hero-title.anim-item    { transition-delay: 0.30s; }
.carousel-item.active .hero-desc.anim-item     { transition-delay: 0.45s; }
.carousel-item.active .btn.anim-item           { transition-delay: 0.60s; }

.carousel-item.active .anim-item {
  opacity: 1;
  transform: translateY(0);
}

.carousel-item:not(.active) .anim-item {
  opacity: 0;
  transform: translateY(35px);
  transition: none;
}

/* Indicators */
.carousel-indicators [data-bs-target] {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 6px;
}

.carousel-indicators .active {
  background-color: var(--ks-gold);
  transform: scale(1.15);
}

/* Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  opacity: 0.85;
  z-index: 5;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.2rem;
  height: 2.2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* =====================================================
   FLASH NEWS
   ===================================================== */
.flash-news-bar {
  background: linear-gradient(90deg, #1a2a36 0%, #0f5132 100%);
  border-top: 2px solid var(--ks-gold);
  border-bottom: 2px solid var(--ks-gold);
  box-shadow: var(--ks-shadow-sm);
}

.flash-badge {
  background: var(--ks-gold);
  color: var(--ks-dark);
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(246, 195, 67, 0.4);
  position: relative;
}

.flash-badge::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #e63946;
  border-radius: 50%;
  top: 6px;
  right: 6px;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(230, 57, 70, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* =====================================================
   ENHANCED SLIDER + NEWS PANEL
   ===================================================== */
.enh-carousel {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--ks-shadow-lg);
  background: #000;
}

.enh-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.enh-slides img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.enh-prev, .enh-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.enh-prev:hover, .enh-next:hover {
  background: var(--ks-gold);
  color: var(--ks-dark);
  transform: translateY(-50%) scale(1.1);
}

.enh-prev { left: 16px; }
.enh-next { right: 16px; }

.news-box-enh {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--ks-shadow-lg);
  border: 1px solid rgba(246, 195, 67, 0.3);
  height: 380px;
  display: flex;
  flex-direction: column;
}

.news-header-enh {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ks-dark);
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--ks-gold);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.news-icon {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  object-fit: contain;
}

.scroll-box-enh {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
}

.scroll-text-enh {
  animation: scroll-up 25s linear infinite;
}

.scroll-text-enh:hover {
  animation-play-state: paused;
}

.event-card-item {
  background: var(--ks-light-bg);
  border-left: 4px solid var(--ks-primary);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card-item:hover {
  transform: translateX(4px);
  box-shadow: var(--ks-shadow-sm);
  border-left-color: var(--ks-gold);
}

.event-card-item p {
  margin: 0;
  color: #475569;
  font-weight: 500;
  font-size: 0.95rem;
}

@keyframes scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* =====================================================
   OTHER SECTIONS
   ===================================================== */
.media-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ks-shadow-lg);
  position: relative;
}

.media-container img {
  transition: transform 0.5s ease;
}

.media-container:hover img {
  transform: scale(1.03);
}

.form-control-custom {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  transition: all 0.3s ease;
}

.form-control-custom:focus {
  background-color: #ffffff;
  border-color: var(--ks-primary);
  box-shadow: 0 0 0 4px rgba(15, 81, 50, 0.1);
  outline: none;
}

.btn-custom-primary {
  background-color: var(--ks-primary);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 36px;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 81, 50, 0.2);
}

.btn-custom-primary:hover {
  background-color: var(--ks-dark);
  color: var(--ks-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 42, 54, 0.3);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991.98px) {
  .hero-section {
    height: 70vh;
    min-height: 450px;
  }
  .enh-carousel, .news-box-enh {
    height: 320px;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    height: 65vh;
    min-height: 420px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
  .enh-carousel, .news-box-enh {
    height: 280px;
  }
}
.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .header-carousel .owl-carousel-item1 img {
        position: initial;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(255, 255, 255, .9);
    border-radius: 45px;
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    border-radius: 45px;
    transition: .5s;
}

/*.page-header {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/sub_banner_1.png) center center no-repeat;
    background-size: cover;
}
.page-header1 {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/School_Header.png) center center no-repeat;
    background-size: cover;
}
.page-header3 {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/Banner_women.jpg) center center no-repeat;
    background-size: cover;
}
.page-header4 {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/banner_pubs.png) center center no-repeat;
    background-size: cover;
}
*/

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

/* =====================================================
   UNIFIED SUBPAGE HEADERS
   ===================================================== */
.page-header {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    background-color: var(--ks-dark);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Page-specific background images */
.page-header.header-default {
    background-image: url('../img/header_banner.png');
}
.page-header.header-school {
    background-image: url('../img/School_Header.png');
}
.page-header.header-women {
    background-image: url('../img/Banner_women.jpg');
}
.page-header.header-pubs {
    background-image: url('../img/banner_pubs.png');
}

/* Dark gradient overlay matching Home Banner */
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 20, 30, 0.85) 0%,
        rgba(10, 20, 30, 0.60) 55%,
        rgba(10, 20, 30, 0.35) 100%
    );
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Page Header Typography */
.page-header .page-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ks-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-header .page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Breadcrumb styling */
.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-header .breadcrumb-item a:hover {
    color: var(--ks-gold) !important;
}

.page-header .breadcrumb-item.active {
    color: var(--ks-gold) !important;
    font-weight: 600;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Scaling */
@media (max-width: 767.98px) {
    .page-header {
        min-height: 300px;
    }
    .page-header .page-title {
        font-size: 1.8rem;
    }
}
/*** About ***/
/*@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}*/


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-icon {
    position: relative;
    margin: -50px 0 25px 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 100px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover .service-icon {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
}

.portfolio-img::before,
.portfolio-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    background: var(--dark);
    transition: .5s;
}

.portfolio-img::before {
    left: 50%;
}

.portfolio-img::after {
    right: 50%;
}

.portfolio-item:hover .portfolio-img::before {
    width: 51%;
    left: 0;
}

.portfolio-item:hover .portfolio-img::after {
    width: 51%;
    right: 0;
}

.portfolio-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    transition-delay: .3s;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/*** Women Start ***/

.project-img {
    position: relative;
    padding: 15px;
}

    .project-img::before {
        content: "";
        position: absolute;
        width: 150px;
        height: 150px;
        top: 0;
        left: 0;
        background: var(--bs-secondary);
        border-radius: 10px;
        opacity: 1;
        z-index: -1;
        transition: .5s;
    }

    .project-img::after {
        content: "";
        width: 150px;
        height: 150px;
        position: absolute;
        right: 0;
        bottom: 0;
        background: var(--bs-primary);
        border-radius: 10px;
        opacity: 1;
        z-index: -1;
        transition: .5s;
    }

.project-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

    .project-content a {
        display: inline-block;
        padding: 20px 25px;
        background: var(--bs-primary);
        border-radius: 10px;
    }

.project-item:hover .project-content {
    opacity: 1;
    transition: .5s;
}

.project-item:hover .project-img::before,
.project-item:hover .project-img::after {
    opacity: 0;
}

/*** Women End ***/

/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    border-radius: 8px 60px 0 0;
}

.team-item .team-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #FFFFFF;
    transition: .5s;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    color: #9B9B9B;
    border: 1px solid #9B9B9B;
    border-radius: 38px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #9B9B9B;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}


.flash-news-container {
    background-color: #001f3f;
    color: white;
    padding: 10px 10px;
    overflow: hidden;
    position: relative;
}

.flash-news-title {
    position: absolute;
    left: 10px;
    font-weight: bold;
    z-index: 2;
    background: #c53030;
    padding: 5px 10px;
    border-radius: 3px;
}

.news-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    padding-left: 150px; /* Leave space for title */
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.news-item {
    display: inline-block;
    margin-right: 50px;
}

    .news-item::before {
        content: "🗞️";
        margin-right: 5px;
    }

.news-box {
    width: 100%;
    border: 3px solid #001f3f; /* Navy blue border */
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-header {
    background-color: #001f3f; /* Navy blue */
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 18px;
    border-bottom: 2px solid #001f3f;
}

.scroll-box {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.scroll-text {
    position: absolute;
    animation: scroll-up 10s linear infinite;
}

@keyframes scroll-up {
    0% {
        top: 100%;
    }

    100% {
        top: -100%;
    }
}

.scroll-text p {
    margin: 10px;
    padding: 0;
}

* {
    box-sizing: border-box;
}


.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slides img {
    width: 100%;
    border-radius: 10px;
}

.nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.nav button {
    background-color: rgba(0,0,0,0.5);
    color: white;
border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
}

.nav button:hover {
    background-color: rgba(0,0,0,0.8);
}
.ks-lib-hero {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(
             rgba(10, 20, 30, 0.75),
             rgba(10, 20, 30, 0.75)),
             url('/static/images/libraries-banner.jpg') center/cover;
  color: #fff;
}

.ks-lib-title {
  font-size: 2.5rem;
  font-weight: 800;
}

.ks-lib-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: 0.3s;
}
.ks-lib-card:hover {
  transform: translateY(-4px);
}

.ks-lib-img-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.ks-lib-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.ks-lib-card:hover .ks-lib-img {
  transform: scale(1.08);
}

.ks-lib-program-card {
  background: #fff;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: 0.3s;
}
.ks-lib-program-card:hover {
  transform: translateY(-4px);
}

.ks-lib-program-card i {
  font-size: 38px;
  color: #f6c343;
}
.ks-pub-hero {
  background: linear-gradient(
      rgba(10,20,30,0.75),
      rgba(10,20,30,0.75)),
    url('/static/images/publication-banner.jpg') center/cover;
  padding: 120px 0;
  position: relative;
  color: #fff;
}

.ks-pub-overlay {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
}

.ks-pub-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: 0.3s;
}

.ks-pub-card:hover {
  transform: translateY(-4px);
}

.ks-pub-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.ks-pub-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.ks-pub-card:hover .ks-pub-img {
  transform: scale(1.08);
}
.bg-dark-surface {
    background-color: #161b22 !important;
}

.text-gold {
    color: #d4af37 !important;
}

.btn-custom-primary {
    background-color: #d4af37 !important;
    color: #000000 !important;
    font-weight: 600;
    border-radius: 50px;
}

/* Scroll Box Container */
.news-box-enh {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.scroll-box-enh {
  max-height: 420px; /* Adjust height based on layout */
  overflow-y: auto;
  position: relative;
  padding: 1rem;
}

/* Custom Scrollbar for Smooth Reading */
.scroll-box-enh::-webkit-scrollbar {
  width: 5px;
}
.scroll-box-enh::-webkit-scrollbar-thumb {
  background: #d4af37; /* Gold accent */
  border-radius: 10px;
}

/* Individual Card Styling */
.event-card-item {
  background-color: #f8fafc;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Multiline Format & Line Heights */
.event-body {
  white-space: pre-line; /* Preserves multiline breaks from DB input */
  word-break: break-word;
  color: #475569 !important;
  line-height: 1.6;
}

.event-body p {
  margin-bottom: 0.5rem;
}

/* Pause Vertical Animation on Mouse Hover (If using CSS Marquee keyframes) */
.scroll-box-enh:hover .scroll-text-enh {
  animation-play-state: paused;
}