/*
Theme Name: My Custom Theme
Description: A custom Bootstrap WordPress theme with slider and three-column layout
Version: 1.0
*/

/* Custom styles that complement Bootstrap */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Header Styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Custom Slider Styles */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    transition: transform 8s ease-in-out;
}

.carousel-item.active .slide-background {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.gradient-overlay {
    background: linear-gradient(45deg, rgba(102,126,234,0.3), rgba(118,75,162,0.3));
}

.carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    padding: 0 15%;
}

.caption-content {
    position: relative;
    z-index: 2;
}

/* Animation Classes */
.slide-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.slide-subtitle {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.2s;
}

.slide-actions, .slide-stats {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}

.carousel-item.active .slide-title,
.carousel-item.active .slide-subtitle,
.carousel-item.active .slide-actions,
.carousel-item.active .slide-stats {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Stats */
.slide-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    color: rgba(255,255,255,0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-element.element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element.element-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element.element-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Enhanced Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background: none;
    width: auto;
    height: auto;
    font-size: 2rem;
    color: white;
}

/* Progress Bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 3;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    width: 0%;
    transition: width 5s linear;
}

.carousel-item.active ~ .carousel-progress .progress-bar {
    width: 100%;
}

/* Button Animations */
.slide-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.slide-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.slide-btn:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-caption {
        padding: 0 10%;
        text-align: center;
    }
    
    .slide-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 60px;
        height: 60px;
        margin: 0 10px;
    }
    
    .floating-elements {
        display: none;
    }
    
    .slide-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .slide-actions .btn {
        margin: 0 !important;
    }
}

