/* ============================================================================
   CONTENT STYLES - Article Content (Enhanced Version)
   Живой, притягательный дизайн для контента статей
   ============================================================================ */

/* Main Content Wrapper */
.main-content {
    width: 100%;
    background: #ffffff;
}

/* Article Content Container */
.article-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #2d3748;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

/* Remove top padding from article content that follows casino cards */
.recommended-casinos + .article-content {
    padding-top: 0;
}

@media (max-width: 768px) {
    .article-content {
        padding: 32px 16px;
        font-size: 16px;
    }
}

/* Article Header */
.article-header {
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 4px solid #f59e0b;
    position: relative;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, #1a202c, transparent);
}

.article-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    color: #1a202c;
    margin: 0;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2.2rem;
    }

    .article-header {
        margin-bottom: 40px;
        padding-bottom: 24px;
    }
}

/* Headings - четкая визуальная иерархия */

/* H2 - Основные разделы (КРУПНЫЕ, с акцентом) */
.article-content h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1a202c;
    margin: 64px 0 28px 0;
    padding-left: 20px;
    border-left: 5px solid #f59e0b;
}

/* H3 - Подразделы (средние, с подчеркиванием) */
.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: #2d3748;
    margin: 48px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.article-content h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: #f59e0b;
}

/* H4 - Мелкие подразделы (простые) */
.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: #374151;
    margin: 32px 0 16px 0;
}

@media (max-width: 768px) {
    .article-content h2 {
        font-size: 1.6rem;
        margin: 40px 0 20px 0;
        padding-left: 16px;
        border-left-width: 4px;
    }

    .article-content h3 {
        font-size: 1.35rem;
        margin: 32px 0 16px 0;
    }

    .article-content h4 {
        font-size: 1.15rem;
        margin: 24px 0 12px 0;
    }
}

/* Paragraphs */
.article-content p {
    margin: 0 0 24px 0;
    line-height: 1.9;
    color: #374151;
}

.article-content p:first-of-type {
    font-size: 1.15em;
    line-height: 1.8;
    color: #1f2937;
}

.article-content strong {
    font-weight: 700;
    color: #1a202c;
    background: linear-gradient(to bottom, transparent 50%, rgba(245, 158, 11, 0.2) 50%);
    padding: 2px 4px;
    border-radius: 2px;
}

.article-content em {
    font-style: italic;
    color: #6b7280;
}

/* Links */
.article-content a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.article-content a:hover {
    color: #d97706;
    border-bottom-color: #f59e0b;
    transform: translateY(-1px);
}

/* Lists */
.article-content ul,
.article-content ol,
.article-content .wp-block-list {
    margin: 32px 0;
    padding-left: 0;
    list-style: none;
}

.article-content ul li,
.article-content .wp-block-list li {
    margin-bottom: 16px;
    padding-left: 40px;
    position: relative;
    line-height: 1.8;
    transition: all 0.3s ease;
}

.article-content ul li::before,
.article-content .wp-block-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.article-content ul li:hover {
    transform: translateX(4px);
}

.article-content ol {
    counter-reset: list-counter;
    padding-left: 0;
}

.article-content ol li {
    margin-bottom: 16px;
    padding-left: 50px;
    position: relative;
    counter-increment: list-counter;
    line-height: 1.8;
}

.article-content ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Nested lists */
.article-content ul ul,
.article-content ol ol {
    margin: 16px 0;
}

@media (max-width: 768px) {
    .article-content ul,
    .article-content ol,
    .article-content .wp-block-list {
        padding-left: 0;
    }
}

/* Tables */
.article-content .wp-block-table {
    margin: 48px 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    background: white;
    overflow: hidden;
}

.article-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    border-radius: 12px;
}

.article-content .wp-block-table th,
.article-content .wp-block-table td {
    padding: 18px 24px;
    text-align: left;
}

