/*
Theme Name: MagkaSama V5
Author: Sama Team
Author URI: https://www.magkasamaproject.com/
Description: Custom Theme
Version: 2.0
Text Domain: Magkasama
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Praise&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #f5f5f5;
  margin: 0;
  padding-top: 0;
  overflow-x: hidden;
}

h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.9rem;
  text-align: center;
  margin: 20px auto;
  color: #3480ca;
}

a {
  color: #3480ca;
  text-decoration: none;
}

a:hover {
  color: #d97706;
  text-decoration: none;
}

.subtitle {
  font-family: 'Roboto', sans-serif !important;
  font-size: 1.2rem !important;
  color: #000 !important;
  text-align: center !important;
  margin-top: -10px !important;
}

/* Main Content */
main#main-content {
  padding-top: 80px;
}

/* Image Loading */
img {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

img.loaded {
  opacity: 1;
}

.last-updated-date {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    color: #666;
    font-weight: bold;
    margin: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* CTA Banner */
.cta-banner {
  background-color: #e6f0fa;
  width: 100%;
  padding: 50px 20px;
  text-align: center;
  margin: 80px 0 35px 0;
  position: relative;
  z-index: 3;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
}

.cta-banner p {
  font-family: 'Praise', 'Roboto', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  word-spacing: 6px;
  color: #1e5a8c;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-text {
  flex: 1;
}

.cta-banner.fade-in-cta .cta-text {
  opacity: 1;
  transform: translateY(0);
}

.cta-icon {
  color: #d97706;
  font-size: 2.5rem;
  margin-right: 40px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-50px) rotate(-360deg);
}

.cta-underline {
  position: relative;
  display: inline;
}

.cta-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #d97706;
  transform: scaleX(0);
  transform-origin: left;
}

/* Animation classes */
.cta-banner.fade-in-cta {
  animation: fadeInCTA 1s ease-in forwards;
}

.cta-icon.roll-in {
  animation: rollInFromLeft 1s ease-in forwards;
}

.cta-underline.underline-animate::after {
  animation: underline 1s ease-in forwards 0.9s;
}

/* No-JS fallback */
.no-js .cta-banner,
.no-js .cta-text,
.no-js .cta-icon {
  opacity: 1;
  transform: none;
}

.no-js .cta-underline::after {
  animation: underline 1s ease-in forwards 0.5s;
}

.cta-banner {
  display: block;
}

/* Animation keyframes */
@keyframes fadeInCTA {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rollInFromLeft {
  from { opacity: 0; transform: translateX(-50px) rotate(-360deg); }
  to { opacity: 1; transform: translateX(0) rotate(0deg); }
}

@keyframes underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLetter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInSubtext {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shine {
  0% { left: -100%; }
  15% { left: 100%; }
  100% { left: 100%; }
}

@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

#gotop {
display: none;
position: fixed;
bottom: 130px;
right: 20px;
font-size: 34px;
color: #000000;
background-color: #f5f5f5;
border-radius: 8px;
padding: 0px 8px 0px 8px;
font-weight: bold;
z-index: 1010;
}
#gotop:hover{
color: #d97706;
opacity: 1;
cursor: pointer;
}

/* Navigation */
nav.navbar {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.logo-img.logo-main {
  width: auto;
  height: auto;
  max-width: 300px;
  max-height: none;
}

.logo-img.icon {
  display: none;
  max-height: 30px;
  max-width: 30px;
  object-fit: cover;
  border-radius: 50%;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 13px;
  margin-left: auto;
  background-color: transparent;
}

.nav-links li {
  padding: 5px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #d97706;
}

.nav-links a i.fas.fa-house,
.nav-links a i.fas.fa-envelope,
.nav-links a i.fab.fa-x-twitter {
  font-size: 1rem;
  color: white;
  transition: color 0.3s;
}

.nav-links a:hover i.fas.fa-house,
.nav-links a:hover i.fas.fa-envelope,
.nav-links a:hover i.fab.fa-x-twitter {
  color: #5a9de0;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Hero Section */
section.hero {
  position: relative;
  width: 100%;
  min-height: 400px; 
  height: auto;
  background: url('/img/uploads/magkasama_crowd_grey_new.jpg') center top / 100% auto no-repeat;
  background-color: #000;
  color: white;
  text-align: center;
  overflow: hidden;
  z-index: 1;
  border-bottom: 2px solid #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

section.hero.compact {
  min-height: 250px;
  background-color: #000;
  border-bottom: 2px solid #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Content container – full height, text pushed down */
section.hero .container {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  align-items: flex-start;          /* align to top so padding-top works well */
  justify-content: center;
  padding: 114px 20px 40px;         /* ← key: large top padding pushes text downward */
}

/* Compact version – less top padding for shorter feel */
section.hero.compact .container {
  padding-top: 114px;                /* smaller top padding on compact – adjust 60–100px */
}

/* Heading – optional extra margin if needed */
section.hero h2 {
  font-family: 'Praise', 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 3.2rem;
  margin: 0;
  text-shadow: 4px 4px 3px #000;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* Subtext & button – unchanged, they follow the downward push */
section.hero .subtext {
  font-family: 'Roboto', sans-serif;
  font-size: 2rem;
  color: white;
  text-shadow: 2px 2px 3px #000;
  margin: 0 0 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.8s;
}

section.hero a.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #5a9de0;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 2px 2px 3px #000;
  transition: background-color 0.3s, transform 0.2s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 1.3s;
  padding: 12px 28px;
  margin: 0;
}

/* Hover & Shine – unchanged */
section.hero a.btn:hover {
  background-color: #d97706;
  transform: scale(1.05);
}

section.hero a.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    #ff6200 40%,
    #ffa500 60%,
    transparent 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  opacity: 0.8;
}

section.hero a.btn::before {
  animation: shine 8s ease-in-out infinite;
  animation-delay: 2s;
}

section.hero a.btn:hover::before {
  animation-duration: 1.2s;
  animation-iteration-count: 2;
}

/* Animations – unchanged */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
  0%   { left: -100%; }
  30%  { left: 120%; }
  100% { left: 120%; }
}

/* General Section */
.section {
  padding: 40px 20px;
  margin-bottom: 40px;
  background-color: transparent;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

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

.no-js .section {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.9rem;
  text-align: center;
  margin: 20px auto;
  color: #3480ca;
  display: block !important;
  visibility: visible !important;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 0.5s;
}

.no-js .section h2 {
  opacity: 1;
  transform: translateY(0);
}

/* H2 Alignment */
#about h2,
#mission h2,
#60signers h2{
  text-align: center;
}

/* H3 Alignment */
#about h3,
#mission h3,
#60signers h3{
  text-align: center !important;
}

.section h3 {
  font-size: 1.5rem;
  color: #3480ca;
  margin-bottom: 15px;
  margin-top: 0;
}

.section p {
  font-size: 1.1rem;
  color: #666;
  max-width: 100%;
  margin: 0 auto 20px;
}

/* Intro, About, Mission Sections */
section.intro,
section#about,
section#mission,
section#60signers {
  margin-top: 30px;
  padding: 20px 0;
  background-color: transparent;
  position: relative;
  z-index: 2;
  text-align: left;
}

