/*!
Theme Name: Méréveille 10
Theme URI: https://mereveille.com
Author: Paul Bouaffou
Author URI: https://paulbouaffou.com
Description: Un magazine numérique dédié à l'épanouissement des femmes en Afrique francophone, explorant la santé mentale, la maternité et la spiritualité.
Version: 1.0.10
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mereveille
Domain Path: /languages
*/

/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #ee1c89;
  --primary-dark: #d91a7a;
  --primary-light: #f441a0;
  --foreground: #330033;
  --background: #ffffff;
  --muted: #f5f5f5;
  --border: #e6e6e6;
  --dark-gray: #403f3f;
  --text-gray: #666666;
  --light-gray: #f9f9f9;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  --radius: 0.75rem;
  --spacing: 1rem;
  --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--foreground);
}

h1 {
  font-size: 3rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER & NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.site-branding h1 {
  font-size: 2rem;
  margin: 0;
}

.site-branding a {
  color: var(--foreground);
  text-decoration: none;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  padding-left: 2rem;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  list-style: none;
}

.main-navigation a {
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
}

.main-navigation a:hover {
  color: var(--primary);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary);
  color: white;
  text-decoration: none;
}

.cta-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 0.875rem; 
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
}

.search-toggle-btn,
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .main-navigation {
    padding-left: 0;
  }
  
  .main-navigation ul {
    gap: 1rem;
  }
  
  .social-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-navigation.open {
    display: flex;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cta-button {
    width: 100%;
    text-align: center;
  }
  
  .site-branding h1 {
    font-size: 1.5rem;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  color: white;
}

.hero-content h1 {
  color: white;
}

.hero-tag {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero .cta-button {
  background-color: var(--primary);
  padding: 0.75rem 2rem;
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 600px;
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 400px;
  }
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide .hero-content {
  position: relative;
  z-index: 3;
}

.hero-category {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Carousel Controls */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  padding: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.carousel-prev {
  left: 2rem;
}

.carousel-next {
  right: 2rem;
}

@media (max-width: 768px) {
  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: 1rem;
  }

  .carousel-next {
    right: 1rem;
  }
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background-color: white;
  width: 32px;
  border-radius: 6px;
}

.carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* ===== SECTION SPACING ===== */
section {
  padding: 4rem 0;
}

section.light-bg {
  background-color: var(--light-gray);
}

section.primary-bg {
  background-color: var(--primary);
}

section.primary-bg h2,
section.primary-bg h3,
section.primary-bg p,
section.primary-bg label {
  color: white;
}

section.dark-bg {
  background-color: var(--dark-gray);
  color: white;
}

/* ===== SECTIONS WITH PATTERN BACKGROUND ===== */
section.section-with-pattern {
  background-image: url('https://mereveille.net/wp-content/uploads/2026/02/Rectangle-9-3.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

section.section-with-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(238, 28, 137, 0.85);
  z-index: 0;
}

section.section-with-pattern > * {
  position: relative;
  z-index: 1;
}

/* ===== PROGRAMS SECTION ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.program-card {
  background-color: white;
  border-radius: calc(var(--radius) * 4);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.program-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.program-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--muted);
}

.program-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-content h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  margin-top: 0;
}

.program-content p {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.program-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.program-link:hover {
  gap: 0.75rem;
}

/* ===== ARTICLES SECTION ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--muted);
}

.article-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  width: fit-content;
}

.article-content h3 {
  color: var(--foreground);
  margin-bottom: 0.75rem;
  margin-top: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-content p {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-gray);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* ===== WHATSAPP SHARE BUTTON ===== */
.whatsapp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #25d366;
  color: white;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.whatsapp-share-btn:hover {
  background-color: #20ba5a;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-share-btn svg {
  display: inline-block;
}

/* WhatsApp icon in article cards */
.whatsapp-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  transition: var(--transition);
  flex-shrink: 0;
}

.whatsapp-share-icon:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-share-icon svg {
  display: block;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form-1 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 200px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .newsletter-form, .newsletter-form-1 {
    flex-direction: row;
  }
}

.newsletter-form input, .newsletter-form-1 input {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  background-color: white;
  color: var(--foreground);
}

.newsletter-form input::placeholder, .newsletter-form-1 input::placeholder {
  color: #999;
}

.newsletter-form button {
  padding: 0.75rem 2rem;
  background-color: var(--dark-gray);
  color: white;
  border: none;
  border-radius: var(--radius); 
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form-1 button {
  padding: 0.75rem 2rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius); 
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover, .newsletter-form-1 button:hover {
  background-color: #2a2a2a;
}

/* ===== TESTIMONIALS ===== */
.testimonials-carousel {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-image {
  flex-shrink: 0;
}

.testimonial-image img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-content {
  flex: 1;
}

.testimonial-quote {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-meta {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.testimonial-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-date {
  font-size: 0.875rem;
  color: var(--text-gray);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--primary);
  width: 32px;
  border-radius: 6px;
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonials-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: var(--radius);
  min-height: 300px;
}

.testimonials-carousel-container {
  position: relative;
  flex: 1;
  overflow: hidden;
  height: 100%;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.testimonial-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 1rem;
}

.testimonial-image {
  flex-shrink: 0;
}

.testimonial-image img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(238, 28, 137, 0.15);
}

.testimonial-content {
  flex: 1;
}

.testimonial-quote {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--foreground);
}

.testimonial-meta {
  border-top: 2px solid var(--primary);
  padding-top: 1rem;
}

.testimonial-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.testimonial-date {
  font-size: 0.875rem;
  color: var(--text-gray);
}

/* Carousel Navigation Buttons */
.testimonials-carousel-prev,
.testimonials-carousel-next {
  background-color: var(--primary);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  padding: 0;
}

.testimonials-carousel-prev:hover,
.testimonials-carousel-next:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

/* Carousel Dots */
.testimonials-carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .testimonials-carousel-wrapper {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    min-height: auto;
  }

  .testimonial-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .testimonial-image img {
    width: 100px;
    height: 100px;
  }

  .testimonial-meta {
    border-top: 2px solid var(--primary);
  }

  .testimonials-carousel-prev,
  .testimonials-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
  }

  .testimonials-carousel-prev {
    left: 0.5rem;
  }

  .testimonials-carousel-next {
    right: 0.5rem;
  }
}

.carousel-dot.active {
  background-color: var(--primary);
}

.carousel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.carousel-nav button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.carousel-nav button:hover {
  background-color: var(--primary-dark);
}

/* ===== PAGE BANNER ===== */ 

.page-banner {
  background-color: var(--primary);
  color: white;
  padding: 3rem 0;
}

.page-banner h1 {
  color: white;
  margin-bottom: 0;
}

.breadcrumb {
  background-color: white;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb-list a {
  color: var(--primary);
}

.breadcrumb-list span {
  color: var(--text-gray);
  margin: 0 0.5rem;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--foreground);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background-color: var(--primary-dark);
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.form-message.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.form-message.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* ===== POPUP MODAL ===== */
.popup-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 1rem;
}

.popup-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-modal-content {
  background-color: white;
  border-radius: 1.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.4s ease;
}

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

.popup-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: var(--transition);
}

