/* ==========================================
   BLOG CSS - DESIGN ATUALIZADO COM CORES DO SITE PRINCIPAL
   Paleta: Verde-azulado (#0d7377, #14a085)
   Layout: Vertical (posts um abaixo do outro)
   Responsivo: Mobile-first design
   ========================================== */

:root {
    /* Cores do Site Principal */
    --primary-teal: #0d7377;
    --primary-teal-light: #14a085;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-light: #e1e5e9;
    --shadow-soft: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --overlay-light: rgba(255, 255, 255, 0.95);
}

/* Base responsive settings */
* {
    box-sizing: border-box;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   BLOG CONTAINER & LAYOUT
   ========================================== */

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.blog-hero {
    padding: 5rem 0 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.blog-header-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.blog-home-btn {
    position: absolute;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-home-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-home-btn svg {
    flex-shrink: 0;
}

/* ==========================================
   BACK TO BLOG BUTTON (Post View)
   ========================================== */
.back-to-blog-container {
    margin-bottom: 2rem;
}

.back-to-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0d7377, #14a085);
    border: 2px solid transparent;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.2);
}

.back-to-blog-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(13, 115, 119, 0.3);
    background: linear-gradient(135deg, #14a085, #0d7377);
    border-color: rgba(255, 255, 255, 0.2);
}

.back-to-blog-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.back-to-blog-btn:hover svg {
    transform: translateX(-3px);
}

.blog-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.blog-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    animation: float-shapes 20s ease-in-out infinite;
}

@keyframes float-shapes {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.blog-hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==========================================
   LAYOUT VERTICAL - POSTS EM LISTA
   ========================================== */

.blog-list-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.blog-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ==========================================
   BLOG CARD - DESIGN VERTICAL
   ========================================== */

.blog-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 280px;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-medium);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.blog-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.blog-card-image-container {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.1);
}

.blog-card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.7) 0%, rgba(20, 160, 133, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card:hover .blog-card-image-overlay {
    opacity: 1;
}

.blog-card-image-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.blog-card:hover .blog-card-image-overlay span {
    opacity: 1;
    transform: translateY(0);
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================
   CARD COMPONENTS
   ========================================== */

.blog-card-header {
    margin-bottom: 1rem;
}

.blog-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.blog-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(13, 115, 119, 0.3);
}

.blog-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.blog-card-title a:hover {
    color: var(--primary-teal);
}

.blog-card-excerpt {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.blog-card-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.blog-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-card-read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(13, 115, 119, 0.3);
}

/* ==========================================
   SIDEBAR
   ========================================== */

.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow-soft);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-teal);
}

.sidebar-search {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-search input[type="text"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sidebar-search input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.sidebar-search button {
    width: 100%;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 115, 119, 0.3);
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* ==========================================
   PAGINATION
   ========================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0 2rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination a:hover {
    border-color: var(--primary-teal);
    background: var(--primary-teal);
    color: white;
    transform: translateY(-2px);
}

.pagination .active {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
    color: white;
    border-color: transparent;
}

/* ==========================================
   LOADING & ANIMATIONS
   ========================================== */

.blog-card-skeleton {
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ==========================================
   EMPTY STATE
   ========================================== */

.blog-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-soft);
}

.blog-empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.blog-empty-state h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.blog-empty-state p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* ==========================================
   RESPONSIVE DESIGN - ENHANCED
   ========================================== */

/* Tablet Landscape and smaller desktops (1024px and below) */
@media (max-width: 1024px) {
    .blog-list-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .blog-card {
        grid-template-columns: 280px 1fr;
    }
    
    .blog-card-image-container {
        width: 280px;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    .blog-hero {
        padding: 3rem 1rem 2rem;
        margin-bottom: 2rem;
    }
    
    .blog-header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-home-btn {
        position: static;
        align-self: flex-start;
    }
    
    .blog-hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .blog-hero p {
        font-size: 1.1rem;
    }
    
    .blog-container {
        padding: 1.5rem;
    }
    
    .blog-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .blog-card-image-container {
        width: 100%;
        height: 220px;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .blog-card-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }
    
    .blog-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .blog-card-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .blog-card-read-more {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .sidebar-widget {
        padding: 1.75rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1.3rem;
    }
}

/* Mobile Large (480px and below) */
@media (max-width: 480px) {
    .blog-container {
        padding: 1rem;
    }
    
    .back-to-blog-container {
        margin-bottom: 1.5rem;
    }
    
    .back-to-blog-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .blog-hero {
        padding: 2rem 1rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .blog-hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .blog-main-content {
        gap: 1.5rem;
    }
    
    .blog-card {
        border-radius: 12px;
    }
    
    .blog-card-image-container {
        height: 180px;
        border-radius: 12px 12px 0 0;
    }
    
    .blog-card-content {
        padding: 1.25rem;
    }
    
    .blog-card-tags {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }
    
    .blog-tag {
        padding: 0.25rem 0.65rem;
        font-size: 0.7rem;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .blog-card-excerpt {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .blog-card-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        font-size: 0.85rem;
    }
    
    .blog-card-read-more {
        font-size: 0.85rem;
        padding: 0.65rem 1rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .sidebar-search input[type="text"],
    .sidebar-search button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .sidebar-tags-list {
        gap: 0.5rem;
    }
}

/* Mobile Extra Small (360px and below) */
@media (max-width: 360px) {
    .blog-hero h1 {
        font-size: 1.5rem;
    }
    
    .blog-hero p {
        font-size: 0.9rem;
    }
    
    .blog-card-title {
        font-size: 1.15rem;
    }
    
    .blog-card-content {
        padding: 1rem;
    }
    
    .sidebar-widget {
        padding: 1.25rem;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--primary-teal);
    outline-offset: 2px;
}

/* ==========================================
   POST VIEW PAGE UPDATES
   ========================================== */

.post-hero {
    position: relative;
    height: 500px;
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.post-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
}

.post-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.post-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.post-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-soft);
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    color: var(--primary-teal);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.post-content a {
    color: var(--primary-teal);
    text-decoration: none;
    border-bottom: 2px solid var(--primary-teal);
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: var(--primary-teal-light);
    border-color: var(--primary-teal-light);
}

/* ==========================================
   POST DETAIL PAGE - MEDIA GALLERY
   ========================================== */

.post-media-gallery {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-soft);
    margin-bottom: 3rem;
}

.post-media-gallery h3 {
    color: var(--primary-teal);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

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

.media-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-soft);
    transition: all 0.4s ease;
}

.media-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.media-item img,
.media-item video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.media-item .instagram-media {
    min-height: 400px;
    background: var(--bg-light);
    border-radius: 12px;
}

.media-caption {
    padding: 1rem;
    background: var(--overlay-light);
    color: var(--text-gray);
    font-size: 0.95rem;
    border-top: 2px solid var(--primary-teal);
}

/* ==========================================
   POST DETAIL PAGE - SOCIAL LINKS
   ========================================== */

.post-social-links {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-soft);
    margin-bottom: 3rem;
}

.post-social-links h3 {
    color: var(--primary-teal);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.social-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-light));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    font-size: 1.1rem;
}