section.intro {
  margin-top: 30px;
  margin-bottom: 100px;
}

section.intro h2,
section#about h2,
section#mission h2,
section#60signers h2 {
  font-size: 1.9rem;
  color: #3480ca;
  max-width: 100%;
  margin: 0 auto 20px;
  font-family: 'Roboto', sans-serif;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out;
  display: block !important;
  visibility: visible !important;
  animation-delay: 0.5s;
}

section#about p,
section#mission p,
section#60signers p {
  font-size: 1.1rem;
  color: #666;
  max-width: 100%;
  margin: 0 auto 15px;
  text-align: left;
  transition: opacity 0.5s ease-in, transform 0.5s ease-in;
}

section#about p.slide-in,
section#mission p.slide-in,
section#60signers p.slide-in {
  opacity: 0;
  transform: translateX(50px);
}

section#about p.slide-in-active,
section#mission p.slide-in-active,
section#60signers p.slide-in-active {
  opacity: 1;
  transform: translateX(0);
  animation: slideInFromRight 0.5s ease-in forwards;
}

/* No-JS fallback for slide-in paragraphs */
.no-js section#about p.slide-in,
.no-js section#mission p.slide-in,
.no-js section#60signers p.slide-in {
  opacity: 1;
  transform: none;
}

/* Intro Section Card */
section.intro {
  padding: 10px;
  background-color: transparent;
  position: relative;
  z-index: 2;
  text-align: center;
}

section.intro p {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 15px auto;
  text-align: center;
}

blockquote p {
  max-width: 90%;
  background-color: #ffffff;
  border-left: 1px solid #cdcdcd;
  border-top: 1px solid #cdcdcd;
  border-right: 1px solid #cdcdcd;
  border-bottom: 1px solid #cdcdcd;
  margin-left: 18px !important;
  margin-top: 12px !important;
  margin-bottom: 34px !important;
  margin-right: 27px !important;
  padding-top: 14px !important;
  padding-right: 18px !important;
  padding-bottom: 17px !important;
  padding-left: 20px !important;
  font-family: times;
  font-size: 20px;
  font-style: italic;
  font-weight: bold;
  color: #000000 !important;
  clear: both;
}

blockquote div {
  margin: 0 auto;
  text-indent: 25px;
  padding-top: 0px;
  padding-left: 3px;
  padding-right: 10px;
  padding-bottom: 3px;
  text-align: justify;
}

.intro-card {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  gap: 15px;
  align-items: stretch;
  overflow: hidden;
}

.intro-image {
  flex: 0 0 33.33%;
  max-width: 33.33%;
  display: flex;
  overflow: hidden;
}

.intro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2%;
  transition: transform 0.3s ease;
}

.intro-img:hover {
  transform: scale(1.08);
}

.intro-text {
  flex: 0 0 66.67%;
  max-width: 66.67%;
  padding-top: 20px;
  padding-left: 10px;
}

section.intro .intro-card .intro-text p,
section#about .intro-content .intro-text p {
  font-size: 1rem;
  color: #666;
  margin: 0 15px 15px 0;
  text-align: left !important;
}

/* Flag icon styling */
.flag-icon {
  width: 25px;
  border: 1px solid #d8d8d8;
  margin-left: 8px;
  margin-bottom: 2px;
  border-radius: 2px;
}

section.intro a.btn.intro-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  background-color: #5a9de0;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  padding: 10px 20px;
  margin-top: 10px;
  width: auto;
  max-width: 180px;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 2px 2px 3px #000000;
  align-self: flex-start;
}

section.intro a.btn.intro-btn:hover {
  background-color: #d97706;
  transform: scale(1.05);
}

section.intro a.btn.intro-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 20%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    #ff6200 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: shine 10s ease-in-out infinite;
}

section.intro a.btn.intro-btn:hover::before {
  animation: shine 1.5s ease-in-out;
}

/* Intro Content Container */
.intro-content {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

/*.intro-text {
  flex: 1 1 65%;
  max-width: 65%;
  text-align: left;
}*/

.intro-content .max-dana-image-card {
  flex: 0 0 30%;
  max-width: 30%;
  margin-top: 0;
  padding: 15px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: auto;
}

.max-dana-img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease-in-out;
}

.max-dana-img:hover {
  transform: scale(1.08);
}

/* Artwork Card Styling */
.artwork-container {
  max-width: 100%;
  overflow: visible !important;
}

.max-dana-cards .founder-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.max-dana-cards .founder-image:hover {
  transform: scale(1.05);
}

.max-dana-cards > div {
  overflow: visible !important;
}

/* ===========================
   60 Signers / Signatories Grid
   =========================== */
.signatories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* max 3 per line */
    gap: 20px;
}

.signatories-grid.two-cards {
    grid-template-columns: repeat(2, 1fr); /* 2 cards */
    justify-content: center;
}

.signatories-grid .card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* sames images */
.signatories-grid .card-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

/* centered text */
.signatories-grid .card h3,
.signatories-grid .card div {
    text-align: center;
    margin-top: 12px;
    line-height: 1.4;
}

/* Human Rights Section */
section#humanRights {
  padding: 30px 20px 40px 20px;
  background-color: transparent;
  position: relative;
  z-index: 2;
}

