/*
Theme Name: Amedap
Description: A basic WordPress theme for Amedap project.
Author: Amedap Team
Version: 2.0.8
License: GPL2
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'NewsGothic', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

#page {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
}

.site {
    position: relative;
    width: 100%;
}

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

/* Header Styles */
.site-header {
    background-color: #ffffff;
    color: #333;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: static !important;
    z-index: 1000;
    width: 100%;
    display: block;
    float: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
}

.site-title {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-description {
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* Navigation Styles */
.main-navigation {
    background-color: #ffffff;
    padding: 0.5rem 0;
    position: static !important;
    z-index: 999;
    width: 100%;
    display: block;
    float: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.menu-toggle .hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: relative;
    transition: all 0.3s ease;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.menu-toggle .hamburger::before {
    top: -8px;
}

.menu-toggle .hamburger::after {
    top: 8px;
}

.menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: block;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
    background-color: rgba(236, 38, 143, 0.1);
    color: #EC268F;
    outline: none;
}

/* Header scroll effect */
.site-header.scrolled {
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s ease;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #EC268F;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100000;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
}

.screen-reader-text:focus {
    position: static !important;
    width: auto;
    height: auto;
    padding: 0.25rem 0.5rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: var(--font-sm);
    text-decoration: none;
    z-index: 100000;
}

/* Main Content */
.site-content {
    position: relative;
    width: 100%;
    display: block;
    float: none !important;
    margin: 0;
    padding: 0;
}

/* .site-main {
    padding: 2rem 0;
    min-height: 60vh;
    position: relative;
    z-index: 1;
    clear: both;
} */

/* Blog page specific enhancements */
.site-main {
    position: relative;
}

/* Animated entrance for posts */
.post {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.post:nth-child(1) { animation-delay: 0.1s; }
.post:nth-child(2) { animation-delay: 0.2s; }
.post:nth-child(3) { animation-delay: 0.3s; }
.post:nth-child(4) { animation-delay: 0.4s; }
.post:nth-child(5) { animation-delay: 0.5s; }

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

/* Enhanced visual hierarchy */
.primary-content {
    position: relative;
}

.primary-content::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #EC268F 0%, #F055A3 50%, #FFAA8A 100%);
    border-radius: 4px;
}

/* Post Styles */
.post {
    background: white;
    margin-bottom: 4rem;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(236, 38, 143, 0.05);
}

/* Enhanced post separation with decorative elements */
.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EC268F 0%, #F055A3 50%, #FFAA8A 100%);
    border-radius: 16px 16px 0 0;
    z-index: 1;
}

.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    border-color: rgba(236, 38, 143, 0.15);
}

/* Elegant post separator */
.post + .post {
    position: relative;
}

.post + .post::after {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #EC268F 50%, transparent 100%);
    border-radius: 3px;
}

.post-header {
    padding: 1rem 2rem 0rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(236, 38, 143, 0.1);
}

.post-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
    font-family: var(--font-primary, 'Georgia', serif);
}

