/* assets/css/style.css */

/* 1. Import Font Wajib di Baris Paling Atas */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Variabel Warna Modern & Profesional */
:root {
  --primary-blue: #d6a62c;
  --primary-dark: #0b1f36;
  --primary-light: #244767;
  --amber: #d6a62c;
  --amber-light: #f4e5b5;
  --side-bg: #081827;
  --side-text: #aab8c7;
  --body-bg: #f7f8fa;
  --white: #ffffff;
  --border-soft: #e1e6eb;
  --text-dark: #172b42;
  --text-muted: #64748b;
  --navy: #0b1f36;
  --navy-soft: #edf2f7;
  --surface-warm: #fffaf0;
  --primary-navy: #0b1f36;
  --accent-amber: #d6a62c;
  --navbar-height: 88px;
}

@media (max-width: 991.98px) {
  :root {
    --navbar-height: 74px;
  }
}

/* 3. Layout Dasar */
body {
  background-color: var(--body-bg);
  font-family: "Inter", "Poppins", sans-serif;
  margin: 0;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.home-page {
  padding-top: 0 !important;
}

.page-shell {
  background: var(--body-bg);
  min-height: calc(100vh - 100px);
  padding-bottom: 2rem;
}

.page-shell > .container > .text-center:first-child {
  background: linear-gradient(135deg, var(--navy), var(--primary-light));
  border-radius: 1.25rem;
  color: var(--white);
  margin-bottom: 3rem !important;
  padding: 2.5rem 1.5rem;
}

.page-shell > .container > .text-center:first-child h2,
.page-shell > .container > .text-center:first-child p {
  color: var(--white) !important;
}

.page-shell > .container > .text-center:first-child p {
  opacity: 0.78;
}

.page-shell > .container > .text-center:first-child .section-rule {
  background: var(--amber);
}

.article-page .breadcrumb {
  background: var(--white) !important;
  border-left-color: var(--amber) !important;
}

.article-page .news-content,
.article-page .content-text {
  background: var(--white);
  border-radius: 1.25rem;
  box-shadow: 0 0.5rem 1.25rem rgba(11, 31, 54, 0.06);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

footer {
  margin-top: auto;
}

.main-wrapper {
  display: block;
  width: 100%;
}

main,
.container.py-5.mt-5 {
  flex: 1;
}

/* Area Konten Utama Admin */
.content-main {
  margin-left: 250px;
  width: calc(100% - 250px);
  min-height: 100vh;
  padding: 2rem;
  background-color: var(--body-bg);
  box-sizing: border-box;
}

/* ========================================== 
   HEADER / NAVBAR STYLE
   ========================================== */
.page-hero-shell {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: 100vh;
}

.navbar {
  flex: none;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem 0 !important;
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(11, 31, 54, 0.08) !important;
  z-index: 10;
}

.navbar.navbar-transparent {
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 4px 20px rgba(11, 31, 54, 0.08) !important;
}

.navbar.navbar-transparent .navbar-brand,
.navbar.navbar-transparent .nav-link {
  color: #2c3e50 !important;
  text-shadow: none;
}

.navbar.scrolled {
  background-color: #ffffff !important;
  padding: 0.8rem 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.navbar.scrolled .navbar-brand {
  color: #2c3e50 !important;
}

.navbar.scrolled .nav-link {
  color: #1e293b !important;
  text-shadow: none !important;
}

.navbar-transparent .navbar-toggler,
.navbar.scrolled .navbar-toggler {
  border-color: rgba(44, 62, 80, 0.2);
  filter: none;
}

/* ========================================== 
   ADMIN SIDEBAR & COMPONENTS 
   ========================================== */
.sidebar-dukuhbenda02 {
  width: 250px;
  height: 100vh;
  position: fixed;
  background-color: var(--side-bg) !important;
  color: var(--white);
  z-index: 1000;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-dukuhbenda02 .nav-link {
  color: var(--side-text) !important;
  font-weight: 500;
  margin: 4px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar-dukuhbenda02 .nav-link:hover,
.sidebar-dukuhbenda02 .nav-link.active {
  background-color: var(--primary-blue) !important;
  color: var(--white) !important;
}

/* Gaya Card */
.card-dukuhbenda02 {
  background-color: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-header-blue {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

/* Gaya Tombol Custom */
.btn-primary-dukuhbenda02 {
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary-dukuhbenda02:hover {
  background-color: var(--primary-light);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(11, 31, 54, 0.22);
}

.btn-cancel-dukuhbenda02 {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-cancel-dukuhbenda02:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-secondary-dukuhbenda02 {
  background-color: #64748b;
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
}

/* ========================================== 
   HERO SLIDER & FEATURE CARDS
   ========================================== */
.carousel-fade .carousel-item {
  transition-duration: 0.8s;
}

.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(5, 18, 35, 0.92) 0%,
    rgba(11, 31, 54, 0.72) 42%,
    rgba(11, 31, 54, 0.18) 100%
  );
  inset: 0;
  position: absolute;
}

.section-rule {
  background-color: var(--amber);
  border: 0;
  border-radius: 999px;
  height: 4px;
  opacity: 1;
  width: 80px;
}

.gallery-rule {
  width: 100px;
}

.article-body,
.content-text {
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.9;
  text-align: justify;
}

.article-body {
  font-size: 1.15rem;
  line-height: 2;
}

.facility-overlay {
  background: linear-gradient(transparent, rgba(5, 18, 35, 0.78));
}

.card-dukuhbenda,
.card-dukuhbenda02,
.card-dukuhbenda02.card,
.news-card,
.announcement-card {
  background-color: var(--white);
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.25rem rgba(11, 31, 54, 0.08);
  overflow: hidden;
}

.card-dukuhbenda02-body {
  background: var(--white);
}

.card-dukuhbenda02:hover,
.card-dukuhbenda:hover,
.news-card:hover {
  box-shadow: 0 0.85rem 1.75rem rgba(11, 31, 54, 0.14);
  transform: translateY(-3px);
}

.hover-opacity-100:hover {
  opacity: 1 !important;
}

/* Shared navy and amber theme for Bootstrap components */
.bg-primary {
  background-color: var(--navy) !important;
}

.text-primary {
  color: var(--amber) !important;
}

.border-primary {
  border-color: var(--amber) !important;
}

.btn-primary {
  background-color: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #b88716 !important;
  border-color: #b88716 !important;
  color: var(--navy) !important;
}

.btn-outline-primary {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--amber) !important;
  border-color: var(--amber) !important;
  color: var(--navy) !important;
}

.bg-sage,
.bg-sage-light {
  background-color: var(--navy-soft) !important;
}

.bg-sage-subtle {
  background-color: var(--amber-light) !important;
}

.bg-sand-light {
  background-color: var(--surface-warm) !important;
}

.bg-amber-subtle {
  background-color: var(--amber-light) !important;
}

.text-amber {
  color: var(--amber) !important;
}

.feature-story-panel,
.vision-card,
.achievement-card {
  background: var(--white);
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 0.5rem 1.25rem rgba(11, 31, 54, 0.08);
}

.feature-story-panel {
  background: linear-gradient(135deg, var(--navy), var(--primary-light));
  color: var(--white);
  min-height: 260px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.feature-story-panel .text-navy,
.feature-story-panel .eyebrow {
  color: var(--amber-light) !important;
}

.story-accent {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--amber-light);
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
}

.vision-mission-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vision-card {
  padding: 1.5rem;
}

.vision-icon {
  align-items: center;
  background: var(--amber-light);
  border-radius: 50%;
  color: var(--navy);
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2.75rem;
}

.achievement-card {
  border-top: 4px solid var(--amber);
}

.announcement-timeline {
  border-left: 2px solid #e5d59f;
  padding-left: 1.5rem;
}

.timeline-item {
  border-bottom: 1px solid #eee9d8;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  position: relative;
}

.timeline-item::before {
  background: var(--amber);
  border: 4px solid var(--surface-warm);
  border-radius: 50%;
  content: "";
  height: 0.9rem;
  left: -2rem;
  position: absolute;
  top: 0.25rem;
  width: 0.9rem;
}

.timeline-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.editorial-gallery {
  display: grid;
  gap: 1rem;
  grid-auto-rows: 110px;
  grid-template-columns: repeat(4, 1fr);
}

.gallery-tile {
  border-radius: 1rem;
  display: block;
  min-height: 110px;
  overflow: hidden;
  position: relative;
}

.gallery-tile:nth-child(1) {
  grid-row: span 3;
}

.gallery-tile:nth-child(2) {
  grid-row: span 2;
}

.gallery-tile:nth-child(3) {
  grid-column: span 2;
  grid-row: span 3;
}

.gallery-tile img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

.gallery-tile::after {
  background: linear-gradient(transparent, rgba(5, 18, 35, 0.78));
  content: "";
  inset: 25% 0 0;
  position: absolute;
}

.gallery-tile span {
  bottom: 0.8rem;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  left: 0.9rem;
  position: absolute;
  right: 0.9rem;
  z-index: 1;
}

.gallery-tile:hover img {
  transform: scale(1.06);
}

.text-sage {
  color: var(--amber) !important;
}

.text-navy,
.text-dark {
  color: var(--navy) !important;
}

.hero-section {
  background: var(--navy);
  min-height: 100vh;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  height: 100vh !important;
  min-height: 640px;
  position: relative;
}

.hero-content {
  z-index: 1;
}

.hero-copy {
  padding-top: 4rem;
}

.hero-copy h1 {
  letter-spacing: -0.025em;
  max-width: 760px;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-kicker {
  color: var(--amber-light);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
  opacity: 0.75;
  width: 8%;
  z-index: 2;
}

.home-section {
  padding-bottom: 5rem !important;
  padding-top: 5rem !important;
}

.home-section + .home-section {
  margin-top: 1rem;
}

.text-navy {
  color: var(--navy) !important;
}

.text-sage {
  color: var(--amber) !important;
}

.bg-navy {
  background-color: var(--navy) !important;
}

.bg-sage-light {
  background-color: var(--navy-soft) !important;
}

.bg-sage-subtle {
  background-color: var(--amber-light) !important;
}

.btn-sage {
  background-color: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

.btn-sage:hover,
.btn-sage:focus {
  background-color: #b88716;
  border-color: #b88716;
  color: #fff;
}

.btn-amber {
  background-color: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
}

.btn-amber:hover,
.btn-amber:focus {
  background-color: #f0c34d;
  border-color: #f0c34d;
  color: var(--navy);
}

.home-page .text-primary {
  color: var(--amber) !important;
}

.home-page .btn-primary {
  background-color: var(--amber);
  border-color: var(--amber);
}

.home-page .btn-primary:hover,
.home-page .btn-primary:focus {
  background-color: #b88716;
  border-color: #b88716;
}

.home-page .btn-outline-primary {
  border-color: var(--amber);
  color: var(--amber);
}

.home-page .btn-outline-primary:hover,
.home-page .btn-outline-primary:focus {
  background-color: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

.section-rule {
  background-color: var(--amber);
  border: 0;
  border-radius: 999px;
  height: 4px;
  opacity: 1;
  width: 72px;
}

.announcement-card,
.contact-card,
.news-card {
  border: 0 !important;
  box-shadow: 0 8px 24px rgba(23, 63, 53, 0.08) !important;
}

.announcement-card .card-header {
  letter-spacing: 0.01em;
}

.welcome-image {
  min-height: 240px;
}

.welcome-image img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.news-image {
  transition: transform 0.35s ease;
}

.news-card:hover .news-image {
  transform: scale(1.04);
}

.contact-card {
  background-color: #fff;
}

@media (max-width: 767.98px) {
  .hero-slide {
    min-height: 680px;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 25, 28, 0.5) 0%,
      rgba(8, 25, 28, 0.9) 100%
    );
  }

  .hero-copy {
    padding: 3rem 1rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 11vw, 4.5rem);
  }

  .hero-copy p {
    font-size: 1.05rem !important;
  }

  .home-section {
    padding-bottom: 3.5rem !important;
    padding-top: 3.5rem !important;
  }

  .welcome-image img {
    aspect-ratio: 16 / 10;
  }

  .vision-mission-grid {
    grid-template-columns: 1fr;
  }

  .editorial-gallery {
    grid-auto-rows: 90px;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-tile:nth-child(3) {
    grid-column: span 1;
  }
}

.feature-card {
  background: var(--white);
  border: none;
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: var(--navy-soft);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 25px;
  font-size: 1.5rem;
}

/* ========================================== 
   SAMBUTAN & KONTEN HALAMAN
   ========================================== */
.vanguard-section {
  padding: 100px 0;
  background-color: var(--white);
}

.section-title {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--primary-blue);
  margin: 0 auto 30px;
  border-radius: 2px;
}

.list-group-item {
  transition: background 0.3s ease;
}

.list-group-item:hover {
  background-color: #f8fafc;
}

.list-group-item p {
  font-size: 0.95rem;
  color: var(--text-dark);
}

h4.text-primary {
  position: relative;
  padding-bottom: 10px;
}

h4.text-primary::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-blue);
}

.btn-outline-danger {
  border-width: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

.news-content {
  text-align: justify;
}

.news-content p {
  margin-bottom: 1.8rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='currentColor'/%3E%3C/svg%3E");
}

.transition-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(11, 31, 54, 0.16);
}

.form-control:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 0.25rem rgba(214, 166, 44, 0.16);
}

/* Editorial school portal homepage */
.editorial-hero {
  background: #f6f8f5;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-editorial-copy {
  padding: 2rem 0;
}

.hero-editorial-copy h1 {
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-editorial-copy .lead {
  line-height: 1.8;
  max-width: 520px;
}

.eyebrow {
  color: var(--primary-blue);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.btn-outline-sage {
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline-sage:hover,
.btn-outline-sage:focus {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
}

.hero-editorial-note {
  border-left: 3px solid var(--primary-blue);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
  padding-left: 1rem;
}

.editorial-carousel {
  border-radius: 28px;
  box-shadow: 0 24px 55px rgba(23, 63, 53, 0.18);
  overflow: hidden;
}

.editorial-carousel .hero-slide {
  height: 540px !important;
  min-height: 540px;
}

.editorial-carousel .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 25, 28, 0.05),
    rgba(8, 25, 28, 0.82)
  );
}

.editorial-carousel .hero-content {
  padding: 2rem;
}

.editorial-carousel .hero-copy {
  padding: 0;
}

.editorial-carousel .hero-copy h1 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.editorial-caption {
  bottom: 1.25rem;
  left: auto;
  right: 2rem;
  width: auto;
}

.stats-strip {
  background: var(--navy);
  color: #fff;
}

.stat-item {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.5rem 1rem;
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item strong,
.stat-item span {
  display: block;
}

.stat-item strong {
  color: #d6eadc;
  font-size: 2rem;
  line-height: 1.1;
}

.stat-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  margin-top: 0.35rem;
}

.announcement-timeline {
  border-left: 2px solid #cfe3d5;
  margin: 1rem 1.5rem 0;
}

.timeline-item {
  border-bottom: 1px solid #edf2ee;
  margin-left: 1.25rem;
  position: relative;
}

.timeline-item::before {
  background: var(--primary-blue);
  border: 4px solid #f4f8f5;
  border-radius: 50%;
  content: "";
  height: 0.9rem;
  left: -1.75rem;
  position: absolute;
  top: 1.5rem;
  width: 0.9rem;
}

.timeline-item:last-child {
  border-bottom: 0;
}

.editorial-news-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
}

.editorial-news-grid > div:first-child {
  grid-row: span 2;
}

.editorial-news-grid > div:not(:first-child) .news-card {
  display: grid;
  grid-template-columns: 42% 58%;
}

.editorial-news-grid > div:not(:first-child) .news-image {
  height: 100% !important;
  min-height: 180px;
}

.editorial-news-grid > div:not(:first-child) .card-body {
  padding: 1.25rem !important;
}

.profile-editorial-card {
  background: linear-gradient(135deg, #edf5ef, #fff);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.profile-editorial-card h2 {
  letter-spacing: -0.035em;
}

.profile-excerpt {
  line-height: 1.9;
  max-width: 580px;
}

.achievement-list {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(23, 63, 53, 0.06);
  padding: 0 1.25rem;
}

.achievement-item {
  align-items: center;
  border-bottom: 1px solid #e7efe9;
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
}

.achievement-item:last-child {
  border-bottom: 0;
}

.achievement-date {
  align-items: center;
  background: var(--sage-light);
  border-radius: 14px;
  color: var(--navy);
  display: flex;
  flex: 0 0 62px;
  flex-direction: column;
  justify-content: center;
  min-height: 68px;
}

.achievement-date strong {
  font-size: 1.5rem;
  line-height: 1;
}

.achievement-date span {
  font-size: 0.7rem;
  margin-top: 0.3rem;
}

.editorial-gallery {
  display: grid;
  gap: 1rem;
  grid-auto-rows: 120px;
  grid-template-columns: repeat(4, 1fr);
}

.gallery-tile {
  border-radius: 18px;
  display: block;
  overflow: hidden;
  position: relative;
}

.gallery-tile:nth-child(1) {
  grid-row: span 3;
}

.gallery-tile:nth-child(2) {
  grid-row: span 2;
}

.gallery-tile:nth-child(3) {
  grid-column: span 2;
  grid-row: span 3;
}

.gallery-tile:nth-child(4),
.gallery-tile:nth-child(5) {
  grid-row: span 2;
}

.gallery-tile img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  width: 100%;
}

.gallery-tile::after {
  background: linear-gradient(transparent, rgba(8, 25, 28, 0.78));
  content: "";
  inset: 30% 0 0;
  position: absolute;
}

.gallery-tile span {
  bottom: 1rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  left: 1rem;
  position: absolute;
  right: 1rem;
  z-index: 1;
}

.gallery-tile:hover img {
  transform: scale(1.06);
}

@media (max-width: 991.98px) {
  .editorial-hero {
    padding-top: 4rem;
  }

  .editorial-news-grid {
    display: flex;
    flex-direction: column;
  }

  .editorial-news-grid > div:not(:first-child) .news-card {
    display: block;
  }

  .editorial-news-grid > div:not(:first-child) .news-image {
    height: 220px !important;
  }
}

@media (max-width: 575.98px) {
  .page-hero-shell {
    min-height: 100svh;
    min-height: 100vh;
  }

  .editorial-hero {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .editorial-carousel .hero-slide {
    height: clamp(320px, 52svh, 420px) !important;
    min-height: 320px;
  }

  .editorial-carousel .hero-content {
    padding: 1.25rem;
  }

  .editorial-carousel .hero-copy h1 {
    font-size: 1.6rem;
  }

  .stat-item:nth-child(2) {
    border-right: 0;
  }

  .stat-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .editorial-gallery {
    grid-auto-rows: 95px;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-tile:nth-child(3) {
    grid-column: span 1;
  }
}