section#humanRights .humanRights-content {
  background: linear-gradient(to right, rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)),
              url('maxdana_60signers_artwork_back.jpg') center/cover no-repeat;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 36px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  
  border-left: 25px solid #d97706;
}

/* Quote block wrapper – centers the whole quote section */
section#humanRights .humanRights-content .quote-block {
  margin: 40px auto 50px;
  max-width: 720px;
}

/* Flex container – centers icon + text as a unit */
section#humanRights .humanRights-content .quote-flex {
  display: flex;
  align-items: flex-start;
  justify-content: center;     /* centers the entire icon+text pair */
  gap: 0;
  max-width: 95%;              /* slightly wider to give icon room */
  margin: 0 auto;
}

/* Icon wrapper – controls icon's "starting point" */
section#humanRights .humanRights-content .icon-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* icon pushed toward the right (toward text) */
  width: 170px;                /* ← main control: larger = icon moves RIGHT / closer to quote text */
                               /* Try: 120px (closer), 160px (more space), 100px (very close) */
}

/* Orange icon */
section#humanRights .humanRights-content .quote-icon {
  color: #d97706;
  font-size: 3.5rem;           /* keep your size */
  line-height: 1;
  margin-top: -8px;
  margin-right: 20px;             /* no extra space here */
}

/* Text container – takes the rest of the space */
section#humanRights .humanRights-content .quote-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

/* Quote styling (unchanged) */
section#humanRights .humanRights-content .quote {
  font-family: times, serif;
  color: #ffffff;
  font-size: 24px;
  font-style: italic;
  font-weight: bold;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

/* Attribution (unchanged) */
section#humanRights .humanRights-content .attribution {
  font-size: 1.1rem;
  color: #e0e0ff;
  margin: 0;
  margin-top: -7px;
  font-style: normal;
}

/* Small Text 1 */
section#humanRights .humanRights-content .smalltext1 {
  font-size: 1.1rem;
  color: #e0e0ff;
  font-style: normal;
  margin-top: -8px;
}

/* Small Text */
section#humanRights .humanRights-content .smalltext {
  font-size: 1.1rem;
  color: #e0e0ff;
  font-style: normal;
  margin-top: -19px;
}

/* General paragraphs */
section#humanRights .humanRights-content p {
  font-size: 1.3rem;
  color: white;
  max-width: 800px;
  margin: 0 auto 20px;
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
  line-height: 1.5;
}

/* Override centering for quote-related elements if needed */
section#humanRights .humanRights-content .quote-block,
section#humanRights .humanRights-content .quote,
section#humanRights .humanRights-content .attribution {
  max-width: 700px;           /* slightly narrower for quote focus */
}

/* Celebration line with caret icons */
section#humanRights .humanRights-content .celebration-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;                    /* space between icons and text – adjust as needed */
  margin: 0 auto 10px;
  font-size: 1.3rem;            /* matches your general p size */
  color: white;
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

section#humanRights .humanRights-content .celebration-icon {
  color: #d97706;               /* same orange as border & quote icon */
  font-size: 1.8rem;            /* slightly larger than text for emphasis – try 1.6rem to 2.2rem */
  line-height: 1;
}

section#humanRights .humanRights-content .left-icon {
  /* Optional: slight rotation or flip if you want visual interest */
  /* transform: rotate(180deg); */   /* would make left caret point left more dramatically – test if desired */
}

section#humanRights .humanRights-content .right-icon {
  /* No extra needed, but you could mirror if flipping left one */
}

/* Optional: make the strong text a bit bolder/larger if desired */
section#humanRights .humanRights-content .celebration-line strong {
  font-size: 1.35rem;           /* subtle bump for the main message */
}

@keyframes gentle-blink {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1.0; }
}

.celebration-icon {
  animation: gentle-blink 2s infinite ease-in-out;
}

section#humanRights h2 {
  font-size: 1.9rem;
  margin-bottom: 20px;
  color: #3480ca;
  font-family: 'Roboto', sans-serif;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out;
  display: block !important;
  visibility: visible !important;
  animation-delay: 0.5s;
}

section#humanRights .button-group {
  display: flex;
  justify-content: center;
  gap: 30px;   /* increase from 20px to 30px (or more if needed) */
  margin-top: 35px;
}

section#humanRights .button-group a.btn {
  display: inline-flex;        /* keeps icons and text in a row */
  align-items: center;
  justify-content: center;     /* center text + icon horizontally */
  gap: 12px;                    /* space between icon and text */
  padding: 12px 24px;          /* restore original padding */
  border-radius: 50px;         /* keep rounded buttons */
  background-color: #5a9de0;   /* button color */
  color: white;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 2px 2px 3px rgba(0,0,0,0.1);
  transition: background-color 0.3s, transform 0.2s;
}

section#humanRights .button-group a.btn:hover {
  background-color: #d97706;
  transform: scale(1.05);
}

/* Arrow icon spacing handled by gap now */
section#humanRights .button-group a.btn i {
  font-size: 1rem;
  color: white;
  margin: 0;  /* remove any previous margins */
}

/* Focus Section */
section#focus {
  margin-top: 0;
  background-color: transparent;
}

section#focus h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.9rem;
  color: #3480ca;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out;
  display: block !important;
  visibility: visible !important;
  animation-delay: 0.5s;
}

/* Restore padding for all buttons */
a.btn {
  display: inline-flex;       /* keeps text centered with optional icons */
  align-items: center;
  justify-content: center;
  gap: 6px;                   /* optional if icons exist */
  padding: 12px 24px;         /* restore internal padding */
  border-radius: 50px;        /* keep rounded corners */
  background-color: #5a9de0;  /* default button color */
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 2px 2px 3px #000000;
}

a.btn:hover {
  background-color: #d97706;
  transform: scale(1.05);
}

.responsive-video {
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%;
  margin-top: -15px;
  margin-bottom: 15px;
  height: 0;
  width: 100%;
  overflow: hidden;
}

.responsive-video iframe,
.responsive-video object,
.responsive-video embed {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: auto;
  width: 100%;
  height: 100%;
}

.focus-wrapper {
  width: 100%;
}

.focus-card {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-start;
  min-height: 300px;
  position: relative;
}

.focus-text {
  flex: 1;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.focus-text p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
  text-align: left;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
  position: absolute;
  top: 0;
  padding-top: 18px;
  align-items: flex-start;
  visibility: hidden;
  height: auto;
  display: flex;
  flex-direction: column;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  visibility: visible;
}

