/*
Theme Name: APRAPFEA
Theme URI: https://aprapfea.org
Author: APRAPFEA
Author URI: https://aprapfea.org
Description: Thème WordPress officiel de l'Association de Protection des Reliques et des Mémoires de nos Ancêtres, Parents, Frères, Enfants et Amis (APRAPFEA). Sanctuaire de mémoire ancestrale et d'inviolabilité connectée.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: aprapfea
Domain Path: /languages
*/

/* ==========================================================================
   APRAPFEA Custom Root Tokens & Color Palette
   ========================================================================== */
:root {
  --th-theme-color: #0D3823;
  /* Vert Forêt Sacré / Ancestral */
  --th-theme-color2: #C99738;
  /* Or Noble / Ocre d'Afrique */
  --th-theme-color-dark: #072215;
  /* Vert Sombre Profond */
  --th-title-color: #1E1A17;
  /* Ébène / Terre Cuite Noire */
  --th-body-color: #4A4643;
  /* Texte noble lisible */
  --th-smoke-color: #FAF8F5;
  /* Ivoire Sacré chaud */
  --th-smoke-color2: #F3EFEA;
  /* Sable doux */
  --th-border-color: #E6DFD5;
  /* Bordure subtile parchemin */
  --th-gold-gradient: linear-gradient(135deg, #C99738 0%, #E5B85C 50%, #B38022 100%);
  --theme-color: #0D472B;
  --theme-color2: #C89B3C;
  --theme-dark: #092819;
  --theme-dark2: #051A10;
}

.text-justify {
  text-align: justify !important;
}

.sec-text {
  text-align: justify !important;
}

/* Accent logo header & branding */
.header-logo img,
.about-logo img,
.mobile-logo img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  border-radius: 50%;
}

.th-header.header-layout1 .header-logo img {
  max-height: 85px;
}

/* Badge & Sacred Elements */
.sacred-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 151, 56, 0.15);
  color: #C99738;
  border: 1px solid rgba(201, 151, 56, 0.35);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Progress bar gold */
.progress-bar-gold {
  background: var(--th-gold-gradient) !important;
}

/* ==========================================================================
   Top Bar Alignment & Vertical/Horizontal Centering relative to Logo space
   ========================================================================== */
.header-layout1 .header-top {
  position: relative;
  padding: 6px 0;
}

.header-layout1 .header-top .row {
  align-items: center !important;
  min-height: 88px;
  /* Hauteur harmonisée sur l'espace du logo */
}

