/* Blog Post Specific Styles */

/* Blog Post Hero */
.blog-post-hero {
    min-height: 500px;
    padding: 120px 0 120px;
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.blog-post-hero .container {
    position: relative;
    z-index: 1;
}

.blog-post-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.blog-post-category {
    background: var(--gradient);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-date,
.blog-post-read-time {
    font-size: 14px;
    opacity: 0.9;
}

.blog-post-title {
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 900;
}

.blog-post-excerpt {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 800px;
}

/* Blog Post Layout */
.blog-post-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
}

/* Main Content */
.blog-post-content {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.featured-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 60px;
}

.post-content .lead {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 40px;
    font-weight: 500;
}

.post-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--secondary);
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 800;
}

.post-content h3 {
    font-size: 26px;
    color: var(--secondary);
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 700;
}

.post-content p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0 30px 30px;
    padding-left: 20px;
}

.post-content ul {
    list-style-type: disc;
    list-style-position: outside;
}

.post-content ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.post-content li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--text);
    display: list-item;
}

.post-content li::marker {
    color: var(--primary);
    font-weight: bold;
}

.post-content strong {
    color: var(--secondary);
    font-weight: 700;
}

.content-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.content-highlight {
    background: linear-gradient(135deg, rgba(212,175,55,0.1) 0%, rgba(212,175,55,0.05) 100%);
    border-left: 4px solid var(--primary);
    padding: 25px 30px;
    margin: 40px 0;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.content-highlight i {
    font-size: 30px;
    color: var(--primary);
    margin-top: 5px;
}

.content-highlight p {
    margin: 0;
}

.content-callout {
    background: var(--secondary);
    color: var(--white);
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
}

.content-callout h3 {
    color: var(--primary);
    margin-top: 0;
}

.content-callout p {
    color: rgba(255,255,255,0.9);
    font-style: italic;
}

.post-cta {
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
    color: var(--white);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin-top: 60px;
}

.post-cta h3 {
    color: var(--white);
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 15px;
}

.post-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 25px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 60px 60px 0;
}

.author-bio img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.author-info h4 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 20px;
}

.author-info p {
    color: var(--text-light);
    margin: 0;
    font-size: 15px;
}

/* Share Buttons */
.share-buttons {
    padding: 40px 60px;
    border-top: 2px solid #f0f0f0;
}

.share-buttons h4 {
    color: var(--secondary);
    margin-bottom: 20px;
}

.share-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.email {
    background: var(--gradient);
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Related Posts */
.related-posts {
    padding: 60px;
    background: #f8f9fa;
    border-top: 2px solid #e0e0e0;
}

.related-posts h3 {
    color: var(--secondary);
    font-size: 28px;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.related-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card h4 {
    padding: 20px;
    color: var(--secondary);
    font-size: 18px;
    margin: 0;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-self: flex-start;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Custom scrollbar for sidebar */
.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.blog-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.sidebar-widget {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    color: var(--secondary);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 800;
}

.sidebar-widget p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Contact Form Widget */
.sidebar-contact-form .form-group {
    margin-bottom: 20px;
}

.sidebar-contact-form input,
.sidebar-contact-form select,
.sidebar-contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.sidebar-contact-form input:focus,
.sidebar-contact-form select:focus,
.sidebar-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.sidebar-contact-form textarea {
    resize: vertical;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
    color: var(--white);
}

.cta-widget h3 {
    color: var(--primary);
}

.cta-widget p {
    color: rgba(255,255,255,0.9);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212,175,55,0.4);
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    background: #f8f9fa;
}

.recent-post-item img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.recent-post-item h5 {
    color: var(--secondary);
    font-size: 15px;
    margin-bottom: 5px;
    font-weight: 700;
}

.recent-post-item span {
    color: var(--text-light);
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        order: -1;
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    .post-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .blog-post-hero {
        min-height: 400px;
        padding: 100px 0 100px;
    }
    
    .blog-post-title {
        font-size: 36px;
    }
    
    .blog-post-excerpt {
        font-size: 18px;
    }
    
    .post-content {
        padding: 30px 25px;
    }
    
    .post-content h2 {
        font-size: 28px;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .content-image {
        height: 250px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .author-bio {
        flex-direction: column;
        padding: 30px 25px;
        margin: 40px 25px 0;
    }
    
    .share-buttons,
    .related-posts {
        padding: 40px 25px;
    }
    
    .post-cta {
        padding: 35px 25px;
    }
    
    .sidebar-widget {
        padding: 25px;
    }
}