.social-link-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.social-link-card .social-icon {
    font-size: 2rem;
}

/* ==========================================
   POST DETAIL PAGE - REACTIONS BAR
   ========================================== */

.reactions-bar {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-soft);
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.reaction-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.reaction-button:hover {
    transform: translateY(-3px);
    border-color: var(--primary-teal);
    background: white;
    box-shadow: 0 4px 15px var(--shadow-soft);
}

.reaction-button.active {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-light));
    border-color: var(--primary-teal-light);
    color: white;
}

.reaction-emoji {
    font-size: 2rem;
}

.reaction-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
}

.reaction-button.active .reaction-label {
    color: white;
}

.reaction-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-teal);
}

.reaction-button.active .reaction-count {
    color: white;
}

/* ==========================================
   POST DETAIL PAGE - COMMENTS SECTION
   ========================================== */

.comments-section {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-soft);
    margin-bottom: 3rem;
}

.comments-section h3 {
    color: var(--primary-teal);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.comment-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-teal);
}

.comment-form h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.comment-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.comment-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.comment-checkbox label {
    color: var(--text-dark);
    cursor: pointer;
    font-size: 1rem;
}

.comment-form-group {
    margin-bottom: 1.5rem;
}

.comment-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.comment-form-group input[type="text"],
.comment-form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: white;
    color: var(--text-dark);
}

.comment-form-group input[type="text"]:focus,
.comment-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
}

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

.comment-form button[type="submit"],
.comment-form button[type="button"] {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.comment-form button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-light));
    color: white;
}

.comment-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-soft);
}

.comment-form button[type="button"] {
    background: var(--bg-white);
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    margin-left: 0.5rem;
}

.comment-form button[type="button"]:hover {
    background: var(--primary-teal);
    color: white;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.comment {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-teal);
    transition: all 0.3s ease;
}

.comment:hover {
    box-shadow: 0 4px 15px var(--shadow-soft);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 700;
    color: var(--primary-teal);
    font-size: 1.1rem;
}

