/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto+Condensed:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ibarra+Real+Nova:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;700&family=League+Spartan:wght@400;700&display=swap');

/* Theme colors based on the dark design */
:root {
  --primary-bg: #000000;
  --accent-green: #454b1b;
  --highlight-green: #5a612c;
  --text-white: #ffffff;
  --text-light-gray: #f5f5f5;
  --text-gray: #666666;
  --nav-hover: rgba(255, 255, 255, 0.1);
}

/* Base responsive container system */
.container-fluid {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(15px, 4vw, 55px);
}

body {
  font-family: "made-mirage-thin", Helvetica, Arial, sans-serif;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.5;
  color: var(--text-white);
  background-color: var(--primary-bg);
  overflow-x: hidden;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: left;
}

/* Global text alignment - espacement uniforme */
p, li {
  text-align: justify;
  hyphens: auto;
}

/* Classe utilitaire pour la justification sélective */
.text-justified {
  text-align: justify;
  text-justify: auto;
  hyphens: auto;
}

/* Classes d'alignement utilitaires */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.program-card p {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.6;
  text-align: center;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
  color: var(--text-light-gray);
  flex: 1;
  overflow: auto;
  margin-bottom: 0;
  padding-bottom: 1rem;
}

.right-column p {
  color: var(--text-white);
  font-family: 'Inter';
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 400;
  text-align: justify;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-light-gray);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  text-align: justify;
}

.news-content h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.2rem);
  line-height: 1.4;
  margin-bottom: 1.2rem;
  flex-grow: 1;
  color: #000000;
  font-weight: 600;
  text-align: left;
}

.programme-item p {
  color: var(--text-white);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 85%;
  text-align: justify;
}

.slide-content p {
  font-family: 'Poppins', sans-serif;
  color: var(--text-light-gray);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.6;
  font-weight: 400;
  text-shadow: none;
  max-width: 100%;
  margin: 0;
  text-align: justify;
}

.form-subtitle {
  font-family: 'Poppins', sans-serif;
  color: var(--text-gray);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
  text-align: left;
}

.about-text-abt p {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1rem);
  line-height: 1.8;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  text-align: justify;
}

.how-we-do-list-abt li {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1rem);
  line-height: 1.8;
  color: var(--text-white);
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  text-align: justify;
}

.intro-right-column p {
  font-size: clamp(0.95rem, 1.5vw, 1rem);
  line-height: 1.8;
  text-align: justify;
}

.contribution-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: clamp(0.95rem, 1.5vw, 1rem);
  text-align: justify;
}

.submission-box p {
  margin-bottom: 0;
  flex-grow: 1;
  line-height: 1.6;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  min-width: 200px;
  text-align: justify;
}

.take-action-hero p {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 100%;
  line-height: 1.6;
  text-align: justify;
  color: var(--text-white);
}

.action-content p,
.action-content li {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1rem);
  color: var(--text-light-gray);
  line-height: 1.6;
  text-align: justify;
}

.styled-list li {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1rem);
  color: var(--text-light-gray);
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
  text-align: justify;
}

.filter-header p {
  color: #000000;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  text-align: justify;
}

.card-responsive .card-text {
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  line-height: 1.6;
  text-align: justify;
}

/* Page container text alignment */
.page-container-px .main-content-px p {
  color: #212529;
  text-align: justify;
}

.page-container-px .styled-list li {
  color: #212529;
  text-align: justify;
}

/* Justification sélective pour les longs contenus éditoriaux */
.article-content p,
.long-content p {
  text-align: justify;
  text-justify: auto;
  hyphens: auto;
}

/* Protection mobile - Désactive complètement la justification */
@media (max-width: 768px) {
  .program-card p {
    text-align: center !important;
  }
  
  .slide-content {
    text-align: center !important;
  }
  
  .slide-content p {
    text-align: center !important;
  }
}

.m-90 {
  margin: 0 0 1rem 0;
}

/* Video Hero Section - Fully Responsive */
.video-hero-container {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: #aeaeae;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.8;
  /*filter: brightness(0.7) contrast(1.1);*/
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(69,75,27,0.2) 100%);
  z-index: 2;
}

/* Header - Improved Responsiveness */
header {
  position: static;
  z-index: auto;
  background-color: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  padding: 0;
  margin: 0;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  width: clamp(120px, 15vw, 150px);
}

.logo img {
  width: 100%;
  height: auto;
}

/* Navigation - Enhanced Mobile Support */
nav {
  justify-content: center;
  padding: 0;
}

.navbar-nav {
  flex-direction: row;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
}

.nav-link {
  text-decoration: none;
  color: var(--text-white);
  font-weight: 400;
  position: relative;
  padding: 0.5rem clamp(0.5rem, 1.5vw, 0.8rem) !important;
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.nav-link:hover {
  color: var(--highlight-green);
  transform: translateY(-2px);
}

/* Dropdown Menus */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-icon {
  font-size: 12px;
  transition: all 0.3s ease;
  color: var(--highlight-green);
  transform: rotate(0deg);
}

.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
  color: var(--highlight-green);
}

.dropdown-menu {
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(69, 75, 27, 0.5);
  padding: 0.8rem 0;
  min-width: 250px;
  background-color: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.dropdown:hover .dropdown-menu {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dropdown-item {
  padding: 0.8rem 1.5rem;
  color: var(--text-white);
  font-weight: 400;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown-item:hover {
  background-color: rgba(69, 75, 27, 0.2);
  color: var(--text-white);
  border-left-color: var(--accent-green);
  padding-left: 2rem;
}

/* Take Action Button */
.take-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.5s ease;
  z-index: 1;
}

.take-action-btn:hover::before {
  left: 100%;
}

.take-action-btn {
  padding: clamp(0.4rem, 1vw, 0.5rem) clamp(1rem, 3vw, 2rem);
  background-color: transparent;
  color: var(--text-white);
  border: 2px solid var(--accent-green);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: normal;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow: none;
  transform: none;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
}

.take-action-btn:hover {
  background-color: var(--accent-green);
  color: var(--text-white);
  border-color: var(--accent-green);
  transform: translateY(-2px);
  text-decoration: none;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0;
  font-size: 1.5rem;
  color: var(--text-white);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section - Fully Responsive */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--text-white);
  padding: clamp(3rem, 8vw, 6rem) 0;
  margin: 0;
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 11;
  border-left: 4px solid white;
  padding-left: clamp(15px, 3vw, 25px);
  padding-bottom: clamp(30px, 8vw, 60px);
  margin-left: clamp(10px, 2vw, 15px);
  width: clamp(85%, 90vw, 90%);
  max-width: none;
  animation: slideInFromLeft 1s ease-out;
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero h1 {
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 1.2;
  color: white;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero span, .highlight {
  color: var(--accent-green);
  font-weight: 700;
  position: relative;
}

.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: clamp(10px, 2vw, 15px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  animation: bounce 2s infinite;
  font-family: 'Poppins', sans-serif;
  color: white;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  transition: all 0.3s ease;
}

.scroll-text {
  color: #ffffff;
}

.scroll-text a {
  text-decoration-line: none;
  text-decoration: none;
  color: #ffffff;
}

.scroll-indicator:hover {
  color: var(--accent-green);
  transform: scale(1.05);
}

.scroll-indicator i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Section Headers */
.section-header {
  padding: 10px 0;
  margin: 0 0 2rem 0;
}

.section-header h2 {
  font-family: 'Roboto Condensed', sans-serif;
  color: #000000;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  margin: 0;
}

/* What We Do Section - Enhanced Responsiveness */
.what-we-do {
  position: relative;
  padding: 0;
  background-color: var(--primary-bg);
  overflow: hidden;
}

.what-we-do-content {
  position: relative;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.7);
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
}

#background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

/* Program Cards - Improved Grid System */
.program-cards {
  margin: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.program-card {
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.5rem) clamp(3rem, 5vw, 4rem) clamp(1rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
  background-color: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(69, 75, 27, 0.3);
  min-height: clamp(400px, 50vw, 450px);
  height: auto;
}

.program-card h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-white);
}

.program-card .accent-text {
  color: var(--accent-green);
  font-weight: 600;
}

.learn-more-link {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2rem);
  left: 0;
  right: 0;
  text-align: center;
  width: 100%;
  padding: 0 clamp(1rem, 2.5vw, 1.5rem);
}

