/**
 * SafeSante General Blog Page Styles
 * Based on Elementor Theme Builder Export
 */

/* ========================================
   CSS Variables (inherited from theme)
   ======================================== */
:root {
    --blog-primary: #202B6D;
    --blog-secondary: #435E91;
    --blog-accent: #F75C48;
    --blog-light-blue: #D2ECF6;
    --blog-dark-blue: #131A45;
    --blog-text-light: #E5F2F8;
    --blog-white: #FFFFFF;
    --blog-gray-bg: #F7F7F7;
}

/* ========================================
   Hero Section
   ======================================== */
.blog-hero-section {
    position: relative;
    min-height: 105vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -115px;
    padding-top: 115px;
    background: linear-gradient(180deg, #F0F7FA 0%, #FFFFFF 100%);
}

/* Decorative Elements */
.hero-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-arrow {
    position: absolute;
    top: 140px;
    left: 80px;
    width: 50px;
    height: 70px;
    background: #2F4ACD;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    opacity: 0.9;
}

.deco-wave-top {
    position: absolute;
    top: 100px;
    right: 10%;
    width: 120px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q15 5 30 20 T60 20 T90 20 T120 20' stroke='%23A7DBEE' stroke-width='3' fill='none'/%3E%3C/svg%3E") no-repeat;
    background-size: contain;
}

.deco-wave-right {
    position: absolute;
    top: 50%;
    right: 50px;
    width: 80px;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 100'%3E%3Cpath d='M40 0 Q60 25 40 50 T40 100' stroke='%23A7DBEE' stroke-width='3' fill='none'/%3E%3C/svg%3E") no-repeat;
    background-size: contain;
}

.deco-dots {
    position: absolute;
    bottom: 150px;
    left: 10%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #A7DBEE 3px, transparent 3px);
    background-size: 12px 12px;
}

.deco-star {
    position: absolute;
    bottom: 100px;
    right: 15%;
    width: 20px;
    height: 20px;
    background: #2F4ACD;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px 60px;
}

/* Title with Chevron */
.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.hero-chevron {
    width: 40px;
    height: 50px;
    flex-shrink: 0;
}

.hero-chevron svg {
    width: 100%;
    height: 100%;
}

.blog-hero-title {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--blog-primary);
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0;
}

.blog-hero-subtitle {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #4E585B;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Category Cards */
.blog-category-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--blog-white);
    border: 2px solid #E8EEF2;
    border-radius: 50px;
    padding: 12px 25px 12px 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 320px;
}

.category-card:hover {
    border-color: #A7DBEE;
    box-shadow: 0 8px 25px rgba(47, 74, 205, 0.12);
    transform: translateY(-3px);
}

.card-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card icon backgrounds per category */
.tele-card .card-icon {
    background: linear-gradient(135deg, #E8F4FC 0%, #D2ECF6 100%);
}

.medecin-card .card-icon {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE4C4 100%);
}

.pharma-card .card-icon {
    background: linear-gradient(135deg, #E6F9F0 0%, #C8F0DC 100%);
}

.card-content {
    text-align: left;
    flex: 1;
}

.card-title {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--blog-primary);
    margin: 0 0 4px;
}

.card-description {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #6B7B8A;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Hero */
@media (max-width: 992px) {
    .blog-hero-title {
        font-size: 42px;
    }

    .category-card {
        min-width: 250px;
    }

    .deco-arrow,
    .deco-wave-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .blog-hero-content {
        padding: 60px 20px 40px;
    }

    .hero-title-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .hero-chevron {
        width: 30px;
        height: 40px;
    }

    .blog-hero-title {
        font-size: 36px;
    }

    .blog-hero-subtitle {
        font-size: 16px;
    }

    .blog-category-cards {
        flex-direction: column;
        align-items: center;
    }

    .category-card {
        width: 100%;
        max-width: 350px;
    }

    .hero-decorations {
        display: none;
    }
}

/* ========================================
   Category Sections
   ======================================== */
.blog-category-section {
    padding: 80px 0;
}

.section-container {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Category Header */
.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-title {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 65px;
    font-weight: 600;
    color: var(--blog-primary);
    line-height: 1;
    letter-spacing: -2px;
    margin: 20px 0 0;
}

.category-description {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--blog-secondary);
    line-height: 1.2;
    letter-spacing: -1px;
    max-width: 650px;
    margin: 0 auto 20px;
}

.category-cta-btn {
    display: inline-block;
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--blog-white);
    background: var(--blog-accent);
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    letter-spacing: -1.5px;
    transition: all 0.3s ease;
}

