:root {
    --primary-color: #0A192F;
    --accent-color: #C5A879;
    --text-color: #333;
    --bg-color: #F0F2F5;
}

/* Reset & Box Model */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    line-height: 1.2;
}

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

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

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 10px 0;
    z-index: 1000;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    height: 70px;
}

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

/* Menu horizontal sur le bureau (styles par défaut) */
.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav li a {
    color: #fff;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav li a:hover {
    color: var(--accent-color);
}

/* Styles pour le menu hamburger (initialement masqués) */
.hamburger-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle {
    display: none;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.7)), url('images/votre-image-hero.webp') no-repeat center center/cover;
    background-attachment: fixed;
}

#hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* General Sections */
section {
    padding: 100px 0;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

/* About Section */
#about {
    background-color: var(--bg-color);
}

#about .about-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

#about .about-content img {
    width: 300px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#about .text-content {
    flex: 1;
}

#about h2 {
    text-align: center;
    margin-bottom: 40px;
}

#about p {
    margin-bottom: 15px;
}

/* Skills Section */
.intro-skills {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-style: italic;
    color: #666;
}

.grid-skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out, background-color 0.4s ease, border 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 3px solid transparent;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.skill-card.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}
.skill-card.active h3 {
    color: #fff;
}

.skill-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 15px;
}

.full-width-content-wrapper {
    grid-column: 1 / -1;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.6s ease-in-out, margin-top 0.6s ease;
    margin-top: 0;
}

.full-width-content-wrapper.active {
    max-height: 800px;
    margin-top: 30px;
}

.full-width-content {
    background-color: var(--primary-color);
    color: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.full-width-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.full-width-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}
.full-width-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Clients Section */
#clients {
    background-color: var(--bg-color);
    text-align: center;
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.client-logo {
    display: inline-block;
    width: 150px; /* Taille fixe pour les logos */
    height: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

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

/* Contact Section */
#contact {
    background-color: var(--primary-color);
    color: #fff;
    padding: 100px 0;
}
#contact h2 {
    color: #fff;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.contact-form input, 
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}
.contact-form select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23C5A879" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}
.contact-form select option {
    background-color: var(--primary-color);
    color: #fff;
}
.contact-form label {
    display: none;
}
.contact-form textarea {
    min-height: 150px;
}
.contact-form .btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Footer */
#footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 40px 0;
}
#footer a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}
#footer a:hover {
    color: #fff;
    border-bottom-color: var(--accent-color);
}

/* Media Queries pour le responsive */
@media (max-width: 768px) {
    /* Corrections pour éviter le défilement horizontal */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    section {
        max-width: 100%;
        overflow-x: hidden;
    }

    #hero {
        background-attachment: scroll;
        min-height: 100vh;
        height: auto;
    }

    /* Styles pour la section À propos */
    #about .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #about .about-content img {
        margin-bottom: 20px;
    }

    /* Styles pour le menu hamburger sur les appareils mobiles */
    .hamburger-icon {
        display: flex;
    }
    .nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(10, 25, 47, 0.95);
        justify-content: center;
        align-items: center;
        transition: transform 0.4s ease-in-out;
        transform: translateX(100%);
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
    }

    .nav li {
        margin: 20px 0;
    }

    .nav li a {
        font-size: 1.5rem;
    }

    .menu-toggle:checked ~ .nav {
        display: flex;
        transform: translateX(0);
    }
    
    .menu-toggle:checked + .hamburger-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle:checked + .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked + .hamburger-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Ajustements généraux */
    #header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    section {
        padding: 60px 0;
    }
    .grid-skills {
        grid-template-columns: 1fr;
    }
    .skill-card {
        padding: 20px;
    }
}

#publications {
    background-color: var(--bg-color);
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.voir-plus-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

.voir-plus-btn {
    font-size: 0.95rem;
    padding: 12px 24px;
}

.article-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 550px;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Badges pour les articles */
.article-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.popular-badge, .new-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.popular-badge {
    background-color: #ff6b6b;
    color: white;
}

.new-badge {
    background-color: #51cf66;
    color: white;
}

/* Tag de catégorie */
.article-category-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 15px;
    margin-bottom: 15px;
    align-self: flex-start;
}

/* Statistiques des articles */
.article-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.article-date, .article-views {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    gap: 15px;
    font-size: 0.85rem;
    color: #999;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.read-more-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #d8c29e;
}

/* Specific styles for the "Honoraires" page */
.hero-section {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('images/hero_honoraires.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    margin-top: 90px;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1.1rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
}

.main-content {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

.service-card {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.service-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    line-height: 1;
}

.service-title {
    font-size: 1.8rem;
    margin: 0;
}

.service-price {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    flex-grow: 1;
}

.service-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 2px;
}

.btn.btn-secondary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn.btn-secondary:hover {
    background-color: #1a3250;
    transform: translateY(-5px);
}

.consultation-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out;
}

.consultation-form.active {
    max-height: 1000px; /* Grande valeur pour permettre l'expansion */
    margin-top: 30px;
}