.learn-more-link a {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: clamp(8px, 1.5vw, 10px) clamp(15px, 3vw, 20px);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  text-decoration: none;
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  transition: all 0.3s ease;
  background-color: transparent;
  text-align: center;
  box-sizing: border-box;
}

.learn-more-link a:hover {
  background-color: var(--accent-green);
  color: var(--text-white);
  border-color: var(--accent-green);
}

/* About Us Section - Enhanced Layout */
.about-us-section {
  background-color: var(--primary-bg);
  padding: clamp(3rem, 6vw, 4rem) 0;
  position: relative;
}

.section-title {
  padding: 0 0 2rem clamp(30px, 8vw, 55px);
}

.section-title h2 {
  color: var(--accent-green);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  text-transform: capitalize;
  letter-spacing: 2px;
}

.about-us-content {
  position: relative;
  min-height: auto;
}

.left-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-right: clamp(1rem, 3vw, 2rem);
  position: relative;
  text-align: center;
}

.left-column h3 {
  color: var(--text-white);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  margin: 0;
}

.right-column {
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: 1rem;
  border-left: 1px solid var(--accent-green);
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.content-text {
  flex-grow: 1;
}

.highlight-text {
  color: var(--accent-green);
  font-weight: 600;
}

.cta-button-container {
  margin-top: 2rem;
  width: 100%;
}

/* .cta-button styles moved to UNIFIED BUTTON STYLES section */
/*
.cta-button {
  display: block;
  width: 100%;
  padding: 1rem 0;
  background-color: var(--accent-green);
  color: var(--text-white);
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: var(--highlight-green);
  color: var(--text-white);
}
*/

/* About Section - Improved Layout */
.about-us {
  padding: 0;
  background-color: var(--primary-bg);
  margin: 0 0 3rem 0;
}

.about-content {
  padding: 0 0 2rem 0;
}

.about-image {
  border-right: 3px solid var(--accent-green);
  height: 100%;
}

.about-image img {
  width: clamp(250px, 40vw, 300px);
  height: clamp(400px, 60vw, 500px);
  object-fit: cover;
  display: block;
}

.about-text {
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
}

.accent-text {
  color: var(--accent-green);
  font-weight: 600;
}

.learn-more-btn {
  margin-top: 2rem;
}

.learn-more-btn a {
  display: block;
  padding: clamp(10px, 1.5vw, 12px) clamp(15px, 3vw, 20px);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  text-decoration: none;
  font-family: 'Helvetica', Arial, sans-serif;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  letter-spacing: 0.5px;
}

.learn-more-btn a:hover {
  background-color: var(--accent-green);
  color: var(--text-white);
}

/* Latest News - Enhanced Responsiveness */
.latest-news {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background-color: #ffffff;
  overflow: hidden;
  position: relative;
}

.latest-news .section-title {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: 0;
}

.latest-news .section-title h2 {
  color: #000000;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  text-transform: capitalize;
}

.news-slider-container {
  width: 100%;
  margin: 0 auto;
  /* MODIFICATION CI-DESSOUS : Ajout d'un léger padding horizontal pour que la bordure de la 3ème carte ne soit pas coupée */
  padding: 1.5rem 2px;
  position: relative;
  overflow: hidden;
  max-width: clamp(300px, 95vw, 1400px);
}

.news-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  margin: 0;
  padding: 0;
  gap: clamp(15px, 3vw, 24px);
}

.news-card {
  border: 1px solid rgba(69, 75, 27, 0.5);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: clamp(280px, 45vw, 400px);
  min-width: 280px;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.news-image {
  height: clamp(180px, 25vw, 220px);
  overflow: hidden;
}

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

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

.news-content {
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: #ffffff;
  min-height: clamp(220px, 35vw, 280px);
}

.news-date {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  color: #666666;
  margin-bottom: 1rem;
  font-weight: 500;
}

.news-source {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  color: #454b1b;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Latest News buttons - Same design as Programme section (unified style) */
/* No override needed - buttons use the UNIFIED BUTTON STYLES section */

/* Slider Controls - Enhanced Visibility with Arrow Icons */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  gap: clamp(1rem, 3vw, 2rem);
  position: relative;
  padding: 0 1rem;
  width: 100%;
}

.slider-prev, .slider-next {
  background: var(--accent-green);
  border: 2px solid var(--accent-green);
  cursor: pointer;
  padding: 0;
  z-index: 10;
  transition: all 0.3s ease;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 6vw, 50px);
  height: clamp(40px, 6vw, 50px);
  min-width: 40px;
  min-height: 40px;
  position: relative;
}

/* Arrow Icons using CSS */
.slider-prev::before,
.slider-next::before {
  content: '';
  width: 0;
  height: 0;
  position: absolute;
}

.slider-prev::before {
  border-top: clamp(6px, 1vw, 8px) solid transparent;
  border-bottom: clamp(6px, 1vw, 8px) solid transparent;
  border-right: clamp(8px, 1.2vw, 10px) solid currentColor;
  margin-left: -2px;
}

.slider-next::before {
  border-top: clamp(6px, 1vw, 8px) solid transparent;
  border-bottom: clamp(6px, 1vw, 8px) solid transparent;
  border-left: clamp(8px, 1.2vw, 10px) solid currentColor;
  margin-left: 2px;
}

.slider-prev:hover, .slider-next:hover {
  background-color: var(--highlight-green);
  border-color: var(--highlight-green);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(69, 75, 27, 0.3);
}

.slider-prev:disabled, .slider-next:disabled,
.slider-prev.disabled, .slider-next.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background-color: #cccccc;
  border-color: #cccccc;
  color: #666666;
}

.slider-prev.disabled:hover, .slider-next.disabled:hover {
  background-color: #cccccc;
  border-color: #cccccc;
  transform: none;
  box-shadow: none;
}

.slider-progress {
  flex-grow: 1;
  height: clamp(4px, 1vw, 6px);
  background-color: #e0e0e0;
  position: relative;
  overflow: hidden;
  margin: 0 clamp(1rem, 3vw, 2rem);
  border-radius: 3px;
  min-width: 100px;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-green), var(--highlight-green));
  transition: width 0.5s ease-in-out;
  border-radius: 3px;
}