.category-cta-btn:hover {
    background: #e54a36;
    transform: translateY(-2px);
}

/* Light Text (for dark backgrounds) */
.light-text .category-title {
    color: var(--blog-white);
}

.light-text .category-description {
    color: var(--blog-white);
}

/* Section Backgrounds */
.teleconsultation-section {
    background-color: var(--blog-light-blue);
}

.pharmacie-section {
    background-color: var(--blog-primary);
}

.medecin-section {
    background-color: var(--blog-dark-blue);
}

.medecin-section .light-text .category-title,
.medecin-section .light-text .category-description {
    color: var(--blog-text-light);
}

/* ========================================
   Blog Posts Grid
   ======================================== */
.blog-posts-container {
    padding: 40px 0;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Blog Post Card */
.blog-post-card {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-title {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 25px;
    letter-spacing: -1.5px;
    margin: 0 0 15px;
}

.post-title a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Card Variations */
.teleconsultation-card .post-title a {
    color: var(--blog-primary);
}

.teleconsultation-card .post-title a:hover {
    color: var(--blog-accent);
}

.pharmacie-card .post-title a {
    color: var(--blog-white);
}

.pharmacie-card .post-title a:hover {
    color: var(--blog-light-blue);
}

.medecin-card .post-title a {
    color: var(--blog-text-light);
}

.medecin-card .post-title a:hover {
    color: var(--blog-light-blue);
}

/* Read More Link */
.read-more-link {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.teleconsultation-card .read-more-link {
    color: var(--blog-primary);
}

.teleconsultation-card .read-more-link:hover {
    color: var(--blog-accent);
}

.pharmacie-card .read-more-link,
.medecin-card .read-more-link {
    color: var(--blog-white);
}

.pharmacie-card .read-more-link:hover,
.medecin-card .read-more-link:hover {
    color: var(--blog-accent);
}

/* No Posts Message */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 18px;
    color: var(--blog-secondary);
    padding: 40px;
}

.light-text + .blog-posts-container .no-posts {
    color: var(--blog-white);
}

/* ========================================
   Social Media Section
   ======================================== */
.social-section {
    background: linear-gradient(180deg, #202B6D 0%, #2F4ACD 100%);
    padding: 80px 0;
    color: var(--blog-white);
}

.social-section .section-container {
    max-width: 1200px;
}

.social-section .social-header {
    text-align: center;
    margin-bottom: 40px;
}

.social-section .social-title {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 65px;
    font-weight: 600;
    color: var(--blog-white);
    line-height: 1;
    letter-spacing: -2px;
    margin: 0 0 15px;
}

.social-section .social-subtitle {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    max-width: 780px;
    margin: 0 auto;
}

/* Social Profile */
.social-profile {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 50px;
}

.social-profile-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
}

.social-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-profile-info h4 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--blog-white);
    margin-bottom: 8px;
}

.social-profile-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 800px;
}

/* Instagram Grid - Let Smash Balloon handle its own layout */
.instagram-grid {
    width: 100%;
}

