/*-----------------------------------*/
/*             03. HOME              */
/*-----------------------------------*/
/* SECTION 1 - HERO CAROUSEL */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
}

/* Swiper fills the entire section as background */
.hero-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Overlay sits above swiper, below content */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 58, 16, 0.75) 0%,
    rgba(0, 100, 2, 0.45) 60%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Static content sits above everything */
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero-title {
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-btn {
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 100, 0, 0.4);
}

/* Arrow buttons */
.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
  user-select: none;
}

.hero-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-next { right: 20px; }
.hero-prev { left: 20px; }

/* Hero pagination dots */

.hero-swiper .hero-pagination {
  position: absolute !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  z-index: 10;
  display: flex !important;
  gap: 8px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: background 0.3s ease, width 0.3s ease;
}


.hero-pagination .swiper-pagination-bullet-active {
  background: #fff;
  width: 48px;
}


@media (max-width: 992px) {
  .hero-section {
    min-height: 60vh;
    padding-bottom: 50px;
  }

  .hero-title {
    white-space: normal;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 70vh;
  }
}




/* SECTION 2 */
.partners-section {
  background: #f2f2f2;
  padding: 70px 20px;
  text-align: center;
}

/* Container */
.container {
  max-width: 1200px;
  margin: auto;
}

/* Grid */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;   /* This centers incomplete rows */
}


/* Cards */
.partner-card {
  background: #fff;
  border-left: 1px solid #0f7c2e;
  border-top: 1px solid #0f7c2e;
  border-right: 1px solid #0f7c2e;
  border-bottom: 3px solid #0f7c2e;

  display: flex;
  align-items: center;
  justify-content: start;
  flex-direction: column;

  border-radius: 5px;
  padding: 20px 10px 10px 10px;
  width: 220px;              /* fixed width */
  transition: all 0.3s ease;
  cursor: pointer;
}


/* Hover */
.partner-card:hover {
  background: #0f7c2e;
  color: #fff;
  transform: translateY(-5px);
}

/* Image */
.partner-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Text */
.partner-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #0f7c2e;
}

.partner-card p {
  font-size: 14px;
  color: #0f7c2e;
}

.partner-card:hover p,
.partner-card:hover h3 {
  color: #fff;
}


/* Responsive Tweaks */
@media (max-width: 768px) {
  .partner-card {
    max-width: 100%;
  }
}

@media (max-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(4, 220px);
  }
}

@media (max-width: 992px) {
  .partners-grid {
    grid-template-columns: repeat(3, 220px);
  }
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, 220px);
  }
}

@media (max-width: 500px) {
  .partners-grid {
    grid-template-columns: repeat(1, 220px);
  }
}


/* SECTION 3: LATEST NEWS */
.latest-news-section {
  padding: 70px 20px;
  background: #f9f9f9;
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

/* Main news styling */
.main-news {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.main-news img {
  width: 100%;
  height: auto;
  display: block;
}

.main-news .news-caption {
  display: flex;
  flex-direction: column;
  height: 250px; 

  min-width: 0;

  padding: 20px;
  background: #fff;
  text-align: left;
}

.main-news .news-caption h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #038303;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;   
  line-clamp: 2;            
  box-orient: vertical;     
}


/* Main news caption paragraph */
.main-news .news-caption p {
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;   /* WebKit */
  line-clamp: 3;            /* Standard */
  box-orient: vertical;     /* Standard fallback */
}

.main-news .news-category {
  display: inline-block;
  background: #f1c40f;
  color: #fff;
  padding: 5px 10px;
  font-weight: bold;
  margin-bottom: 10px;
  border-radius: 3px;
  width: fit-content;
}

.main-news h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #038303;
}

.main-news p {
  font-size: 14px;
  color: #333;
}

/* Reduce height of main news */
.main-news.swiper-container {
  border-radius: 5px;
  overflow: hidden;
  height: 550px; /* Adjust height */
  transition: transform 0.3s ease;
}

.main-news .swiper-slide img {
  width: 100%;
  height: 300px; /* smaller height */
  object-fit: cover;
}

/* Section 3 - News arrow buttons */
.news-swiper .news-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
  user-select: none;
}

.news-swiper .news-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

.news-next { right: 12px; }
.news-prev { left: 12px; }