.carousel-slide:not(.active) {
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
}

.carousel-slide.exiting {
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
  visibility: visible;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.focus-card .carousel-controls {
  z-index: 10;
}

.carousel-prev,
.carousel-next {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #3480ca;
  cursor: pointer;
  transition: color 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
  color: #5a9de0;
}

.carousel-prev:focus,
.carousel-next:focus {
  outline: 2px solid #3480ca;
  outline-offset: 2px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  background-color: #5a9de0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  background-color: #3480ca;
}

.carousel-dot:focus {
  outline: 2px solid #3480ca;
  outline-offset: 2px;
}

.focus-image {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 100%;
  height: auto;
}

.focus-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
}

.focus-img:hover {
  transform: scale(1.08);
}

/* Voices Section */
section#voices {
  background-color: transparent;
}

section#voices h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.9rem;
  color: #3480ca;
  margin: 0 auto 20px;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out;
  display: block !important;
  visibility: visible !important;
  animation-delay: 0.5s;
}

.voices-wrapper {
  width: 100%;
}

.voices-card {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.voices-carousel {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding-bottom: 10px;
}

.voices-slides {
  display: flex;
  width: 100%;
  position: relative;
}

.voices-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
  position: absolute;
  top: 0;
  align-items: center;
  visibility: hidden;
  display: flex;
  flex-direction: row;
}

.voices-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  visibility: visible;
}

.voices-slide:not(.active) {
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
}

.voices-slide.exiting {
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
  visibility: visible;
}

.voices-text {
  flex: 1;
  padding-top: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.voices-text p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
  text-align: left;
}

.voices-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.voices-img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.voices-img:hover {
  transform: scale(1.08);
}

.voices-wrapper .carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Testimonials Section */
section#testimonials {
  background-color: transparent;
  margin-bottom: -30px;
}

section#testimonials h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.9rem;
  color: #3480ca;
  margin: 0 auto 20px;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out;
  display: block !important;
  visibility: visible !important;
  animation-delay: 0.5s;
}

.testimonials-slide.active .testimonial-content,
.testimonials-slide[aria-hidden="false"] .testimonial-content {
    font-size: 0.9rem;
    font-style: italic;
    color: #444;
    line-height: 1.6;
    margin: 15px 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.testimonials-wrapper {
  width: 100%;
  margin-top: -8px;
}

.testimonials-carousel {
  position: relative;
  padding-bottom: 0;
}

.testimonials-slides {
  display: flex;
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 0 15px;
}

.testimonials-slide {
    opacity: 0;
    transform: translateX(100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.testimonials-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonials-slide:not(.active) {
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
}

.testimonials-slide.exiting {
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
  visibility: visible;
}

.testimonials-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: nowrap;
  width: auto;
  align-items: center;
  margin: 15px auto;
}

.testimonial-item {
  flex: 1;
  min-width: 45%;
  max-width: 46%;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 15px;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  min-height: 200px;
}

.testimonial-item:hover {
  transform: translateY(-5px);
}

.testimonial-item img {
  max-width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
  margin-bottom: 15px;
}

.testimonial-item img:hover {
  transform: scale(1.08);
}

.testimonial-item.testimonial-placeholder {
  background: none;
  box-shadow: none;
}

.testimonial-item h3 {
  font-size: 1.2rem;
  color: #3480ca;
  margin-bottom: 10px;
  line-height: 1.2;
}

.testimonial-item h3 a {
  color: inherit;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s;
}

.testimonial-item h3 a:hover {
  color: #5a9de0;
}

.testimonial-item h4 {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.3;
}

.testimonial-item .infopost_sm {
  font-size: 0.85rem;
  color: #888;
  line-height: 0;
}

.testimonials-slide .testimonial-content {
    font-size: 0.9rem;
    font-style: italic;
    color: #444;
    line-height: 1.6;
    margin: 15px 0;
    display: block !important;  /* Force l'affichage même si le slide est masqué */
}

.testimonials-carousel .carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* X Section */
section#x-section {
  background-color: transparent;
}

section#x-section h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.9rem;
  color: #3480ca;
  margin: 0 auto 20px;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  position: relative;
  z-index: 2;
  display: block !important;
  visibility: visible !important;
  animation-delay: 0.5s;
}

.no-js section#x-section h2 {
  opacity: 1;
  transform: translateY(0);
}

.twitter-widget-container {
  position: relative;
  min-height: 500px;
  text-align: center;
  margin-top: 0;
}

