/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --light-background: #f3f4f6;
    --border-color: #e5e7eb;
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

/* Post Title Styling */
.post-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2c3e50;
    text-align: center;
    margin: 40px 0 50px 0;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem; /* Estandarizar espacio entre párrafos */
    line-height: 1.7;
}

/* Estandarizar espacio entre párrafos en artículos */
.article-content p,
#articleBodyContent p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Espacio consistente después de imágenes y vídeos */
.article-content img,
.article-content iframe,
#articleBodyContent img,
#articleBodyContent iframe {
    margin: 1.5rem 0;
}

/* Espacio después de títulos */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
#articleBodyContent h1,
#articleBodyContent h2,
#articleBodyContent h3,
#articleBodyContent h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: #ffffff;
    color: #374151;
    border: 2px solid #000000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    padding: 1.125rem 2.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: inline-block;
    text-align: center;
    margin-left: 0;
    margin-right: auto;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #333333;
    background-color: #f8fafc;
}

.article-contact {
    display: flex;
    justify-content: flex-start;
    margin: 2rem 0;
}

.btn-secondary {
    background-color: var(--light-background);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* Header */
.header-wrapper {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    position: relative;
    min-height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    margin-right: 40px;
}

.logo-image {
    height: 75px;
    width: auto;
    transition: transform 0.3s ease;
    margin-top: -2px;
    margin-bottom: -2px;
}

.logo-text {
    margin-left: 10px;
    margin-top: 5px;
}

.logo-title {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 24px;
    line-height: 1.1;
    color: #000;
    margin: 0;
    margin-bottom: 3px;
}

.logo-subtitle {
    font-family: 'Arial', sans-serif;
    font-style: italic;
    font-size: 12px;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item-memoriam {
    margin-top: 0px;
    position: relative;
    top: 0px;
    white-space: nowrap;
}

.nav-item {
    margin: 0 8px;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
    line-height: normal;
    white-space: nowrap;
}

.nav-link:hover {
    color: #000;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.search-container {
    margin-left: 15px;
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.search-toggle svg {
    width: 18px;
    height: 18px;
    fill: #333;
    transition: fill 0.3s ease, transform 0.3s ease;
}

.search-toggle:hover svg {
    fill: #000;
    transform: scale(1.1);
}

.search-form {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px;
    display: none;
    z-index: 100;
    flex-direction: row;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-form.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.search-input {
    width: 70%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    margin-bottom: 0;
    height: 42px;
    border-right: none;
    vertical-align: middle;
    line-height: 20px;
}

.search-input::placeholder {
    color: #999;
    vertical-align: middle;
}

.search-btn {
    width: 30%;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-left: 0;
    height: 42px;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    border-radius: 2px;
}

/* Animación del botón hamburguesa cuando está activo */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Ocultar buscador móvil en desktop */
.search-item-mobile {
    display: none;
}

@media (max-width: 992px) {
    .main-nav {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 15px;
        z-index: 100;
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .search-container {
        display: none;
    }
    .search-item-mobile {
        display: block;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    .search-form-mobile {
        position: relative;
        display: flex;
        width: 100%;
        transform: none;
        opacity: 1;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 65px;
    }
    .logo-title {
        font-size: 20px;
    }
    .logo-subtitle {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .search-form {
        width: 200px;
    }
    .logo-image {
        height: 55px;
    }
}

/* Main Content */
.main {
    margin-top: var(--header-height);
    padding: 2rem 0;
}

/* Articles Section */
.articles {
    padding: 2rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article-card {
    background-color: var(--background);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.article-content a {
    color: var(--text-color);
}

.article-content a:hover {
    color: var(--primary-color);
}

.load-more {
    text-align: center;
    margin-top: 2rem;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--light-background);
    padding: 4rem 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* Footer mejorado - basado en el diseño proporcionado */
.footer {
    background-color: #f5f5f5;
    padding: 1.5rem 5%;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    margin: 10px 10px 0 10px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Brand section */
.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand-text {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
    margin-right: 20px;
}

.cc-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cc-license {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.by-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.cc-license:hover .cc-icon,
.cc-license:hover .by-icon {
    transform: scale(1.1);
}

/* Cookie link */
.cookie-link {
    color: #333;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cookie-link:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #999;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.cookie-link:hover:after {
    transform: scaleX(1);
}

.cookie-link:hover {
    color: #999;
}

/* Social icons section */
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Bordes redondos para Linktree */
.social-icon[aria-label="Linktree"] img {
    border-radius: 8px;
}

/* Tamaño específico para el icono de X para que sea igual al resto */
.social-icon[aria-label="X (Twitter)"] img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Contribution section */
.footer-contribution {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contribution-text {
    font-size: 0.95rem;
    color: #333;
    white-space: nowrap;
    font-weight: 500;
}

.contribution-logo {
    max-width: 130px;
    transition: transform 0.3s ease;
}

.contribution-logo:hover {
    transform: scale(1.05);
}

/* Credits section - subtle and elegant */
.footer-credits {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.credits-text {
    font-size: 0.8rem;
    color: #666;
    font-weight: 300;
}

.credits-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.credits-link:hover {
    color: #333;
}

.credits-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background-color: #666;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.credits-link:hover::after {
    width: 100%;
}

/* Responsive styles */
@media (max-width: 1280px) {
    .footer-container {
        justify-content: center;
    }
}

@media (max-width: 997px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-social {
        order: 2;
    }
    
    .footer-contribution {
        order: 3;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .footer-brand {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-brand-text {
        margin-right: 0;
    }
    
    .credits-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 568px) {
    .footer {
        padding: 1.5rem 3%;
        margin: 10px 3px 0 3px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 320px) {
    .cc-icons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer {
        padding: 1.5rem 3%;
        margin: 10px 3px 0 3px;
    }
    
    .credits-text {
        font-size: 0.7rem;
    }
}

/* Page Hero */
.page-hero {
    background-color: var(--light-background);
    padding: 4rem 0;
    text-align: center;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* About Content */
.about-content {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.content-main {
    max-width: 800px;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background-color: var(--light-background);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.support-card {
    background-color: var(--light-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.support-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--background);
        padding: 2rem;
        transition: var(--transition);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .search-container {
        display: none;
    }

    .newsletter-form {
        flex-direction: column;
    }
    
    /* Asegurar scroll completo en tablets y móviles */
    body {
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    html {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .article-content {
        padding: 1.25rem;
    }
    
    .article-content h3 {
        font-size: 1.15rem;
        line-height: 1.4;
        font-weight: 600;
        color: #1f2937;
    }
}

@media (max-width: 600px) {
    .articles {
        padding: 1.5rem 0;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .article-card {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        font-weight: 600;
        color: #1f2937;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .article-card {
        margin: 0 auto;
        max-width: 100%;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    }
    
    .article-content {
        padding: 1.25rem;
    }
    
    .article-content h3 {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #1f2937;
    }
    
    .article-image {
        padding-top: 60%; /* Slightly less height on mobile */
    }

    .support-buttons {
        flex-direction: column;
    }
    
    /* Asegurar scroll completo en móvil */
    body {
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    html {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Evitar que elementos fixed bloqueen el scroll */
    .nav-menu {
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
}

/* Add styles for featured article */
.featured-article {
    padding: 2rem 0;
    background-color: var(--light-background);
}

.featured-article-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.featured-article-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.featured-article-content h2 {
    margin-bottom: 1rem;
}

.featured-article-content h2 a {
    color: var(--text-color);
    text-decoration: none;
}

.featured-article-content h2 a:hover {
    color: var(--primary-color);
}

.featured-article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Article page styles */
.article-hero {
    background-color: var(--light-background);
    padding: 3rem 0;
    text-align: center;
}

.article-hero-content h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* 🔒 Asegurar que fecha y tiempo de lectura tengan EXACTAMENTE el mismo tamaño y estilo */
.article-meta .meta-date,
.article-meta .meta-reading-time,
.article-meta .article-date,
.article-meta .article-read-time,
.article-card .article-meta .article-date,
.article-card .article-meta .article-read-time {
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    display: inline;
}

.article-last-updated {
    font-size: 0.9rem;
    color: var(--light-text);
    opacity: 0.8;
}

.article-image-full {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.article-image-full img {
    width: 100%;
    max-width: 1920px;
    height: auto;
    max-height: 1080px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
}

.image-caption {
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.article-content-wrapper {
    padding: 2rem 0 4rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Images inside article content styled like blog manager */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    display: block;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    font-size: 1.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #374151;
    font-weight: 400;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-image {
    margin: 2rem 0;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.article-contact {
    margin: 3rem 0;
    text-align: center;
}

.article-related {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.article-related h3 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.related-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.related-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.related-article a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    height: 100%;
}

.related-article-content {
    padding: 1.5rem;
}

.related-article h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-article:hover h4 {
    color: var(--primary-color);
}

.related-article p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-hero-content h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .related-articles {
        grid-template-columns: 1fr;
    }
    
    /* Featured Article Mobile Responsive */
    .featured-article {
        padding: 1rem 0 !important;
    }
    
    .featured-article-container {
        padding: 0 0.5rem !important;
    }
    
    .featured-article-hero {
        flex-direction: column !important;
        gap: 1rem !important;
        min-height: auto !important;
    }
    
    .featured-article-image {
        flex: none !important;
        min-height: 250px !important;
        aspect-ratio: 16/9 !important;
        border-radius: 16px !important;
    }
    
    .featured-article-hero-content {
        flex: none !important;
        padding: 1.5rem !important;
    }
    
    .featured-image-container {
        width: 100% !important;
        min-width: unset !important;
        aspect-ratio: 16/9 !important;
    }
    
    .featured-image-container img {
        border-radius: 16px 16px 0 0 !important;
    }
    
    .featured-content-container {
        min-width: unset !important;
        padding: 1.5rem !important;
        background: white !important;
        border-radius: 0 0 16px 16px !important;
        justify-content: center !important;
    }
    
    .featured-article-hero-content {
        max-width: none !important;
        text-align: center !important;
    }
    
    .featured-article-hero-content h2 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.2 !important;
    }
    
    .featured-article-hero-content p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.5 !important;
    }
    
    .featured-article-hero-content a {
        padding: 0.75rem 1.8rem !important;
        font-size: 1rem !important;
    }
    
    .article-meta {
        justify-content: center !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 480px) {
    .featured-article {
        margin: 0 -1rem !important;
    }
    
    .featured-article > div {
        padding: 0 1rem !important;
    }
    
    .featured-article-hero-content {
        padding: 1rem !important;
    }
    
    .featured-article-hero-content h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .featured-article-hero-content p {
        font-size: 0.95rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .featured-article-hero-content a {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
    
    .article-meta {
        font-size: 0.85rem !important;
        gap: 0.8rem !important;
    }
}

/* Ultra small screens - 280px and below */
@media (max-width: 280px) {
    .featured-article {
        margin: 0 -0.125rem !important;
        padding: 0.125rem 0 !important;
    }
    
    .featured-article-container {
        padding: 0 0.0625rem !important;
    }
    
    .featured-content-container {
        padding: 0.5rem 0.375rem !important;
        border-radius: 0 0 6px 6px !important;
    }
    
    .featured-image-container {
        aspect-ratio: 16/6 !important;
        max-height: 120px !important;
    }
    
    .featured-image-container img {
        border-radius: 6px 6px 0 0 !important;
        object-fit: cover !important;
        height: 100% !important;
    }
    
    .featured-article-hero-content {
        padding: 0 !important;
    }
    
    .featured-article-hero-content h2 {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.05 !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .featured-article-hero-content p {
        font-size: 0.7rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .featured-article-hero-content a {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.7rem !important;
        border-radius: 3px !important;
        display: inline-block !important;
        width: auto !important;
        min-width: auto !important;
    }
    
    .article-meta {
        font-size: 0.6rem !important;
        gap: 0.125rem !important;
        margin-bottom: 0.25rem !important;
        flex-wrap: wrap !important;
    }
    
    .article-meta span {
        padding: 0.1rem 0.25rem !important;
        border-radius: 2px !important;
    }
}

/* Ultra small screens with height constraints - 280x480 and similar */
@media (max-width: 280px) and (max-height: 500px) {
    .featured-article {
        margin: 0 !important;
        padding: 0.0625rem 0 !important;
    }
    
    .featured-image-container {
        aspect-ratio: 16/5 !important;
        max-height: 80px !important;
    }
    
    .featured-content-container {
        padding: 0.375rem 0.25rem !important;
    }
    
    .featured-article-hero-content h2 {
        font-size: 0.8rem !important;
        margin-bottom: 0.125rem !important;
        line-height: 1 !important;
        -webkit-line-clamp: 1 !important;
    }
    
    .featured-article-hero-content p {
        font-size: 0.65rem !important;
        margin-bottom: 0.375rem !important;
        line-height: 1.1 !important;
        -webkit-line-clamp: 1 !important;
    }
    
    .featured-article-hero-content a {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
    }
    
    .article-meta {
        font-size: 0.55rem !important;
        margin-bottom: 0.125rem !important;
    }
    
    .article-meta span {
        padding: 0.05rem 0.15rem !important;
    }
}

/* Header Loading States */
.loading, .error {
    padding: 20px;
    text-align: center;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    margin: 20px 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading {
    color: var(--primary-color);
}

.error {
    color: #dc2626;
    background-color: #fee2e2;
}

.internal-link {
    color: var(--secondary-color);
    text-decoration: underline;
}

.internal-link:hover {
    color: var(--primary-color);
}

.external-link {
    color: #38b6ff; /* azul claro */
    text-decoration: underline;
}

.external-link:hover {
    color: #2563eb;
}

.memoriam-figures {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 3vw;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.memoriam-figures figure {
    margin: 0;
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
}

.memoriam-img {
    width: 100%;
    max-width: 455px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    object-fit: cover;
    background: #fff;
}

@media (max-width: 800px) {
    .memoriam-figures {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .memoriam-img {
        max-width: 90vw;
    }
}

.about-carousel {
    position: relative;
    max-width: 49vw;
    margin: 2.5rem auto 2.5rem auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    overflow: hidden;
    min-height: 520px;
    padding: 0;
}

.carousel-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    background: #fff;
    transition: opacity 0.5s;
}

.carousel-slide.active {
    display: flex;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    color: #222;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0;
    line-height: 1;
}

.carousel-btn.prev {
    margin-left: 18px;
}
.carousel-btn.next {
    margin-right: 18px;
}

.about-carousel-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    object-fit: cover;
    background: #f3f4f6;
    display: block;
}

.carousel-caption {
    text-align: center;
    color: #222;
    margin-bottom: 1.5rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}

.carousel-dots button {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: #222;
    opacity: 0.25;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.carousel-dots button.active {
    background: #222;
    opacity: 0.85;
}

.about-bio {
    max-width: 49vw;
    margin:2.5rem auto 0 auto;
    font-size:1.08rem;
    line-height:1.7;
    padding: 0;
    text-align: left;
}

@media (max-width: 900px) {
    .about-carousel {
        height: 250px;
    }
    
    .about-carousel-img {
        height: 250px;
    }
    
    .about-bio {
        margin-top: 2rem;
    }
}

/* Social Sharing Section */
.social-sharing {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    margin: 2rem 0;
}

.social-sharing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-sharing-text {
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
    text-align: center;
}

.social-sharing-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

.social-share-btn[data-platform="linkedin"]:hover {
    background-color: #0077b5;
    color: white;
    border-color: #0077b5;
}

.social-share-btn[data-platform="twitter"]:hover {
    background-color: #000000;
    color: white;
    border-color: #000000;
}

.social-share-btn[data-platform="reddit"]:hover {
    background-color: #ff4500;
    color: white;
    border-color: #ff4500;
}

.social-share-btn[data-platform="whatsapp"]:hover {
    background-color: #25d366;
    color: white;
    border-color: #25d366;
}

.social-share-btn[data-platform="bluesky"]:hover {
    background-color: #00bcd4;
    color: white;
    border-color: #00bcd4;
}

.social-share-btn[data-platform="telegram"]:hover {
    background-color: #0088cc;
    color: white;
    border-color: #0088cc;
}

.social-share-btn[data-platform="facebook"]:hover {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-share-btn[data-platform="copy"]:hover {
    background-color: #6366f1;
    color: white;
    border-color: #6366f1;
}

.social-share-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* Responsive adjustments for social sharing */
@media (max-width: 768px) {
    .social-sharing {
        padding: 1rem 0;
        margin: 1.5rem 0;
    }
    
    .social-sharing-content {
        gap: 0.75rem;
    }
    
    .social-sharing-icons {
        gap: 0.5rem;
    }
    
    .social-share-btn {
        width: 36px;
        height: 36px;
    }
    
    .social-share-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Share buttons styles for two-cases-of-mutilation.html */
.social-share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.share-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background-color: #0d8bd9;
    transform: translateY(-2px);
}

.share-btn.facebook {
    background-color: #1877f2;
    color: white;
}

/* Social sharing styles - Original template */
.social-sharing {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin: 30px 0;
    border-radius: 8px;
}

.social-sharing-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-sharing-text {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.social-sharing-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #666;
    background-color: #fff;
    border: 2px solid #e9ecef;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

.social-share-btn[data-platform="linkedin"] {
    color: #0077b5;
}

.social-share-btn[data-platform="linkedin"]:hover {
    background-color: #0077b5;
    color: white;
    border-color: #0077b5;
}

.social-share-btn[data-platform="twitter"] {
    color: #000;
}

.social-share-btn[data-platform="twitter"]:hover {
    background-color: #000;
    color: white;
    border-color: #000;
}

.social-share-btn[data-platform="reddit"] {
    color: #ff4500;
}

.social-share-btn[data-platform="reddit"]:hover {
    background-color: #ff4500;
    color: white;
    border-color: #ff4500;
}

.social-share-btn[data-platform="whatsapp"] {
    color: #25d366;
}

.social-share-btn[data-platform="whatsapp"]:hover {
    background-color: #25d366;
    color: white;
    border-color: #25d366;
}

.social-share-btn[data-platform="bluesky"] {
    color: #00a8e8;
}

.social-share-btn[data-platform="bluesky"]:hover {
    background-color: #00a8e8;
    color: white;
    border-color: #00a8e8;
}

.social-share-btn[data-platform="telegram"] {
    color: #0088cc;
}

.social-share-btn[data-platform="telegram"]:hover {
    background-color: #0088cc;
    color: white;
    border-color: #0088cc;
}

.social-share-btn[data-platform="facebook"] {
    color: #1877f2;
}

.social-share-btn[data-platform="facebook"]:hover {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-share-btn[data-platform="copy"] {
    color: #6c757d;
}

.social-share-btn[data-platform="copy"]:hover {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.social-share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-share-btn img.bluesky-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Article contact section */
.article-contact {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .social-sharing-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-sharing-icons {
        justify-content: center;
    }
}

/* Styles for two-cases-of-mutilation.html specific classes */
.social-share {
    background-color: #f8f9fa;
    padding: 30px;
    margin: 30px 0;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.social-share h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.25rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
}

.share-btn.twitter {
    background-color: #000000;
}

.share-btn.twitter:hover {
    background-color: #333333;
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.facebook:hover {
    background-color: #0d5dbf;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.linkedin:hover {
    background-color: #005885;
}

.share-btn.copy {
    background-color: #6c757d;
}

.share-btn.copy:hover {
    background-color: #545b62;
}

.share-icon {
    font-size: 1.1rem;
}

.contact-section {
    margin: 40px 0;
    padding: 0;
}

.contact-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-card h3 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-card p {
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
}

/* Responsive adjustments for new styles */
@media (max-width: 768px) {
    .social-share {
        padding: 20px;
        margin: 20px 0;
    }
    
    .share-buttons {
        gap: 10px;
    }
    
    .share-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .contact-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-card p {
        font-size: 1rem;
    }
    
    .contact-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

.contact-button-wrapper {
    text-align: left;
    margin: 30px 0;
    padding-left: 1rem; /* Align with the main content */
}

.contact-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    color: black;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    border: 2px solid black;
    transition: all 0.3s ease;
}

/* More Like This Section */
.more-like-this {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid #e9ecef;
}

.more-like-this h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.more-like-this h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.related-article {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.related-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-article a {
    text-decoration: none;
    color: inherit;
}

.related-article h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.related-article:hover h4 {
    color: #667eea;
}

/* Responsive adjustments for Post Title */
@media (max-width: 768px) {
    .post-title {
        font-size: 2.5rem;
        margin: 30px 0 40px 0;
        padding: 0 15px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 2rem;
        margin: 25px 0 35px 0;
        padding: 0 10px;
    }
}

/* Responsive adjustments for More Like This */
@media (max-width: 768px) {
    .more-like-this {
        padding: 25px 20px;
        margin: 30px 0;
    }
    
    .more-like-this h3 {
        font-size: 1.5rem;
    }
    
    .related-articles {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-article {
        padding: 20px;
    }
    
    .related-article h4 {
        font-size: 1.1rem;
    }
}

/* Blog Post Template Responsive Styles */

/* Header Image Styles */
.post-header-image {
    margin: 2% 0;
    text-align: center;
}

.post-header-image .header-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Button Styles */
.contact-button-wrapper {
    text-align: center;
    margin: 20px 0 40px 0;
    padding: 20px;
}

.contact-button {
    display: inline-block;
    background-color: #ffffff;
    color: #374151;
    border: 2px solid #000000;
    padding: 1.125rem 2.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.contact-button:hover {
    background-color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Related Posts Section Styles */
#relatedPostsSection {
    margin-top: 40px;
    padding: 20px 1rem;
    border-top: 1px solid var(--border-color);
}

#relatedPostsSection h2 {
    font-size: 1.8em;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

#relatedPostsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Header Image Mobile */
    .post-header-image {
        margin: 1.5% 0;
    }
    
    .post-header-image .header-image {
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Contact Button Mobile */
    .contact-button-wrapper {
        margin: 30px 0;
        padding: 15px;
    }
    
    .contact-button {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Related Posts Mobile */
    #relatedPostsSection {
        padding: 15px 0.5rem;
        margin-top: 30px;
    }
    
    #relatedPostsSection h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    
    #relatedPostsContainer {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    #relatedPostsContainer {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .contact-button {
        padding: 14px 28px;
        font-size: 1.05rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    #relatedPostsContainer {
        grid-template-columns: repeat(2, 1fr);
    }
}
