@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand: #005960;
  --brand-dark: #003c4c;
  --brand-btn: #005d63;
  --brand-light: #f2ffff;
  --brand-muted: #d6ffff;
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

a {
  font-weight: 600;
}

p, body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

body {
  margin: 0 auto;
}

#intro-example {
  height: 400px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 992px) {
  #intro-example {
    height: 600px;
  }
}

#intro-example.hero-about {
  height: 300px;
}

@media (min-width: 992px) {
  #intro-example.hero-about {
    height: 400px;
  }
}

#intro-example h1 {
  font-size: 2.5rem;
}

.imgTitle {
  padding-left: 7rem;
}

@media (max-width: 576px) {
  #intro-example h1 {
    font-size: 2rem;
  }
  .imgTitle {
    padding-left: 0.5rem;
  }
  #intro-example p {
    font-size: 0.9rem;
    padding-left: 0.2rem;
  }
}

.brand-color {
  color: var(--brand) !important;
}

.btn-success {
  background-color: var(--brand-btn) !important;
  box-shadow: 0 4px 6px rgba(4, 117, 111, 0.2) !important;
  border: none !important;
}

.btn-success:hover {
  background-color: #004a50 !important;
  box-shadow: 0 6px 8px rgba(4, 117, 111, 0.3) !important;
}

.btn-outline-brand {
  color: var(--brand);
  border: 2px solid var(--brand);
  background: transparent;
  font-weight: 600;
}

.btn-outline-brand:hover {
  background: var(--brand);
  color: #fff;
}

.procedure-container {
  margin-left: 5%;
  margin-right: 5%;
  background-color: var(--brand-dark);
  box-shadow: 0 0 10px rgba(0, 108, 133, 0.5);
  margin-top: 4rem;
  margin-bottom: 3rem;
  border-radius: 0.9rem;
  padding-top: 0.1rem;
  padding-bottom: 1.1rem;
}

.procedure-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #ffffff;
  margin-left: 1.5rem;
  margin-top: 1rem;
  font-size: 2rem;
}

.procedure-text-left-container {
  margin: 3rem 2rem 2rem 2rem;
  color: var(--brand-muted);
}

.procedure-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.3rem;
  color: #fff;
}

.procedure-subtext {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: white;
  text-align: justify;
}

.procedure-btn {
  background-color: white !important;
  color: var(--brand-dark) !important;
  border-radius: 0.35rem;
  font-weight: 600;
}

.timeline {
  border-left: 5px solid hsl(189, 83%, 23%);
  position: relative;
  list-style: none;
  padding-left: 1.5rem;
}

.timeline .timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}

.timeline .timeline-item:after {
  position: absolute;
  display: block;
  top: 0.35rem;
  background-color: hsl(196, 68%, 29%);
  left: -37px;
  border-radius: 50%;
  height: 21px;
  width: 21px;
  content: "";
}

.timeline-container {
  margin: 0.5rem;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  background-color: var(--brand-light);
  padding: 2rem;
  border-radius: 0.9rem;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-content h4 {
  font-size: 1.05rem;
  color: #333;
}

.timeline-content p {
  color: #666;
  margin-bottom: 0;
}

.stepper-container {
  margin-top: 1.5rem;
  margin-left: 3%;
  margin-right: 3%;
  padding: 10px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step {
  display: flex;
  align-items: flex-start;
  width: 100%;
  position: relative;
}

.step-icon {
  font-size: 1.2rem;
  min-width: 30px;
  height: 30px;
  background-color: var(--brand);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.step-content {
  margin-left: 1rem;
  padding-bottom: 1rem;
  width: calc(100% - 45px);
}

.step-content h4 {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.step-content p {
  margin: 0.5rem 0 0;
  color: #666;
}

@media (max-width: 821px) {
  .procedure-container {
    display: none;
  }
}

@media (min-width: 821px) {
  .stepper-container {
    display: none !important;
  }
}

.scrollspy-menu .nav-link {
  color: #666;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-left: 3px solid transparent;
}

.scrollspy-menu .nav-link.active,
.scrollspy-menu .nav-link:hover {
  color: var(--brand);
  border-left-color: var(--brand);
  background: transparent;
}

.section-title {
  color: var(--brand);
  font-weight: 700;
}

.customimg {
  border-radius: 0.5rem;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

.news-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 89, 96, 0.15);
}

.news-card .card-img-top {
  height: 160px;
  object-fit: cover;
}

.news-card .card-title {
  color: var(--brand);
  font-size: 1.1rem;
}

.news-meta {
  color: #888;
  font-size: 0.85rem;
}

.footer-text {
  color: #6c757d;
  text-decoration: none;
}

.footer-text:hover {
  color: var(--brand);
}

.staff-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 2rem 1.5rem;
  height: 100%;
}

.staff-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.staff-role {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feature-section {
  padding: 3rem 0;
}

.feature-item h5 {
  color: var(--brand);
}

.admin-shell {
  min-height: 100vh;
  background: #f5f7f8;
}

.admin-login-card,
.admin-panel-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.admin-table th {
  color: var(--brand);
  font-weight: 600;
  border-bottom-width: 2px;
}

.table-actions .btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}

.news-detail-content {
  line-height: 1.8;
  color: #333;
  white-space: pre-wrap;
}

.news-detail-content img {
  max-width: 100%;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.home-news-title {
  color: var(--brand);
  font-weight: 700;
}

.nav-brand-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--brand);
  font-size: 1.05rem;
  margin-left: 0.35rem;
}

.pagination .page-item.active .page-link {
  background-color: var(--brand-btn);
  border-color: var(--brand-btn);
  color: white;
}

.pagination .page-item .page-link {
  color: var(--brand-btn);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
}

.leader-chip {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  padding: 0.35rem 0.85rem;
  border-radius: 0.35rem;
  font-weight: 600;
  margin: 0.25rem 0.25rem 0.25rem 0;
  text-decoration: none;
}

.leader-chip:hover {
  background: var(--brand);
  color: #fff;
}

/* CXVA-style mobile navigation */
.site-navbar {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
  }

  .site-navbar .navbar-nav {
    width: 100%;
    border-top: 1px solid rgba(0, 89, 96, 0.12);
    padding-top: 0.5rem;
  }

  .site-navbar .nav-item {
    width: 100%;
  }

  .site-navbar .nav-link {
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    color: var(--brand-dark);
  }

  .site-navbar .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0 0 0.25rem 1rem;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .site-navbar .dropdown-item {
    padding: 0.55rem 0.75rem;
    font-weight: 500;
    color: #555;
    border-radius: 0.35rem;
  }

  .site-navbar .dropdown-item:hover,
  .site-navbar .dropdown-item:focus {
    background: var(--brand-light);
    color: var(--brand);
  }

  .site-navbar .dropdown-divider {
    margin: 0.35rem 0.75rem;
    opacity: 0.35;
  }

  .site-navbar .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.5rem;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(0, 89, 96, 0.12);
  }

  .site-navbar .nav-apply {
    text-align: center;
    color: var(--brand) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .site-navbar .nav-actions .btn-success {
    width: 100%;
    padding: 0.65rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}
