/* Editorial ocean: a spacious, image-led university magazine layout. */
body {
  background:
    radial-gradient(ellipse at 8% 18%, rgba(0, 212, 255, 0.1), transparent 28rem),
    var(--bg-light);
}

.main-navbar {
  top: 1rem;
  left: 1.5%;
  right: 1.5%;
  width: 97%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 1rem;
}

.hero-carousel-section,
.carousel-container {
  min-height: 76vh;
  height: 76vh;
}

.carousel-content {
  left: 5%;
  right: auto;
  bottom: 8%;
  width: min(760px, 86%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.25rem;
  background: rgba(3, 35, 58, 0.78);
  text-align: left;
}

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

.section-card,
.news-item-card,
.contact-card {
  border-radius: 1rem;
  box-shadow: 0 14px 40px rgba(12, 74, 110, 0.08);
}

.section-header {
  background: transparent;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 1.75rem 1rem;
}

.section-header .section-title {
  color: var(--text-primary) !important;
}

.section-title::after {
  left: 0;
  transform: none;
  width: 2.5rem;
}

.footer-section {
  border-radius: 2rem 2rem 0 0;
}

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

  .hero-carousel-section,
  .carousel-container {
    height: 64vh;
    min-height: 460px;
  }

  .carousel-content {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    padding: 1.25rem;
  }
}

/* Editorial content: news leads the page, with a quiet, readable sidebar. */
.home-section {
  padding-top: 2.5rem;
}

.home-section .latest-news-section .section-card {
  border-top: 4px solid var(--primary-color);
}

.latest-news-section .section-content-news > .row {
  row-gap: 1.5rem;
}

.news-item-card,
.news-card-modern,
.announcement-item,
.agenda-item,
.document-item,
.gallery-card,
.staff-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.news-item-card:hover,
.news-card-modern:hover,
.announcement-item:hover,
.agenda-item:hover,
.document-item:hover,
.gallery-card:hover,
.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(12, 74, 110, 0.14);
}

.news-item-image-small,
.news-image,
.gallery-image {
  aspect-ratio: 16 / 10;
}

.news-item-image-small img,
.news-image img,
.gallery-image img {
  transition: transform 350ms ease;
}

.news-item-card:hover img,
.news-card-modern:hover img,
.gallery-card:hover img {
  transform: scale(1.045);
}

.sidebar-section .section-card {
  border-left: 3px solid var(--accent-color);
}

.sidebar-item {
  padding: 0.25rem 0 1rem;
}

.detail-container,
.page-container,
.album-detail-container,
.contact-card {
  border-radius: 1.25rem;
  box-shadow: 0 18px 55px rgba(12, 74, 110, 0.1);
}

.detail-header,
.page-header,
.album-header {
  border-bottom-color: rgba(0, 119, 190, 0.22);
}

.staff-card:focus-visible,
.news-item-card a:focus-visible,
.sidebar-item-title:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .news-item-card,
  .news-card-modern,
  .announcement-item,
  .agenda-item,
  .document-item,
  .gallery-card,
  .staff-card,
  .news-item-image-small img,
  .news-image img,
  .gallery-image img {
    transition: none;
  }
}

/* Cover-story layout: one immersive lead, followed by a balanced two-column grid. */
.home-section .latest-news-section .section-content-news > .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  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 {
  position: relative;
  display: block;
  min-height: 420px;
  border: 0;
  background: #06283d;
}

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

.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child .news-item-image-small::after {
  content: "";
  position: absolute;
  inset: 25% 0 0;
  background: linear-gradient(transparent, rgba(3, 28, 46, 0.96));
}

.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child .news-item-content-small {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
}

.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child .news-item-title-small,
.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child .news-item-title-small a,
.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child .news-item-excerpt-small,
.home-section .latest-news-section .section-content-news > .row > [class*="col-"]:first-child .news-meta {
  color: #fff !important;
}

@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 {
    min-height: 360px;
  }
}
