:root {
  --ccamh-blue: #005aa7;
  --ccamh-dark-blue: #073763;
  --ccamh-red: #d71920;
  --ccamh-yellow: #ffd21f;
  --ccamh-green: #168a5b;
  --ccamh-light: #f4f8fc;
  --ccamh-text: #1f2937;
  --ccamh-muted: #64748b;
  --ccamh-border: #e1ebf5;
  --ccamh-shadow: 0 18px 45px rgba(7, 55, 99, 0.11);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: var(--ccamh-text);
  font-family: "Segoe UI", Arial, sans-serif;
}

p {
  color: var(--ccamh-muted);
  line-height: 1.72;
}

.top-bar {
  background: linear-gradient(90deg, var(--ccamh-blue), var(--ccamh-red), var(--ccamh-yellow));
  height: 7px;
}

.navbar {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.25s ease;
}

.navbar.scrolled {
  box-shadow: 0 18px 42px rgba(7, 55, 99, 0.16);
}

.navbar-brand {
  max-width: 430px;
}

.navbar-brand img {
  height: 86px;
  object-fit: contain;
  width: auto;
}

.navbar-brand strong {
  color: var(--ccamh-dark-blue);
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}

.navbar-brand small {
  color: var(--ccamh-muted);
  display: block;
  font-size: 0.76rem;
  line-height: 1.25;
  margin-top: 5px;
}

.nav-link {
  color: var(--ccamh-dark-blue) !important;
  font-weight: 750;
  position: relative;
}