/* Sidebar Widgets */
.widget {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.widget .card-header {
    background-color: #fff;
    border-bottom: 2px solid #007bff;
    font-weight: 600;
}

/* Blog Posts */
.blog-post {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

.post-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Blog Page Specific Styles */
.blog-header-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.blog-categories .btn-group {
    gap: 8px;
}

.blog-categories .btn-outline-primary.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.blog-stats span {
    padding: 8px 16px;
    background: rgba(255,255,255,0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Featured Post */
.featured-post .card {
    border-radius: 15px;
    overflow: hidden;
}

.featured-image {
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

/* Regular Posts */
.regular-posts .blog-post {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.regular-posts .blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.section-header {
    border-bottom: 3px solid #007bff;
}

.section-header h3 {
    position: relative;
    padding-bottom: 10px;
}

.section-header h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #007bff;
}

/* Reading Time Function */
<?php
// Add this to your functions.php for reading time
function reading_time() {
    $content = get_post_field('post_content', get_the_ID());
    $word_count = str_word_count(strip_tags($content));
    $reading_time = ceil($word_count / 200);
    return $reading_time . ' min read';
}
?>

/* Responsive Design */
@media (max-width: 768px) {
    .blog-categories .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .blog-categories .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .blog-stats {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .featured-post .card-img-top {
        height: 250px !important;
    }
}

/* Blog Posts Section */
.rounded-5 {
    border-radius: 1rem !important;
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.post-meta {
    font-size: 0.85rem;
}

.post-categories .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

/* Ensure proper image display */
.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Single Post Two-Column Layout */
.single-post .blog-post {
    border: none;
    background: #fff;
}

.post-meta .bi {
    font-size: 0.9rem;
}

.featured-image {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

/* Author Bio Styling */
.author-bio {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
}

.author-avatar img {
    border: 3px solid #007bff;
    width: 80px;
    height: 80px;
}

/* Post Navigation */
.post-navigation .card {
    transition: all 0.3s ease;
}

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

.post-navigation a {
    text-decoration: none;
    color: inherit;
}

/* Sidebar Widgets */
.widget .card-header {
    border-radius: 8px 8px 0 0 !important;
}

.tag-cloud .badge {
    transition: all 0.3s ease;
}

.tag-cloud .badge:hover {
    background: #007bff !important;
    color: white !important;
    transform: translateY(-1px);
}

/* Comments Styling */
.comment {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007bff;
}

.comment-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Page Links Styling */
.page-links .pagination {
    margin: 0;
}

.page-links .page-link {
    border: 1px solid #dee2e6;
    color: #007bff;
}

.page-links .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        gap: 1rem !important;
        align-items: flex-start;
    }
    
    .author-bio .row {
        text-align: center;
    }
    
    .author-bio .col-auto {
        margin-bottom: 1rem;
    }
}

/* Content Typography */
.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 2rem 0 1rem 0;
    color: #333;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

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

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

/* Sidebar Styles */
.sidebar .widget {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar .widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
}

.sidebar .card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

.sidebar .bi {
    font-size: 0.9rem;
}

/* Tag Cloud in Sidebar */
.sidebar .tag-cloud {
    line-height: 2;
}

.sidebar .tag-cloud .badge {
    transition: all 0.3s ease;
    font-weight: normal;
    padding: 0.4em 0.8em;
}

.sidebar .tag-cloud .badge:hover {
    background: #007bff !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* Recent Posts in Sidebar */
.sidebar .widget ul li {
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li:hover {
    background-color: #f8f9fa;
}

.sidebar .widget ul li a {
    transition: color 0.3s ease;
}

.sidebar .widget ul li a:hover {
    color: #007bff !important;
}

/* Search Form in Sidebar */
.sidebar .input-group {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar .input-group .form-control:focus {
    border-color: #007bff;
    box-shadow: none;
}

/* Archives Widget */
.sidebar .widget_archive ul {
    max-height: 200px;
    overflow-y: auto;
}

.sidebar .widget_archive li {
    padding: 0.25rem 0;
}

.sidebar .widget_archive a {
    color: #495057;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
}

.sidebar .widget_archive a:hover {
    color: #007bff;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        margin-top: 2rem;
    }
    
    .sidebar .widget {
        margin-bottom: 1.5rem;
    }
}

/* Custom scrollbar for sidebar widgets */
.sidebar .widget .card-body::-webkit-scrollbar {
    width: 6px;
}

.sidebar .widget .card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar .widget .card-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar .widget .card-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Comments Section Styles */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.comments-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.comments-count {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

/* Comment List Styles */
.comment-list {
    margin: 0;
    padding: 0;
}

.comment {
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
}

.comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.comment .card-body {
    padding: 1.5rem;
}

.comment-meta {
    position: relative;
}

.comment-avatar img {
    border: 3px solid #007bff;
    transition: transform 0.3s ease;
}

.comment:hover .comment-avatar img {
    transform: scale(1.05);
}

.comment-author a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
}

.comment-author a:hover {
    color: #007bff;
}

.author-badge {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.comment-date {
    font-size: 0.85rem;
}

/* Comment Content */
.comment-content {
    margin-left: 4rem;
}

@media (max-width: 576px) {
    .comment-content {
        margin-left: 0;
        margin-top: 1rem;
    }
}

.comment-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

.comment-text p {
    margin-bottom: 0.5rem;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

/* Comment Actions */
.comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-actions .btn {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.comment-actions .btn:hover {
    transform: translateY(-1px);
}

/* Comment Form Styles */
.comment-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e9ecef;
}

.comment-form-title {
    text-align: center;
}

.comment-form-title h4 {
    color: #2c3e50;
    font-weight: 600;
}

.comment-notes {
    border-radius: 8px;
    border: none;
    background: #e7f3ff;
    color: #0056b3;
}

.logged-in-as {
    border-radius: 8px;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

/* Submit Button */
.form-submit .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Comment Navigation */
.comment-navigation .pagination {
    margin: 0;
}

.comment-navigation .page-link {
    border: 1px solid #dee2e6;
    color: #007bff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment-navigation .page-link:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* Nested Comments (Replies) */
.comment .children {
    margin-left: 2rem;
    margin-top: 1rem;
    padding-left: 2rem;
    border-left: 3px solid #e9ecef;
}

@media (max-width: 768px) {
    .comment .children {
        margin-left: 1rem;
        padding-left: 1rem;
    }
}

.comment.depth-2, .comment.depth-3, .comment.depth-4, .comment.depth-5 {
    background: #f8f9fa;
    border-color: #e9ecef !important;
}

.comment.depth-2:hover, .comment.depth-3:hover, .comment.depth-4:hover, .comment.depth-5:hover {
    background: #fff;
}

/* Moderation Message */
.comment-awaiting-moderation {
    border-radius: 6px;
    border: none;
    background: #fff3cd;
    color: #856404;
}

/* Reply Form */
#respond {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comments-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .comment-form {
        padding: 1.5rem;
    }
    
    .comment-actions {
        justify-content: flex-start;
    }
}

/* Animation for new comments */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment {
    animation: fadeInUp 0.5s ease;
}

/* Focus styles for accessibility */
.comment-actions .btn:focus,
.form-control:focus,
.form-submit .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Debug styles for post images */
.post-thumbnail {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.post-thumbnail:not(:has(img))::after {
    content: "No Featured Image Set";
    color: #6c757d;
    font-style: italic;
}

.post-thumbnail:has(img) {
    background: none;
    border: none;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Ensure images are visible */
.card-img-top {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Debug styles to identify duplicate images */
.featured-image {
    border: 3px solid #28a745 !important; /* Green border for featured image */
}

.post-content img {
    border: 3px solid #dc3545 !important; /* Red border for content images */
}

/* Once debugging is done, you can remove the borders */
.featured-image,
.post-content img {
    border: none !important;
}

/* Archive Page Styles */
.archive-header {
    margin-bottom: 3rem;
}

.archive-header .card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
}

.archive-header .card-body {
    padding: 3rem 2rem;
}

.archive-header h1 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.archive-header .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
}

.archive-header .badge {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Author Archive Specific Styles */
.author-header {
    text-align: left;
}

.author-avatar img {
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.author-info {
    flex: 1;
}

/* Category/Tag Description */
.category-description,
.tag-description,
.term-description {
    font-size: 1.1rem;
    line-height: 1.6;
}

.category-description p,
.tag-description p,
.term-description p {
    margin-bottom: 1rem;
}

/* Archive Posts Grid */
.archive-page .blog-post {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.archive-page .blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.archive-page .post-thumbnail {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.archive-page .post-thumbnail img {
    transition: transform 0.3s ease;
}

.archive-page .blog-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Archive Pagination */
.archive-page .blog-pagination .pagination {
    margin: 2rem 0;
}

.archive-page .page-link {
    border-radius: 8px;
    margin: 0 0.25rem;
    font-weight: 500;
    border: 2px solid #dee2e6;
    color: #495057;
    transition: all 0.3s ease;
}

.archive-page .page-link:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-1px);
}

/* No Posts Styling */
.archive-page .alert-warning {
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.archive-page .alert-warning .display-1 {
    font-size: 4rem;
    opacity: 0.7;
}

/* Responsive Archive Styles */
@media (max-width: 768px) {
    .archive-header .card-body {
        padding: 2rem 1rem;
    }
    
    .archive-header h1 {
        font-size: 2rem !important;
    }
    
    .author-header {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0 !important;
        margin-bottom: 1.5rem;
    }
    
    .author-info {
        text-align: center;
    }
    
    .archive-page .post-tags {
        display: none; /* Hide tags on mobile for cleaner layout */
    }
}

/* Archive Meta Information */
.archive-meta {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.archive-meta .badge {
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Breadcrumb Style Navigation */
.archive-breadcrumb {
    background: #e9ecef;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.archive-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.archive-breadcrumb a:hover {
    text-decoration: underline;
}

/* Archive Filter Styles */
.archive-filters {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.archive-filters h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}


/* Single Dog Page Styles */
.dog-hero-section {
    position: relative;
}

.dog-main-image {
    position: relative;
    height: 600px;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 60px 0 30px;
    color: white;
}

.quick-info-sidebar {
    background: #f8f9fa;
    padding: 30px 20px;
}

.adoption-card {
    border-radius: 20px;
}

.energy-level .bi {
    font-size: 1.2rem;
    margin-right: 2px;
}

/* Gallery Styles */
.dog-gallery-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Detail Cards */
.detail-card {
    border-radius: 15px;
    overflow: hidden;
}

.detail-card .card-header {
    border: none;
    padding: 20px 25px;
}

.detail-card .card-body {
    padding: 30px;
}

.temperament-tags .badge {
    font-size: 0.9rem;
    border-radius: 20px;
}

/* Social Scores */
.social-score {
    padding: 20px 10px;
}

.social-score .bi {
    opacity: 0.8;
}

/* Progress Bars */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    font-weight: 600;
    font-size: 0.8rem;
}

/* Contact Card */
.contact-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

/* Sticky Sidebar */
.sticky-top {
    z-index: 100;
}

/* Modal Styles */
.modal-header {
    border: none;
}

.modal-footer {
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dog-main-image {
        height: 400px;
    }
    
    .hero-overlay {
        padding: 30px 0 20px;
    }
    
    .hero-overlay h1 {
        font-size: 2rem;
    }
    
    .quick-info-sidebar {
        padding: 20px 15px;
    }
    
    .detail-card .card-body {
        padding: 20px;
    }
    
    .social-score {
        padding: 15px 5px;
    }
}

/* Animation */
.dog-card-item {
    transition: all 0.3s ease;
}

.gallery-item {
    transition: all 0.3s ease;
}

/* Badge Styles */
.badge {
    font-weight: 500;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Placeholder Styles */
.placeholder-hero {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.placeholder-hero .bi {
    opacity: 0.3;
}

/* Dogs Archive Styles */
.dogs-archive-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.dogs-archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.hero-stats .stat-item {
    padding: 15px 25px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.hero-stats .stat-number {
    font-weight: 700;
}

/* Filter Styles */
.dogs-filters {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.filter-buttons .btn {
    border-radius: 25px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.filter-buttons .btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Dog Cards */
.dog-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.dog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.dog-card-image {
    position: relative;
    overflow: hidden;
}

.dog-card-image img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Card Badges */
.card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.card-badges .badge {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.badge.bg-pink {
    background: #e83e8c !important;
}

/* Card Actions */
.card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.dog-card:hover .card-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 6px 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Quick Info */
.dog-quick-info {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.energy-dots {
    display: flex;
    gap: 3px;
}

.energy-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dee2e6;
    transition: all 0.3s ease;
}

.energy-dot.active {
    background: #ffc107;
}

.energy-dot.active:nth-child(1) { background: #28a745; }
.energy-dot.active:nth-child(2) { background: #20c997; }
.energy-dot.active:nth-child(3) { background: #ffc107; }
.energy-dot.active:nth-child(4) { background: #dc3545; }

/* Pagination */
.dogs-pagination .page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.dogs-pagination .page-numbers li {
    margin: 0;
}

.dogs-pagination .page-numbers a,
.dogs-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dogs-pagination .page-numbers a:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.dogs-pagination .page-numbers .current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* CTA Section */
.dogs-cta-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* No Dogs Found */
.no-dogs-found {
    padding: 60px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dogs-archive-hero {
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .filter-buttons {
        text-align: center;
    }
    
    .dog-quick-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-actions {
        opacity: 1;
        transform: translateX(0);
        flex-direction: row;
    }
    
    .dogs-pagination .page-numbers {
        flex-wrap: wrap;
    }
}

/* Animation for grid items */
.dog-grid-item {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter animation */
.dog-grid-item {
    transition: all 0.3s ease;
}

.dog-grid-item.hidden {
    display: none;
}

/* Placeholder image */
.placeholder-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.placeholder-image .bi {
    opacity: 0.3;
}

/* Particle Background Effect */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: particle-float 15s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Text Glow Effect */
.glow-text {
    text-shadow: 0 0 10px rgba(255,255,255,0.5),
                 0 0 20px rgba(255,255,255,0.3),
                 0 0 30px rgba(255,255,255,0.1);
    animation: text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
    from {
        text-shadow: 0 0 10px rgba(255,255,255,0.5),
                     0 0 20px rgba(255,255,255,0.3),
                     0 0 30px rgba(255,255,255,0.1);
    }
    to {
        text-shadow: 0 0 20px rgba(255,255,255,0.8),
                     0 0 30px rgba(255,255,255,0.6),
                     0 0 40px rgba(255,255,255,0.4);
    }
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid #fff;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #fff }
}

.whatsapp-form-trigger {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.whatsapp-form-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}