/* Teal bento: contained hero and modular, high-contrast content panels. */
body {
  background:
    radial-gradient(circle at 92% 12%, rgba(45, 212, 191, 0.16), transparent 24rem),
    var(--bg-light);
}

.main-navbar {
  top: 0.75rem;
  left: 2%;
  right: 2%;
  width: 96%;
  border-radius: 1rem;
}

.hero-carousel-section {
  padding: 6.5rem 2% 0;
  min-height: 0;
}

.carousel-container {
  height: 58vh;
  min-height: 420px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(17, 94, 89, 0.2);
}

.carousel-content {
  background: linear-gradient(90deg, rgba(4, 47, 46, 0.84), rgba(4, 47, 46, 0.15));
  border-left: 6px solid var(--accent-color);
}

.main-content > .container {
  max-width: 1340px;
}

.section-card,
.news-item-card,
.contact-card {
  border-radius: 1.25rem;
  box-shadow: 0 12px 32px rgba(17, 94, 89, 0.1);
}

.section-header {
  background: linear-gradient(120deg, #0f766e, #14b8a6);
  border-radius: 1rem 1rem 0 0;
}

.home-section .col-lg-8 > .latest-news-section .news-item-card {
  min-height: 100%;
}

.sidebar-section .section-card {
  border: 1px solid rgba(20, 184, 166, 0.28);
}

.footer-section {
  border-radius: 2rem 2rem 0 0;
  background: linear-gradient(130deg, #134e4a, #0f766e) !important;
}

@media (max-width: 767px) {
  .main-navbar {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
  }

  .hero-carousel-section {
    padding: 5rem 0.75rem 0;
  }

  .carousel-container {
    height: 48vh;
    min-height: 340px;
    border-radius: 1rem;
  }
}

/* Bento dashboard: unequal story tiles, paired with a compact supporting rail. */
.home-section .latest-news-section .section-content-news > .row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-section .latest-news-section .section-content-news > .row > [class*="col-"] {
  grid-column: span 2;
}

.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child {
  grid-column: span 3;
}

.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child .news-item-card {
  grid-template-columns: minmax(0, 1.15fr) minmax(210px, 0.85fr);
  min-height: 330px;
}

.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child .news-item-image-small {
  min-height: 330px;
}

.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:nth-child(2) {
  grid-column: span 1;
  grid-row: span 2;
}

.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:nth-child(2) .news-item-card {
  display: flex;
  flex-direction: column;
}

.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:nth-child(2) .news-item-image-small {
  height: 205px;
}

.news-grid > .row,
#listData.news-grid > .row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.news-grid > .row > [class*="col-"],
#listData.news-grid > .row > [class*="col-"] {
  width: auto;
  padding: 0;
}

.news-grid > .row > [class*="col-"]:first-child,
#listData.news-grid > .row > [class*="col-"]:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.news-grid .news-image,
#listData.news-grid .news-image {
  height: 165px;
}

.news-grid > .row > [class*="col-"]:first-child .news-image,
#listData.news-grid > .row > [class*="col-"]:first-child .news-image {
  height: 270px;
}

@media (max-width: 991px) {
  .news-grid > .row,
  #listData.news-grid > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-section .latest-news-section .section-content-news > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child,
  .home-section .latest-news-section .section-content-news > .row > [class*="col-"]:nth-child(2) {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 767px) {
  .news-grid > .row,
  #listData.news-grid > .row,
  .home-section .latest-news-section .section-content-news > .row {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-grid > .row > [class*="col-"]:first-child,
  #listData.news-grid > .row > [class*="col-"]:first-child,
  .home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child,
  .home-section .latest-news-section .section-content-news > .row > [class*="col-"]:nth-child(2) {
    grid-column: 1;
  }

  .home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child .news-item-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Bento campus: a modular dashboard rhythm for stories, notices and resources. */
.home-section {
  padding: 2.5rem 0 4rem;
}

.home-section > .container {
  max-width: 1380px;
}

.home-section > .container > .row {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  margin: 0;
}

.home-section > .container > .row > [class*="col-"] {
  width: auto;
  padding: 0;
}

.home-section .latest-news-section .section-card,
.sidebar-section .section-card {
  border: 0;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(17, 94, 89, 0.1);
}

.home-section .latest-news-section .section-header {
  border-radius: 1.5rem 1.5rem 0 0;
}

.home-section .latest-news-section .section-content-news > .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.home-section .latest-news-section .section-content-news > .row > [class*="col-"] {
  width: auto;
  padding: 0;
}

.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child {
  grid-column: 1 / -1;
}

.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child .news-item-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 270px;
}

.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child .news-item-image-small {
  height: 100%;
  min-height: 270px;
}

.news-item-card,
.news-card-modern,
.gallery-card,
.staff-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(20, 184, 166, 0.17);
  box-shadow: 0 8px 22px rgba(17, 94, 89, 0.08);
}

.news-item-card:hover,
.news-card-modern:hover,
.gallery-card:hover,
.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(17, 94, 89, 0.17);
}

.sidebar-section .section-card {
  margin-bottom: 1.25rem;
}

.sidebar-item,
.announcement-item,
.agenda-item,
.document-item {
  border-radius: 0.9rem;
}

.detail-container,
.page-container,
.album-detail-container,
.contact-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(20, 184, 166, 0.2);
  box-shadow: 0 20px 50px rgba(17, 94, 89, 0.1);
}

@media (max-width: 991px) {
  .home-section > .container > .row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .home-section .latest-news-section .section-content-news > .row {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child .news-item-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child .news-item-image-small {
    height: 190px;
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .home-section .latest-news-section .section-content-news > .row {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-section .latest-news-section .section-content-news > .row > [class*="col-"],
  .home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child,
  .home-section .latest-news-section .section-content-news > .row > [class*="col-"]:nth-child(2) {
    grid-column: 1;
    grid-row: auto;
  }
}