.nav-link::after {
  background: var(--ccamh-red);
  bottom: 1px;
  content: "";
  height: 3px;
  left: 0.5rem;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  width: calc(100% - 1rem);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.btn-ccamh {
  background: var(--ccamh-red);
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  padding: 11px 22px;
}

.btn-ccamh:hover {
  background: #b9151b;
  color: #fff;
}

.btn-outline-ccamh {
  border: 2px solid #fff;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  padding: 11px 22px;
}

.btn-outline-ccamh:hover {
  background: #fff;
  color: var(--ccamh-dark-blue);
}

.hero {
  align-items: center;
  background: var(--ccamh-dark-blue);
  color: #fff;
  display: flex;
  min-height: calc(100vh - 93px);
  overflow: hidden;
  position: relative;
}

.hero::before {
  background: linear-gradient(90deg, rgba(7, 55, 99, 0.96), rgba(0, 90, 167, 0.74), rgba(0, 0, 0, 0.2));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero .container {
  z-index: 3;
}

.hero-slideshow,
.hero-slide {
  inset: 0;
  position: absolute;
}

.hero-slideshow {
  z-index: 0;
}

.hero-slide {
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease-in-out, transform 6s ease;
  width: 100%;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.badge-ministry {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 750;
  gap: 9px;
  margin-bottom: 24px;
  padding: 10px 14px;
}

.hero h1 {
  font-size: clamp(2.45rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 22px;
}

.hero h1 span {
  color: var(--ccamh-yellow);
}

.hero p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.18rem;
  max-width: 760px;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(7, 55, 99, 0.96), rgba(0, 90, 167, 0.72)),
    url("../img/acc3.jpeg") center/cover no-repeat;
  color: #fff;
  padding: 92px 0;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin: 0;
  max-width: 760px;
}

.section-padding {
  padding: 92px 0;
}

.bg-soft,
.contact {
  background: var(--ccamh-light);
}

.section-kicker {
  color: var(--ccamh-red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-title {
  color: var(--ccamh-dark-blue);
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.section-lead {
  max-width: 780px;
}

.sub-title {
  color: var(--ccamh-blue);
  font-size: 1.15rem;
  font-weight: 850;
  margin-bottom: 10px;
}

.metrics-strip {
  background: #fff;
  margin-top: -54px;
  position: relative;
  z-index: 5;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--ccamh-border);
  border-radius: 8px;
  box-shadow: var(--ccamh-shadow);
  height: 100%;
  min-height: 128px;
  padding: 28px 18px;
  text-align: center;
}

.metric-number {
  color: var(--ccamh-blue);
  font-size: 2.6rem;
  font-weight: 950;
  line-height: 1;
}

.metric-card p {
  color: var(--ccamh-dark-blue);
  font-size: 0.84rem;
  font-weight: 850;
  margin: 12px 0 0;
  text-transform: uppercase;
}

.feature-card,
.mission-card,
.structure-card,
.person-card,
.organigramme-card,
.news-card,
.media-card,
.contact-card,
.vision-card {
  background: #fff;
  border: 1px solid var(--ccamh-border);
  border-radius: 8px;
  box-shadow: var(--ccamh-shadow);
  height: 100%;
}

.feature-card,
.mission-card,
.structure-card,
.media-card,
.contact-card,
.vision-card {
  padding: 30px;
}

.feature-card,
.mission-card,
.news-card,
.media-card,
.person-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.mission-card:hover,
.news-card:hover,
.media-card:hover,
.person-card:hover {
  box-shadow: 0 24px 58px rgba(7, 55, 99, 0.16);
  transform: translateY(-5px);
}

.feature-card h3,
.mission-card h3,
.structure-card h3,
.person-card h3,
.news-card h3,
.media-card h3,
.organigramme-card h3 {
  color: var(--ccamh-dark-blue);
  font-size: 1.15rem;
  font-weight: 850;
}

.feature-icon,
.media-card i {
  background: linear-gradient(135deg, #e8f3ff, #fff7c7);
  border-radius: 8px;
  color: var(--ccamh-blue);
  display: grid;
  font-size: 2rem;
  height: 68px;
  margin-bottom: 20px;
  place-items: center;
  width: 68px;
}

.image-panel {
  background-color: #dbeafe;
  box-shadow: 0 24px 58px rgba(7, 55, 99, 0.18);
  min-height: 450px;
}

.about-img {
  background:
    linear-gradient(rgba(0, 90, 167, 0.05), rgba(7, 55, 99, 0.16)),
    url("../img/about.png") center/cover no-repeat,
    linear-gradient(135deg, #dbeafe, #fff6b7);
}

.vision-band,
.don-band {
  background: linear-gradient(135deg, var(--ccamh-dark-blue), var(--ccamh-blue));
  color: #fff;
  padding: 72px 0;
}

.vision-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.vision-card.light {
  background: #fff;
}

.vision-card span,
.don-band span,
.organigramme-card span,
.person-card span,
.news-card span {
  color: var(--ccamh-red);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.vision-card h2,
.don-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
}

.vision-card.light p {
  color: var(--ccamh-text);
  font-size: 1.12rem;
  margin: 0;
}

.mission-card {
  border-top: 7px solid var(--ccamh-blue);
  min-height: 260px;
}

.mission-card.red {
  border-top-color: var(--ccamh-red);
}

.mission-card.yellow {
  border-top-color: var(--ccamh-yellow);
}

.structure-card {
  min-height: 230px;
  position: relative;
}

.structure-number {
  align-items: center;
  background: var(--ccamh-blue);
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 1.25rem;
  font-weight: 900;
  height: 50px;
  justify-content: center;
  margin-bottom: 20px;
  width: 50px;
}

.person-card {
  align-items: center;
  display: flex;
  gap: 18px;
  padding: 18px;
}

.person-card img {
  background: var(--ccamh-light);
  border: 1px solid var(--ccamh-border);
  border-radius: 8px;
  height: 88px;
  object-fit: contain;
  padding: 8px;
  width: 88px;
}

.organigramme-card {
  display: grid;
  gap: 22px;
  margin-top: 28px;
  padding: 28px 30px;
}

.organigramme-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.organigramme-heading .btn {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
}

.organigramme-heading i {
  font-size: 1rem;
}

.organigramme-card > i {
  color: var(--ccamh-red);
  font-size: 3rem;
}

.news-card {
  overflow: hidden;
}

.news-card-link {
  color: inherit;
  display: block;
  height: 100%;
  text-decoration: none;
}

.news-card-link:hover {
  color: inherit;
}

.news-card img {
  background: var(--ccamh-light);
  height: 240px;
  object-fit: cover;
  width: 100%;
}

.news-content {
  padding: 26px;
}

.news-content strong {
  color: var(--ccamh-red);
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
  margin-top: 8px;
}

.article-detail,
.related-news {
  background: #fff;
  border: 1px solid var(--ccamh-border);
  border-radius: 8px;
  box-shadow: var(--ccamh-shadow);
  overflow: hidden;
}

.article-detail img {
  height: 420px;
  object-fit: cover;
  width: 100%;
}

.article-body {
  padding: 38px;
}

.article-body h2 {
  color: var(--ccamh-dark-blue);
  font-weight: 900;
  margin-bottom: 18px;
}

.article-meta {
  color: var(--ccamh-red);
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.article-inline-photo {
  margin: 30px 0;
}

.article-inline-photo img {
  border-radius: 8px;
  height: auto;
  max-height: none;
  object-fit: cover;
  width: 100%;
}

.related-news {
  padding: 30px;
  position: sticky;
  top: 130px;
}

.related-news h3 {
  color: var(--ccamh-dark-blue);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.related-news a:not(.btn) {
  border-bottom: 1px solid var(--ccamh-border);
  color: var(--ccamh-dark-blue);
  display: block;
  font-weight: 750;
  padding: 14px 0;
  text-decoration: none;
}

.related-news a:not(.btn):hover {
  color: var(--ccamh-red);
}

.media-tabs-section {
  padding-bottom: 34px;
}

.media-tabs {
  background: #fff;
  border: 1px solid var(--ccamh-border);
  border-radius: 8px;
  box-shadow: var(--ccamh-shadow);
  display: flex;
  gap: 8px;
  padding: 8px;
}

.media-filter {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ccamh-dark-blue);
  cursor: pointer;
  display: inline-flex;
  flex: 1 1 0;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 58px;
  padding: 12px 16px;
  text-align: center;
}

.media-filter i {
  color: var(--ccamh-blue);
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.media-filter.is-active {
  background: var(--ccamh-dark-blue);
  border-color: var(--ccamh-dark-blue);
  color: #fff;
  box-shadow: none;
}

.media-filter.is-active i {
  color: var(--ccamh-yellow);
  transform: scale(1.06);
}

.media-library-panel {
  display: none;
}

.media-library-panel.is-active {
  display: block;
}

.document-list,
.media-list {
  display: grid;
  gap: 14px;
}

.document-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ccamh-border);
  border-radius: 8px;
  box-shadow: var(--ccamh-shadow);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  min-height: 92px;
  padding: 18px 20px;
}

.document-info {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.document-card i {
  color: var(--ccamh-red);
  flex: 0 0 auto;
  font-size: 2rem;
}

.document-card h3 {
  color: var(--ccamh-dark-blue);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.35;
  margin: 0;
}

.document-card .btn {
  flex: 0 0 auto;
}

.video-panel {
  background: #000;
  border-radius: 8px;
  box-shadow: var(--ccamh-shadow);
  overflow: hidden;
}

.video-panel video {
  aspect-ratio: 16 / 9;
  display: block;
  width: 100%;
}

.video-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ccamh-border);
  border-radius: 8px;
  box-shadow: var(--ccamh-shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, 46%) 1fr;
  padding: 20px;
}

.video-item h3 {
  color: var(--ccamh-dark-blue);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.video-item p {
  margin: 0;
}

.photo-mosaic {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.photo-mosaic img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  box-shadow: var(--ccamh-shadow);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-mosaic img:first-child,
.photo-mosaic img:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
}

.don-band p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 780px;
}

.contact {
  padding-bottom: 112px;
}

.contact-page {
  padding-bottom: 92px;
}

.contact-page .row {
  align-items: stretch;
}

.contact-hero {
  padding: 110px 0 96px;
}

.contact-info-panel,
.contact-form-panel {
  background: #fff;
  border: 1px solid var(--ccamh-border);
  border-radius: 8px;
  box-shadow: var(--ccamh-shadow);
  height: auto;
  min-height: 100%;
  padding: 34px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-item {
  align-items: flex-start;
  border: 1px solid var(--ccamh-border);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  padding: 22px;
}

.contact-info-item i {
  align-items: center;
  background: rgba(215, 25, 32, 0.1);
  border-radius: 8px;
  color: var(--ccamh-red);
  display: flex;
  font-size: 1.35rem;
  height: 46px;
  justify-content: center;
  min-width: 46px;
  width: 46px;
}

.contact-info-item span {
  color: var(--ccamh-dark-blue);
  display: block;
  font-weight: 900;
  margin-bottom: 5px;
}

.contact-info-item p {
  margin: 0;
}

.contact-note {
  background: linear-gradient(135deg, var(--ccamh-dark-blue), var(--ccamh-blue));
  border-radius: 8px;
  margin-top: auto;
  padding: 24px;
}

.contact-note strong {
  color: #fff;
  display: block;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.contact-note p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.contact-form-panel textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form-panel .btn-ccamh {
  border-radius: 8px;
}

.contact-don {
  padding: 64px 0;
}

.contact-item {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-item i {
  color: var(--ccamh-red);
  font-size: 1.4rem;
}

.form-control {
  border: 1px solid #d7e4f2;
  border-radius: 8px;
}

.form-control:focus {
  border-color: var(--ccamh-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 90, 167, 0.14);
}

.form-response {
  color: var(--ccamh-blue);
  font-weight: 750;
  min-height: 24px;
}

footer {
  background: #0f172a;
  color: #dbeafe;
  padding: 72px 0;
}

footer h3 {
  color: #fff;
  font-weight: 850;
  font-size: 1rem;
  letter-spacing: 0;
  margin-bottom: 28px;
  text-transform: uppercase;
}

footer p {
  color: #cbd5e1;
  margin-bottom: 16px;
}

footer a {
  color: #fff;
  display: block;
  font-weight: 500;
  margin-bottom: 16px;
  text-decoration: none;
}

footer a:hover {
  color: var(--ccamh-yellow);
}

.footer-grid {
  display: grid;
  gap: 52px;
  grid-template-columns: 1.45fr 1fr 1.2fr 1.35fr 1.35fr;
}

.footer-brand-title {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 1.75rem;
  font-weight: 950;
  gap: 12px;
  margin-bottom: 28px;
}

.footer-brand-title img {
  background: transparent;
  height: 34px;
  object-fit: contain;
  width: 34px;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.social-links a {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  height: 50px;
  justify-content: center;
  margin: 0;
  width: 50px;
}

.social-links a:hover {
  background: rgba(255, 210, 31, 0.14);
}

footer p i {
  color: var(--ccamh-yellow);
  margin-right: 12px;
}

.newsletter-form .form-control {
  background: #1e293b;
  border-color: #334155;
  color: #fff;
  height: 58px;
  margin-bottom: 14px;
}

.newsletter-form .form-control::placeholder {
  color: #94a3b8;
}

.btn-newsletter {
  background: #f4b400;
  border: 0;
  border-radius: 6px;
  color: #08204a;
  font-weight: 900;
  height: 56px;
  text-transform: uppercase;
  width: 100%;
}

.btn-newsletter:hover {
  background: #ffd21f;
  color: #08204a;
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 38px;
  padding-top: 20px;
}

.footer-bottom a {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1199px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .navbar-brand {
    max-width: 310px;
  }

  .navbar-brand img {
    height: 74px;
  }

  .navbar-brand small {
    display: none;
  }
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
    padding: 88px 0 120px;
  }

  .section-padding {
    padding: 68px 0;
  }

  .contact-page {
    padding-bottom: 68px;
  }

  .metrics-strip {
    margin-top: -72px;
  }

  .image-panel {
    min-height: 360px;
  }

  .photo-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .footer-grid {
    gap: 34px;
    grid-template-columns: 1fr;
  }

  footer {
    padding: 54px 0;
  }

  .navbar-brand img {
    height: 62px;
  }

  .navbar-brand strong {
    font-size: 1.05rem;
  }

  .badge-ministry {
    align-items: flex-start;
  }

  .feature-card,
  .mission-card,
  .structure-card,
  .media-card,
  .contact-card,
  .vision-card,
  .contact-info-panel,
  .contact-form-panel {
    padding: 24px;
  }

  .contact-info-item {
    padding: 18px;
  }

  .person-card,
  .organigramme-card,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .organigramme-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .organigramme-heading .btn {
    width: 100%;
  }

  .news-card img {
    height: 210px;
  }

  .newsletter-form .input-group {
    display: block;
  }

  .newsletter-form .form-control,
  .newsletter-form .btn-ccamh {
    border-radius: 8px;
    margin-top: 8px;
    width: 100%;
  }

  .media-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .media-filter {
    justify-content: flex-start;
  }

  .document-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-card .btn {
    width: 100%;
  }

  .photo-mosaic,
  .photo-mosaic img:first-child,
  .photo-mosaic img:nth-child(6) {
    display: block;
  }

  .photo-mosaic img {
    margin-bottom: 16px;
  }
}
