/**
 * Scoped Custom CSS for Hosting Captain Blog System
 */

/* Blog List Card Transforms */
.hover-translate-y {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-translate-y:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Category Badge Positioning */
.post-category-badge {
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Image Aspect Fit cover */
.object-fit-cover {
    object-fit: cover;
}

/* Line clamping for post descriptions & title */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Table of Contents container */
.hc-toc-container {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.hc-toc-title {
    color: #1e293b;
    font-size: 1.1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}
.hc-toc-list li {
    margin-bottom: 0.5rem;
}
.hc-toc-list li a {
    color: #334155;
    font-size: 0.95rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}
.hc-toc-list li a:hover,
.hc-toc-list li a.active {
    color: #0d6efd;
    padding-left: 5px;
    font-weight: 600;
}

/* Custom Blockquote */
.hc-blog-quote {
    border-left: 4px solid #0d6efd;
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}
.hc-blog-quote p {
    font-style: italic;
    color: #475569;
}

/* Author block card adjustments */
.singleblog-review1 img {
    transition: transform 0.3s ease;
}
.singleblog-review1 img:hover {
    transform: scale(1.05);
}

/* Headings within body content */
.blog-body-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
    scroll-margin-top: 100px; /* offset for fixed header */
}
.blog-body-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 100px;
}
.blog-body-content p {
    margin-bottom: 1.25rem;
    color: #475569;
}

/* Accordion FAQs customization */
#blogPostFaqAccordion .card {
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
}
#blogPostFaqAccordion .card-header button {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
#blogPostFaqAccordion .card-header button.collapsed i {
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}
#blogPostFaqAccordion .card-header button:not(.collapsed) i {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

/* Social icons flex wrap gap */
.gap-2 {
    gap: 0.5rem;
}

/* Transition-all helper */
.transition-all {
    transition: all 0.2s ease-in-out;
}

/* Interactive hover color adjustments */
.hover-text-primary:hover {
    color: #0d6efd !important;
}
.hover-bg-primary:hover {
    background-color: #0d6efd !important;
}

/* Responsive fixes */
@media (max-width: 991px) {
    .sidebar.sticky-sidebar {
        position: static !important;
    }
}