.popup-close-btn:hover {
  color: var(--primary);
}

.popup-body {
  display: flex;
  flex-direction: column;
}

.popup-image {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
}

.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popup-text {
  padding: 2rem;
}

.popup-title {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.popup-subtitle {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.popup-description {
  font-size: 0.95rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.popup-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.popup-cta-button {
  flex: 1;
  min-width: 150px;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem; 
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.popup-cta-button:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
}

.popup-close-text-btn {
  flex: 1;
  min-width: 150px;
  background-color: var(--muted);
  color: var(--foreground);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.popup-close-text-btn:hover {
  background-color: var(--border);
}

@media (max-width: 768px) {
  .popup-modal-content {
    margin: 0 1rem;
    max-width: calc(100% - 2rem);
    max-height: 85vh;
  }

  .popup-text {
    padding: 1.5rem;
  }

  .popup-title {
    font-size: 1.5rem;
  }

  .popup-image {
    max-height: 200px;
  }

  .popup-actions {
    flex-direction: column;
  }

  .popup-cta-button,
  .popup-close-text-btn {
    width: 100%;
    min-width: unset;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--dark-gray);
  color: white;
  padding: 3rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--primary); 
  margin-bottom: 1rem;
  margin-top: 0;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #bbb;
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #bbb;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.footer-copyright {
  font-size: 0.875rem;
  color: #999;
  text-align: center;
}

/* ===== UTILITIES ===== */
.section-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.section-title-1 {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.section-title-1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: white;
  border-radius: 2px;
}

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

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* ===== WORDPRESS DEFAULTS ===== */
.wp-block-image {
  margin: 1rem 0;
}

.wp-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-gray);
  margin: 1rem 0;
}

.alignleft {
  float: left;
  margin-right: 1rem;
}

.alignright {
  float: right;
  margin-left: 1rem;
}

.aligncenter {
  text-align: center;
}

/* ===== SEARCH FORM ===== */
.search-toggle-btn {
  color: var(--foreground);
  transition: var(--transition);
}

.search-toggle-btn:hover {
  color: var(--primary);
}

.search-form-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding-top: 100px;
}

.search-form-wrapper.active {
  opacity: 1;
  visibility: visible;
}

.search-form-wrapper .search-form {
  position: relative;
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: searchSlideIn 0.3s ease;
}

.search-form-wrapper form {
  position: relative;
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: searchSlideIn 0.3s ease;
}

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

.search-form-wrapper input[type="search"],
.search-form-wrapper .search-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--foreground);
  transition: var(--transition);
}

.search-form-wrapper input[type="search"]:focus,
.search-form-wrapper .search-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

.search-form-wrapper input[type="submit"] {
  display: none;
}

.search-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  transition: var(--transition);
  padding: 0.5rem;
}

.search-close-btn:hover {
  color: var(--primary);
}

/* Search Results */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.pagination a:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination .current {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  cursor: default;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(238, 28, 137, 0.3);
  transition: var(--transition);
}

.scroll-to-top.show {
  display: flex;
}

.scroll-to-top:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(238, 28, 137, 0.4);
  transform: translateY(-3px);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section {
    padding: 2rem 0;
  }
  
  .testimonials-carousel {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .testimonial-image img {
    width: 120px;
    height: 120px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
}


/* ==== MAGAZINE === */


/* Magazine Shelf Styling */
.magazines-grid {
  perspective: 1200px;
}

.magazine-item {
  aspect-ratio: 3 / 4;
  min-height: 320px;
}

/* Magazine responsiveness */
@media (max-width: 1024px) {
  .magazines-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .magazines-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
  }

  .magazine-item {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .magazines-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
  }

  .magazine-item {
    min-height: 240px;
  }

  .magazine-item h3 {
    font-size: 0.85rem;
  }
}