.instagram-post {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: rgba(26, 31, 61, 0.8);
    border-radius: 16px;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-post:hover img {
    transform: scale(1.05);
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 31, 61, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    color: var(--blog-white);
    font-size: 1.5rem;
}

/* ========================================
   Footer Spacer
   ======================================== */
.blog-footer-spacer {
    height: 140px;
    background: var(--blog-white);
}

/* ========================================
   Modern Blog Section Styles
   ======================================== */
.blog-modern-section {
    position: relative;
}

/* Section Headers */
.modern-section-header {
    position: relative;
    padding: 80px 20px 60px;
    text-align: center;
    overflow: hidden;
}

.modern-section-header.tele-header {
    background: var(--blog-light-blue);
}

.modern-section-header.pharma-header {
    background: var(--blog-primary);
}

.modern-section-header.medecin-header {
    background: var(--blog-dark-blue);
}

.modern-section-title {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 65px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -2px;
    margin: 0 0 20px;
    position: relative;
    z-index: 2;
    /* Animation */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-section-title.revealed {
    opacity: 1;
    transform: translateY(0);
}

.tele-header .modern-section-title {
    color: var(--blog-primary);
}

.pharma-header .modern-section-title,
.medecin-header .modern-section-title {
    color: var(--blog-white);
}

.modern-section-subtitle {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
    /* Animation */
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.modern-section-subtitle.revealed {
    opacity: 1;
    transform: translateY(0);
}

.tele-header .modern-section-subtitle {
    color: var(--blog-secondary);
}

.pharma-header .modern-section-subtitle,
.medecin-header .modern-section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.modern-section-btn {
    display: inline-block;
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    z-index: 2;
    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
                background 0.3s ease,
                box-shadow 0.3s ease;
}

.modern-section-btn.revealed {
    opacity: 1;
    transform: translateY(0);
}

.tele-header .modern-section-btn {
    background: var(--blog-accent);
    color: var(--blog-white);
}

.pharma-header .modern-section-btn,
.medecin-header .modern-section-btn {
    background: var(--blog-accent);
    color: var(--blog-white);
}

.modern-section-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 92, 72, 0.35);
}

/* Decorative Elements for Headers */

/* Large Arrow on Left */
.modern-section-header .deco-arrow {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 60px;
    height: 120px;
    background: rgba(247, 92, 72, 0.8);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.pharma-header .deco-arrow,
.medecin-header .deco-arrow {
    background: rgba(247, 92, 72, 0.7);
}

/* Large Circles */
.modern-section-header .deco-circle-large {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    border: 2px solid rgba(47, 74, 205, 0.15);
    border-radius: 50%;
}

.pharma-header .deco-circle-large,
.medecin-header .deco-circle-large {
    border-color: rgba(255, 255, 255, 0.12);
}

.modern-section-header .deco-circle-medium {
    position: absolute;
    bottom: -60px;
    left: 5%;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(47, 74, 205, 0.12);
    border-radius: 50%;
}

.pharma-header .deco-circle-medium,
.medecin-header .deco-circle-medium {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Small decorative circles */
.modern-section-header .deco-circle-1 {
    position: absolute;
    top: 30px;
    left: 12%;
    width: 12px;
    height: 12px;
    background: rgba(47, 74, 205, 0.25);
    border-radius: 50%;
}

.modern-section-header .deco-circle-2 {
    position: absolute;
    top: 25%;
    right: 8%;
    width: 8px;
    height: 8px;
    background: rgba(167, 219, 238, 0.6);
    border-radius: 50%;
}

.modern-section-header .deco-circle-3 {
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 10px;
    height: 10px;
    background: rgba(47, 74, 205, 0.2);
    border-radius: 50%;
}

.modern-section-header .deco-circle-4 {
    position: absolute;
    top: 40%;
    left: 8%;
    width: 6px;
    height: 6px;
    background: rgba(247, 92, 72, 0.4);
    border-radius: 50%;
}

.modern-section-header .deco-circle-5 {
    position: absolute;
    top: 15%;
    right: 25%;
    width: 14px;
    height: 14px;
    background: rgba(167, 219, 238, 0.5);
    border-radius: 50%;
}

.modern-section-header .deco-circle-6 {
    position: absolute;
    bottom: 30%;
    left: 20%;
    width: 8px;
    height: 8px;
    background: rgba(47, 74, 205, 0.15);
    border-radius: 50%;
}

.pharma-header .deco-circle-1,
.pharma-header .deco-circle-2,
.pharma-header .deco-circle-3,
.pharma-header .deco-circle-4,
.pharma-header .deco-circle-5,
.pharma-header .deco-circle-6,
.medecin-header .deco-circle-1,
.medecin-header .deco-circle-2,
.medecin-header .deco-circle-3,
.medecin-header .deco-circle-4,
.medecin-header .deco-circle-5,
.medecin-header .deco-circle-6 {
    background: rgba(255, 255, 255, 0.2);
}

/* Wave decorations */
.modern-section-header .deco-wave-1 {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 150px;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 60'%3E%3Cpath d='M0 30 Q20 10 40 30 T80 30 T120 30 T150 30' stroke='%23D2A8A0' stroke-width='2' fill='none' opacity='0.4'/%3E%3C/svg%3E") no-repeat;
    background-size: contain;
}

.modern-section-header .deco-wave-2 {
    position: absolute;
    bottom: 25%;
    left: 3%;
    width: 120px;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50'%3E%3Cpath d='M0 25 Q15 5 30 25 T60 25 T90 25 T120 25' stroke='%23A7DBEE' stroke-width='2' fill='none' opacity='0.5'/%3E%3C/svg%3E") no-repeat;
    background-size: contain;
}

.modern-section-header .deco-wave-vertical {
    position: absolute;
    top: 10%;
    right: 12%;
    width: 60px;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 150'%3E%3Cpath d='M30 0 Q50 20 30 40 T30 80 T30 120 T30 150' stroke='%23A7DBEE' stroke-width='2' fill='none' opacity='0.4'/%3E%3C/svg%3E") no-repeat;
    background-size: contain;
}

.pharma-header .deco-wave-1,
.medecin-header .deco-wave-1 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 60'%3E%3Cpath d='M0 30 Q20 10 40 30 T80 30 T120 30 T150 30' stroke='%23ffffff' stroke-width='2' fill='none' opacity='0.15'/%3E%3C/svg%3E") no-repeat;
    background-size: contain;
}

.pharma-header .deco-wave-2,
.medecin-header .deco-wave-2 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50'%3E%3Cpath d='M0 25 Q15 5 30 25 T60 25 T90 25 T120 25' stroke='%23ffffff' stroke-width='2' fill='none' opacity='0.2'/%3E%3C/svg%3E") no-repeat;
    background-size: contain;
}

.pharma-header .deco-wave-vertical,
.medecin-header .deco-wave-vertical {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 150'%3E%3Cpath d='M30 0 Q50 20 30 40 T30 80 T30 120 T30 150' stroke='%23ffffff' stroke-width='2' fill='none' opacity='0.15'/%3E%3C/svg%3E") no-repeat;
    background-size: contain;
}

/* Dots Pattern */
.modern-section-header .deco-dots {
    position: absolute;
    top: 15%;
    left: 18%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(47, 74, 205, 0.2) 3px, transparent 3px);
    background-size: 14px 14px;
}