.twitter-timeline {
  display: block;
  margin: 0 auto;
  max-width: none;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.twitter-fallback {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.twitter-fallback p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

.twitter-fallback a {
  color: #3480ca;
  text-decoration: none;
}

.twitter-fallback a:hover {
  color: #5a9de0;
}

.twitter-widget-container::before {
  content: "Loading posts from X...";
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #333;
  font-size: 1.2rem;
  z-index: 1;
}

.twitter-widget-container.twitter-published-view .twitter-timeline {
  display: none;
}

.twitter-widget-container.widget-failed::before {
  display: none;
}

.twitter-published a {
  color: #333;
  transition: color 0.3s;
}

.twitter-published a:hover {
  color: #5a9de0;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Card Component */
.card {
  background: white;
  padding: 20px 20px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  min-height: 200px;
}

.grid-2 .card {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  margin-bottom: 15px;
  max-height: 300px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease-in-out;
}

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

.grid-2 .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.grid-2 .card-img:hover {
  transform: scale(1.08);
}

.grid-2 .card h3 {
  margin-top: 10px;
}

.card-icon {
  font-size: 1.5rem;
  color: #333;
  margin: 0 auto 10px;
  display: block;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #333;
}

.card p {
  font-size: 1.05rem;
  color: #666;
  text-align: left;
}

/* Max Dana Text and Image Layout */
.max-dana-text {
  width: 100%;
  padding-right: 0;
}

/* Max Dana Cards Container */
.max-dana-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  justify-content: center;
}

.max-dana-cards .card {
  flex: 1 1 calc(50% - 10px);
  min-width: 250px;
  max-width: none;
  margin: 0;
  text-align: center;
  padding: 20px 20px 5px 20px;
  min-height: auto;
}

.max-dana-cards .card-img {
  width: 100%;
  height: 100%;
  display: block;                    /* ← gardé comme tu voulais */
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.35s ease;  /* ← ta préférence */
}

.max-dana-cards .card-img:hover {
  transform: scale(1.08);            /* ← uniformisé avec le reste du site */
}

.max-dana-cards .max-dana-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Clearfix for floating elements */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* Clearfix to handle floating elements in container */
.container::after {
  content: '';
  display: table;
  clear: both;
}

/* Card Group Containers */
.what-we-do-cards,
.how-we-work-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.what-we-do-cards .card,
.how-we-work-cards .card {
  flex: 1 1 calc(33.333% - 15px);
  min-width: 250px;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.what-we-do-cards .card.full-width,
.how-we-work-cards .card.full-width {
  flex: 1 1 100%;
  min-width: 100%;
}

/* Icon Styling for Icons in Cards */
.card i {
  padding-right: 10px;
  color: #333;
}

.card i:hover {
  color: #5a9de0;
}

.what-we-do-cards .card i,
.how-we-work-cards .card i {
  padding-right: 10px;
  color: #d97706;
  transition: color 0.3s ease;
}

.what-we-do-cards .card i:hover,
.how-we-work-cards .card i:hover {
  color: #5a9de0;
}

.social-links a:hover {
  color: #ddd;
}

.social-links .icon {
  height: 1rem;
}

.attribution {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* Single Post Section */
section#single-post {
  background-color: transparent;
}

section#single-post h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  color: #3480ca;
  margin: 0 auto 20px;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  display: block !important;
  visibility: visible !important;
  animation-delay: 0.5s;
}

.no-js section#single-post h2 {
  opacity: 1;
  transform: translateY(0);
}

.post-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.post-card img {
  border-radius: 5px;
  margin-bottom: 10px;
  transition: transform 0.3s ease-in-out;
}

.post-card img:hover {
  transform: scale(1.2);
}

.post-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 15px;
}

.post-meta p {
  margin: 0;
}

.post-meta a {
  color: #333;
  text-decoration: none;
}

.post-meta a:hover {
  color: #5a9de0;
}

.post-content {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.post-content p {
  margin-bottom: 15px;
}

.post-tags {
  font-size: 14px;
  color: #999;
}

.post-tags a {
  color: #333;
  text-decoration: none;
}

.post-tags a:hover {
  color: #5a9de0;
}

/* Comments Section */
.comments-area,
.comment {
  background-color: white;
  padding: 25px;
  margin-top: 20px;
  color: #333;
}

.comments-area h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
}

.comment-respond h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
}

.comment-form p {
  margin-bottom: 15px;
}

.comment-form label {
  display: block;
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.comment-form-input,
.comment-form input {
  width: auto;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  margin-bottom: 10px;
}

.comment-form input[type="submit"] {
  background-color: #333;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.comment-form input[type="submit"]:hover {
  background-color: #5a9de0;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.comment-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

.comment-author {
  font-weight: bold;
  color: #333;
}

.comment-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.reply {
  margin-top: 10px;
}

.reply a {
  color: #3480ca;
  text-decoration: none;
  font-size: 14px;
}

.reply a:hover {
  color: #5a9de0;
}

/* Contact Form */
.contact-form {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 20px auto;
}

.contact-form h2 {
  font-size: 24px;
  color: #3480ca;
  margin-bottom: 20px;
  text-align: center;
}

.contact-form label {
  display: block;
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom: 15px;
}

.contact-form input[type="submit"] {
  background-color: #333;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form input[type="submit"]:hover {
  background-color: #5a9de0;
}

/* === STYLE CONTACT FORM 7 === */
:root {
    --cf7-font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --cf7-primary-color: #2563eb;
    --cf7-primary-hover: #1d4ed8;
    --cf7-text-color: #374151;
    --cf7-label-color: #111827;
    --cf7-border-color: #d1d5db;
    --cf7-bg-color: #ffffff;
    --cf7-error-color: #ef4444;
}

.wpcf7-form {
    font-family: var(--cf7-font-family);
    color: var(--cf7-text-color);
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.cf7-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cf7-col {
    flex: 1;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cf7-label-color);
    text-align: left;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--cf7-border-color);
    border-radius: 8px;
    background-color: var(--cf7-bg-color);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: var(--cf7-primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

.wpcf7-form textarea[name="textarea-bio"] {
    min-height: 100px;
}

.wpcf7-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0L6 4.59 10.59 0 12 1.41l-6 6-6-6L1.41 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.infopost_sm {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 16px;
}

.paddlesstop {
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
}

.paddless {
    margin: 20px 0;
}

.cf7-message-spacer {
    height: 30px;
}

.wpcf7-form input[type="submit"] {
    background-color: #5a9de0;
    color: white;
    font-weight: bold;
    font-size: 15px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

div.wpcf7-response-output {
    margin: 20px 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
}

.wpcf7-mail-sent-ok {
    border: 2px solid #10b981;
    background-color: #ecfdf5;
    color: #065f46;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    border: 2px solid var(--cf7-error-color);
    background-color: #fee2e2;
    color: #991b1b;
}

.grecaptcha-badge { 
    visibility: hidden !important; 
}
/* === Modern Footer === */
.footer {
  background-color: #2b2b2b;
  color: #ffffff;
  padding: 60px 0 20px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 0;
}

/* === Subtle column dividers (desktop only) === */
.footer-grid > div {
  position: relative;
}

.footer-grid > div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -20px;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
}

/* === Headings === */
.footer h3,
.footer h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 700;
}

/* === Brand block === */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-logo {
  max-width: 280px;
  height: auto;
}

/* Brand text */
.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

/* === Lists === */
.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 8px;
}

/* === Links === */
.footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #5a9de0;
}

/* === Footer link icons === */
.footer-nav a::before,
.footer-action a::before,
.footer-social a::before {
  content: "›";
  margin-right: 8px;
  color: #d97706;
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-nav a:hover::before,
.footer-action a:hover::before,
.footer-social a:hover::before {
  transform: translateX(2px);
}

/* === Social === */
.footer-social i {
  margin-right: 8px;
  font-size: 1.1rem;
}

/* === Bottom bar === */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.footer-bottom a {
  color: rgba(255,255,255,0.8);
}

.footer-bottom a:hover {
  color: #5a9de0;
}

/* =====================================================
   PATCH 60 SIGNERS – RESPONSIVE IMAGES & GRID
   (added to existing rules)
   ===================================================== */

/* Uniformisation cards */
.signatories-grid .card {
  display: flex;
  flex-direction: column;
}

.signatories-grid .card-img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block;
}