/* Стили для th элементов (настоящие заголовки) */
.article-content .wp-block-table th {
    background: #ffffff;
    color: #1a202c;
    font-weight: 700;
    text-transform: none;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: inset 0 2px 0 0 #f59e0b, inset 0 -2px 0 0 #f59e0b, inset -2px 0 0 0 #f59e0b;
    position: relative;
    padding: 18px 24px;
}

.article-content .wp-block-table th:first-child {
    box-shadow: inset 0 2px 0 0 #f59e0b, inset 0 -2px 0 0 #f59e0b, inset 2px 0 0 0 #f59e0b, inset -2px 0 0 0 #f59e0b;
    border-top-left-radius: 12px;
}

.article-content .wp-block-table th:last-child {
    border-top-right-radius: 12px;
}

/* Стили для первой строки td только для таблиц БЕЗ thead */
.article-content .wp-block-table:not(:has(thead)) tbody tr:first-child td {
    background: #ffffff;
    color: #1a202c;
    font-weight: 700;
    text-transform: none;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: inset 0 2px 0 0 #f59e0b, inset 0 -2px 0 0 #f59e0b, inset -2px 0 0 0 #f59e0b;
    position: relative;
    padding: 18px 24px;
}

/* Первая ячейка шапки - с левой границей (только для таблиц без thead) */
.article-content .wp-block-table:not(:has(thead)) tbody tr:first-child td:first-child {
    box-shadow: inset 0 2px 0 0 #f59e0b, inset 0 -2px 0 0 #f59e0b, inset 2px 0 0 0 #f59e0b, inset -2px 0 0 0 #f59e0b;
    border-top-left-radius: 12px;
}

/* Последняя ячейка шапки (только для таблиц без thead) */
.article-content .wp-block-table:not(:has(thead)) tbody tr:first-child td:last-child {
    border-top-right-radius: 12px;
}

/* Скругление углов для последней строки */
.article-content .wp-block-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.article-content .wp-block-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Strong элементы в заголовках таблиц без thead */
.article-content .wp-block-table:not(:has(thead)) tbody tr:first-child td strong {
    color: #1a202c;
    background: none;
    padding: 0;
    font-weight: 700;
}

.article-content .wp-block-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.article-content .wp-block-table tbody tr:nth-child(odd) {
    background: #f9fafb;
}

/* Не применяем odd/even к первой строке таблиц без thead (это заголовок) */
.article-content .wp-block-table:not(:has(thead)) tbody tr:first-child {
    background: #ffffff !important;
}

.article-content .wp-block-table tbody tr:hover {
    background: linear-gradient(to right, rgba(245, 158, 11, 0.08), transparent);
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Ховер для первой строки только для таблиц без thead */
.article-content .wp-block-table:not(:has(thead)) tbody tr:first-child:hover {
    background: #ffffff;
    transform: none;
    box-shadow: none;
}

.article-content .wp-block-table:not(:has(thead)) tbody tr:first-child:hover td {
    box-shadow: inset 0 2px 0 0 #f59e0b, inset 0 -2px 0 0 #f59e0b, inset -2px 0 0 0 #f59e0b;
}

.article-content .wp-block-table:not(:has(thead)) tbody tr:first-child:hover td:first-child {
    box-shadow: inset 0 2px 0 0 #f59e0b, inset 0 -2px 0 0 #f59e0b, inset 2px 0 0 0 #f59e0b, inset -2px 0 0 0 #f59e0b;
}

/* Сохранение скругленных углов при наведении */
.article-content .wp-block-table tbody tr:hover td:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.article-content .wp-block-table tbody tr:hover td:last-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.article-content .wp-block-table tbody tr:first-child:hover td:first-child {
    border-top-left-radius: 12px;
}

.article-content .wp-block-table tbody tr:first-child:hover td:last-child {
    border-top-right-radius: 12px;
}

.article-content .wp-block-table tbody tr:last-child:hover td:first-child {
    border-bottom-left-radius: 12px;
}

.article-content .wp-block-table tbody tr:last-child:hover td:last-child {
    border-bottom-right-radius: 12px;
}

.article-content .wp-block-table td {
    color: #374151;
    border: none;
}

.article-content .wp-block-table td strong {
    color: #1a202c;
    font-weight: 700;
    background: none;
    padding: 0;
}

/* Scrollbar for tables */
.article-content .wp-block-table::-webkit-scrollbar {
    height: 10px;
}

.article-content .wp-block-table::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 5px;
}

