:root {
  --color-primary: #e31e24;
  --color-secondary: #008f4c;
  --color-accent: #005aa7;
  --color-light: #f6f7fb;
  --color-dark: #1d1d1f;
  --color-muted: #6c757d;
  --shadow-soft: 0 20px 45px rgba(17, 45, 78, 0.08);
  --radius-lg: 1.75rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--color-dark);
  background: linear-gradient(180deg, rgba(246, 247, 251, 0.96) 0%, #ffffff 60%, #f0f5f8 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 1rem;
}

.top-bar {
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-secondary) 100%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1400;
}

.main-nav {
  position: relative;
  z-index: 1100;
  background: linear-gradient(110deg, #123f77 0%, #165b9f 62%, #0f8a5d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 34px rgba(6, 28, 57, 0.24);
  backdrop-filter: blur(10px);
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.brand-name {
  white-space: nowrap;
}

.brand-subtitle {
  color: rgba(229, 238, 252, 0.82);
  white-space: nowrap;
  font-size: 0.95rem;
}

.brand-logo {
  width: 68px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(3, 19, 41, 0.45));
}

.nav-links-panel {
  padding: 0.4rem 0.5rem;
  border-radius: 999px;
  background: rgba(10, 42, 76, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar .dropdown-menu {
  z-index: 1200;
  border-radius: 0.85rem;
  border: 1px solid rgba(17, 75, 130, 0.12);
  box-shadow: 0 24px 46px rgba(6, 33, 66, 0.2);
  padding: 0.75rem;
  margin-top: 0.55rem;
}

.navbar .dropdown-item {
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: #1a2f49;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: rgba(17, 75, 130, 0.12);
  color: #0c3f72;
}

.navbar .nav-link {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.96);
  padding: 0.5rem 0.62rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.show {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.nav-toggler {
  border-color: rgba(255, 255, 255, 0.45);
}

.nav-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.22);
}

.admin-login-btn,
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.2;
}

.admin-login-btn,
.nav-cta-btn,
.nav-cta-btn--primary,
.nav-cta-btn--outline {
  background-color: #ffffff;
  color: #144a82;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 22px rgba(4, 32, 63, 0.2);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
}

.admin-login-btn:hover,
.admin-login-btn:focus,
.nav-cta-btn:hover,
.nav-cta-btn:focus,
.nav-cta-btn--primary:hover,
.nav-cta-btn--primary:focus,
.nav-cta-btn--outline:hover,
.nav-cta-btn--outline:focus {
  background-color: #f4f9ff;
  color: #0f3f73;
  border-color: #ffffff;
}

.main-content {
  position: relative;
  flex: 1 0 auto;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-muted);
  max-width: 720px;
}

.feature-card {
  background: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.18), rgba(0, 90, 167, 0.12));
  border-radius: 50%;
  top: -40px;
  right: -40px;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 50px rgba(0, 90, 167, 0.16);
}

.feature-card:hover::before {
  transform: scale(1.1);
}

.feature-card .icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 90, 167, 0.16), rgba(0, 143, 76, 0.28));
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.gradient-banner {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
  color: #fff;
  overflow: hidden;
}

.gradient-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 90, 167, 0.88), rgba(0, 143, 76, 0.8));
  z-index: 1;
}

.gradient-banner video,
.gradient-banner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.banner-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.banner-actions .btn {
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.banner-actions .btn-outline-light {
  border-width: 2px;
}

.stats-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stats-card .value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.accent-divider {
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  margin: 1.5rem 0;
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  font-weight: 500;
}

.icon-list i {
  color: var(--color-secondary);
  font-size: 1.25rem;
}

.breadcrumb-wrapper {
  background: linear-gradient(135deg, rgba(0, 90, 167, 0.12), rgba(0, 143, 76, 0.1));
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.5rem;
}

.breadcrumb-wrapper .breadcrumb {
  margin-bottom: 0;
  gap: 0.75rem;
}

.breadcrumb-separator {
  display: flex;
  align-items: center;
  color: var(--color-accent);
  font-size: 0.85rem;
}

.breadcrumb-item > a {
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}

.breadcrumb-item > a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  font-weight: 600;
  color: var(--color-primary);
}

.table-custom {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.table-custom thead {
  background: linear-gradient(135deg, rgba(0, 90, 167, 0.85), rgba(0, 143, 76, 0.85));
  color: #fff;
}

.table-custom th {
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
}

.gallery-grid.columns-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}


.gallery-card {
  aspect-ratio: 4 / 3;
}

.gallery-card img {
  aspect-ratio: 4 / 3;
}


.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid rgba(0, 90, 167, 0.2);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.65rem;
  top: 0.4rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 0 0 6px rgba(0, 90, 167, 0.12);
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(0, 90, 167, 0.15);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 18px 30px rgba(0, 90, 167, 0.2);
}

.btn-gradient:hover {
  color: #fff;
  box-shadow: 0 22px 40px rgba(0, 90, 167, 0.28);
}

.site-footer {
  background: linear-gradient(135deg, var(--color-accent) 0%, #002c55 100%);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer a:hover,
.site-footer a:focus {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer .footer-links li + li {
  margin-top: 0.5rem;
}

.site-footer .footer-links i {
  color: rgba(255, 255, 255, 0.8);
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1399.98px) {
  .navbar-brand {
    gap: 0.75rem !important;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .brand-subtitle {
    font-size: 0.82rem;
  }

  .navbar .nav-link {
    font-size: 0.74rem;
    padding: 0.42rem 0.52rem;
  }

  .admin-login-btn,
  .nav-cta-btn {
    font-size: 0.68rem;
    padding: 0.4rem 0.62rem;
  }
}

@media (max-width: 991.98px) {
  .main-nav {
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
  }

  .navbar-brand {
    margin-right: 0.5rem;
  }

  .brand-name {
    font-size: 1.45rem;
  }

  .brand-subtitle {
    font-size: 0.95rem;
  }

  .nav-links-panel {
    margin-top: 1rem;
    border-radius: var(--radius-md);
    background: rgba(9, 36, 64, 0.82);
    border-color: rgba(255, 255, 255, 0.12);
    padding: 1rem;
  }

  .navbar .nav-link {
    font-size: 0.95rem;
    padding: 0.65rem 0.35rem;
    border-radius: 0.75rem;
  }

  .navbar .dropdown-menu {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(17, 75, 130, 0.15);
    margin-top: 0.25rem;
  }

  .admin-login-btn,
  .nav-cta-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 0.86rem;
  }

  .gradient-banner {
    min-height: 68vh;
    padding: 2rem 0;
  }

  .banner-content {
    text-align: center;
  }

  .banner-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 1199.98px) {
  .banner-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.85rem;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .top-bar .container {
    justify-content: center;
  }
}

.app-scale-wrapper--site {
  --app-scale-factor: 0.75;
  --site-header-height: 138px;
  width: calc(100% / var(--app-scale-factor));
  min-height: calc(100vh / var(--app-scale-factor));
  padding-top: calc(var(--site-header-height) / var(--app-scale-factor));
  display: flex;
  flex-direction: column;
  transform: scale(var(--app-scale-factor));
  transform-origin: top left;
}

body {
  overflow-x: hidden;
}

.announcements-grid .col-lg-6 {
  width: 100%;
}

@media (min-width: 1200px) {
  .announcements-grid .col-lg-6 {
    width: 50%;
  }
}

.announcement-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.announcement-card-link:focus-visible {
  outline: 3px solid rgba(0, 90, 167, 0.4);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.app-scale-wrapper--site .main-content {
  flex: 1 0 auto;
}
