/*
Theme Name: ScanDoc Blog Theme
Theme URI: https://scandoc.xyz
Author: Your Name
Author URI: https://yourwebsite.com
Description: Custom theme for ScanDoc with blog functionality
Version: 1.0
License: GPL v2 or later
Text Domain: scandocfont-size: 16px;
*/

:root {
    --primary-color: #6f42c1;
    --secondary-color: #495057;
    --border-color: #e7e7ec;
    --black: #000;
    --white: #fff;
}

a,
a:hover {
    color: var(--primary-color);
}


.blog-content h2 {
    font-size: 23px;
    line-height: 35px !important;
    font-weight: 700;
}

.blog-content h3 {
    font-size: 20px;
}


.blog-content ol {
    font-size: 16px;
    line-height: 24px !important;
    font-family: 'Montserrat';
}

.blog-content ol li {
    line-height: 28px;
}

.blog-content ul li:first-child {
    margin-top: 0px;
}

.blog-content ul li {
    margin-top: 5px;
    font-size: 16px;
    margin-left: 20px;
    line-height: 28px;
    font-family: 'Montserrat';
}

.blog-content .btn {
    background: var(--primary-color);
    color: #fff;
    height: 40px;
    padding: 0 25px;
    font-size: 18px;
    line-height: 38px;
    box-shadow: 0 0 0 0 rgb(255 255 255 / 50%);
}

.blog-content p {
    margin-bottom: -.46em;
    letter-spacing: -.003em;
    font-size: 16px;
    line-height: 28px;
}

.blog_table {
    width: 100%;
    text-align: center;
}

.blog_table tbody,
td,
tfoot,
th,
thead,
tr {
    border: 1px solid #000;
}

.blog_table th,
td {
    padding: 10px;
    font-size: 20px;
    font-family: 'Montserrat';
}

.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card:hover .badge-purple {
    display: block;
}

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

.badge-float {
    position: absolute;
    z-index: 2;
}

.badge-purple {
    background-color: #b8b2fd;
    padding: .7em 1.15em;
    border-radius: 10rem;
    display: none;
}

.sk-fade-bottom {
    opacity: 1;
    transition: opacity 0.3s;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-short-content {
    font-size: 15px;
}

.font-size-sm {
    font-size: 0.875rem;
}

.text-gray-800 {
    color: var(--secondary-color);
}

.blog-card {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--white);
    background-clip: border-box;
    border: 1px solid var(--border-color);
    border-radius: .25rem;
    position: relative;
    height: 100%;
}

.blog-card h5 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6rem;
    color: #2f2d51;
}

.blog-heading-title {
    padding-top: 80px;
    font-weight: 700;
}


/* Blog Details Page Styles */
.blog-main-content {
    padding-right: 2rem;
}

.blog-featured-image {
    max-height: 400px;
    overflow: hidden;
}

.blog-featured-image img {
    transition: transform 0.3s ease;
}

.blog-featured-image:hover img {
    transform: scale(1.02);
}

.blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Sidebar Styles */
.blog-sidebar {
    padding-left: 1rem;
}

.sidebar-banner {
    position: -webkit-sticky;
    /* for Safari */
    position: sticky;
    top: 20px;
    /* adjust distance from the top */
    overflow: hidden;
    z-index: 10;
    /* ensure it stays above other elements */
}

.sidebar-banner .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white !important;
}

.bg-gradient-warning .card-text {
    color: white !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Banner Icons */
.sidebar-banner .fas {
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Newsletter Form */
.newsletter-form .form-control {
    border-radius: 8px;
    border: none;
    padding: 0.75rem;
}

.newsletter-form .btn {
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 500;
}

/* Popular Posts */
.popular-post-item:hover {
    background-color: #f8f9fa;
}

.popular-post-item a:hover h6 {
    color: var(--primary-color) !important;
}

.popular-post-item:last-child {
    border-bottom: none !important;
}

/* Post Navigation */
.post-navigation .card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.post-navigation .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.post-navigation .card-title {
    font-size: 0.95rem;
    line-height: 1.3;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #92a6ff 0%, #764ba2 100%);
    border-radius: 12px;
}

.cta-section h3 {
    font-weight: 600;
}

.cta-section .btn {
    font-weight: 500;
    font-size: 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Author Info */
.author-info-section {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.author-info-section:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .blog-main-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .blog-sidebar {
        padding-left: 0;
    }
}

@media (max-width: 767.98px) {
    .post-navigation .col-md-6:first-child {
        margin-bottom: 1rem;
    }

    .sidebar-banner {
        margin-bottom: 1.5rem;
    }
}

/* Animation for banner cards */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-banner:nth-child(1) {
    animation: slideInUp 0.6s ease 0.1s both;
}

.sidebar-banner:nth-child(2) {
    animation: slideInUp 0.6s ease 0.2s both;
}

.sidebar-banner:nth-child(3) {
    animation: slideInUp 0.6s ease 0.3s both;
}

.sidebar-banner:nth-child(4) {
    animation: slideInUp 0.6s ease 0.4s both;
}

.sidebar-banner:nth-child(5) {
    animation: slideInUp 0.6s ease 0.5s both;
}