.comment-date {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.comment-content {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
}

.comment button {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-white);
    border: 2px solid var(--primary-teal);
    border-radius: 6px;
    color: var(--primary-teal);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.comment button:hover {
    background: var(--primary-teal);
    color: white;
}

.comment-replies {
    margin-top: 1.5rem;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 3px solid var(--border-light);
}

.comment.reply {
    border-left-color: var(--primary-teal-light);
}

/* ==========================================
   POST DETAIL PAGE - RESPONSIVE - ENHANCED
   ========================================== */

/* Tablet and smaller (768px and below) */
@media (max-width: 768px) {
    .post-hero {
        padding: 3rem 1rem 2rem;
        min-height: 400px;
    }
    
    .post-hero-image {
        object-fit: cover;
    }
    
    .post-title {
        font-size: 2rem;
        line-height: 1.3;
        padding: 0 1rem;
    }
    
    .post-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        padding: 0 1rem;
    }
    
    .post-info-item {
        font-size: 0.9rem;
    }
    
    .post-content-wrapper {
        padding: 0 1rem;
    }
    
    .post-content,
    .post-media-gallery,
    .post-social-links,
    .reactions-bar,
    .comments-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .post-content h1 {
        font-size: 1.8rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
    
    .post-content img {
        max-width: 100%;
        height: auto;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .reactions-bar {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .reaction-button {
        flex: 1 1 calc(33.333% - 0.75rem);
        min-width: 100px;
        max-width: 150px;
        padding: 1rem 0.75rem;
    }
    
    .reaction-emoji {
        font-size: 1.5rem;
    }
    
    .reaction-label {
        font-size: 0.85rem;
    }
    
    .comment-form textarea {
        min-height: 120px;
    }
    
    .comment-replies {
        margin-left: 1rem;
        padding-left: 1rem;
    }
    
    .comment-content {
        font-size: 0.95rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .post-hero {
        padding: 2rem 0.75rem 1.5rem;
        min-height: 300px;
    }
    
    .post-title {
        font-size: 1.5rem;
        line-height: 1.4;
        padding: 0 0.75rem;
    }
    
    .post-info {
        padding: 0 0.75rem;
    }
    
    .post-info-item {
        font-size: 0.8rem;
    }
    
    .blog-card-tags {
        padding: 0 0.75rem;
        gap: 0.35rem;
    }
    
    .blog-tag {
        padding: 0.25rem 0.65rem;
        font-size: 0.7rem;
    }
    
    .post-content-wrapper {
        padding: 0 0.75rem;
    }
    
    .post-content,
    .post-media-gallery,
    .post-social-links,
    .reactions-bar,
    .comments-section {
        padding: 1.25rem;
        border-radius: 12px;
        margin-bottom: 1.25rem;
    }
    
    .post-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .post-content h1 {
        font-size: 1.5rem;
        margin: 1.5rem 0 1rem;
    }
    
    .post-content h2 {
        font-size: 1.3rem;
        margin: 1.25rem 0 0.75rem;
    }
    
    .post-content h3 {
        font-size: 1.15rem;
        margin: 1rem 0 0.5rem;
    }
    
    .post-content p {
        margin-bottom: 1rem;
    }
    
    .post-content ul,
    .post-content ol {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .post-content img,
    .post-content video {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    .post-media-gallery h3,
    .post-social-links h3,
    .comments-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }
    
    .media-grid {
        gap: 1.25rem;
    }
    
    .media-item img,
    .media-item video {
        border-radius: 8px;
    }
    
    .media-caption {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    
    .social-links-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .social-link-card {
        padding: 1.25rem;
    }
    
    .reactions-bar {
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .reaction-button {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
        max-width: none;
        padding: 0.85rem 0.5rem;
    }
    
    .reaction-emoji {
        font-size: 1.3rem;
    }
    
    .reaction-label {
        font-size: 0.75rem;
    }
    
    .reaction-count {
        font-size: 0.9rem;
    }
    
    .comment-form {
        padding: 1.25rem;
    }
    
    .comment-form input,
    .comment-form textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .comment-form textarea {
        min-height: 100px;
    }
    
    .comment-form button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .comment {
        padding: 1.25rem;
    }
    
    .comment-header {
        margin-bottom: 0.75rem;
    }
    
    .comment-author {
        font-size: 0.95rem;
    }
    
    .comment-date {
        font-size: 0.8rem;
    }
    
    .comment-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .comment-replies {
        margin-left: 0.75rem;
        padding-left: 0.75rem;
        margin-top: 1rem;
    }
}

/* Mobile Extra Small (360px and below) */
@media (max-width: 360px) {
    .post-hero {
        padding: 1.5rem 0.5rem 1rem;
        min-height: 250px;
    }
    
    .post-title {
        font-size: 1.3rem;
        padding: 0 0.5rem;
    }
    
    .post-info {
        padding: 0 0.5rem;
    }
    
    .post-content-wrapper {
        padding: 0 0.5rem;
    }
    
    .post-content,
    .post-media-gallery,
    .post-social-links,
    .reactions-bar,
    .comments-section {
        padding: 1rem;
    }
    
    .reaction-button {
        padding: 0.75rem 0.35rem;
    }
    
    .reaction-label {
        display: none;
    }
    
    .comment-replies {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }
}

/* ==========================================
   MAKE ENTIRE CARD CLICKABLE
   ========================================== */

.blog-card {
    position: relative;
    cursor: pointer;
}

.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.blog-card a {
    position: relative;
    z-index: 2;
}

.blog-card-image-overlay {
    pointer-events: none;
}