.header-layout1 .header-top .header-logo {
  display: flex;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Bandeau vert d'annonce fixé élégamment en haut au centre */
.header-layout1 .header-top .header-notice {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  padding: 3px 26px;
  border-radius: 0 0 20px 20px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.4;
  background: var(--theme-color);
  color: var(--white-color);
  box-shadow: 0 2px 8px rgba(13, 56, 35, 0.12);
}

/* Coordonnées centrées horizontalement et verticalement sur l'axe du logo */
.header-layout1 .header-top .info-card-wrap {
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.header-layout1 .header-top .info-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-layout1 .header-top .info-card .box-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-layout1 .header-top .info-card .box-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

/* Sélecteur de langue centré verticalement sur le même axe */
.header-layout1 .header-top .dropdown-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ==========================================================================
   Services Section Card Polish & Typographic Tuning
   ========================================================================== */
.service-card {
  padding: 32px 28px !important;
}

.service-card .box-title {
  margin-bottom: 10px;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card .box-title a {
  font-size: 21px !important;
  line-height: 1.3 !important;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card .box-text {
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.65em;
}

/* ==========================================================================
   About Section Image Box Polish (img-box2)
   ========================================================================== */
.img-box2 .img1,
.img-box2 .img2 {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.img-box2 .img1 img,
.img-box2 .img2 img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.img-box2:hover .img1 img {
  transform: scale(1.03);
}

.img-box2:hover .img2 {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   Marquee Slider Categories Polish
   ========================================================================== */
.marquee-card a {
  cursor: pointer;
  text-decoration: none !important;
}

.marquee-card a span {
  transition: color 0.35s ease, -webkit-text-stroke-color 0.35s ease;
}

.marquee-card a:hover span {
  color: var(--theme-color2) !important;
}

.marquee-card a:hover span.text-stroke {
  color: var(--theme-color2) !important;
  -webkit-text-stroke-color: var(--theme-color2) !important;
}

.marquee-card .marquee-card-icon img {
  filter: drop-shadow(0 2px 6px rgba(201, 151, 56, 0.25));
}

/* ==========================================================================
   Section Adhésion & Double Bouton (cta-wrap4)
   ========================================================================== */
.cta-wrap4 {
  position: relative;
}

.cta-wrap4 .btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-wrap4 .btn-wrap .th-btn {
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.35s ease;
}

.cta-wrap4 .btn-wrap .th-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.cta-wrap4 .cta-thumb4-2 .thumb,
.cta-wrap4 .cta-thumb4-2 .cta-bg-shape4-2 {
  border-radius: 28px 0 0 28px;
}

.cta-wrap4 .cta-thumb4-2 .thumb img {
  border-radius: 28px 0 0 28px;
}

/* ==========================================================================
   Template Page Adhésion
   ========================================================================== */
.adhesion-banner-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.adhesion-banner-card:hover {
  box-shadow: 0 12px 32px rgba(13, 56, 35, 0.08) !important;
}

.adhesion-form-wrapper {
  background: var(--white-color);
  border-radius: 20px;
}

.adhesion-form-wrapper .form-slot-ready {
  transition: all 0.3s ease;
}

/* ==========================================================================
   Carte SVG Interactive du Cameroun (Section Dons / front-page.php)
   ========================================================================== */
.cameroon-map-card {
  position: relative;
  background: linear-gradient(155deg, #072215 0%, #0D3823 55%, #051A10 100%);
  border: 1px solid rgba(200, 155, 60, 0.35);
  padding: 24px 24px 20px;
  box-shadow: 0 24px 60px rgba(5, 26, 16, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.cameroon-map-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px rgba(5, 26, 16, 0.45), 0 0 30px rgba(200, 155, 60, 0.15);
}

.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200, 155, 60, 0.2);
}

.map-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 155, 60, 0.16);
  color: #F5D78E;
  border: 1px solid rgba(200, 155, 60, 0.4);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-badge-tag i {
  color: #C89B3C;
}

.map-coords-badge {
  font-family: var(--body-font);
  font-size: 0.8rem;
  color: rgba(243, 239, 234, 0.7);
  letter-spacing: 0.06em;
  font-weight: 600;
}

.cameroon-svg-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.cameroon-svg-map {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
}

.cm-region {
  fill: #11422B;
  stroke: rgba(200, 155, 60, 0.4);
  stroke-width: 1.2;
  stroke-linejoin: round;
  transition: fill 0.35s ease, stroke 0.35s ease, filter 0.35s ease;
  cursor: pointer;
}

.cm-region-group {
  cursor: pointer;
}

.cm-region-group:hover .cm-region {
  fill: #1A5E3D;
  stroke: #F5D78E;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 8px rgba(200, 155, 60, 0.45));
}

.cm-region-group:hover .cm-region-label {
  fill: #FFFFFF;
  font-weight: 800;
}

.cm-region-centre {
  fill: url(#cmGoldGrad) !important;
  stroke: #FFF3C4 !important;
  stroke-width: 2.2 !important;
  stroke-linejoin: round;
  cursor: pointer;
  transition: all 0.35s ease;
}

.cm-region-centre:hover,
.cm-region-centre-group:hover .cm-region-centre {
  filter: drop-shadow(0 0 18px rgba(200, 155, 60, 0.95)) !important;
}

.cm-region-label {
  font-family: var(--body-font);
  font-size: 9.5px;
  fill: rgba(243, 239, 234, 0.65);
  text-anchor: middle;
  font-weight: 700;
  letter-spacing: 0.05em;
  pointer-events: none;
  user-select: none;
}

.cm-region-label-centre {
  font-family: var(--body-font);
  font-size: 12px;
  fill: #072215;
  text-anchor: middle;
  font-weight: 900;
  letter-spacing: 0.08em;
  pointer-events: none;
  user-select: none;
}

/* Animations de pulsation pour le pin de Yaoundé */
.cm-pin-pulse-1 {
  animation: cmPulseWave1 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  transform-origin: center;
}

.cm-pin-pulse-2 {
  animation: cmPulseWave2 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 0.6s;
  transform-origin: center;
}

@keyframes cmPulseWave1 {
  0% {
    r: 6px;
    opacity: 0.9;
  }

  70% {
    opacity: 0.3;
  }

  100% {
    r: 28px;
    opacity: 0;
  }
}

@keyframes cmPulseWave2 {
  0% {
    r: 12px;
    opacity: 0.8;
  }

  70% {
    opacity: 0.2;
  }

  100% {
    r: 40px;
    opacity: 0;
  }
}

.cm-pin-group {
  cursor: pointer;
}

/* Carte flottante de détail */
.map-detail-card {
  margin-top: 16px;
  background: rgba(7, 34, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 155, 60, 0.35);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.map-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.map-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #C89B3C;
  box-shadow: 0 0 0 0 rgba(200, 155, 60, 0.7);
  animation: mapDotPulse 1.8s infinite;
}

@keyframes mapDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 155, 60, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(200, 155, 60, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(200, 155, 60, 0);
  }
}

.map-detail-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #F5D78E;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.map-detail-title {
  font-family: var(--title-font);
  font-size: 1.05rem;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.map-detail-text {
  font-size: 0.85rem;
  color: rgba(243, 239, 234, 0.82);
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.map-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #F3EFEA;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 155, 60, 0.25);
  border-radius: 6px;
  padding: 3px 10px;
}

.map-tag i {
  color: #C89B3C;
  font-size: 0.7rem;
}

/* Barre de Légende */
.map-legend-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(200, 155, 60, 0.18);
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(243, 239, 234, 0.85);
  font-weight: 600;
}

.map-legend-color {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.map-legend-color.color-centre {
  background: linear-gradient(135deg, #F5D78E, #C89B3C);
  box-shadow: 0 0 6px rgba(200, 155, 60, 0.6);
  border: 1px solid #FFF2B2;
}

.map-legend-color.color-regions {
  background: #11422B;
  border: 1px solid rgba(200, 155, 60, 0.4);
}

@media (max-width: 575px) {
  .cameroon-map-card {
    padding: 18px 16px 16px;
  }

  .map-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .map-detail-title {
    font-size: 0.98rem;
  }

  .map-legend-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   APRAPFEA Blog & Actualités Enhancements
   ========================================================================== */
.pub-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #C99738;
  background: rgba(201, 151, 56, 0.12);
  border: 1px solid rgba(201, 151, 56, 0.3);
  padding: 3px 12px;
  border-radius: 9999px;
  margin-left: 8px;
}

.pub-type-badge i {
  font-size: 0.75rem;
}

.official-pdf-download-card {
  transition: all 0.3s ease;
}

.official-pdf-download-card:hover {
  border-color: #C99738 !important;
  box-shadow: 0 8px 24px rgba(13, 56, 35, 0.08);
}

.official-pdf-download-card .pdf-icon-box {
  transition: transform 0.3s ease;
}

.official-pdf-download-card:hover .pdf-icon-box {
  transform: scale(1.05);
}

.th-social a[title*="WhatsApp"] i {
  color: #ffffff !important;
}

.blog-details .blog-author {
  background: #FAF8F5;
  border: 1px solid #E6DFD5;
  padding: 30px;
  border-radius: 16px;
}

/* ==========================================================================
   APRAPFEA Module Bibliothèque & Librairie
   ========================================================================== */
.book-card {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(13, 56, 35, 0.12) !important;
  border-color: rgba(200, 155, 60, 0.45) !important;
}

.book-3d-effect {
  position: relative;
  perspective: 800px;
  display: inline-block;
  transition: transform 0.4s ease;
}

.book-card:hover .book-3d-effect {
  transform: rotateY(-8deg) scale(1.03);
}

.book-cover-img {
  height: 250px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  box-shadow: -5px 8px 18px rgba(0, 0, 0, 0.22), 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 3px solid rgba(255, 255, 255, 0.35);
}

.book-cover-placeholder {
  width: 170px;
  height: 250px;
  background: linear-gradient(135deg, #FAF8F5 0%, #E6DFD5 100%);
  border: 1px dashed rgba(201, 151, 56, 0.45);
  box-shadow: -4px 6px 16px rgba(0, 0, 0, 0.15);
}

.book-cover-placeholder-lg {
  width: 280px;
  height: 390px;
  max-width: 100%;
  background: linear-gradient(135deg, #FAF8F5 0%, #E6DFD5 100%);
  border: 1px dashed rgba(201, 151, 56, 0.45);
  box-shadow: -8px 12px 28px rgba(0, 0, 0, 0.2);
}

.book-3d-single {
  display: inline-block;
  position: relative;
  border-radius: 8px;
  box-shadow: -10px 14px 32px rgba(0, 0, 0, 0.28), -2px 0 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.book-single-img {
  max-height: 440px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.btn-wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff !important;
  font-size: 19px;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
}

.btn-wa-icon:hover {
  transform: scale(1.1);
  background: #1EBE5D;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.45);
  color: #ffffff !important;
}

.bibliotheque-empty-card {
  border: 1px solid rgba(200, 155, 60, 0.35) !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 100%) !important;
}

/* Compact & Refined Bibliothèque Front Section */
#bibliotheque-sec {
  padding: 42px 0 46px;
}

.bibliotheque-front-empty-card {
  border: 1px solid rgba(200, 155, 60, 0.3) !important;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF8F5 100%) !important;
  border-radius: 18px;
  padding: 22px 30px !important;
  box-shadow: 0 8px 24px rgba(13, 56, 35, 0.06);
}

.bibliotheque-front-empty-card .empty-icon-wrap {
  flex-shrink: 0;
}

.bibliotheque-front-empty-card .empty-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(200, 155, 60, 0.14);
  color: #C89B3C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.bibliotheque-front-empty-card .empty-title {
  font-family: var(--title-font);
  color: var(--theme-dark);
  font-size: 1.15rem;
  margin: 0 0 5px 0;
  line-height: 1.35;
}

.bibliotheque-front-empty-card .empty-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--body-color);
  margin: 0;
}

.bibliotheque-front-empty-card .empty-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 155, 60, 0.12);
  color: #855d14;
  border: 1px solid rgba(200, 155, 60, 0.3);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.bibliotheque-front-empty-card .empty-cta-wrap {
  flex-shrink: 0;
}

.book-title a {
  color: var(--theme-dark);
  transition: color 0.3s ease;
}

.book-title a:hover {
  color: var(--theme-color2) !important;
}

/* Centrage rigoureux des sous-titres avec icônes */
#bibliotheque-sec .title-area,
.archive-livre-sec .title-area {
  text-align: center !important;
}

#bibliotheque-sec .sub-title,
.title-area.text-center .sub-title,
.text-center>.title-area .sub-title {
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: auto !important;
}

/* ==========================================================================
   Footer 4 Columns Grid & Text Truncation with Ellipsis (...)
   ========================================================================== */
.footer-layout1 .widget-area {
  padding-top: 80px;
  padding-bottom: 50px;
}

.footer-layout1 .widget-area .row {
  --bs-gutter-x: 1.85rem;
  --bs-gutter-y: 2rem;
}

/* Ensure each footer widget column takes clean 100% width of its grid cell */
.footer-layout1 .footer-widget {
  width: 100%;
  margin-bottom: 0;
}

/* Refined widget titles */
.footer-layout1 .widget_title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

/* Column 1 - About APRAPFEA */
.footer-layout1 .th-widget-about .about-text {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.footer-layout1 .th-widget-about .small {
  font-size: 0.84rem;
  line-height: 1.45;
}

.footer-layout1 .th-widget-about .btn-wrap .th-btn {
  padding: 12px 22px;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Columns 2 & 3 - Menus with Truncated Links (...) */
.footer-layout1 .widget_nav_menu .menu-all-pages-container,
.footer-layout1 .widget_nav_menu ul.menu,
.footer-layout1 .widget_nav_menu .menu,
.footer-layout1 .footer-menu-truncated {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-layout1 .widget_nav_menu ul.menu li,
.footer-layout1 .widget_nav_menu .menu li,
.footer-layout1 .footer-menu-truncated li {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 10px;
  overflow: hidden;
}

.footer-layout1 .widget_nav_menu ul.menu li:last-child,
.footer-layout1 .widget_nav_menu .menu li:last-child,
.footer-layout1 .footer-menu-truncated li:last-child {
  margin-bottom: 0;
}

.footer-layout1 .widget_nav_menu ul.menu li a,
.footer-layout1 .widget_nav_menu .menu li a,
.footer-layout1 .footer-menu-truncated li a {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
  transition: all 0.25s ease;
  position: relative;
  padding-left: 20px;
}

.footer-layout1 .widget_nav_menu ul.menu li a::before,
.footer-layout1 .widget_nav_menu .menu li a::before,
.footer-layout1 .footer-menu-truncated li a::before {
  content: "\f061";
  font-family: var(--icon-font, "Font Awesome 6 Pro", "Font Awesome 6 Free", "FontAwesome");
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: var(--th-theme-color2, #C99738);
  transition: transform 0.25s ease, color 0.25s ease;
}

.footer-layout1 .widget_nav_menu ul.menu li a:hover,
.footer-layout1 .widget_nav_menu .menu li a:hover,
.footer-layout1 .footer-menu-truncated li a:hover {
  color: #FFFFFF;
  padding-left: 24px;
}

.footer-layout1 .widget_nav_menu ul.menu li a:hover::before,
.footer-layout1 .widget_nav_menu .menu li a:hover::before,
.footer-layout1 .footer-menu-truncated li a:hover::before {
  color: #FFFFFF;
  transform: translateY(-50%) translateX(2px);
}

/* Column 4 - Contact Info */
.footer-layout1 .th-widget-contact .info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-layout1 .th-widget-contact .info-box:last-child {
  margin-bottom: 0;
}

.footer-layout1 .th-widget-contact .box-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(201, 151, 56, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--th-theme-color2, #C99738);
  margin-top: 2px;
}

.footer-layout1 .th-widget-contact .box-details {
  flex: 1;
  min-width: 0;
}

.footer-layout1 .th-widget-contact .box-text {
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 3px;
  word-break: break-word;
}

.footer-layout1 .th-widget-contact .box-link {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.footer-layout1 .th-widget-contact .box-link:hover {
  color: var(--th-theme-color2, #C99738);
}

/* ==========================================================================
   APRAPFEA Blog Card Thumbnail Custom Size & Aspect Ratio
   ========================================================================== */
.blog-card .blog-img img {
  width: 100%;
  aspect-ratio: 420 / 290;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   APRAPFEA Home Carousel Gallery Custom Ratio & Lightbox
   ========================================================================== */
.insta-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}