.modern-section-header .deco-dots-2 {
    position: absolute;
    bottom: 20%;
    right: 18%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(167, 219, 238, 0.4) 2px, transparent 2px);
    background-size: 10px 10px;
}

.pharma-header .deco-dots,
.pharma-header .deco-dots-2,
.medecin-header .deco-dots,
.medecin-header .deco-dots-2 {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 3px, transparent 3px);
    background-size: 14px 14px;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation for cards */
.reveal-stagger .reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 0.6s; }

/* Cards Wrapper */
.modern-cards-wrapper {
    padding: 0 20px 80px;
}

.modern-cards-wrapper.tele-cards {
    background: var(--blog-light-blue);
}

.modern-cards-wrapper.pharma-cards {
    background: var(--blog-primary);
}

.modern-cards-wrapper.medecin-cards {
    background: var(--blog-dark-blue);
}

/* Cards Grid - 3 columns */
.modern-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Card */
.modern-blog-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Initial state for animation */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
}

.modern-blog-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.modern-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.modern-blog-card.revealed:hover {
    transform: translateY(-8px);
}

.modern-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.modern-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-blog-card:hover .modern-card-image img {
    transform: scale(1.08);
}

.modern-card-content {
    padding: 25px;
}

.modern-card-title {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--blog-primary);
    line-height: 1.4;
    margin: 0 0 15px;
    letter-spacing: -0.5px;
}