.article-content .wp-block-table::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, #f59e0b, #fbbf24);
    border-radius: 5px;
}

.article-content .wp-block-table::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to right, #d97706, #f59e0b);
}

@media (max-width: 768px) {
    .article-content .wp-block-table {
        margin: 32px 0;
        border-radius: 0;
        position: relative;
        overflow-x: auto;
    }

    .article-content .wp-block-table table {
        min-width: 600px;
    }

    /* Индикатор прокрутки на последней строке */
    .article-content .wp-block-table::after {
        content: '← Deslizar →';
        position: absolute;
        bottom: 12px;
        right: 16px;
        padding: 8px 20px;
        background: rgba(245, 158, 11, 0.5);
        color: white;
        font-size: 0.8em;
        font-weight: 700;
        border-radius: 16px;
        pointer-events: none;
        animation: scrollPulse 2s ease-in-out infinite;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    }

    .article-content .wp-block-table th,
    .article-content .wp-block-table td {
        padding: 14px 16px;
        font-size: 0.9em;
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}


/* Images */
.article-content .wp-block-image {
    margin: 48px 0;
    text-align: center;
}

.article-content .wp-block-image.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-content .wp-block-image figure {
    margin: 0 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    display: inline-block;
    max-width: 100%;
}

.article-content .wp-block-image figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.article-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: all 0.4s ease;
}

.article-content .wp-block-image figure:hover img {
    transform: scale(1.03);
}

.article-content .wp-block-image figcaption {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    padding: 12px 20px;
    background: linear-gradient(to right, rgba(245, 158, 11, 0.08), transparent);
    border-left: 3px solid #f59e0b;
    border-radius: 0 8px 8px 0;
}

/* Blockquotes */
.article-content blockquote {
    margin: 48px 0;
    padding: 28px 32px 28px 60px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 6px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #78350f;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
    position: relative;
    font-size: 1.1em;
    line-height: 1.8;
}

.article-content blockquote::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2em;
    color: rgba(245, 158, 11, 0.3);
    font-style: normal;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .article-content blockquote {
        margin: 32px 0;
        padding: 20px 24px;
        font-size: 1em;
    }
}

/* Code blocks */
.article-content code {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
    font-size: 0.9em;
    color: #d97706;
    border: 1px solid #d1d5db;
    font-weight: 500;
}

.article-content pre {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 32px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    border: none;
    font-size: 0.95em;
}

/* Horizontal Rule */
.article-content hr {
    margin: 64px 0;
    border: none;
    height: 3px;
    background: linear-gradient(to right, transparent, #f59e0b, transparent);
    border-radius: 2px;
}

/* Special Info Boxes */
.article-content .info-box {
    margin: 32px 0;
    padding: 24px 24px 24px 56px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 6px solid #3b82f6;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    position: relative;
}

.article-content .info-box::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 24px;
    color: #3b82f6;
    font-size: 1.5em;
}

.article-content .warning-box {
    margin: 32px 0;
    padding: 24px 24px 24px 56px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 6px solid #ef4444;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
    position: relative;
}

.article-content .warning-box::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 24px;
    color: #ef4444;
    font-size: 1.5em;
}

.article-content .success-box {
    margin: 32px 0;
    padding: 24px 24px 24px 56px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 6px solid #10b981;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
    position: relative;
}

.article-content .success-box::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 24px;
    color: #10b981;
    font-size: 1.5em;
}

/* Entry div wrapper */
.article-content .entry {
    all: unset;
    display: block;
}

/* Utility classes */
.article-content .alignleft {
    float: left;
    margin: 8px 32px 24px 0;
}

.article-content .alignright {
    float: right;
    margin: 8px 0 24px 32px;
}

.article-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .article-content .alignleft,
    .article-content .alignright {
        float: none;
        margin: 24px auto;
        display: block;
    }
}

