/* Blog-specific styles */

/* Blog card styling */
.blog-preview {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-content-section.p-y-lg {
      padding-top: 0px !important;
      padding-bottom: 80px !important;
  }

.blog-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.blog-preview h3 {
    margin-bottom: 15px;
}

.blog-preview h3 a {
    color: #333;
    text-decoration: none;
}

.blog-preview h3 a:hover {
    color: #f1c40f;
}

.blog-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.blog-dev-badge {
    display: inline-block;
    background: #2c3e50;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0;
}

.blog-meta-date,
.blog-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-author i,
.blog-meta-date i {
    margin-right: 0;
}

.blog-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-tags {
    margin-bottom: 15px;
}

.blog-tag {
    background: #f1c40f;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 8px;
    text-decoration: none;
}

.blog-tag:hover {
    background: #ddb100;
    color: white;
    text-decoration: none;
}

/* Blog hero */
.blog-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 140px 0 110px;
    margin-top: 0;
}

.blog-hero .section-header h1 {
    color: #fff;
}

.blog-hero .lead {
    color: rgba(255,255,255,0.85);
}

.blog-content-section {
    background-color: #ffffff;
    padding-top: 40px;
}

#blog .section-header h2 {
    color: #50492c;
}
#blog .section-header p {
    color: #50492c;
}

/* Article page specific styles */
.article-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 140px 0 110px;
}

.article-hero .section-header h1 {
    color: #fff;
}

.article-hero .article-meta {
    color: rgba(255,255,255,0.8);
}

.article-content {
    background: #ffffff;
    line-height: 1.8;
}

.article-content .container {
    background: white;
    padding: 50px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.back-to-blog .btn.btn-yellow {
    background-color: #4a4f57;
    border-color: #4a4f57;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-to-blog .btn.btn-yellow:hover,
.back-to-blog .btn.btn-yellow:focus {
    background-color: #3a3f46;
    border-color: #3a3f46;
}

.article-content.p-y-lg {
    padding-top: 40px !important;
    padding-bottom: 80px !important;
}

.article-content h1 {
    color: #333;
    margin-bottom: 30px;
    font-weight: 300;
}

.article-content h2 {
    color: #444;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.article-content h3 {
    color: #555;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    color: #555;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content strong {
    color: #333;
    font-weight: 600;
}

.article-content em {
    font-style: italic;
}

.article-content blockquote {
    border-left: 4px solid #f1c40f;
    padding-left: 20px;
    margin: 30px 0;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

.article-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
}

.article-content pre {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-meta {
    color: rgba(255,255,255,0.8);
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.article-dev-badge {
    display: none;
    background: rgba(44, 62, 80, 0.85);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0;
}

.back-to-blog {
    margin-bottom: 30px;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-author {
    color: rgba(255,255,255,0.85);
    display: none;
}

/* Loading and error states */
.loading-message {
    text-align: center;
    padding: 50px 0;
    color: #666;
}

.error-message {
    text-align: center;
    padding: 100px 0;
    color: #e74c3c;
}

/* Header shadow - matching main page */
.navbar-fixed-top.bg-white {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Blog Slider Styles */
.blog-slider-container {
    position: relative;
    overflow: hidden;
}

.blog-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-slider.blog-slider-single {
    justify-content: center;
}

.blog-slider::-webkit-scrollbar {
    display: none;
}

.blog-slide {
    flex: 0 0 350px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.blog-slide h4 {
    margin-bottom: 15px;
    color: #333;
}

.blog-slide h4 a {
    color: #333;
    text-decoration: none;
}

.blog-slide h4 a:hover {
    color: #f1c40f;
}

.blog-slide-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.blog-slide-tags {
    margin-bottom: 15px;
}

.blog-slide-tag {
    background: #f1c40f;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-right: 5px;
    text-decoration: none;
}

.blog-slide-excerpt {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-nav-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.blog-nav-btn {
    background: #4a4f57;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.blog-nav-btn:hover {
    background: #3a3f46;
}

.blog-nav-btn:disabled {
    background: #9aa0a8;
    cursor: not-allowed;
}

.blog-slider-container .btn.btn-yellow,
.blog-content-section .btn.btn-yellow,
.blog-preview .btn.btn-yellow {
    background-color: #4a4f57;
    border-color: #4a4f57;
}

.blog-slider-container .btn.btn-yellow:hover,
.blog-slider-container .btn.btn-yellow:focus,
.blog-content-section .btn.btn-yellow:hover,
.blog-content-section .btn.btn-yellow:focus,
.blog-preview .btn.btn-yellow:hover,
.blog-preview .btn.btn-yellow:focus {
    background-color: #3a3f46;
    border-color: #3a3f46;
}

@media (max-width: 768px) {
    .blog-slide {
        flex: 0 0 280px;
        padding: 20px;
    }
    
    .blog-nav-buttons {
        display: none;
    }
}