/* Wrapper image stable */
.signatories-grid .card > .card-img,
.signatories-grid .card-image-wrapper {
  /*aspect-ratio: 4 / 3;*/
  overflow: hidden;
}

/* Grid responsive */
.signatories-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 20px;
}

/* ===== Grid cards (default) ===== */
.max-dana-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.max-dana-cards .card {
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  overflow: hidden;
  position: relative;
}

.max-dana-cards .card:hover .card-img {
  transform: scale(1.08);
}

/* ===== Single large image (unchanged) ===== */
.max-dana-single .card {
  flex: 0 0 100%;
  max-width: 100%;
  overflow: hidden;
}

.max-dana-single .card-img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.max-dana-single .card:hover .card-img {
  transform: scale(1.06);
}

/* ===== GO TO TOP ====== */
    .back-to-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background-color: #3480ca;
      color: white;
      border: none;
      font-size: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      z-index: 999;
    }

    .back-to-top.show {
      opacity: 1;
      visibility: visible;
    }

    .back-to-top:hover {
      background-color: #d97706;
      transform: translateY(-3px);
      box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    }

    .back-to-top:active {
      transform: translateY(-1px);
    }
#mission a.btn {
  padding: 12px 22px;
}
.video-responsive {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.video-responsive iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
}
/* Overlay */
#cookie-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9998;
}

/* Banner container */
#cookie-banner {
  position: fixed;
  bottom: 16px;
  right: 16px;
  max-width: 320px;
  width: calc(100% - 32px);
  padding: 14px 16px;
  background: #111;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 8px;
  z-index: 9999;
  display: none;

  /* animation */
  animation: cookie-slide-in 0.90s ease-out;
}


/* Links inside banner */
#cookie-banner a {
  color: #9ad;
  text-decoration: underline;
}

/* Close button */
#cookie-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
}

/* Button container */
.cookie-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;  /* wrap buttons on small screens */
  justify-content: flex-start;
  gap: 6px;
}

/* Buttons general */
#cookie-banner .cookie-actions button {
  flex: 1 1 auto;   /* buttons shrink/grow */
  min-width: 70px;
  height: 32px;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
}

/* Accept button - primary */
#cookie-accept {
  background-color: #4CAF50; 
  color: #fff;
  border: none;
  transition: background 0.2s ease;
}

#cookie-accept:hover {
  background-color: #45a049;
}

/* Reject button - secondary */
#cookie-reject {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  transition: background 0.2s ease, color 0.2s ease;
}

#cookie-reject:hover {
  background-color: #e0e0e0;
  color: #000;
}

@keyframes cookie-slide-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Mission Page Expand
.mission-intro {
  margin-bottom: 2rem;
}

.mission-block {
  margin-bottom: 1.5rem;
}

.mission-block summary {
  cursor: pointer;
  font-weight: 600;
}

.mission-text {
  margin-top: 1rem;
}

.mission-text p {
  margin-bottom: 1rem;
}
 */
.side-layout {
  display: flex;
  align-items: flex-start;   /* ou center si tu veux verticalement centré */
  gap: 40px;                 /* espace entre image et texte */
  flex-wrap: wrap;           /* sécurité si ça dépasse */
}

.side-image {
  flex: 0 0 auto;
  max-width: 300px;          /* ← AJOUTE ÇA : limite la largeur max de l'image (adapte à ton design) */
  /* ou max-width: 40%; si tu préfères relatif */
}

.side-image .card,
.side-image .grid.grid-single {
  width: 100%;               /* force le conteneur à suivre la max-width */
}

.side-image img {
  display: block;
  width: 100%;               /* ← change de max-width à width: 100% pour qu'elle remplisse son conteneur */
  height: auto;
  object-fit: contain;       /* ← très important pour les logos → évite de déformer */
  /* option : object-fit: cover; si tu veux cropper mais garder format */
}

/* Ajoute un peu d'air si besoin */
.side-text {
  flex: 1;
  min-width: 0;
  padding-top: 10px;         /* optionnel : aligne un peu mieux le texte verticalement */
}

/* === Effet zoom uniforme sur toutes les images au survol === */
.card-img:hover,
.intro-img:hover,
.focus-img:hover,
.voices-img:hover,
.testimonial-item img:hover,
.post-card img:hover,
.max-dana-img:hover,
.max-dana-cards .founder-image:hover,
.grid-2 .card-img:hover,
.max-dana-single .card-img:hover,
.signatories-grid .card-img:hover {
  transform: scale(1.08);
}

/* ========== MEDIA QUERIES ========== */

@media (max-width: 600px) {
  /* Logo à la place du h2 - commun aux deux */
  section.hero h2,
  section.hero.compact h2 {
    font-size: 0;
    line-height: 0;
    margin: 0 auto;
    padding: 0;
    text-indent: -9999px;
    overflow: hidden;
    width: 350px;
    height: 26px;
    background: url('https://www.magkasamaproject.com/img/uploads/magkasamaproject_logo_sm.png') center/contain no-repeat;
  }

  /* Ajustement padding-top pour les DEUX versions */
  section.hero .container {
    padding-top: 135px !important;     /* ← valeur que tu veux pour le normal */
  }

  /* Si tu veux une valeur différente pour compact */
  section.hero.compact .container {
    padding-top: 135px !important;    /* ← garde ta valeur plus haute si besoin */
  }
}

@media (max-width: 600px) {
    .signatories-grid {
        gap: 15px;
    }

    .signatories-grid .card-img {
        max-height: 180px;
    }
}