/* Clear floats */
.article-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Smooth animations */
.article-content h2,
.article-content h3,
.article-content h4,
.article-content p,
.article-content ul li,
.article-content ol li,
.article-content .wp-block-image,
.article-content blockquote {
    animation: fadeInUp 0.6s ease-out;
}

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

/* CTA Buttons - Jugar Ahora and similar action buttons */
.article-content .wp-block-buttons {
    margin: 40px 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.article-content .wp-block-button {
    margin: 0;
}

.article-content .wp-block-button__link,
.article-content a.cta-button {
    display: inline-block;
    text-align: center;
    padding: 20px 48px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

/* Glass shine effect */
.article-content .wp-block-button__link::before,
.article-content a.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: glassShine 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes glassShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* All CTA buttons - blue gradient with white text and orange highlight */
.article-content .wp-block-button__link,
.article-content a.cta-button {
    background: linear-gradient(135deg, #3002b2 0%, #5833c0 100%) !important;
    color: #ffffff !important;
}

/* Ensure text is above glass effect */
.article-content .wp-block-button__link > *,
.article-content a.cta-button > * {
    position: relative;
    z-index: 2;
}

.article-content .wp-block-button__link *,
.article-content a.cta-button * {
    color: #ffffff !important;
    background: linear-gradient(to bottom, transparent 50%, rgba(245, 158, 11, 0.25) 50%);
    padding: 2px 4px;
    border-radius: 2px;
    position: relative;
}

/* Add exclamation marks */
.article-content .wp-block-button__link strong::before,
.article-content a.cta-button strong::before {
    content: '¡';
    color: #f59e0b;
    font-weight: 900;
    margin-right: 4px;
}

.article-content .wp-block-button__link strong::after,
.article-content a.cta-button strong::after {
    content: '!';
    color: #f59e0b;
    font-weight: 900;
    margin-left: 4px;
}


/* Animated arrow */
.article-content .wp-block-button__link::after,
.article-content a.cta-button::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 12px;
    display: inline-block;
    animation: arrowSlide 1.5s ease-in-out infinite;
}

@keyframes arrowSlide {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(6px);
        opacity: 0.7;
    }
}

.article-content .wp-block-button__link i,
.article-content a.cta-button i {
    margin-right: 8px;
    font-size: 18px;
}

/* Hover effects for all buttons */
.article-content .wp-block-button__link:hover,
.article-content a.cta-button:hover {
    background: linear-gradient(135deg, #22027e 0%, #3002b2 100%) !important;
    box-shadow: 0 8px 28px rgba(118, 95, 245, 0.5);
    transform: translateY(-3px);
}

.article-content .wp-block-button__link:active,
.article-content a.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(118, 95, 245, 0.3);
}

/* Secondary button style */
.article-content .wp-block-button.is-style-outline .wp-block-button__link,
.article-content a.cta-button.secondary {
    background: transparent;
    color: var(--primary-70) !important;
    border: 2px solid var(--primary-60);
    box-shadow: none;
}

.article-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.article-content a.cta-button.secondary:hover {
    background: var(--primary-10);
    border-color: var(--primary-70);
    transform: translateY(-2px);
}

/* Centered button wrapper */
.article-content .button-wrapper {
    text-align: center;
    margin: 40px 0;
}

/* Desktop - smaller font */
@media (min-width: 769px) {
    .article-content .wp-block-button__link,
    .article-content a.cta-button {
        font-size: 20px;
    }
}

/* Mobile - bigger font */
@media (max-width: 768px) {
    .article-content .wp-block-button__link,
    .article-content a.cta-button {
        width: 100%;
        padding: 18px 32px;
        font-size: 29px;
    }

    .article-content .wp-block-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

/* Callout blocks - highlighted paragraphs with background */
.article-content p.has-background[style*="background-color"] {
    background: linear-gradient(135deg, rgba(48, 2, 178, 0.08), rgba(88, 51, 192, 0.05)) !important;
    border-left: 4px solid #3002b2;
    border-radius: 12px;
    padding: 20px 24px 20px 60px !important;
    margin: 32px 0 !important;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    color: #1f2937 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* Add icon before callout text */
.article-content p.has-background[style*="background-color"]::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #3002b2;
    opacity: 0.8;
}

/* Print styles */
@media print {
    .article-content {
        background: white;
        padding: 0;
    }

    .article-header {
        background: white;
        box-shadow: none;
    }

    .article-title {
        color: black;
    }
}


/* Author Bio Section - Card Style */
/* Clean card container with shadow */
.article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) {
    margin: 60px 0 40px 0 !important;
    padding: 0 !important;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]):hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* Heading bar - colored top section */