.modern-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--blog-white);
    background: var(--blog-accent);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.modern-card-btn:hover {
    background: #e54a36;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 92, 72, 0.35);
    color: var(--blog-white);
}

.modern-card-btn svg {
    transition: transform 0.3s ease;
    stroke: var(--blog-white);
}

.modern-card-btn:hover svg {
    transform: translateX(3px);
}

/* Responsive Modern Cards */
@media (max-width: 1024px) {
    .modern-section-title {
        font-size: 48px;
    }

    .modern-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .modern-section-header {
        padding: 60px 20px 40px;
    }

    .modern-section-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .modern-section-subtitle {
        font-size: 15px;
    }

    .modern-cards-wrapper {
        padding: 40px 15px 60px;
    }

    .modern-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 450px;
    }

    .modern-card-content {
        padding: 20px;
    }

    .modern-card-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .modern-section-title {
        font-size: 28px;
    }

    .modern-section-subtitle {
        font-size: 14px;
    }

    .modern-section-btn {
        font-size: 14px;
        padding: 12px 24px;
    }
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1200px) {
    .blog-hero-content {
        max-width: 85%;
    }

    .section-container {
        max-width: 85%;
    }

    .blog-hero-title,
    .category-title,
    .social-title {
        font-size: 50px;
    }
}

@media (max-width: 992px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-hero-title,
    .category-title,
    .social-title {
        font-size: 45px;
    }

    .blog-hero-subtitle,
    .category-description,
    .social-subtitle {
        font-size: 16px;
    }

    .blog-cat-btn,
    .category-cta-btn {
        font-size: 18px;
        padding: 12px 24px;
    }
}

@media (max-width: 768px) {
    .blog-hero-section {
        margin-top: -80px;
        padding-top: 80px;
    }

    .blog-hero-content {
        max-width: 95%;
        padding: 100px 15px;
    }

    .blog-hero-title,
    .category-title {
        font-size: 28px;
        line-height: 1.1;
    }

    .social-section .social-title {
        font-size: 28px;
    }

    .blog-hero-subtitle,
    .category-description {
        font-size: 14px;
    }

    .social-section .social-subtitle {
        font-size: 14px;
    }

    .blog-category-buttons {
        flex-direction: column;
        align-items: center;
    }

    .blog-cat-btn,
    .category-cta-btn {
        font-size: 16px;
        padding: 12px 24px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-category-section {
        padding: 50px 0;
    }

    .section-container {
        max-width: 95%;
    }

    .post-title {
        font-size: 18px;
        line-height: 22px;
    }

    .social-section {
        padding: 50px 0;
    }

    .social-profile {
        flex-direction: column;
        text-align: center;
    }

    .social-profile-logo {
        width: 80px;
        height: 80px;
    }

    .blog-footer-spacer {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .blog-hero-content {
        padding: 80px 10px;
    }

    .blog-hero-title,
    .category-title {
        font-size: 24px;
    }

    .social-section .social-title {
        font-size: 24px;
    }
}