@media (max-width: 600px) {
  .contact-form {
    padding: 15px;
  }
  .contact-form h2 {
    font-size: 20px;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }
  .comments-area h3,
  .comment-respond h3 {
    font-size: 20px;
  }
  .comment-form-input,
  .comment-form input {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .intro-card {
    flex-direction: row;
    flex-wrap: nowrap;
    text-align: left;
  }
  .intro-image {
    flex: 0 0 33.33%;
    width: 33.33%;
    min-height: 120px;
  }
  .intro-text {
    flex: 0 0 66.67%;
    width: 66.67%;
    padding: 0 8px 0 0;
    text-align: left;
  }
  section.intro .intro-card .intro-text p,
  section#about .intro-content .intro-text p {
    /*font-size: 0.9rem;*/
    text-align: left !important;
  }
}

@media (max-width: 600px) {
  main#main-content {
    padding-top: 60px;
  }
  section.hero {
    padding: 0px 10px;
    /* min-height: 400px !important;     good mobile minimum – adjust 350–500px */
    /* height: 50vh !important;          your preferred mobile height – change here */
  }
  section.hero.compact {
    background-position: center top;
	min-height: auto;
    /* height: 40vh !important;          shorter on mobile */
    /* min-height: 320px !important; */
  }
  section.hero.compact h2 {
    font-size: 1.8rem;
  }
  section.hero h2 {
    font-size: 1.8rem;
  }
  section.hero .subtext {
    font-size: 1rem;
  }
  section.hero .btn {
display: none !important;
  }
  section.intro {
    margin-top: auto;
  }
  section#about,
  section#mission {
    margin-top: auto;
  }
  section.intro h2,
  section#about h2,
  section#mission h2,
  section#humanRights h2 {
    font-size: 1.9rem;
  }
  section#humanRights .humanRights-content {
    padding: 40px 15px;
  }
  .cta-banner p {
    font-size: 1rem;
    padding: 0 10px;
  }
  .cta-icon i {
    font-size: 1rem;
  }
  .cta-underline::after {
    height: 2px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-logo {
    max-width: 180px;
  }
}

/* Réduction hauteur hero compact < 800px (h2 reste visible) */
@media (max-width: 799px) {
  section.hero.compact {
    min-height: 160px !important;      /* ← valeur très basse pour forcer */
    height: auto !important;
  }

  section.hero.compact .container {
    padding-top: 50px !important;      /* ← très bas pour tester */
    padding-bottom: 20px !important;
    min-height: auto !important;
  }

  /* Force le h2 à ne pas prendre trop de place */
  section.hero.compact h2 {
    font-size: 2rem !important;        /* ← plus petit */
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
  }

  /* Option : supprime tout espace inutile autour */
  section.hero.compact {
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* ===== Max Dana Cards - Mobile/tablet (≤ 768px) ===== */
@media (max-width: 768px) {
  .max-dana-cards {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: stretch;
    width: 100%;
    max-width: 100% !important;
    margin: 0;
    padding: 0 8px;
    box-sizing: border-box;
  }

  .max-dana-cards .card {
    flex: 1 1 100%;               /* grow + fill nicely */
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 15px;
    box-sizing: border-box;
  }

  .max-dana-cards .card-image-wrapper,
  .max-dana-cards .max-dana-image-wrapper,
  .max-dana-cards .card-img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
@media (max-width: 768px) {
  .section {
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out; /* plus lent et doux */
  }
}

  /* Optional: compact mode on very small screens */
  @media (max-width: 400px) {
    .max-dana-cards .card {
      padding: 12px;  /* or 10px if needed */
    }
  }
}

@media (max-width: 768px) {
  .signatories-grid .card-img {
    height: 100% !important;
  }
}

@media (max-width: 768px) {
    .cf7-row {
        flex-direction: column;
        gap: 0;
    }
    
    .cf7-col {
        margin-bottom: 20px;
    }
    
    .wpcf7-form {
        padding: 15px;
    }
}

/* Mobile reste pareil */
@media (max-width: 980px) {
  .side-layout {
    flex-direction: column;
    gap: 20px;
  }
  .side-image {
    max-width: 100%;         /* ← reset pour mobile */
  }
}

/* Responsive Design */
@media (min-width: 1000px) {
  .logo-img {
    max-width: 350px;
  }
}

@media (max-width: 1060px) {
section.hero.compact h2 {
  font-size: 2.8rem;
  white-space: normal;
  padding-top: 0px;
}
  .logo-img.logo-main {
    display: none;
  }
  .logo-img.icon {
    display: block;
  }
}

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

  .footer-grid > div::after {
    display: none;
  }

  .footer-logo {
    max-width: 220px;
  }
}

@media (max-width: 900px) {
  section#humanRights .button-group {
    flex-direction: column;
    gap: 15px;
  }

  section#humanRights .button-group a.btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    margin: 0 auto;
  }
}

@media (max-width: 1180px) {

.card h3 {
  margin-top: 0px !important;
}
}

/* === Intro : centered text < 1080px === */
/* === Intro : text + button aligned < 1080px === */
@media (max-width: 1080px) {

.card h3 {
  font-size: 1rem;
  color: #333;
}
  .intro-card {
    flex-direction: column;
    align-items: center;
  }

  .intro-image,
  .intro-text {
    width: 100%;
    max-width: 100%;
  }

  .intro-text {
    padding-top: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .intro-text p {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .intro-text .intro-btn {
    width: 100%;
    max-width: 720px;
    margin: 24px auto 0 auto;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 799px) {
  .nav-links a {
    font-size: 0.85rem;
  }
  .nav-links {
    gap: 9px;
  }
  .cta-banner p {
    font-size: 1.3rem;
  }
  .cta-icon i {
    font-size: 1.3rem;
  }
  .cta-underline::after {
    height: 2px;
  }
  .testimonial-item h3 {
    font-size: 0.98rem;
  }
  .testimonial-item h4 {
    font-size: 0.85rem;
  }
  .testimonial-item .infopost_sm {
    font-size: 0.96rem;
  }
  .testimonials-group {
    display: block;
    align-items: center;
    margin: 10px auto;
    width: auto;
  }
  .testimonial-item {
    max-width: 90%;
    width: 300px;
    padding: 15px;
  }
  .testimonials-slides {
    padding: 0 10px;
  }
  .focus-card {
    flex-direction: column;
  }
  .voices-slide {
    flex-direction: column;
  }
  .focus-text {
    padding-right: 0;
    margin-bottom: 20px;
  }
  .voices-img {
    flex: none;
    width: 100%;
    height: auto;
    max-height: 300px;
  }
  .focus-img {
    height: auto;
  }
  .intro-image {
    flex: none;
    width: auto;
    max-width: 300px;
    margin: auto;
    padding: 0;
    height: auto;
  }
  .intro-img {
    height: auto;
  }
  .intro-text {
    flex: none;
    width: auto;
    padding-bottom: 0;
  }
  section.intro a.btn.intro-btn {
    align-self: center;
    margin: 10px auto;
  }
  .grid,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .grid-2 .card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}

/* MOBILE-SPECIFIC TWEAKS */
@media (max-width: 480px) {
  #cookie-banner {
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 0;
    width: 100%;
    max-width: none;
    padding: 12px 14px;
  }
.hidemobile {
display: none;
}
  .cookie-actions {
    flex-direction: column;
    gap: 6px;
  }

  #cookie-banner .cookie-actions button {
    width: 100%;
  }

  #cookie-close {
    top: 4px;
    right: 8px;
  }
}