.article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"])::before {
    content: 'Sobre el Autor';
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #3002b2 0%, #5833c0 100%);
    padding: 20px 32px;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Inner content wrapper */
.article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) .kt-row-column-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 32px;
}

.article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) .wp-block-kadence-column {
    flex: 0 0 auto;
}

/* Photo column - circular avatar */
.article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) .wp-block-kadence-column:first-child {
    flex: 0 0 140px;
}

/* Text column - takes remaining space */
.article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) .wp-block-kadence-column:last-child {
    flex: 1 1 auto;
}

/* Circular author photo */
.article-content .wp-block-kadence-image figure img[src*="profile-pic"] {
    max-width: 140px !important;
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 5px solid #f3f4f6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-content .wp-block-kadence-image figure img[src*="profile-pic"]:hover {
    transform: scale(1.05);
}

/* Author name styling */
.article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) h4 {
    color: #1f2937 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.2 !important;
}

/* Author bio text */
.article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) p {
    color: #4b5563 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 0 12px 0 !important;
}

.article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) p:last-of-type {
    margin-bottom: 16px !important;
}

/* Hide checkmark/icon from social links */
.article-content .wp-block-social-links,
.article-content .wp-block-social-links ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.article-content .wp-block-social-links li,
.article-content .wp-social-link {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.article-content .wp-block-social-links li::before,
.article-content .wp-block-social-links li::after,
.article-content .wp-social-link::before,
.article-content .wp-social-link::after {
    display: none !important;
    content: none !important;
}

.article-content .wp-block-social-links svg,
.article-content .wp-block-social-link svg {
    display: none !important;
}

/* Style social link - clean button */
.article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) .wp-block-social-link-label {
    padding: 10px 20px 10px 44px !important;
    background: linear-gradient(135deg, #3002b2 0%, #5833c0 100%) !important;
    border-radius: 8px !important;
    border: none !important;
    display: inline-block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

/* Add email icon before label */
.article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) .wp-social-link-mail .wp-block-social-link-label::before {
    content: '\f0e0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #ffffff;
}

.article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) .wp-block-social-link a:hover .wp-block-social-link-label {
    background: linear-gradient(135deg, #22027e 0%, #3002b2 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 2, 178, 0.3);
}

/* Mobile - responsive card design */
@media (max-width: 768px) {
    .article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) {
        margin: 40px 0 30px 0 !important;
    }

    .article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"])::before {
        font-size: 16px;
        padding: 16px 20px;
    }

    /* Stack vertically on mobile: photo top, text bottom */
    .article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) .kt-row-column-wrap {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 24px 20px;
    }

    .article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) .wp-block-kadence-column:first-child {
        flex: 0 0 auto;
    }

    .article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) .wp-block-kadence-column:last-child {
        text-align: center;
    }

    /* Smaller circular photo on mobile */
    .article-content .wp-block-kadence-image figure img[src*="profile-pic"] {
        max-width: 120px !important;
        width: 120px !important;
        height: 120px !important;
    }

    /* Author name smaller on mobile */
    .article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) h4 {
        font-size: 24px !important;
        text-align: center !important;
    }

    /* Bio text smaller on mobile */
    .article-content .kb-row-layout-wrap.aligncenter:has(img[src*="profile-pic"]) p {
        font-size: 14px !important;
        text-align: center !important;
    }
}