/* Side news cards */
.side-news {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  display: flex;
  gap: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.news-card img {
  width: 150px;
  height: 130px;
  object-fit: cover;
}

/* Make side news content flex column */
.news-card .card-content {
  padding: 10px;
  text-align: left;

  display: flex;
  flex-direction: column;
  height: 130px; /* match image height */
  min-width: 0; /* allow text to shrink */
  flex: 1;
}

/* Push footer to bottom */
.news-card .card-footer {
  margin-top: auto;
}

.news-card h4 {
  font-size: 14px;
  margin: 0 0 5px 0;
  color: #038303;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  box-orient: vertical;
}

/* Side news card paragraph */
.news-card p {
  font-size: 12px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  box-orient: vertical;
}

/* Hover effects */
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  background: #0f7c2e;
  color: #fff;
}

.news-card:hover h4,
.news-card:hover p {
  color: #fff;
}


/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.card-footer span {
  font-size: 12px;
  font-weight: 500;
}

/* Date */
.card-footer .news-date {
  color: #777;
}

/* Read More */
.card-footer .read-more {
  color: #999;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Hover effect */
.news-card:hover .card-footer .news-date,
.news-card:hover .card-footer .read-more {
  color: #fff;
}


.main-news .card-footer {
  margin-top: auto;
}

/* SEO / Hashtags */
.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.seo-tags span {
  font-size: 11px;
  background: #eef6ee;
  color: #0f7c2e;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: 500;
}

.main-news:hover .seo-tags span {
  background: #0f7c2e;
  color: #fff;
}



/* Responsive */
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .side-news {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .news-card {
    width: calc(50% - 10px);
  }
}

@media (max-width: 576px) {
  .news-card {
    width: 100%;
  }
}




/* SECTION 4: CLSU NEWS AND UPDATES */

.clsu-updates-section {
  padding: 70px 20px;
  background: #fff;
  text-align: center;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.updates-col {
  text-align: left;
}

/* Header bar */
.updates-header {
  background: #0f7c2e;
  color: #fff;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 15px;
  border-radius: 3px;
}

.updates-header span {
  font-size: 14px;
  padding: 4px 10px;
  border-left: #E8D203 3px solid;
}

.updates-header a {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

.updates-header a:hover {
  text-decoration: underline;
}

/* Reuse your cards */
.clsu-updates-section .side-news {
  gap: 15px;
}

@media (max-width: 992px) {
  .updates-grid {
    grid-template-columns: 1fr;
  }
}







/* SECTION 5: DOT-UNI FEATURES */

.dotuni-features {
  padding: 80px 0;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 600px;
}

/* Shared */
.feature-item {
  position: relative;
  overflow: hidden;
}

/* Image box */
.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text box */
/* .text-box {
  background: linear-gradient(135deg, #0f7c2e, #66b80f);
  color: #fff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
} */


.text-box {
  position: relative;
  color: var(--white);

  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-box.first {
  background: url("../../system_images/about/feature/feature2.png") center/cover no-repeat;
}
.text-box.second {
  position: relative;
  background: url("../../system_images/about/feature/feature3.png") center/cover no-repeat;
}

.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 58, 16, 1.5),
    rgba(0, 129, 2, 0.7)
  );
  z-index: 1;
}

.feature-content {
  z-index: 4;
}



.text-box h3 {
  color: #ffeb3b;
  font-size: 22px;
  margin-bottom: 15px;
}

.text-box p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 420px;
}

/* Button override spacing */
.text-box .btn {
  width: fit-content;
}



/* SECTION 6: PROGRAMS */

.program-section {
    padding: 80px 5%;
    text-align: center;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 30px;
    /* NO transition here — JS controls it directly */
}

.card {
    flex: 0 0 220px;
    opacity: .6;
    transition:
        flex-basis .15s ease,
        opacity .80s ease;
    --bs-card-border-width: none;
    --bs-card-border-color: none;
}
.card.active {
    flex: 0 0 300px;
    opacity: 1;
}

.card img {
    width: 100%;
    height: 425px; /* from auto */
    display: block;
    object-fit: contain;
    background: #f9f9f9;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: #333;
    z-index: 2;
    flex-shrink: 0;
}

.nav-btn:hover {
    color: #1a8f1a;
}

@media (max-width: 768px) {
    .card        { flex: 0 0 160px; }
    .card.active { flex: 0 0 220px; }
    .carousel-viewport {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
        mask-image:         linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    }
}

@media (max-width: 480px) {
    .card        { flex: 0 0 130px; }
    .card.active { flex: 0 0 180px; }
    .carousel-viewport {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
        mask-image:         linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    }
}