/* Ensure slider controls work on all screen sizes */
@media (max-width: 767px) {
  .slider-controls {
    margin-top: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .slider-progress {
    order: 3;
    width: 100%;
    margin: 1rem 0 0 0;
    min-width: auto;
  }

  .slider-prev {
    order: 1;
  }

  .slider-next {
    order: 2;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .slider-controls {
    margin-top: 2rem;
    gap: 1.5rem;
  }

  .slider-progress {
    margin: 0 1.5rem;
  }
}

/* Make sure buttons are visible and clickable */
.latest-news .slider-controls {
  background: transparent;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.latest-news .slider-prev,
.latest-news .slider-next {
  pointer-events: auto;
  position: relative;
  z-index: 11;
}

/* Video Section */
.video-section {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  position: relative;
}

.section-video {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  object-fit: cover;
}

.section-video::-webkit-media-controls {
  display: none !important;
}

.section-video::-webkit-media-controls-panel {
  display: none !important;
}

.section-video::-webkit-media-controls-play-button {
  display: none !important;
}

.section-video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

/* Footer - Enhanced Responsiveness */
.footer {
  background: linear-gradient(135deg, #000000 0%, #454b1b 100%);
  color: var(--text-white);
  margin: 0;
}

.footer-main {
  padding: clamp(2rem, 4vw, 3rem) clamp(15px, 8vw, 55px) clamp(3rem, 5vw, 4rem);
}

.footer-bottom {
  padding: clamp(1.5rem, 3vw, 2rem) clamp(15px, 8vw, 55px);
  background-color: #1a1a1a;
}

.footer-section {
  margin-bottom: 1rem;
}

.footer-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  color: var(--text-white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-green);
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

/* .contact-btn styles moved to UNIFIED BUTTON STYLES section */
/*
.contact-btn {
  display: inline-block;
  padding: clamp(0.5rem, 1.2vw, 0.6rem) clamp(2rem, 4vw, 2.5rem);
  background-color: var(--accent-green);
  color: var(--text-white);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  border: 1px solid var(--accent-green);
}

.contact-btn:hover {
  background-color: transparent;
  color: var(--accent-green);
}
*/

/* Copyright section */
.copyright-content {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  color: #a0a0a0;
}

.copyright-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 3vw, 20px);
  justify-content: center;
}

.copyright-content a {
  text-decoration: none;
  color: #a0a0a0;
  transition: color 0.3s ease;
}

.copyright-content a:hover {
  color: var(--text-white);
}

/* Our Programmes Section */
.our-programmes {
  background-color: var(--primary-bg);
  padding: clamp(3rem, 6vw, 4rem) 0;
  position: relative;
}

.our-programmes .section-title h2 {
  color: #454b1b;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 3rem;
}

.programmes-content {
  position: relative;
}

.programmes-container {
  display: flex;
  width: 100%;
  gap: clamp(1rem, 3vw, 2rem);
}

.programmes-left-space {
  width: clamp(200px, 25vw, 250px);
  flex-shrink: 0;
}

.programmes-right-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 6vw, 50px);
  border-left: 1px solid #454b1b;
  padding-left: clamp(20px, 4vw, 30px);
  position: relative;
}

.programme-item {
  position: relative;
  margin-bottom: 5px;
  padding-bottom: 5px;
}

.programme-item h3 {
  color: var(--text-white);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.programme-cta {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* .read-more-btn styles moved to UNIFIED BUTTON STYLES section below */


@media (min-width: 992px) {
    .programme-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem; 
    }

  .copyright-content ul {
    justify-content: flex-start;
  }

    .programme-text {
        flex: 1; /* Permet au texte de prendre l'espace disponible */
    }

    .programme-cta {
        position: static; /* Supprime le positionnement absolu qui causait le chevauchement */
        transform: none;  /* Réinitialise la transformation */
        flex-shrink: 0;   /* Empêche le bouton de se rétrécir */
    }
}


/* Why Afrokwary Section - Enhanced Responsiveness */
.why-afrokwary {
  background-color: var(--primary-bg);
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 90vh;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 90vh;
  display: flex;
  align-items: stretch;
}

.slider-left {
  flex: 0 0 60%;
  max-width: 60%;
  position: relative;
  padding: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slider-content-group {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 100%;
}

.slider-right {
  flex: 0 0 40%;
  max-width: 40%;
  min-height: 90vh;
  background: url('../images/4.png') no-repeat center center;
  background-size: contain;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  min-height: clamp(150px, 20vw, 200px);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 2;
  pointer-events: auto;
}

.slide-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.slide-content h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-white);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  text-shadow: none;
}

.slide-nav {
  position: relative;
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  z-index: 10;
  margin-top: 3rem;
  padding: 0;
}

