/* ===================================
   BLOG PAGE STYLES
   Jassistays - Authentic Moroccan Hospitality
   =================================== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 65vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    background-image: url('../../assets/images/blog/hero-blog.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(193, 121, 86, 0.75) 0%, rgba(139, 115, 85, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 2rem;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Filter Section */
.filter-section {
    padding: 1.25rem 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #C17956;
    color: #C17956;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    border-color: #C17956;
    color: white;
    box-shadow: 0 4px 15px rgba(193, 121, 86, 0.3);
}

.filter-btn i {
    font-size: 1rem;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #C17956;
}

/* Featured Section */
.featured-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.featured-post {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.featured-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.featured-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.featured-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    color: #999;
    font-size: 0.95rem;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-meta i {
    color: #C17956;
}

.featured-content p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.btn-read-article {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-read-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(193, 121, 86, 0.3);
}

/* Blog Section */
.blog-section {
    padding: 6rem 0;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Blog Cards - Artistic Asymmetric Layout */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Varying widths for artistic layout */
.blog-card:nth-child(1) {
    grid-column: span 6;
}

.blog-card:nth-child(2) {
    grid-column: span 6;
}

.blog-card:nth-child(3) {
    grid-column: span 4;
}

.blog-card:nth-child(4) {
    grid-column: span 8;
}

.blog-card:nth-child(5) {
    grid-column: span 7;
}

.blog-card:nth-child(6) {
    grid-column: span 5;
}

.blog-card:nth-child(7) {
    grid-column: span 5;
}

.blog-card:nth-child(8) {
    grid-column: span 7;
}

/* Default for remaining */
.blog-card:nth-child(n+9) {
    grid-column: span 6;
}

.blog-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: #C17956;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.blog-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: #999;
    font-size: 0.85rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: none;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #C17956;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    width: fit-content;
}

.blog-link:hover {
    gap: 0.75rem;
}

.blog-link i {
    transition: transform 0.3s ease;
}

.blog-link:hover i {
    transform: translateX(5px);
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    color: #C17956;
    border: 2px solid #C17956;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 121, 86, 0.3);
}

/* Newsletter Section */
.newsletter-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.newsletter-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.newsletter-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: white;
    color: #C17956;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.newsletter-success {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.newsletter-success.show {
    display: block;
    animation: fadeInScale 0.5s ease-out;
}

.newsletter-success i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-success p {
    margin: 0;
    font-size: 1.1rem;
}

/* Categories Section */
.categories-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
}

.categories-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.categories-section .section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #2c2c2c;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.category-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon i {
    font-size: 1.5rem;
    color: white;
}

.category-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2c2c2c;
    margin-bottom: 0.75rem;
}

.category-card p {
    color: #666;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   BLOG DETAIL PAGE STYLES
   =================================== */

/* Loading & Error States */
.loading-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 3rem 2rem;
    text-align: center;
}

.loading-state .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #C17956;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state i {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1.5rem;
}

.error-state h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
}

.error-state p {
    color: #666;
    margin-bottom: 2rem;
}

/* Blog Detail Hero */
.blog-detail-hero {
    position: relative;
    height: 75vh;
    min-height: 650px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.blog-detail-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.blog-detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.blog-detail-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding-bottom: 4rem;
    margin-top: 80px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #D4A574;
}

.breadcrumb i {
    font-size: 0.75rem;
}

.article-category-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #C17956;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.meta-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.meta-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: white;
    color: #C17956;
    transform: translateY(-3px);
}

/* Blog Detail Content */
.blog-detail-content-section {
    padding: 4rem 0;
    background: #fafafa;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.blog-detail-main {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-excerpt {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.article-excerpt .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
}

.article-content {
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    color: #2c2c2c;
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #2c2c2c;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.article-content blockquote {
    border-left: 4px solid #C17956;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: #f8f8f8;
    font-style: italic;
    border-radius: 8px;
}

.article-tags {
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
}

.article-tags i {
    color: #C17956;
    font-size: 1.2rem;
}

/* Share Section */
.article-share-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
}

.article-share-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
}

.share-buttons-large {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn-large:hover {
    background: white;
    color: #C17956;
    transform: translateY(-2px);
}

/* Author Bio */
.author-bio-section {
    margin: 3rem 0 0;
    padding: 2.5rem;
    background: #f8f8f8;
    border-radius: 12px;
}

.author-bio {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.author-bio-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio-content h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #C17956;
    margin-bottom: 0.5rem;
}

.author-bio-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2c2c2c;
}