.consultation-form h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.consultation-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.calendar-container {
    max-width: 400px;
    margin: 20px auto;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-slot {
    padding: 10px 15px;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    cursor: pointer;
    background-color: #fff;
    color: var(--accent-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.time-slot:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.time-slot.selected {
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 600;
    border-color: var(--primary-color);
}

.success-message {
    background-color: #e6f7e9;
    color: #2e7d32;
    border: 1px solid #a3d9a3;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    display: none;
}

.success-message.show {
    display: block;
}

.info-section {
    background-color: var(--bg-color);
    padding: 80px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Responsive adjustments for Honoraires page */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .form-row .form-group {
        margin-bottom: 0;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Nouvelles règles pour le formulaire plein écran */
.full-width-form-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 30px;
    background-color: transparent;
    border-radius: 10px;
    grid-column: 1 / -1;
}

.full-width-form-container.active {
    max-height: 1200px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.form-card {
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}
.close-btn:hover {
    color: var(--accent-color);
}
.form-header-container {
    background-color: var(--primary-color);
    color: #fff;
    padding: 40px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    position: relative;
}
.form-header-container .close-btn {
    color: #fff;
    right: 20px;
}
.form-header-container .close-btn:hover {
    color: var(--accent-color);
}
.form-title {
    color: #fff;
    text-align: center;
    margin: 0;
    font-size: 2rem;
}
.form-card form {
    padding: 40px;
}


/* Styles pour le nouveau calendrier */
.calendar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.calendar-nav .nav-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent-color);
}

.calendar-nav span {
    font-size: 1.2rem;
    font-weight: 600;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-day {
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    color: #555;
}

.calendar-day.empty {
    visibility: hidden;
}

.calendar-day:hover {
    background-color: var(--bg-color);
}

.calendar-day.selected {
    background-color: var(--accent-color);
    color: #fff;
}

.calendar-day.disabled {
    background-color: #eee;
    color: #aaa;
    cursor: not-allowed;
}

/* Ajustement des styles pour les créneaux horaires */
.time-slots {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

/* ============================================
   ANIMATIONS POUR LES MESSAGES DE FORMULAIRE
   ============================================ */

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

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

/* Messages de succès et d'erreur */
.form-success-message,
.form-error-message {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-success-message strong,
.form-error-message strong {
    display: block;
}

/* Responsive pour les messages */
@media (max-width: 768px) {
    .form-success-message,
    .form-error-message {
        padding: 15px !important;
        font-size: 0.9rem !important;
    }

    .form-success-message div:first-child,
    .form-error-message div:first-child {
        font-size: 2rem !important;
    }
}
/* Article Footer Section - Redesigned */
.article-cta-section {
  margin: 4rem 0 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.article-cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.article-cta-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.article-cta-section h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.article-cta-section p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

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

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

.cta-btn-primary:hover {
  background: #152943;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 25, 47, 0.3);
}

.cta-btn-secondary {
  background: #fff;
  color: var(--primary-color);
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cta-btn-secondary:hover {
  background: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 168, 121, 0.3);
}

.cta-divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: #999;
  font-size: 0.9rem;
}

.cta-divider::before,
.cta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}

.cta-divider::before {
  margin-right: 1rem;
}

.cta-divider::after {
  margin-left: 1rem;
}

/* Navigation Footer */
.article-navigation-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.back-to-articles-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.back-to-articles-new:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateX(-3px);
}

.share-article {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.share-article span {
  color: #666;
  font-size: 0.95rem;
  font-weight: 500;
}

.share-links {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f8f9fa;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.share-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

/* Related Articles - Redesigned */
.related-articles-new {
  margin: 3rem 0;
  padding: 2.5rem;
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.related-articles-new h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-articles-new h3::before {
  content: '📚';
  font-size: 1.8rem;
}

.related-links-grid {
  display: grid;
  gap: 1rem;
}

.related-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--primary-color);
  border: 2px solid transparent;
}

.related-link-item:hover {
  background: #fff;
  border-color: var(--accent-color);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.related-link-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  flex-shrink: 0;
}

.related-link-text {
  font-weight: 500;
  flex: 1;
}

@media (max-width: 768px) {
  .article-cta-section {
    padding: 2rem 1.5rem;
  }
  
  .article-cta-section h3 {
    font-size: 1.5rem;
  }
  
  .cta-buttons-grid {
    grid-template-columns: 1fr;
  }
  
  .article-navigation-footer {
    flex-direction: column;
    align-items: stretch;
  }
  
  .back-to-articles-new,
  .share-article {
    width: 100%;
    justify-content: center;
  }
  
  .related-articles-new {
    padding: 1.5rem;
  }
}

/* Meta category inline style */
.meta-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-weight: 400;
    font-size: 0.85rem;
}

.meta-category .meta-icon {
    font-size: 1rem;
}

/* Back button at top */
.back-button-top {
    margin: 2rem 0;
}

/* Back button at bottom */
.back-button-bottom {
    margin: 3rem 0 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

/* Category filter message */
.category-filter-message {
    background: linear-gradient(135deg, var(--primary-color), #152943);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-filter-message p {
    margin: 0;
    font-size: 1.05rem;
}

.category-filter-message strong {
    color: var(--accent-color);
    font-weight: 600;
}

.clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.clear-filter:hover {
    background: rgba(255,255,255,0.25);
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .category-filter-message {
        flex-direction: column;
        text-align: center;
    }
}

/* Active navigation item */
.nav li a.active {
    color: var(--accent-color);
    font-weight: 600;
}



/* Dynamic Category Filters */
.category-filters {
    margin: 2rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.category-filters h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Poppins, sans-serif;
}

.category-btn:hover {
    background: #e9ecef;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

@media (max-width: 768px) {
    .category-filters {
        padding: 1.5rem;
    }
    
    .category-buttons {
        gap: 0.75rem;
    }
    
    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}