.slide-dot {
  width: clamp(15px, 2.5vw, 18px);
  height: clamp(15px, 2.5vw, 18px);
  border-radius: 50%;
  background-color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.slide-dot.active {
  background-color: var(--accent-green);
  transform: scale(1.1);
}

/* Contact Form - Enhanced Responsiveness */
.contact-form {
  padding: 0;
  background-color: #ffffff;
  padding: 0 0 clamp(2rem, 4vw, 3rem) 0;
}

.contact-form-wrapper {
  padding: clamp(1.5rem, 3vw, 2rem) 0;
}

.contact-form-wrapper h3 {
  font-family: 'Poppins', sans-serif;
  color: #000000;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: left;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-label {
  position: absolute;
  left: 0;
  top: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: var(--text-gray);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.form-label.active {
  top: -0.5rem;
  font-size: clamp(0.8rem, 1.2vw, 0.85rem);
  color: var(--accent-green);
  font-weight: 500;
}

.required {
  color: #000000;
}

.form-control {
  border: none;
  border-bottom: 2px solid #000000;
  border-radius: 0;
  padding: 1rem 0 0.5rem 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: #000000;
  background-color: transparent;
  transition: all 0.3s ease;
  box-shadow: none;
  width: 100%;
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(69, 75, 27, 0.1);
  border-color: var(--accent-green);
  background-color: transparent;
  outline: none;
}

.form-control::placeholder {
  color: transparent;
}

.bottom-border-only {
  border: none;
  border-bottom: 1px solid #000000;
  box-shadow: none;
}

textarea.form-control {
  border: 1px solid #000000;
  border-radius: 4px;
  padding: 1rem;
  min-height: clamp(100px, 15vw, 120px);
  resize: vertical;
  margin-top: 1rem;
}

textarea.form-control:focus {
  border-color: var(--accent-green);
}

textarea.form-control::placeholder {
  color: var(--text-gray);
  opacity: 0.7;
}

.textarea-group .form-label {
  position: static;
  margin-bottom: 0.5rem;
  color: #000000;
  font-weight: 500;
  pointer-events: auto;
}

.contact-submit-btn {
  padding: clamp(0.6rem, 1.2vw, 0.75rem) clamp(2rem, 4vw, 2.5rem);
  background-color: transparent;
  color: #000000;
  border: 2px solid var(--accent-green);
  border-radius: 0;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: normal;
  width: 100%;
  text-align: center;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  margin-top: 1rem;
}

.contact-submit-btn:hover {
  background-color: var(--accent-green);
  color: var(--text-white);
  border-color: var(--accent-green);
}

/* ========================================================= */
/* UNIFIED BUTTON STYLES                                     */
/* ========================================================= */
/* All buttons except navbar buttons (.take-action-btn, .nav-link) */
.btn-action,
.btn-primary,
.btn-submit,
.btn-submit-dark,
.cta-button,
.contact-submit-btn,
.contact-btn,
.read-more-btn,
.news-button a,
.filter-btn,
.search-btn,
.btn:not(.take-action-btn):not(.nav-link):not(.navbar-toggler),
.btn-dark:not(.take-action-btn),
.btn-outline-dark:not(.take-action-btn),
.btn-outline-primary:not(.take-action-btn) {
    display: inline-block;
    background-color: var(--accent-green);
    color: var(--text-white) !important;
    border: 2px solid var(--accent-green);
    padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(1.5rem, 3vw, 2.5rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: none;
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    cursor: pointer;
    text-align: center;
    border-radius: 0;
}

.btn-action:hover,
.btn-primary:hover,
.btn-submit:hover,
.btn-submit-dark:hover,
.cta-button:hover,
.contact-submit-btn:hover,
.contact-btn:hover,
.read-more-btn:hover,
.news-button a:hover,
.filter-btn:hover,
.search-btn:hover,
.btn:not(.take-action-btn):not(.nav-link):not(.navbar-toggler):hover,
.btn-dark:not(.take-action-btn):hover,
.btn-outline-dark:not(.take-action-btn):hover,
.btn-outline-primary:not(.take-action-btn):hover {
    background-color: var(--highlight-green);
    border-color: var(--highlight-green);
    color: var(--text-white) !important;
    transform: translateY(-2px);
}

/* Secondary / Ghost button styles */
.contact-submit-btn {
    background-color: transparent;
    color: #000000 !important;
}

.contact-submit-btn:hover {
    background-color: var(--accent-green);
    color: var(--text-white) !important;
}


/* Enhanced Mobile-First Responsive Breakpoints */

/* Extra Small Devices (phones, up to 576px) */
@media (max-width: 575px) {
  .container-fluid {
    padding: 0 15px;
  }

  .hero {
    min-height: 70vh;
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-content {
    width: 100%;
    padding-left: 12px;
    margin-left: 0;
  }

  .programme-item h3 {
    font-size: 1.2rem;
  }

  .programme-item p {
    font-size: 0.9rem;
    padding: 0;
  }

  .program-card {
    padding: 1rem 0.5rem 5rem 0.5rem;
  }

  .contact-form-wrapper h3 {
    font-size: 1.3rem;
  }

  .form-subtitle {
    font-size: 0.85rem;
  }

  .footer-main {
    padding: 2rem 15px;
  }

  .footer-section {
    margin-bottom: 1.5rem;
  }

  .copyright-content {
    font-size: 0.8rem;
  }

  .copyright-content ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
  .hero h1 {
    font-size: 2rem;
  }

  .program-cards {
    grid-template-columns: 1fr;
  }

  .news-card {
    width: calc(100% - 24px);
    min-width: 280px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  .program-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-card {
    width: calc((100% - 24px) / 2);
    min-width: 320px;
  }

  .slider-controls {
    margin-top: 2rem;
    gap: 1rem;
  }

  .slider-progress {
    margin: 0 1rem;
  }

  .news-content {
    padding: 1.5rem;
    min-height: 220px;
  }

  .news-image {
    height: 180px;
  }

  .news-content h3 {
    font-size: 1.1rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .program-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .program-card {
    min-height: 450px !important;
    height: 450px !important;
  }

  .program-card:not(:last-child)::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 10%;
    right: 0;
    width: 2px;
    height: 93%;
    background-color: rgba(69, 75, 27, 0.5);
  }

  .news-slider-container {
    max-width: 1400px;
    margin: 0 auto;
  }

  .news-card {
    width: calc((100% - 48px) / 3) !important;
    max-width: 420px;
    min-width: 320px;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1439px) {
  .news-card {
    width: calc((100% - 48px) / 3);
    min-width: 350px;
  }
}

/* XXL Devices (larger desktops, 1440px and up) */
@media (min-width: 1440px) {
  .news-card {
    width: calc((100% - 48px) / 3);
    min-width: 400px;
  }
}

/* Mobile Navigation Adjustments */
@media (max-width: 991px) {

    .navbar-collapse.show {
        background-color: #000000 !important;
    }

  .navbar-collapse .nav-link.dropdown-toggle {
        justify-content: center;
    }
  .navbar-nav {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    padding: 0.7rem 0 !important;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .navbar-collapse {
    background-color: rgba(17, 17, 17, 0.98);
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
  }

  .dropdown-menu {
    box-shadow: none;
    padding-left: 1rem;
    background-color: transparent;
    border: none;
    border-left: 1px solid rgba(69, 75, 27, 0.5);
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .dropdown-item {
    padding: 0.5rem 0;
    color: var(--text-white);
  }

  .take-action-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    text-align: center;
  }

  /* Why Afrokwary Mobile */
  .why-afrokwary {
    padding: 4rem 0;
    min-height: auto;
  }

  .slider-container {
    flex-direction: column;
    min-height: auto;
  }

  .slider-left {
    flex: none;
    max-width: 100%;
    padding: 0 30px;
    align-items: center;
  }

  .slider-right {
    display: none;
  }

  .slider-wrapper {
    min-height: auto;
  }

  .slide {
    position: relative;
    transform: none;
    display: none;
    padding: 0;
  }

  .slide.active {
    display: flex;
  }

  .slide-content {
    text-align: center;
  }

  .slide-content h3 {
    font-size: 2.2rem;
  }

  .slide-content p {
    max-width: 100%;
    text-align: center;
    font-size: 1rem;
  }

  .slide-nav {
    position: static;
    justify-content: center;
    margin-top: 2rem;
  }

  /* About Us Mobile */
  .about-us-section {
    padding: 3rem 0;
  }

  .about-us-content {
    min-height: auto;
  }

  .left-column {
    padding-right: 0;
    padding-bottom: 2rem;
  }

  .left-column h3 {
    font-size: 2.2rem;
  }

  .right-column {
    border-left: none;
    border-top: 1px solid var(--accent-green);
    padding: 2rem 1rem;
  }

  .about-image {
    border-right: none;
    border-bottom: 1px solid var(--accent-green);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .about-text {
    padding: 0;
  }

  /* Programmes Mobile */
  .programmes-container {
    flex-direction: column;
  }

  .programmes-left-space {
    display: none;
  }

  .programmes-right-content {
    padding-left: 0;
    gap: 40px;
    border-left: none;
  }

  .programme-item p {
    max-width: 100%;
    margin-bottom: 3.5rem;
  }

  .programme-cta {
    position: static;
    transform: none;
    margin-top: 1rem;
  }

  .footer-main {
    padding: 3rem 15px;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
    margin-top: 1.5rem;
  }
}

/* Program Card Mobile Specific */
@media (max-width: 767px) {
  .program-card {
    padding: 1.5rem 1rem 5rem 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(69, 75, 27, 0.3);
    height: auto !important;
    min-height: auto !important;
  }

  .program-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .program-card::after {
    display: none;
  }

  .learn-more-link {
    bottom: 1.5rem;
  }
}

/* Hero Specific Mobile Adjustments */
@media (max-width: 991px) {
  .video-hero-container {
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-content {
    width: 95%;
    padding-left: 15px;
  }
}

/* Button and Interactive Element Responsiveness */
/* .btn styles moved to UNIFIED BUTTON STYLES section */
/*
.btn {
  border-radius: 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  padding: clamp(0.5rem, 1.2vw, 0.75rem) clamp(1.5rem, 3vw, 2rem);
}
*/

/* Grid System Responsiveness */
.row {
  --bs-gutter-x: clamp(1rem, 2vw, 1.5rem);
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-.5 * var(--bs-gutter-x));
  margin-left: calc(-.5 * var(--bs-gutter-x));
}

/* Typography Scale */
h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1rem, 2vw, 1.25rem); }
h6 { font-size: clamp(0.9rem, 1.5vw, 1rem); }

/* Enhanced Utility Classes for Responsiveness */
@media (max-width: 575px) {
  .text-center-mobile { text-align: center !important; }
  .d-block-mobile { display: block !important; }
  .w-100-mobile { width: 100% !important; }
  .p-0-mobile { padding: 0 !important; }
  .m-0-mobile { margin: 0 !important; }
}

/* About Us Page Styles - Enhanced Responsiveness */
.about-us-page-abt {
  background-color: var(--primary-bg);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.about-us-page-abt .container-fluid {
  padding-left: clamp(25px, 8vw, 55px);
  padding-right: clamp(25px, 8vw, 55px);
}

.about-us-page-abt header {
  background-color: var(--primary-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.about-section-container {
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.about-section-container:last-child {
  padding-bottom: 1rem;
}

.about-page-title-abt {
  display: flex;
  align-items: center;
  margin-bottom: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  gap: 1rem;
}

.about-page-title-abt .circle-icon-abt {
  width: clamp(35px, 6vw, 40px);
  height: clamp(35px, 6vw, 40px);
  border-radius: 50%;
  border: 2px solid var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-page-title-abt .circle-icon-abt svg {
  width: clamp(18px, 3vw, 20px);
  height: clamp(18px, 3vw, 20px);
  fill: none;
  stroke: var(--accent-green);
  stroke-width: 2;
}

.about-page-title-abt h1 {
  color: var(--accent-green);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.about-section-abt:last-child {
  margin-bottom: 0;
}

.section-title-abt {
  color: var(--accent-green);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
}

.how-we-do-list-abt {
  list-style: none;
  padding-left: 0;
}

.how-we-do-list-abt li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -4px;
  color: var(--accent-green);
  font-size: 2em;
  line-height: 1;
}

/* Publications Page - Enhanced Responsiveness */
.publications-page {
  background-color: var(--primary-bg);
  color: var(--text-light-gray);
  padding: clamp(2rem, 4vw, 3rem) clamp(15px, 8vw, 55px);
  font-family: 'Poppins', sans-serif;
}

.publications-page-title {
  display: flex;
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
  gap: 1rem;
}

.publications-page-title .circle-icon {
  width: clamp(35px, 6vw, 40px);
  height: clamp(35px, 6vw, 40px);
  border-radius: 50%;
  border: 2px solid var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.publications-page-title .circle-icon svg {
  width: clamp(18px, 3vw, 20px);
  height: clamp(18px, 3vw, 20px);
  fill: none;
  stroke: var(--accent-green);
  stroke-width: 2;
}

.publications-page-title h1 {
  color: var(--accent-green);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.intro-right-column h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.highlight-list {
  list-style: none;
  padding-left: 1.5rem;
}

.highlight-list li {
  margin-bottom: 0.75rem;
  position: relative;
}

.highlight-list li::before {
  content: "•";
  position: absolute;
  left: -1.5rem;
  color: var(--accent-green);
  font-size: 1.5rem;
  line-height: 1;
}

.separator-title-section {
  padding: clamp(3rem, 6vw, 4rem) 0;
}

.separator-title-section h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-white);
}

.contribution-content strong {
  color: var(--text-white);
  font-weight: 600;
}

.submission-box {
  border: 1px solid var(--text-light-gray);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* .btn-submit styles moved to UNIFIED BUTTON STYLES section */
/*
.btn-submit {
  background-color: var(--accent-green);
  color: var(--text-white);
  border: 1px solid var(--accent-green);
  padding: clamp(0.5rem, 1.2vw, 0.6rem) clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  flex-shrink: 0;
}

.btn-submit:hover {
  background-color: var(--highlight-green);
  color: var(--text-white);
}
*/

.take-action-hero {
  position: relative;
  background-image: linear-gradient(to left, rgba(69, 75, 27, 0.3), rgba(0, 0, 0, 0.9)), url('../images/take-actions/Forms.jpg');
  background-size: cover;
  background-position: center center;
  color: var(--text-white);
  min-height: clamp(50vh, 80vh, 130vh);
  margin-bottom: 2rem;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.take-action-hero .container {
  position: relative;
  z-index: 2;
  text-align: left;
}

.take-action-hero h1 {
  font-family: 'Ibarra Real Nova', serif;
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--text-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.take-action-hero .main-text {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.action-section {
  padding: clamp(2rem, 4vw, 3rem) 0;
  color: var(--text-white);
  background-color: var(--primary-bg);
  border-bottom: 1px solid rgba(69, 75, 27, 0.3);
}

.action-section .row {
  align-items: center;
}

.action-section:last-of-type {
  border-bottom: none;
}

.action-content h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2.5rem;
  color: var(--accent-green);
}

.action-content ul {
  list-style: none;
  padding-left: 0;
}

.action-content ul li {
  padding: 0.1rem 0 0.1rem clamp(2rem, 4vw, 3rem);
  position: relative;
}

.action-content ul li::before {
  content: "•";
  color: var(--text-white);
  position: absolute;
  left: 0;
  font-size: 1.5em;
  line-height: 1;
  top: 0;
}

.action-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-illustration img {
  max-width: 100%;
  height: auto;
}

/* .btn-action styles moved to UNIFIED BUTTON STYLES section */
/*
.btn-action {
  background-color: var(--accent-green);
  color: var(--text-white);
  border: 1px solid var(--accent-green);
  padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(2rem, 4vw, 2.5rem);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
  text-transform: none;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
}

.btn-action:hover {
  background-color: var(--highlight-green);
  color: var(--text-white);
  transform: translateY(-2px);
}
*/

.network-growth-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background-color: var(--primary-bg);
}

.section-title-lined {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: clamp(3rem, 6vw, 4rem);
}

.section-title-lined .title-line {
  height: clamp(6px, 1.5vw, 8px);
  background-color: rgba(69, 75, 27, 0.5);
  width: 100%;
  flex: 1;
}

.section-title-lined h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-green);
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 8vw, 5rem);
  flex-wrap: wrap;
}

.social-icons a img {
  height: clamp(60px, 20vw, 250px);
  width: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons a:hover img {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Programs and Details Pages - Enhanced Responsiveness */
.main-content-px h1 {
  font-family: 'Roboto Condensed', sans-serif;
  color: var(--accent-green);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.main-content-px {
  width: 80%;
}

.sidebar-nav-px {
  position: sticky;
  top: 120px;
  font-family: 'Poppins', sans-serif;
}

.sidebar-nav-px .nav-item {
  margin-bottom: 0.25rem;
}

.sidebar-nav-px .nav-link {
  display: block;
  color: var(--text-light-gray);
  text-decoration: none;
  font-size: clamp(0.9rem, 1.3vw, 0.95rem);
  padding: clamp(0.6rem, 1.2vw, 0.8rem) clamp(1rem, 2.5vw, 1.5rem);
  border-left: 4px solid transparent;
  transition: all 0.3s ease-in-out;
}

.sidebar-nav-px .nav-link:hover {
  color: var(--text-white);
  background-color: rgba(69, 75, 27, 0.15);
  transform: translateX(4px);
}

.sidebar-nav-px .nav-link.active {
  color: var(--text-white);
  font-weight: 600;
  border-left-color: var(--highlight-green);
}

.content-section {
  margin-bottom: 3.5rem;
}

.content-section h2 {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: var(--text-white);
  font-family: 'Roboto Condensed', sans-serif;
}

.section-header-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header-action h2 {
  max-width: none;
  color: #000;
}

.styled-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.styled-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-green);
  font-size: 1.5em;
  line-height: 1;
}

.styled-list li strong {
  color: var(--text-white);
  font-weight: 600;
}

.main-content-px .content-section .btn-action {
  text-transform: none;
}

.page-container-px {
  background-color: #ffffff;
  padding-top: 2rem;
}

.page-container-px .main-content-px,
.page-container-px .main-content-px p {
  color: #212529;
}

.page-container-px .main-content-px h1 {
  color: var(--accent-green);
}

.page-container-px .main-content-px h2,
.page-container-px .main-content-px h3,
.page-container-px .main-content-px h4 {
  color: #000000;
}

.page-container-px .styled-list li,
.page-container-px .styled-list li strong {
  color: #212529;
}

.page-container-px .sidebar-nav-px .nav-link {
  color: #495057;
}

.page-container-px .sidebar-nav-px .nav-link:hover {
  color: #000000;
}

.page-container-px .sidebar-nav-px .nav-link.active {
  color: #000000;
  font-weight: 600;
}

/* Application Form - Enhanced Responsiveness */
.application-form-section {
  background-color: transparent;
  padding: clamp(1.5rem, 3vw, 2rem) 0;
}

.application-form-dark .form-label {
  color: var(--text-light-gray);
  margin-bottom: 0.5rem;
  font-size: clamp(0.9rem, 1.3vw, 0.95rem);
}

.application-form-dark .form-control,
.application-form-dark .form-select {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--text-gray);
  border-radius: 0;
  color: var(--text-white);
  padding: 0.5rem 0.2rem;
  transition: border-color 0.3s ease;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
}

.application-form-dark .form-control:focus,
.application-form-dark .form-select:focus {
  box-shadow: none;
  background-color: transparent;
  color: var(--text-white);
  border-color: var(--accent-green);
}

.application-form-dark .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f5f5f5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.application-form-dark .form-select option {
  background: var(--text-light-gray);
  color: #1a1a1a;
}

.application-form-dark textarea.form-control {
  border: 2px solid var(--text-gray);
  padding: 1rem;
  min-height: clamp(100px, 15vw, 120px);
}

.application-form-dark .form-check-label {
  color: var(--text-light-gray);
  font-size: clamp(0.95rem, 1.4vw, 1rem);
}

.application-form-dark .form-check-input {
  background-color: transparent;
  border: 1px solid var(--text-gray);
}

.application-form-dark .form-check-input:checked {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
}

.application-form-dark .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(69, 75, 27, 0.5);
  border-color: var(--accent-green);
}

/* .btn-submit-dark styles moved to UNIFIED BUTTON STYLES section */
/*
.btn-submit-dark {
  padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(2.5rem, 5vw, 3rem);
  background-color: transparent;
  color: var(--accent-green);
  border: 2px solid var(--accent-green);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
}

.btn-submit-dark:hover {
  background-color: var(--accent-green);
  color: var(--text-white);
  transform: translateY(-2px);
}
*/

/* Page Container Overrides */
.page-container-px .application-form-dark {
  width: 100%;
}

.page-container-px .application-form-dark .form-label {
  display: block;
  color: #000000;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: clamp(0.95rem, 1.4vw, 1rem);
  position: static;
}

.page-container-px .application-form-dark .form-control,
.page-container-px .application-form-dark .form-select {
  background-color: #ffffff;
  border: 1px solid #6c757d;
  border-radius: 4px;
  color: #212529;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  border-bottom: 1px solid #6c757d;
}

.page-container-px .application-form-dark textarea.form-control {
  min-height: clamp(100px, 15vw, 120px);
  resize: vertical;
}

.page-container-px .application-form-dark .form-control:focus,
.page-container-px .application-form-dark .form-select:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 0.2rem rgba(69, 75, 27, 0.25);
  outline: none;
}

.page-container-px .application-form-dark .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.page-container-px .application-form-dark .form-check-label {
  color: #212529;
  padding-left: 0.5rem;
}

.page-container-px .application-form-dark .form-check-input {
  border-color: #6c757d;
  border-width: 1px;
}

.page-container-px .application-form-dark .form-check-input:checked {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
}

/* .page-container-px .application-form-dark .btn-submit-dark overrides removed - using UNIFIED BUTTON STYLES */
/*
.page-container-px .application-form-dark .btn-submit-dark {
  padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(2rem, 4vw, 2.5rem);
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: normal;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  float: right;
}

.page-container-px .application-form-dark .btn-submit-dark:hover {
  background-color: var(--accent-green);
  color: var(--text-white);
  border-color: var(--accent-green);
}
*/

.page-container-px .application-form-dark .col-12.text-center {
  text-align: right !important;
}

/* Resource Hub Page - Enhanced Responsiveness */
.search-page-content {
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(8rem, 20vw, 16rem) 0;
  font-family: 'Poppins', sans-serif;
  background-color: #FFFFFF;
}

.filter-header h1 {
  color: #454b1b;
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
  margin-bottom: 1rem;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.75rem, 1.5vw, 1rem);
  border: 2px solid #454b1b;
  background-color: #FFFFFF;
  border-radius: 0.25rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-bar .filter-btn {
  background: #454b1b;
  border: none;
  font-weight: 500;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: #454b1b;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-bar .filter-btn i {
  margin-right: 0.5rem;
}

.filter-bar .filter-selects {
  display: flex;
  gap: 1rem;
  flex-grow: 1;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.filter-bar .form-select,
.filter-bar .form-control {
  border: 2px solid #454b1b !important;
  border-radius: 0.25rem;
  padding: 0.75rem;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  min-width: clamp(120px, 20vw, 150px);
  height: 48px;
  background-color: #FFFFFF !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
}

.filter-bar .form-select:focus,
.filter-bar .form-control:focus {
  border-color: #454b1b !important;
  box-shadow: 0 0 0 0.2rem rgba(69, 75, 27, 0.25) !important;
  outline: none;
}

.filter-bar .form-control::placeholder {
  color: #6c757d;
  opacity: 1;
}

.filter-bar .search-btn {
  background-color: #454b1b;
  color: #FFFFFF;
  font-weight: 600;
  border: none;
  padding: 0.75rem clamp(1.5rem, 3vw, 2rem);
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  height: 48px;
  cursor: pointer;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  flex-shrink: 0;
}

.filter-bar .search-btn:hover {
  background-color: #5a6322;
  color: #FFFFFF;
}

.resource-card {
  background-color: #FFFFFF;
  border: 1px solid #E0DACE;
  border-radius: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.resource-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.resource-card .card-img-top {
  width: 100%;
  height: clamp(150px, 25vw, 200px);
  object-fit: cover;
  border-radius: 0;
}

.resource-card .card-body {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.resource-card .card-category {
  font-size: clamp(0.7rem, 1.1vw, 0.75rem);
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.resource-card .card-category i {
  margin-right: 0.5rem;
}

.resource-card .card-title {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: #000000;
  line-height: 1.4;
  flex-grow: 1;
}

/* Enhanced Container Padding System */
.about-us-section .container-fluid,
.why-afrokwary .container-fluid,
.our-programmes .container-fluid,
.latest-news .container-fluid,
.contact-form .container-fluid {
  padding-left: clamp(15px, 8vw, 55px);
  padding-right: clamp(15px, 8vw, 55px);
}

/* Mobile-Specific Adjustments */
@media (max-width: 768px) {
  .take-action-hero {
    padding: 40px 20px;
    min-height: 50vh;
  }

  .take-action-hero .main-text {
    background-color: transparent;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar .filter-btn {
    align-self: flex-start;
    margin-bottom: 1rem;
  }

  .filter-bar .filter-selects {
    flex-direction: column;
    margin-bottom: 1rem;
  }

  .filter-bar .form-select,
  .filter-bar .form-control {
    min-width: 100%;
  }

  .search-page-content {
    padding: 1rem 0 8rem 0;
  }

  .submission-box {
    flex-direction: column;
    text-align: center;
  }

  .submission-box p {
    min-width: auto;
  }

  .action-section .row {
    display: flex;
    flex-direction: column;
  }

  .action-illustration {
    order: 1;
    margin-top: 0;
    margin-bottom: 2rem;
  }

  .action-content {
    order: 2;
  }

  .main-content-px {
    width: 100%;
  }

  .sidebar-nav-px {
    position: static;
    border-left: none;
    border-top: 1px solid var(--accent-green);
    padding: 1rem 0;
    margin-bottom: 2rem;
  }

  .sidebar-nav-px .nav-link:hover {
    transform: none;
  }

  .social-icons {
    gap: 2.5rem;
  }

  .social-icons a img {
    height: 60px;
  }

  .section-title-lined h3 {
    font-size: 0.9rem;
  }
}

/* Ultra-Wide Screen Optimization (1920px+) */
@media (min-width: 1920px) {
  .container-fluid {
    max-width: 1800px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .news-card {
    min-width: 450px;
  }

  .program-card {
    min-height: 500px;
  }
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
  }

  .video-hero-container,
  .background-video,
  .video-overlay {
    display: none;
  }

  .container-fluid {
    padding: 0 1cm;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  p, li {
    orphans: 3;
    widows: 3;
  }
}

/* High DPI/Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img,
  .news-image img,
  .about-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark Mode Support (Correction Applied) */
@media (prefers-color-scheme: dark) {
  /*
    Les styles pour .page-container-px et .search-page-content
    ont été retirés d'ici pour conserver leur fond blanc
    conformément au design original.
  */
}


/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-content {
    animation: none;
  }

  .scroll-indicator {
    animation: none;
  }

  .slide {
    transition: none;
  }
}

/* Focus States for Better Accessibility */
.nav-link:focus,
.take-action-btn:focus,
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent-green);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --accent-green: #2d5016;
    --highlight-green: #3d6b1f;
    --text-gray: #333333;
  }

  .news-card,
  .program-card,
  .resource-card {
    border-width: 2px;
    border-color: #000000;
  }

  .form-control,
  .form-select {
    border-width: 2px;
    border-color: #000000;
  }
}

/* Container Width Optimization */
@media (min-width: 1400px) {
  .container-fluid {
    max-width: 1320px;
    margin: 0 auto;
  }
}

@media (min-width: 1600px) {
  .container-fluid {
    max-width: 1400px;
  }
}

/* Enhanced Spacing System */
.spacing-xs { margin: clamp(0.25rem, 1vw, 0.5rem) 0; }
.spacing-sm { margin: clamp(0.5rem, 2vw, 1rem) 0; }
.spacing-md { margin: clamp(1rem, 3vw, 2rem) 0; }
.spacing-lg { margin: clamp(2rem, 5vw, 3rem) 0; }
.spacing-xl { margin: clamp(3rem, 8vw, 5rem) 0; }

.padding-xs { padding: clamp(0.25rem, 1vw, 0.5rem); }
.padding-sm { padding: clamp(0.5rem, 2vw, 1rem); }
.padding-md { padding: clamp(1rem, 3vw, 2rem); }
.padding-lg { padding: clamp(2rem, 5vw, 3rem); }
.padding-xl { padding: clamp(3rem, 8vw, 5rem); }

/* Responsive Text Utilities */
@media (max-width: 575px) {
  .text-responsive-sm { font-size: 0.875rem !important; }
  .text-responsive-md { font-size: 1rem !important; }
  .text-responsive-lg { font-size: 1.125rem !important; }
}

@media (min-width: 576px) and (max-width: 767px) {
  .text-responsive-sm { font-size: 0.9rem !important; }
  .text-responsive-md { font-size: 1.1rem !important; }
  .text-responsive-lg { font-size: 1.25rem !important; }
}

@media (min-width: 768px) {
  .text-responsive-sm { font-size: 1rem !important; }
  .text-responsive-md { font-size: 1.25rem !important; }
  .text-responsive-lg { font-size: 1.5rem !important; }
}

/* Improved Button System */
.btn-responsive {
  padding: clamp(0.5rem, 1.2vw, 0.75rem) clamp(1.5rem, 3vw, 2rem);
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-responsive-sm {
  padding: clamp(0.25rem, 0.8vw, 0.5rem) clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
}

.btn-responsive-lg {
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(2rem, 4vw, 2.5rem);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

/* Enhanced Image Responsiveness */
.img-fluid {
  max-width: 100%;
  height: auto;
}

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

.img-responsive:hover {
  transform: scale(1.02);
}

/* Flexible Layout Utilities */
.flex-responsive {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
}

.flex-responsive-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.flex-responsive-between {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

/* Card System Enhancement */
.card-responsive {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.125);
  border-radius: 0;
  margin-bottom: clamp(1rem, 3vw, 2rem);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-responsive:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-responsive .card-body {
  padding: clamp(1rem, 3vw, 2rem);
}

.card-responsive .card-title {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
}

/* Form Enhancement */
.form-responsive .form-group {
  margin-bottom: clamp(1rem, 2.5vw, 2rem);
}

.form-responsive .form-control,
.form-responsive .form-select {
  padding: clamp(0.5rem, 1.2vw, 0.75rem);
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  border-radius: 0;
}

.form-responsive textarea.form-control {
  min-height: clamp(100px, 20vw, 150px);
}

/* Enhanced Navigation for Touch Devices */
@media (hover: none) and (pointer: coarse) {
  .nav-link {
    padding: 1rem 0.8rem !important;
  }

  .dropdown-menu {
    position: static;
    display: block;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    background-color: rgba(69, 75, 27, 0.1);
    border: none;
    border-left: 2px solid var(--accent-green);
    padding-left: 1rem;
    margin-left: 1rem;
  }

  .dropdown-item {
    padding: 0.75rem 0;
  }

  .take-action-btn {
    padding: 1rem 2rem;
    margin: 1rem 0;
  }
}

/* Landscape Phone Optimization */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .hero-content {
    padding-bottom: 20px;
  }

  .scroll-indicator {
    bottom: 10px;
  }
}

/* Tablet Specific Optimizations */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .container-fluid {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .program-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .news-card {
    width: calc(50% - 12px);
    min-width: 340px;
  }

  .why-afrokwary .slider-left {
    padding: 3rem 4rem;
  }

  .slide-content h3 {
    font-size: 2.5rem;
  }
}

/* Large Tablet and Small Desktop */
@media screen and (min-width: 1024px) and (max-width: 1200px) {
  .container-fluid {
    padding-left: 50px;
    padding-right: 50px;
  }

  .program-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-card {
    width: calc(33.333% - 16px);
    min-width: 300px;
  }
}

/* Ultra-wide Screen Support */
@media screen and (min-width: 2560px) {
  .container-fluid {
    max-width: 2000px;
    padding-left: 80px;
    padding-right: 80px;
  }

  .hero h1 {
    font-size: 5rem;
  }

  .program-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .news-card {
    min-width: 400px;
  }
}

/* Performance Optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerate {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Smooth Scrolling for Supported Browsers */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Error Prevention for Flex Items */
.flex-item-safe {
  min-width: 0;
  min-height: 0;
}

/* Improved Focus Management */
.focus-within:focus-within {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

/* Loading State Utilities */
.loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: wait;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #ccc;
  border-top: 2px solid var(--accent-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Final Mobile Optimizations */
@media (max-width: 480px) {
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero-content {
    padding-left: 10px;
    margin-left: 5px;
  }

  .program-card {
    padding: 1rem 0.75rem 4rem 0.75rem;
  }

  .news-content {
    padding: 1rem;
  }

  .footer-main {
    padding: 1.5rem 10px;
  }

  .copyright-content {
    font-size: 0.75rem;
  }

  .btn-responsive {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* ========================================================= */
/* AMÉLIORATION RESPONSIVE POUR LA PAGE D'ACCUEIL            */
/* ========================================================= */

@media (max-width: 768px) {
    /* Ajoute des espaces latéraux cohérents pour toutes les sections de la page d'accueil */
    .about-us-section .container-fluid,
    .why-afrokwary .container-fluid,
    .our-programmes .container-fluid,
    .latest-news .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Justifie le texte des paragraphes dans les sections spécifiques pour une meilleure lisibilité */
    .about-us-section .right-column p,
    .our-programmes .programme-item p {
        text-align: justify !important;
        hyphens: auto; /* Aide à éviter les grands espaces entre les mots */
    }

    .section-title {
        padding: 0 0 2rem 0; /* Supprime le padding à gauche pour les titres de section sur mobile */
    }
}

/* ========================================================= */
/* AMÉLIORATION RESPONSIVE POUR LES PAGES DE PROGRAMME       */
/* ========================================================= */

@media (max-width: 991px) {
    /* Ajoute des espaces latéraux au conteneur principal sur mobile */
    .page-container-px {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Justifie le texte des paragraphes pour une meilleure lisibilité */
    .page-container-px .main-content-px p {
        text-align: justify !important;
        hyphens: auto;
    }

    /* Fait en sorte que la barre latérale et le contenu principal prennent toute la largeur et se superposent */
    .page-container-px .col-lg-3,
    .page-container-px .col-lg-9 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Réinitialise la barre latérale pour qu'elle s'affiche correctement au-dessus du contenu */
    .sidebar-nav-px {
        position: static; /* Supprime le positionnement "collant" qui n'est pas utile sur mobile */
        top: auto;
        margin-bottom: 2rem;
        border-left: none; /* Supprime la bordure latérale */
        padding-top: 1rem;
        border-top: 3px solid var(--accent-green); /* Ajoute une bordure supérieure pour une meilleure séparation visuelle */
    }

    /* Centre les liens de navigation de la barre latérale pour une meilleure apparence mobile */
    .sidebar-nav-px .nav {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sidebar-nav-px .nav-link {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 0.5rem 1rem;
        text-align: center;
    }

    .sidebar-nav-px .nav-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--highlight-green);
        font-weight: 600;
        color: #000000;
    }

    .sidebar-nav-px .nav-link:hover {
        transform: none; /* Désactive l'effet de survol qui n'est pas pertinent sur le tactile */
        background-color: rgba(69, 75, 27, 0.05);
    }

    /* S'assure que le contenu principal utilise bien toute la largeur disponible */
    .main-content-px {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    /* Ajuste la taille des titres pour une meilleure lisibilité sur mobile */
    .main-content-px h1 {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .main-content-px h2 {
        font-size: clamp(1.4rem, 6vw, 1.6rem);
    }
    
    .section-header-action {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================================= */
/* AMÉLIORATION RESPONSIVE POUR WHY & NEWS SECTIONS          */
/* ========================================================= */

@media (max-width: 991px) { 

    .why-afrokwary .slide-content h3 {
        text-align: justify !important;
    }

    .why-afrokwary .slide-content p {
        text-align: justify !important;
        hyphens: auto;
    }
}

@media (max-width: 767px) { /* Téléphones mobiles */

    .latest-news .news-card {
        width: 100%;
        min-width: 100%;
        flex-shrink: 0; /* Empêche la carte de se rétrécir */
    }
    .latest-news .news-slider {
        gap: 0;
    }
}

@media (max-width: 991px) {

.navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    padding: 6rem 2rem 2rem 2rem;
    background-color: #000000; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow-y: auto;
    z-index: 1000;
}

.navbar-collapse.show {
    opacity: 1;
    visibility: visible;
}
    
    .navbar-collapse .navbar-nav {
        width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    /* 2. Style des liens principaux (centrés et taille ajustée) */
    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-weight: 400;
        text-align: center !important;
    }
    
    .nav-item > .nav-link.show {
        color: var(--text-white) !important;
        opacity: 1;
    }

    /* 3. Style du sous-menu (sans bordure, alignement centré) */
    .dropdown-menu {
        background-color: transparent !important; /* Pas de fond */
        border: none !important; /* Pas de bordure */
        box-shadow: none !important; /* Pas d'ombre */
        border-radius: 0;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
        text-align: center !important;
    }

    .dropdown-item {
        font-size: 1rem;
        padding: 0.6rem 0 !important;
        font-weight: 300;
        text-align: center !important;
        color: var(--text-light-gray);
    }
    
    /* 4. Bouton 'Take Action' (centré et taille ajustée) */
    .d-block.d-lg-none {
        width: 100%;
        text-align: center;
    }
    .d-block.d-lg-none .take-action-btn {
      width: fit-content;
      display: inline-block;
      margin: 1.5rem auto 0 auto;
      text-align: center;
    }

    /* === Icône Hamburger <=> Croix (X) === */
    .navbar-toggler {
        position: relative;
        z-index: 1001;
        width: 24px;
        height: 20px;
        transition: transform 0.3s ease;
        color: transparent;
    }
    .navbar-toggler span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--text-white);
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }
    .navbar-toggler span:nth-of-type(1) { top: 0px; }
    .navbar-toggler span:nth-of-type(2) { top: 8px; }
    .navbar-toggler span:nth-of-type(3) { top: 16px; }

    .navbar-toggler[aria-expanded="true"] span:nth-of-type(1) {
        top: 8px;
        transform: rotate(135deg);
    }
    .navbar-toggler[aria-expanded="true"] span:nth-of-type(2) {
        opacity: 0;
        left: -60px;
    }
    .navbar-toggler[aria-expanded="true"] span:nth-of-type(3) {
        top: 8px;
        transform: rotate(-135deg);
    }
}

@media (min-width: 992px) {
    /* Cache les spans de l'icône sur les grands écrans */
    .navbar-toggler span {
        display: none;
    }
}


@media (max-width: 767px) {
    /* === CORRECTION DU FOOTER MOBILE === */

    .footer-section {
        text-align: center !important;
        margin-bottom: 2.5rem;
    }

    .footer-section-title {
        text-align: center !important;
    }

    .footer-links li {
        text-align: center !important;
        padding: 0.25rem 0;
    }
    
    .footer-right {
        justify-content: center !important;
        text-align: center !important;
        width: 100%;
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .contact-btn {
        width: 80%;
        max-width: 300px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        text-align: center !important;
    }
    
    .copyright-content {
        text-align: center !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 2rem;
        margin-top: 1rem;
    }
    .copyright-content ul {
        justify-content: center !important;
    }
    .copyright-content ul li {
        text-align: center !important;
    }
}