.author-bio-content p {
    color: #666;
    line-height: 1.6;
}

/* Sidebar */
.blog-detail-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #f0f0f0;
}

.sidebar-widget h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #2c2c2c;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #C17956;
}

/* Recent Posts */
.recent-post-item {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item:hover h4 {
    color: #C17956;
}

.recent-post-item img {
    display: none;
}

.recent-post-content {
    flex: 1;
}

.recent-post-category {
    display: inline-block;
    font-size: 0.7rem;
    color: #C17956;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.recent-post-content h4 {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
}

.recent-post-date {
    font-size: 0.75rem;
    color: #999;
}

.recent-post-date i {
    margin-right: 0.25rem;
}

/* Categories List */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.categories-list a:last-child {
    border-bottom: none;
}

.categories-list a:hover {
    color: #C17956;
    padding-left: 0.5rem;
}

.categories-list a span:last-child {
    color: #999;
    font-size: 0.85rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.category-item:hover {
    background: #C17956;
    color: white;
    border-color: #C17956;
    transform: translateX(5px);
}

.category-item i {
    color: #C17956;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.category-item:hover i {
    color: white;
}

/* Newsletter Widget */
.newsletter-widget {
    background: #f8f8f8;
    border: 2px dashed #C17956;
}

.newsletter-widget i {
    font-size: 2rem;
    color: #C17956;
    margin-bottom: 0.75rem;
}

.newsletter-widget h3 {
    color: #2c2c2c;
    border-bottom: none;
    margin-bottom: 0.75rem;
}

.newsletter-widget p {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #C17956;
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form button {
    width: 100%;
    padding: 0.75rem;
    background: #C17956;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.newsletter-form button:hover {
    background: #2c2c2c;
}

/* Related Posts */
.related-posts-section {
    padding: 4rem 0;
    background: white;
}

.related-posts-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c2c2c;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .featured-post {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .blog-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .blog-card:nth-child(odd) {
        grid-column: span 6;
    }

    .blog-card:nth-child(even) {
        grid-column: span 6;
    }

    .blog-card:nth-child(n+1) {
        grid-column: span 6;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .search-box {
        width: 100%;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        height: 55vh;
        min-height: 450px;
    }

    .hero-background {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .filter-section {
        padding: 1rem 0;
    }

    .filter-container {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        width: 100%;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
        justify-content: center;
    }

    .filter-btn[data-category="all"] {
        grid-column: 1 / -1;
    }

    .search-box {
        width: 100%;
    }

    .featured-section {
        padding: 3rem 0;
    }

    .featured-post {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .featured-image img {
        height: 250px;
    }

    .featured-content h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .featured-content p {
        display: none;
    }

    .featured-meta {
        gap: 1rem;
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .blog-section {
        padding: 3rem 0;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .blog-card {
        grid-column: span 1 !important;
    }

    .blog-image {
        height: 140px;
    }

    .blog-category {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.35rem 0.65rem;
        font-size: 0.7rem;
    }

    .blog-content {
        padding: 0.75rem;
    }

    .blog-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .blog-meta {
        gap: 0.5rem;
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .blog-link {
        font-size: 0.85rem;
    }

    .newsletter-section {
        padding: 4rem 0;
    }

    .newsletter-text h2 {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .categories-section {
        padding: 3rem 0;
    }

    .categories-section .section-header h2 {
        font-size: 1.75rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-card {
        padding: 1.25rem 1rem;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .category-icon i {
        font-size: 1.25rem;
    }

    .category-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .category-card p {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .featured-content h2 {
        font-size: 1.75rem;
    }

    .blog-content h3 {
        font-size: 1.35rem;
    }

    .newsletter-text h2 {
        font-size: 1.75rem;
    }
}

/* ===================================
   LOADING AND EMPTY STATES
   =================================== */

.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #6c757d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #C17956;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-posts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #6c757d;
}

.no-posts i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.no-posts h3 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-posts p {
    color: #6c757d;
    max-width: 400px;
    line-height: 1.6;
}

/* ===================================
   CONSOLE BRANDING
   =================================== */

.console-branding {
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    margin: 1rem 0;
}

/* ===================================
   BLOG DETAIL RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-detail-sidebar {
        position: static;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .blog-detail-hero {
        min-height: 450px;
        height: auto;
    }

    .blog-detail-hero-content {
        padding-bottom: 1.5rem;
        margin-top: 70px;
    }

    .breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        gap: 0.35rem;
    }

    .article-category-badge {
        padding: 0.35rem 1rem;
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .article-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .author-info {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .author-avatar {
        width: 45px;
        height: 45px;
    }

    .author-name {
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
    }

    .meta-details {
        flex-wrap: wrap;
        gap: 0.75rem;
        font-size: 0.75rem;
    }

    .meta-details span {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .share-buttons {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.75rem;
    }

    .share-btn {
        width: 35px;
        height: 35px;
    }

    .blog-detail-main {
        padding: 2rem 1.5rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .share-buttons-large {
        flex-direction: row;
        gap: 0.5rem;
    }

    .share-btn-large {
        width: auto;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .share-btn-large span {
        display: none;
    }

    .share-btn-large i {
        margin: 0;
    }

    .article-share-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .article-share-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .author-bio-section {
        padding: 1.25rem;
        margin: 1.5rem 0 0;
    }

    .author-bio-avatar {
        width: 60px;
        height: 60px;
    }

    .author-bio-content h4 {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .author-bio-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.35rem;
    }

    .author-bio-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .sidebar-widget {
        padding: 1.5rem;
    }

    .newsletter-widget {
        padding: 1.25rem;
    }

    .newsletter-widget i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .newsletter-widget h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .newsletter-widget p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .newsletter-form {
        gap: 0.75rem;
    }

    .newsletter-form input,
    .newsletter-form button {
        font-size: 0.85rem;
        padding: 0.65rem 0.85rem;
    }

    .category-item {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
    }
}

/* ===================================
   NOTIFICATION STYLES
   =================================== */

.notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background: white;
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    transition: right 0.3s ease;
}

.notification.show {
    right: 2rem;
}

.notification i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-success i {
    color: #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-error i {
    color: #ef4444;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification-info i {
    color: #3b82f6;
}

.notification span {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .notification {
        right: -100%;
        left: auto;
        min-width: 280px;
        max-width: calc(100% - 2rem);
    }
    
    .notification.show {
        right: 1rem;
    }
}

/* ===================================
   COMMENTS SECTION
   =================================== */

.comments-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.comments-container {
    max-width: 800px;
    margin: 0 auto;
}

.comments-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.comments-count {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Comment Form */
.comment-form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comment-form-container h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #C17956;
}

.btn-submit-comment {
    background: linear-gradient(135deg, #C17956 0%, #d4926f 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 121, 86, 0.3);
}

.auth-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    margin-top: 1rem;
}

.auth-message i {
    font-size: 1.5rem;
}

.btn-login {
    margin-left: auto;
    padding: 0.5rem 1.5rem;
    background: #C17956;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #a86647;
}

/* Comments List */
.comments-list {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comment-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.comment-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C17956 0%, #d4926f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.comment-date {
    font-size: 0.875rem;
    color: #999;
}

.comment-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-reply {
    background: none;
    border: none;
    color: #C17956;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.btn-reply:hover {
    color: #a86647;
}

/* Reply Form */
.reply-form-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.reply-form-container textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    margin-bottom: 0.75rem;
}

.reply-form-container textarea:focus {
    outline: none;
    border-color: #C17956;
}

.reply-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-submit-reply,
.btn-cancel-reply {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-reply {
    background: #C17956;
    color: white;
}

.btn-submit-reply:hover {
    background: #a86647;
}

.btn-cancel-reply {
    background: #e9ecef;
    color: #666;
}

.btn-cancel-reply:hover {
    background: #ddd;
}

/* No Comments State */
.no-comments {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.no-comments i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.no-comments p {
    font-size: 1.1rem;
}

/* Loading State */
.comments-list .loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    color: #999;
}

.comments-list .loading i {
    font-size: 2rem;
}

/* Error State */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #dc3545;
}

.error-message i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .comments-section {
        padding: 3rem 0;
    }
    
    .comment-form-container,
    .comments-list {
        padding: 1.5rem;
    }
    
    .comment-item {
        gap: 0.75rem;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