.post-title a {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(135deg, transparent 0%, transparent 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0% 100%;
    transition: all 0.3s ease;
}

.post-title a:hover {
    color: #EC268F;
    background: linear-gradient(135deg, #EC268F 0%, #F055A3 100%);
    background-size: 100% 2px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: 500;
}

.post-meta > span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(236, 38, 143, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(236, 38, 143, 0.1);
    transition: all 0.3s ease;
}

.post-meta > span:hover {
    background: rgba(236, 38, 143, 0.1);
    border-color: rgba(236, 38, 143, 0.2);
}

.post-meta a {
    color: #EC268F;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-meta a:hover {
    color: #D91B7A;
}

/* Enhanced pagination info styling */
.pagination-stats {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pagination-meta {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

/* Post Thumbnail */
.post-thumbnail {
    position: relative;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 16/9;
    background: #f8f9fa;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: contrast(1.05) saturate(1.1) brightness(1.02);
}

.post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    /* padding: 2.5rem; */
    line-height: 1.7;
    font-size: 1.1rem;
    color: #374151;
}

.post-content p {
    /* margin-bottom: 1.5rem; */
    line-height: 1.8;
}

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

/* Typography improvements */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: var(--font-primary, 'Georgia', serif);
    font-weight: 700;
    color: #2c3e50;
    /* margin: 2rem 0 1rem; */
    line-height: 1.3;
}

.post-content h1 { font-size: 2.2rem; }
.post-content h2 { font-size: 1.9rem; }
.post-content h3 { font-size: 1.6rem; }
.post-content h4 { font-size: 1.4rem; }
.post-content h5 { font-size: 1.2rem; }
.post-content h6 { font-size: 1.1rem; }

/* Links in content */
.post-content a {
    color: #EC268F;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(236, 38, 143, 0.1) 0%, rgba(240, 85, 163, 0.1) 100%);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

.post-content a:hover {
    color: #D91B7A;
    border-bottom-color: #EC268F;
    background: linear-gradient(135deg, rgba(236, 38, 143, 0.15) 0%, rgba(240, 85, 163, 0.15) 100%);
    transform: translateY(-1px);
}

/* List improvements */
.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.post-content ul li::marker {
    color: #EC268F;
}

/* Blockquote styling */
.post-content blockquote {
    background: linear-gradient(135deg, rgba(236, 38, 143, 0.05) 0%, rgba(240, 85, 163, 0.05) 100%);
    border-left: 4px solid #EC268F;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #495057;
}

/* Image gallery improvements */
.post-content .wp-block-gallery {
    margin: 2rem 0;
}

.post-content .wp-block-gallery figure {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.post-content .wp-block-gallery figure:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-content .wp-block-gallery img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.post-content .wp-block-gallery figure:hover img {
    transform: scale(1.02);
}

/* Strong and emphasis */
.post-content strong {
    color: #EC268F;
    font-weight: 700;
}

.post-content em {
    color: #6c757d;
    font-style: italic;
}

/* Enhanced Read more button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #EC268F 0%, #F055A3 50%, #FFAA8A 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(236, 38, 143, 0.35);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'NewsGothic', 'Arial', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #D91B7A 0%, #EC268F 50%, #F055A3 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(236, 38, 143, 0.5);
    color: white;
}

/* .btn::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
} */

.btn:hover::after {
    transform: translateX(4px) scale(1.1);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Sidebar */
.sidebar {
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 2rem;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EC268F 0%, #F055A3 50%, #EC268F 100%);
    z-index: 1;
}

.widget {
    margin-bottom: 0;
    padding: 2rem;
    border-bottom: 1px solid rgba(236, 38, 143, 0.08);
    transition: all 0.3s ease;
}

.widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget:hover {
    background: linear-gradient(135deg, rgba(236, 38, 143, 0.02) 0%, rgba(240, 85, 163, 0.02) 100%);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid transparent;
    background: linear-gradient(135deg, #EC268F 0%, #F055A3 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #EC268F;
    font-weight: 700;
    font-family: var(--font-primary, 'Georgia', serif);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #EC268F 0%, #F055A3 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.widget:hover .widget-title::after {
    width: 60px;
}

/* Widget Lists */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(236, 38, 143, 0.03);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.widget li:hover {
    background: rgba(236, 38, 143, 0.08);
    border-left-color: #EC268F;
    transform: translateX(5px);
}

.widget li:last-child {
    margin-bottom: 0;
}

.widget a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #EC268F;
}

/* Search Widget */
.widget .search-form {
    position: relative;
    margin-bottom: 0;
}

.widget .search-field {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid rgba(236, 38, 143, 0.2);
    border-radius: 25px;
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.widget .search-field:focus {
    outline: none;
    border-color: #EC268F;
    box-shadow: 0 0 0 3px rgba(236, 38, 143, 0.1);
}

.widget .search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #EC268F 0%, #F055A3 100%);
    border: none;
    border-radius: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.widget .search-submit:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 10px rgba(236, 38, 143, 0.3);
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 0.5rem;
}

/* Forms */
.comment-form,
.search-form {
    margin-top: 2rem;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.search-form input[type="search"] {
    flex: 1;
}

.search-submit {
    white-space: nowrap;
}

/* Post navigation */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid rgba(236, 38, 143, 0.1);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    max-width: 45%;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid rgba(236, 38, 143, 0.1);
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.post-navigation a:hover {
    background: linear-gradient(135deg, #EC268F 0%, #F055A3 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 38, 143, 0.3);
    border-color: transparent;
}

.post-navigation .nav-previous a::before {
    content: '←';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* .post-navigation .nav-next a::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
} */

.post-navigation .nav-previous a:hover::before {
    transform: translateX(-3px);
}

.post-navigation .nav-next a:hover::after {
    transform: translateX(3px);
}

/* Post Footer */
.post-footer {
    padding: 2rem 2.5rem;
    background: #f8f9fa;
    border-top: 1px solid rgba(236, 38, 143, 0.1);
    margin-top: 2rem;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.page-links a,
.page-links > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(236, 38, 143, 0.2);
    font-weight: 600;
    transition: all 0.3s
}

.page-links a:hover,
.page-links .current {
    background: linear-gradient(135deg, #EC268F 0%, #F055A3 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(236, 38, 143, 0.3);
}

/* Enhanced User-Friendly Pagination */
.pagination-container {
    margin: 4rem 0;
    padding: 0;
}

.pagination-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    font-size: 1.1rem;
    color: #495057;
    font-weight: 500;
    border: 1px solid rgba(236, 38, 143, 0.1);
}

.pagination-info .current-page,
.pagination-info .total-pages {
    color: #EC268F;
    font-weight: 700;
    font-size: 1.2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    border: 1px solid rgba(236, 38, 143, 0.08);
    position: relative;
}

.pagination::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EC268F 0%, #F055A3 50%, #FFAA8A 100%);
    border-radius: 20px 20px 0 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #495057;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 1;
    font-family: var(--font-primary, 'Georgia', serif);
}

.pagination .page-numbers:not(.dots) {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pagination .page-numbers:not(.dots):hover {
    background: linear-gradient(135deg, #EC268F 0%, #F055A3 100%);
    color: white;
    border-color: #EC268F;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(236, 38, 143, 0.3);
    z-index: 2;
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #EC268F 0%, #F055A3 100%);
    color: white;
    border-color: #EC268F;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(236, 38, 143, 0.4);
    z-index: 2;
    font-weight: 700;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-color: #EC268F;
    color: #EC268F;
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    background: linear-gradient(135deg, #EC268F 0%, #F055A3 100%);
    color: white;
}

.pagination .page-numbers.dots {
    color: #adb5bd;
    font-size: 1.2rem;
    letter-spacing: 3px;
    pointer-events: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Enhanced pagination info styling */
.pagination-stats {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pagination-meta {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

/* Loading indicator for better perceived performance */
.pagination-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.pagination-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse animation for loading states */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pagination-loading .pagination {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Focus states for accessibility */
.pagination .page-numbers:focus {
    outline: 3px solid rgba(236, 38, 143, 0.5);
    outline-offset: 2px;
}

/* Enhanced mobile experience */
@media (max-width: 640px) {
    .pagination-info {
        padding: 0 1rem;
        text-align: center;
        line-height: 1.4;
    }
    
    .pagination .page-numbers {
        margin: 0;
        border-width: 1px;
    }
    
    /* Show fewer page numbers on mobile */
    .pagination .page-numbers:nth-child(n+6):nth-last-child(n+6):not(.current):not(.prev):not(.next):not(.dots) {
        display: none;
    }
}

/* Print styles */
@media print {
    .pagination-container {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pagination .page-numbers {
        border-width: 3px;
        font-weight: var(--font-bold);
    }
    
    .pagination .page-numbers.current {
        background: #000;
        color: #fff;
        border-color: #000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .pagination .page-numbers {
        transition: none;
    }
    
    .pagination {
        animation: none;
    }
    
    .pagination .page-numbers:hover {
        transform: none;
    }
}

/* Enhanced single post layout - Vertical structure */
.primary-content .post {
    display: block;
    padding: 2rem;
    margin-bottom: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(236, 38, 143, 0.05);
}

.primary-content .post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EC268F 0%, #F055A3 50%, #FFAA8A 100%);
    border-radius: 16px 16px 0 0;
    z-index: 1;
}

.primary-content .post:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    border-color: rgba(236, 38, 143, 0.15);
}

/* Post content wrapper for two-column layout - Content on the right */
.post-content-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
}

/* Enhanced post content styling */
.post-content-wrapper .post-content {
    line-height: 1.7;
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.post-content-wrapper .post-content p {
    margin-bottom: 1rem;
}

/* Post thumbnail for blog listing - Image on the left */
.post-thumbnail-listing {
    flex-shrink: 0;
    width: 320px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-thumbnail-listing:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.post-thumbnail-listing img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: contrast(1.05) saturate(1.1);
}

.post-thumbnail-listing:hover img {
    transform: scale(1.1);
}

/* Placeholder for posts without images */
.post-thumbnail-listing.no-image {
    background: linear-gradient(135deg, rgba(236, 38, 143, 0.1) 0%, rgba(240, 85, 163, 0.1) 100%);
    border: 2px dashed rgba(236, 38, 143, 0.3);
}

.post-thumbnail-listing.no-image::before {
    content: '📰';
    font-size: 2rem;
    opacity: 0.6;
}

/* Placeholder thumbnail for posts without featured images */
.placeholder-thumbnail {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.placeholder-thumbnail svg {
    opacity: 0.6;
}

/* Dark gray titles for blog listing */
.primary-content .post-title {
    color: var(--dark-gray);
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.primary-content .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.primary-content .post-title a:hover {
    color: #EC268F;
}

/* Enhanced post meta styling */
.post-meta > span:first-child::before {
    display: none;
}

/* Post meta styling for blog listing */
.primary-content .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #8c9196;
}

.primary-content .post-meta > span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    background: rgba(108, 117, 125, 0.08);
    border-radius: 12px;
    font-weight: 500;
}

.primary-content .post-meta a {
    color: #EC268F;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.primary-content .post-meta a:hover {
    color: #D91B7A;
}

/* Vertical single post structure */
.primary-content .post .post-header {
    margin-bottom: 2rem;
}

.primary-content .post .post-title {
    margin-bottom: 0;
    text-align: left;
}

.primary-content .post .post-thumbnail {
    margin: 2rem 0;
    text-align: center;
}

.primary-content .post .post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.primary-content .post .post-meta {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #EC268F;
}

.primary-content .post .post-content {
    margin-top: 2rem;
}

/* Post excerpt styling */
.primary-content .post-content p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read more button styling for blog listing */
.primary-content .post-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0rem 1.2rem;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(108, 117, 125, 0.2);
}

.primary-content .post-content .btn:hover {
    background: linear-gradient(135deg, #EC268F 0%, #F055A3 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 38, 143, 0.3);
    color: white;
}

/* .primary-content .post-content .btn::after {
    content: '→';
    transition: transform 0.3s ease;
} */

.primary-content .post-content .btn:hover::after {
    transform: translateX(3px);
}

/* Sticky post highlighting */
.primary-content .post.sticky {
    border-left: 4px solid #EC268F;
    background: linear-gradient(135deg, rgba(236, 38, 143, 0.02) 0%, rgba(240, 85, 163, 0.02) 100%);
}

/* .primary-content .post.sticky::before {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    opacity: 0.7;
} */

/* Category badges */
.primary-content .post-category a {
    background: linear-gradient(135deg, rgba(236, 38, 143, 0.1) 0%, rgba(240, 85, 163, 0.1) 100%);
    color: #EC268F;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(236, 38, 143, 0.2);
    transition: all 0.3s ease;
}

.primary-content .post-category a:hover {
    background: linear-gradient(135deg, #EC268F 0%, #F055A3 100%);
    color: white;
    border-color: transparent;
}

/* Responsive adjustments for blog listing */
@media (max-width: 768px) {
    .primary-content .post {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .post-thumbnail-listing {
        width: 100%;
        height: 200px;
        margin-bottom: 0;
    }
    
    .post-content-wrapper {
        margin-left: 0;
        gap: 1rem;
    }
    
    .primary-content .post-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .primary-content .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .primary-content .post-meta > span {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        align-self: flex-start;
    }
    
    .pagination .page-numbers {
        min-width: 44px;
        height: 44px;
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }
    
    .pagination {
        padding: 1.5rem 1rem;
        gap: 0.5rem;
    }
    
    .pagination-info {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .primary-content .post {
        margin-bottom: 2.5rem;
        padding: 1rem;
    }
    
    .post-thumbnail-listing {
        height: 160px;
    }
    
    .primary-content .post-title {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    
    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
    
    /* Hide some page numbers on very small screens */
    .pagination .page-numbers:nth-child(n+5):nth-last-child(n+5):not(.current):not(.prev):not(.next):not(.dots) {
        display: none;
    }
}

/* Blog post hover effects */
.post-content-wrapper .post-content {
    transition: color 0.3s ease;
}

.post:hover .post-content-wrapper .post-content {
    color: #343a40;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .post {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .post-thumbnail-listing,
    .btn,
    .pagination .page-numbers {
        transition: none;
    }
}

/* Print styles */
@media print {
    .btn,
    .pagination-container,
    .post-meta {
        display: none;
    }
    
    .post {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .post-thumbnail-listing {
        height: auto;
        max-height: 200px;
    }
}

/* Visual separator between sections */
.pagination-container::before {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #EC268F 50%, transparent 100%);
    margin: 0 auto 3rem;
    border-radius: 2px;
}

/* Advanced Pagination Features */
.pagination .page-numbers {
    position: relative;
    z-index: 1;
}

/* Add subtle border and improved spacing */
.pagination .page-numbers:not(.dots) {
    border: 2px solid #e9ecef;
    margin: 0 1px;
}

.pagination .page-numbers:not(.dots):hover {
    border-color: var(--primary-color);
    z-index: 2;
}

.pagination .page-numbers.current {
    border-color: var(--primary-color);
    z-index: 2;
}

/* Improved dots styling */
.pagination .page-numbers.dots {
    color: var(--light-gray);
    font-size: var(--font-base);
    letter-spacing: 2px;
    pointer-events: none;
}

/* Add keyboard navigation indicators */
.pagination .page-numbers:focus-visible {
    outline: 3px solid rgba(236, 38, 143, 0.6);
    outline-offset: 3px;
    border-color: var(--primary-color);
}

/* Loading states for better UX */
.post.loading {
    opacity: 0.7;
    pointer-events: none;
}

.post.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #EC268F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* Blog page specific enhancements */
.site-main {
    position: relative;
}

/* Animated entrance for posts */
.post {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.post:nth-child(1) { animation-delay: 0.1s; }
.post:nth-child(2) { animation-delay: 0.2s; }
.post:nth-child(3) { animation-delay: 0.3s; }
.post:nth-child(4) { animation-delay: 0.4s; }
.post:nth-child(5) { animation-delay: 0.5s; }

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

/* Enhanced visual hierarchy */
.primary-content {
    position: relative;
}

.primary-content::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #EC268F 0%, #F055A3 50%, #FFAA8A 100%);
    border-radius: 4px;
}

/* Enhanced hover states for better interactivity */
.post-thumbnail-listing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 38, 143, 0.1) 0%, rgba(240, 85, 163, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.post:hover .post-thumbnail-listing::after {
    opacity: 1;
}

/* Better typography and readability */
.post-content p {
    text-align: justify;
    hyphens: auto;
    line-height: 1.8;
}

/* Pagination navigation improvements */
.pagination-wrapper::before {
    content: 'Páginas:';
    display: block;
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* No posts message enhancement */
.post.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px dashed rgba(236, 38, 143, 0.2);
}

.post.no-posts .post-title {
    color: #EC268F;
    margin-bottom: 1rem;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .post {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .post-thumbnail-listing,
    .btn,
    .pagination .page-numbers {
        transition: none;
    }
}

/* Print styles */
@media print {
    .btn,
    .pagination-container,
    .post-meta {
        display: none;
    }
    
    .post {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .post-thumbnail-listing {
        height: auto;
        max-height: 200px;
    }
}
