/*
Theme Name: ScanDoc 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: scandoc
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Basic Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none !important;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Header Styles */
.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.navbar-toggler:focus,
.btn-hero:focus,
.btn-outline-primary:focus {
    outline: none !important;
    outline-offset: unset !important;
    box-shadow: none !important;
}

/* Blog Listing Styles */
.blog-archive {
    padding: 60px 0;
}

.page-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.blog-card-content {
    padding: 20px;
}

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

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.reading-time {
    padding-left: 15px;
    border-left: 1px solid #ddd;
}

.blog-card-title {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: #0073aa;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more-link {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more-link:hover {
    color: #005a87;
}

/* Blog Archive Styles */
.blog-archive {
    padding: 40px 0;
}

.blog-archive .page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: bold;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 14px;
    color: #666;
}

.reading-time {
    font-size: 14px;
    color: #999;
}

.blog-card-title a {
    text-decoration: none;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #00d4aa;
}

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

.read-more-link {
    color: #00d4aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #00b894;
}

/* Single Blog Post Styles */
.single-blog-post .blog-banner {
    position: relative;
    height: 60vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Remove image-related styles and add bubble animation */
.blog-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    z-index: 2;
}

.blog-banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Animated Bubbles */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.6;
    animation: bubble-float 15s infinite linear;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.bubble:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 35%;
    animation-delay: 4s;
    animation-duration: 16s;
}

.bubble:nth-child(4) {
    width: 30px;
    height: 30px;
    left: 50%;
    animation-delay: 1s;
    animation-duration: 13s;
}

.bubble:nth-child(5) {
    width: 80px;
    height: 80px;
    left: 65%;
    animation-delay: 3s;
    animation-duration: 18s;
}

.bubble:nth-child(6) {
    width: 25px;
    height: 25px;
    left: 75%;
    animation-delay: 5s;
    animation-duration: 11s;
}

.bubble:nth-child(7) {
    width: 45px;
    height: 45px;
    left: 85%;
    animation-delay: 6s;
    animation-duration: 15s;
}

.bubble:nth-child(8) {
    width: 35px;
    height: 35px;
    left: 5%;
    animation-delay: 8s;
    animation-duration: 17s;
}

.bubble:nth-child(9) {
    width: 55px;
    height: 55px;
    left: 90%;
    animation-delay: 7s;
    animation-duration: 14s;
}

.bubble:nth-child(10) {
    width: 70px;
    height: 70px;
    left: 15%;
    animation-delay: 9s;
    animation-duration: 19s;
}

@keyframes bubble-float {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0) scale(0);
    }

    10% {
        opacity: 0.6;
        transform: translateY(90vh) translateX(10px) scale(1);
    }

    90% {
        opacity: 0.6;
        transform: translateY(-10vh) translateX(-10px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-20vh) translateX(0) scale(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .single-blog-post .blog-banner {
        height: 50vh;
        min-height: 400px;
    }

    .blog-main-title {
        font-size: 2.5rem;
    }

    .bubble {
        display: none;
        /* Hide some bubbles on mobile for performance */
    }

    .bubble:nth-child(odd) {
        display: block;
    }
}

/* Additional floating elements for more visual interest */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    top: 20%;
    left: 80%;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 30%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    top: 60%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    animation-delay: 5s;
}

.shape:nth-child(3) {
    top: 80%;
    right: 20%;
    width: 60px;
    height: 60px;
    background: white;
    transform: rotate(45deg);
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) rotate(120deg);
    }

    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

.blog-meta-top {
    margin-bottom: 20px;
}

.blog-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.blog-main-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 30px 0;
    line-height: 1.2;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00d4aa;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.download-btn:hover {
    background: #00b894;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 170, 0.3);
}

.download-icon {
    font-size: 18px;
}

/* Content Section */
.blog-content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 80px 0;
    align-items: start;
}

.blog-content-image {
    position: sticky;
    top: 100px;
}

.content-main-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-content-text {
    padding: 20px 0;
}

.blog-intro {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

.blog-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 50px;
}

.blog-content h2 {
    color: #333;
    margin: 30px 0 20px;
    font-size: 1.8rem;
}

.blog-content h3 {
    color: #333;
    margin: 25px 0 15px;
    font-size: 1.4rem;
}

.blog-content p {
    margin-bottom: 16px !important;
}

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

.blog-content li {
    margin-bottom: 10px;
}

/* Author Info */
.author-info-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.author-info-section .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details .author-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.author-designation {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.blog-date-time {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #999;
}

/* Success Stories Section */
.success-stories-section {
    margin: 80px 0;
    text-align: center;
}

.success-stories-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.success-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.success-story-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

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

.success-story-card h3 {
    padding: 25px 25px 15px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.success-story-card p {
    padding: 0 25px 25px;
    color: #666;
    font-size: 14px;
}

/* Call to Action */
.cta-section {
    text-align: center;
    margin: 80px 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: #00d4aa;
    color: white;
    padding: 15px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #00b894;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 170, 0.3);
}

/* Categories */
.blog-categories {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.blog-categories h3 {
    margin-bottom: 15px;
    color: #333;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag {
    display: inline-block;
    padding: 8px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: #00d4aa;
    color: white;
}

/* Post Navigation */
.post-navigation {
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    color: #00d4aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00b894;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 12px 18px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #00d4aa;
    color: white;
    border-color: #00d4aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-main-title {
        font-size: 2rem;
    }

    .blog-content-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-content-image {
        position: static;
    }

    .success-stories-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .author-info-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .blog-date-time {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .blog-banner {
        height: 50vh;
        min-height: 400px;
    }

    .blog-main-title {
        font-size: 1.8rem;
    }

    .blog-card-content {
        padding: 20px;
    }

    .success-stories-section h2 {
        font-size: 2rem;
    }

    .blog-content-section {
        gap: 30px;
        margin: 50px 0;
    }

    .container {
        padding: 0 15px;
    }
}

/* Loading and Error States */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.no-posts p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Print Styles */
@media print {
    .blog-banner {
        height: auto;
        min-height: auto;
        page-break-inside: avoid;
    }

    .success-stories-section,
    .cta-section,
    .post-navigation {
        display: none;
    }

    .blog-content-section {
        grid-template-columns: 1fr;
    }

    .blog-content-image {
        position: static;
        margin-bottom: 30px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-main-title {
        font-size: 28px;
    }

    .blog-content-wrapper {
        padding: 20px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
}