@media (max-width: 670px) {
  nav.navbar .container {
    flex-wrap: wrap;
    justify-content: space-between;
  }
.nav-links {
    margin-left: 0;
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    text-align: center;
    gap: 12px;
    margin-top: 12px;
    background-color: transparent;
  }
.nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 0;
    padding: 0;
  }
  .nav-links li:first-child {
    padding-top: 10px;
  }
  .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding-bottom: 5px;
  }
  .nav-links a:hover {
    color: #5a9de0;
  }
  .nav-links a i.fas.fa-house,
  .nav-links a i.fas.fa-envelope,
  .nav-links a i.fab.fa-x-twitter {
    color: white;
    font-size: 1.2rem;
    padding-bottom: 5px;
    transition: color 0.3s;
  }
  .nav-links a:hover i.fas.fa-house,
  .nav-links a:hover i.fas.fa-envelope,
  .nav-links a:hover i.fab.fa-x-twitter {
    color: #5a9de0;
  }
.menu-toggle {
    display: block;
  }
}

@media (max-width: 400px) {
  .logo-img img {
    max-height: 25px;
  }
}

@media screen and (max-width: 992px) and (min-width: 100px) {
#gotop {
display: none !important;
}
}

@media (max-width: 900px) {
    .signatories-grid,
    .signatories-grid.two-cards {
        grid-template-columns: 1fr; /* 1 card per line */
    }
}

/* END SIGNATORIES */

/* Override mobile stacking to maintain left-right layout for intro-card */
@media (max-width: 1080px) {
  .intro-content {
    flex-direction: column;
    flex-wrap: wrap;
    text-align: left;
  }
  .intro-text {
    max-width: 100%;
    text-align: left;
  }
  .intro-content .max-dana-image-card {
    max-width: 100%;
    margin-top: 20px;
  }
}

@media (max-width: 800px) {
.hidetablet {
display: none;
}
  section.hero .subtext {
    display: none;
  }
  section.hero {
    min-height: auto;
  }
  section.hero h2 {
    margin-top: -30px !important;
    font-size: 2rem;
  }
  section.hero.compact h2 {
    font-size: 2rem;
  }
  section.hero .container {
    padding: 131px 20px 30px !important;
  }
  section.hero.compact .container {
    padding-top: 140px !important;
    padding: 105px 20px 30px !important;
  }

  /* Force full-width quand en colonne */
  .intro-card {
    flex-direction: column !important;   /* ← force l’empilage (au cas où) */
    flex-wrap: wrap !important;
  }

  .intro-image,
  .intro-text {
    flex: 0 0 100% !important;           /* ← 100% largeur */
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;               /* ← enlève les paddings latéraux */
  }

  .intro-image {
    min-height: auto !important;         /* ← pas besoin de min-height fixe */
  }

  .intro-text {
    padding: 20px 0 0 0 !important;      /* ← un peu d’espace au-dessus du texte */
    text-align: left !important;
  }

  section.intro .intro-card .intro-text p,
  section#about .intro-content .intro-text p {
    text-align: left !important;
  }
}

/* Carousel testimonials : empilés à 100% + ESPACE VERTICAL FORCÉ */
@media (max-width: 800px) {
  .testimonials-group {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;             /* ← autorise l'espace */
    gap: 16px !important;                   /* ← ESPACE VERTICAL : monte à 50px pour être visible, ajuste après */
    align-items: stretch !important;        /* ← pleine largeur */
    justify-content: flex-start !important;
    margin: 20px 0 !important;              /* ← espace autour du groupe */
  }

  .testimonial-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;                   /* ← supprime marges qui collent */
    padding: 20px !important;
  }

  /* Supprime tout conflit de padding/margin */
  .testimonials-wrapper,
  .testimonials-carousel,
  .testimonials-slides {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Contrôles du carousel */
  .testimonials-carousel .carousel-controls {
    margin-top: 6px !important;
  }
}
@media (max-width: 980px) {
  /* Target only the problematic first block on this page */
  section#mission .side-layout.image-left:first-of-type .side-image.full-bleed-mobile {
    width: 100vw !important;                     /* full viewport width */
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;   /* center + bleed out of container */
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 !important;
    position: relative !important;               /* helps with positioning */
  }

  /* Restore/force card appearance inside the full-bleed container */
  section#mission .side-layout.image-left:first-of-type .side-image.full-bleed-mobile .card {
    width: 100% !important;
    max-width: 1200px !important;                /* cap at desktop container width to avoid ultra-wide on tablets */
    margin: 0 auto !important;                   /* recenter card content */
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  /* Image fills the card nicely */
  section#mission .side-layout.image-left:first-of-type .side-image.full-bleed-mobile .card-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 0 15px 0 !important;
    border-radius: 8px !important;
    object-fit: contain !important;
  }
}
.card-img:hover,
.intro-img:hover,
.focus-img:hover,
.voices-img:hover,
.testimonial-item img:hover,
.post-card img:hover,
.max-dana-img:hover,
.max-dana-cards .founder-image:hover,
.grid-2 .card-img:hover,
.max-dana-single .card-img:hover,
.signatories-grid .card-img:hover {
  transform: scale(1.04);   /* ← 4% d'agrandissement au lieu de 8% */
  /* ou scale(1.03); pour encore plus discret */
  /* ou scale(1.05); pour un effet intermédiaire */
}