/* Orange theme colors */
:root {
    --orange: #ff8c00;
    --orange-light: #fff3eb;
    --orange-hover: #e07d00;
    --dark: #2d3748;
    --light: #f8f9fa;
    --border: #e9ecef;
    --gray: #6c757d;
    --website-orange: #ff8c00; /* Website's exact orange color */
}

/* Breadcrumb styling */
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--orange);
}

.breadcrumb-item.active {
    color: var(--orange);
    font-weight: 500;
}

.breadcrumb-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--orange);
    text-decoration: none;
}

/* Modern card styles */
.modern-card {
    position: relative;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    cursor: pointer;
}

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

/* Card link overlay makes entire card clickable */
.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--website-orange);
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.card-content {
    padding: 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--gray);
}

.title-link {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    z-index: 2;
}

.title-link:hover {
    color: var(--website-orange);
    text-decoration: none;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text {
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.read-more i {
    transition: transform 0.2s ease;
}

.read-more:hover {
    color: var(--orange-hover);
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Sidebar styling */
.sidebar-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    margin-bottom: 25px;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--orange), var(--orange-hover));
    color: white;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
}

.sidebar-body {
    padding: 0;
}

/* Category list styling */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    border-bottom: 1px solid var(--border);
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 12px 18px;
}

.category-link:hover {
    background-color: var(--orange-light);
    color: var(--website-orange);
    text-decoration: none;
}

.category-name {
    font-weight: 500;
}

.category-count {
    background-color: var(--light);
    color: var(--gray);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-link:hover .category-count {
    background-color: var(--orange);
    color: white;
}

/* Popular posts styling */
.popular-post {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.2s ease;
}

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

.popular-post:hover {
    background-color: var(--orange-light);
    text-decoration: none;
}

.popular-post-img {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
}

.popular-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-post:hover .popular-post-img img {
    transform: scale(1.05);
}

.popular-post-content {
    flex-grow: 1;
}

.popular-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post:hover .popular-post-title {
    color: var(--website-orange);
}

.popular-post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray);
}

/* Custom styles for pagination */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: var(--orange);
    border-radius: 4px;
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background-color: var(--website-orange);
    border-color: var(--website-orange);
    color: white;
}

.pagination .page-item:not(.active) .page-link:hover {
    background-color: var(--orange-light);
}

/* Blog detail specific styles */
.blog-post {
    color: #333;
}

.blog-post-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.blog-post-meta {
    color: var(--gray);
    font-size: 0.95rem;
}

.blog-post-image {
    position: relative;
}

.blog-post-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.blog-post-content h3 {
    font-size: 1.5rem;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

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

.blog-post-content blockquote {
    border-left: 4px solid var(--orange);
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--gray);
}

.blog-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px; /* Changed from 30px to 4px for original style */
    background-color: var(--website-orange);
    color: white;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    font-weight: 500;
}

.blog-tag:hover {
    background-color: var(--orange-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(255, 140, 0, 0.3);
}

/* Share buttons styling */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-button:hover {
    transform: translateY(-3px);
}

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

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

.share-button.whatsapp {
    background-color: #25d366;
}

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

.share-button.copy {
    background-color: var(--website-orange);
    border: none;
    cursor: pointer;
}

/* Copy tooltip */
.copy-tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--dark);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.copy-tooltip.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Add these responsive fixes at the bottom of the file */

/* Mobile responsiveness fixes */
@media (max-width: 767px) {
    /* Blog cards */
    .card-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

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

    /* Blog post meta info */
    .blog-post-meta .d-flex {
        flex-wrap: wrap;
        gap: 10px;
    }

    .blog-post-meta .me-4 {
        margin-right: 0 !important;
    }

    /* Share buttons - stack on smaller screens */
    .blog-post-share .share-buttons {
        flex-wrap: wrap;
    }

    /* Popular posts */
    .popular-post-meta {
        flex-direction: column;
        gap: 3px;
    }

    /* Related posts */
    .related-posts .card-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Author profile image */
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid var(--orange-light);
}

.blog-post-author {
    display: flex;
    align-items: center;
}

/* Update all orange color references */
.breadcrumb-item + .breadcrumb-item::before,
.breadcrumb-item.active,
.breadcrumb-item a:hover,
.read-more,
.pagination .page-link,
.blog-header .nav-link.active,
.blog-header .nav-link:hover,
.blog-search-btn,
.featured-post-category,
.title-link:hover,
.widget-title::after {
    color: var(--website-orange);
}

.card-category,
.category-link:hover .category-count,
.blog-tag,
.share-button,
.modern-card .card-category,
.pagination .page-item.active .page-link,
.sidebar-header,
.comment-submit-btn {
    background-color: var(--website-orange);
    color: white;
}

/* For bordered elements */
.pagination .page-item.active .page-link {
    border-color: var(--website-orange);
}

/* For focus states and other interactive elements */
.blog-search-input:focus {
    border-color: var(--website-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}

/* Fix the comment submit button visibility */
.comment-submit-btn {
    background-color: var(--website-orange);
    border-color: var(--website-orange);
    color: white;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.comment-submit-btn:hover {
    background-color: var(--orange-hover);
    border-color: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
}
