/* ============================================
   FDD Visuals Template Stylesheet
   ============================================ */

:root {
  --fdd-blue: #00558c;
  --fdd-navy: #002238;
  --fdd-light: #e6f0f5;
  --fdd-accent: #0077b6;
  --fdd-gray: #505050;
  --fdd-gray-2: #868686;
  --fdd-border: #78a4c8;
}

/* ============================================
   Header / Navbar
   ============================================ */
.fdd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 75px;
  background: var(--fdd-blue);
  backdrop-filter: blur(10px);
}

.fdd-header-inner {
  height: 75px;
  display: flex;
  align-items: center;
  padding: 4px 30px;
  position: relative;
}

.fdd-logo {
  display: inline-flex;
  align-items: center;
  max-width: 210px;
}

.fdd-logo img {
  height: 64.73px;
  width: auto;
  display: block;
}

.fdd-nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  font-family: Lato, Inter, system-ui, sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 15px;
  /* letter-spacing: 0.5px; */
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  max-width: 50%;
  text-align: center;
}

.fdd-nav-title.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .fdd-nav-title {
    display: none;
  }
  .fdd-header-inner {
    justify-content: center;
    padding: 4px 16px;
  }
  .fdd-logo img {
    height: 55px;
  }
}

.fdd-header-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 9px;
  background: #a3a3a3;
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
  pointer-events: none;
}

/* ============================================
   Typography
   ============================================ */
.fdd-title {
  font-family: urw-din, Inter, system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fdd-blue);
  font-size: 45px;
  line-height: 40px;
  letter-spacing: -0.3px;
  margin: 0;
}

.fdd-subtitle {
  font-family: Lato, Inter, system-ui, sans-serif;
  font-weight: 400;
  color: var(--fdd-blue);
  font-size: 30px;
  line-height: 40px;
}

.fdd-byline {
  font-family: Lato, Inter, system-ui, sans-serif;
  font-style: italic;
  font-weight: 400;
  color: #3d3d3d;
  font-size: 18px;
  line-height: 25.2px;
}

.fdd-intro {
  font-family: Lato, Inter, system-ui, sans-serif;
  font-weight: 400;
  color: var(--fdd-gray);
  font-size: 17px;
  line-height: 28px;
}

.fdd-section-title {
  font-family: urw-din, Inter, system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fdd-blue);
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.2px;
}

/* ============================================
   Panels
   ============================================ */
.fdd-panel {
  border: 1px solid rgba(120, 164, 200, 0.45);
  border-radius: 20px;
  background: #fff;
  padding: 16px;
}

/* ============================================
   Related Visuals / Swiper
   ============================================ */
.rv-nav-btn {
  width: 44px;
  height: 44px;
  border: 2px solid #00558c;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #00558c;
}

.rv-nav-btn:hover:not(:disabled) {
  background: #00558c;
  transform: scale(1.05);
  color: white;
}

.rv-nav-btn:disabled {
  border-color: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
  color: #ccc;
}

.rv-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 300px;
  text-align: left;
}

.rv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.rv-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}

.rv-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rv-card:hover .rv-card-img {
  transform: scale(1.05);
}

.rv-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rv-card-title {
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--fdd-blue);
  margin: 0 0 2px 0;
  line-height: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rv-card-meta {
  color: var(--fdd-gray);
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  margin-top: 4px;
}

.rv-meta-date {
  font-weight: 800;
}

/* Mobile responsive for Related Visuals */
@media (max-width: 768px) {
  .rv-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 15px;
  }

  .rv-title {
    font-size: 24px;
  }

  .rv-navigation {
    display: flex;
    justify-content: center;
  }

  .rv-nav-btn {
    width: 36px;
    height: 36px;
  }

  .rv-card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    height: 80px;
    margin-bottom: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .rv-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .rv-card-img-wrap {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    border-radius: 6px;
    margin-left: 10px;
  }

  .rv-card-content {
    padding: 5px 10px 5px 0;
    text-align: left;
  }

  .rv-card-title {
    font-size: 12px;
    line-height: 14px;
    margin-bottom: 4px;
  }

  .rv-card-meta {
    font-size: 10px;
    line-height: 12px;
  }
}

/* ============================================
   Footer
   ============================================ */
.fdd-footer {
  position: relative;
  background: var(--fdd-blue);
  padding: 48px 24px;
  overflow: hidden;
}

.fdd-footer-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--fdd-blue) 0%, #004570 100%);
  pointer-events: none;
}

.fdd-footer-inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.fdd-footer-left {
  width: min(672px, 100%);
  display: flex;
  flex-direction: column;
  gap: 22.8px;
}

.fdd-footer-logo {
  display: inline-flex;
  align-items: center;
  height: 48px;
  overflow: hidden;
  text-decoration: none;
}

.fdd-footer-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.fdd-footer-description {
  font-family: Lato, Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.9);
  white-space: normal;
}

.fdd-footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 0.7px;
}

.fdd-footer-copyright,
.fdd-footer-privacy {
  font-family: Lato, Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.fdd-footer-privacy {
  text-decoration: underline;
  text-underline-position: from-font;
}

.fdd-footer-privacy:hover {
  color: rgba(255, 255, 255, 0.9);
}

.fdd-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  flex: 1 1 240px;
  min-width: 240px;
}

.fdd-footer-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.fdd-footer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 8px 18px;
  color: #fff;
  font-family: Helvetica, Lato, Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  text-align: center;
}

.fdd-footer-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.fdd-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.fdd-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 9999px;
  text-decoration: none;
}

.fdd-footer-social-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.fdd-footer-social-link img {
  width: 24px;
  height: 24px;
  display: block;
}

@media (max-width: 900px) {
  .fdd-footer-right {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .fdd-byline {
    font-size: 14px;
    padding: 0 1rem;
  }
}
