/* PetsHeaven Blog & Articles Stylesheet (Cached) */

/* --- Blog Listing --- */
/* ===== HERO SECTION ===== */
    .blog-hero {
        position: relative;
        height: 500px;
        overflow: hidden;
        margin-bottom: 50px;
    }
    .blog-hero .slides-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .blog-hero .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }
    .blog-hero .slide.active {
        opacity: 1;
    }
    .blog-hero .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
        z-index: 1;
    }
    .blog-hero .hero-content {
        position: relative;
        z-index: 2;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        color: white;
        padding: 0 20px;
    }
    .blog-hero .hero-content h1 {
        font-size: 52px;
        margin-bottom: 15px;
        animation: fadeInUp 0.8s ease;
    }
    .blog-hero .hero-content p {
        font-size: 18px;
        opacity: 0.95;
        max-width: 600px;
        margin: 0 auto;
        animation: fadeInUp 1s ease;
    }
    .blog-hero .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        background: rgba(255,255,255,0.2);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 20px;
        cursor: pointer;
        z-index: 3;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .blog-hero .slider-arrow:hover {
        background: rgba(255,255,255,0.4);
        transform: translateY(-50%) scale(1.1);
    }
    .blog-hero .prev { left: 20px; }
    .blog-hero .next { right: 20px; }
    .blog-hero .slider-dots {
        position: absolute;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 12px;
        z-index: 3;
    }
    .blog-hero .dot {
        width: 10px;
        height: 10px;
        background: rgba(255,255,255,0.5);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s;
    }
    .blog-hero .dot.active {
        background: white;
        width: 25px;
        border-radius: 10px;
    }
    .blog-search {
        display: flex;
        gap: 10px;
        max-width: 500px;
        width: 100%;
        margin-top: 30px;
    }
    .blog-search input {
        flex: 1;
        padding: 12px 20px;
        border: none;
        border-radius: 50px;
        font-size: 16px;
        outline: none;
    }
    .blog-search button {
        background: #ffd700;
        border: none;
        padding: 12px 25px;
        border-radius: 50px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }
    .blog-search button:hover {
        background: #ffc107;
        transform: scale(1.02);
    }
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* ===== BLOG STYLES ===== */
    .blog-container {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 40px;
        margin: 50px 0;
    }
    .blog-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
    .blog-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
        transition: all 0.3s;
    }
    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }
    .blog-card-image {
        height: 200px;
        overflow: hidden;
    }
    .blog-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s;
    }
    .blog-card:hover .blog-card-image img {
        transform: scale(1.05);
    }
    .blog-card-content {
        padding: 20px;
    }
    .blog-card-category {
        display: inline-block;
        background: #c0392b;
        color: white;
        font-size: 11px;
        padding: 3px 10px;
        border-radius: 20px;
        margin-bottom: 10px;
    }
    .blog-card-title {
        font-size: 18px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    .blog-card-excerpt {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    /* GALLERY THUMBNAILS IN BLOG CARD - FIXED */
    .blog-card-gallery {
        display: flex;
        gap: 6px;
        margin: 12px 0;
        flex-wrap: wrap;
        align-items: center;
    }
    .blog-card-gallery .thumb {
        width: 55px;
        height: 55px;
        border-radius: 8px;
        object-fit: cover;
        border: 1px solid #e0e0e0;
        transition: transform 0.2s;
    }
    .blog-card-gallery .thumb:hover {
        transform: scale(1.05);
        border-color: #c0392b;
    }
    .gallery-more-badge {
        background: #c0392b;
        color: white;
        font-size: 11px;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 20px;
        margin-left: 5px;
    }
    
    .blog-card-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        color: #999;
        border-top: 1px solid #eee;
        padding-top: 15px;
        margin-top: 10px;
    }
    .read-more {
        color: #c0392b;
        font-weight: 600;
        text-decoration: none;
    }
    .read-more:hover {
        text-decoration: underline;
    }
    .blog-sidebar {
        position: sticky;
        top: 100px;
    }
    .sidebar-widget {
        background: white;
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 30px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    }
    .sidebar-widget h3 {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #c0392b;
    }
    .category-list {
        list-style: none;
        padding: 0;
    }
    .category-list li {
        padding: 8px 0;
        border-bottom: 1px dashed #eee;
    }
    .category-list a {
        color: #666;
        text-decoration: none;
        display: flex;
        justify-content: space-between;
    }
    .category-list a:hover { color: #c0392b; }
    .popular-post {
        display: flex;
        gap: 12px;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    .popular-post img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
    }
    .popular-post h4 {
        font-size: 13px;
        margin: 0 0 5px;
    }
    .popular-post a {
        color: #2c3e50;
        text-decoration: none;
    }
    .popular-post a:hover { color: #c0392b; }
    .popular-post span {
        font-size: 11px;
        color: #999;
    }
    .pagination {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 40px;
    }
    .pagination a, .pagination span {
        padding: 8px 14px;
        border-radius: 8px;
        background: white;
        color: #c0392b;
        text-decoration: none;
        border: 1px solid #e0e0e0;
    }
    .pagination .active {
        background: #c0392b;
        color: white;
        border-color: #c0392b;
    }
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    @media (max-width: 992px) {
        .blog-hero { height: 450px; }
        .blog-hero .hero-content h1 { font-size: 42px; }
    }
    @media (max-width: 768px) {
        .blog-hero { height: 400px; margin-bottom: 30px; }
        .blog-hero .hero-content h1 { font-size: 32px; }
        .blog-hero .hero-content p { font-size: 14px; }
        .blog-container { grid-template-columns: 1fr; margin: 30px 0; }
        .blog-grid { grid-template-columns: 1fr; }
        .blog-search { flex-direction: column; max-width: 300px; }
        .blog-search input, .blog-search button { border-radius: 30px; }
    }
    @media (max-width: 480px) {
        .blog-hero { height: 350px; }
        .blog-hero .hero-content h1 { font-size: 26px; }
        .blog-hero .hero-content p { font-size: 12px; }
        .blog-card-title { font-size: 16px; }
    }

/* --- Blog Details --- */
/* ===== HERO SECTION ===== */
    .blog-details-hero {
        position: relative;
        height: 500px;
        overflow: hidden;
    }
    .blog-details-hero .slides-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .blog-details-hero .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }
    .blog-details-hero .slide.active { opacity: 1; }
    .blog-details-hero .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
        z-index: 1;
    }
    .blog-details-hero .hero-content {
        position: relative;
        z-index: 2;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        color: white;
        padding: 0 20px;
    }
    .blog-details-hero .hero-content h1 {
        font-size: 42px;
        margin-bottom: 15px;
        max-width: 800px;
    }
    .blog-details-hero .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        background: rgba(255,255,255,0.2);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 20px;
        cursor: pointer;
        z-index: 3;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .blog-details-hero .slider-arrow:hover {
        background: rgba(255,255,255,0.4);
        transform: translateY(-50%) scale(1.1);
    }
    .blog-details-hero .prev { left: 20px; }
    .blog-details-hero .next { right: 20px; }
    .blog-details-hero .slider-dots {
        position: absolute;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 12px;
        z-index: 3;
    }
    .blog-details-hero .dot {
        width: 10px;
        height: 10px;
        background: rgba(255,255,255,0.5);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s;
    }
    .blog-details-hero .dot.active {
        background: white;
        width: 25px;
        border-radius: 10px;
    }
    .blog-details-meta {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 20px;
    }
    .blog-details-meta span {
        background: rgba(0,0,0,0.5);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 14px;
    }

    /* ===== BLOG DETAILS STYLES ===== */
    .blog-details-container {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 40px;
        margin: 50px 0;
    }
    .blog-content {
        background: white;
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    }
    .blog-featured-image {
        margin-bottom: 30px;
        border-radius: 16px;
        overflow: hidden;
    }
    .blog-featured-image img {
        width: 100%;
        border-radius: 16px;
    }
    
    /* ✅ GALLERY SECTION STYLES */
    .blog-gallery {
        margin: 30px 0;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 16px;
    }
    .blog-gallery h3 {
        margin-bottom: 15px;
        color: #2c3e50;
    }
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    .gallery-grid img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 10px;
        cursor: pointer;
        transition: transform 0.3s, box-shadow 0.3s;
        border: 2px solid transparent;
    }
    .gallery-grid img:hover {
        transform: scale(1.02);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        border-color: #c0392b;
    }
    
    .blog-content-body {
        font-size: 16px;
        line-height: 1.8;
        color: #2c3e50;
    }
    .blog-content-body p { margin-bottom: 20px; }
    .blog-content-body h1,
    .blog-content-body h2,
    .blog-content-body h3,
    .blog-content-body h4 {
        color: #1e293b;
        margin-top: 32px;
        margin-bottom: 16px;
        font-weight: 700;
        line-height: 1.35;
    }
    .blog-content-body h1 { font-size: 26px; }
    .blog-content-body h2 { font-size: 22px; border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; }
    .blog-content-body h3 { font-size: 19px; }
    .blog-content-body h4 { font-size: 17px; }
    .blog-content-body ul,
    .blog-content-body ol {
        margin: 15px 0 24px 24px;
        padding-left: 8px;
    }
    .blog-content-body li {
        margin-bottom: 8px;
        line-height: 1.7;
    }
    .blog-content-body hr {
        border: none;
        height: 1px;
        background: #e2e8f0;
        margin: 36px 0;
    }
    .blog-content-body strong,
    .blog-content-body b {
        color: #0f172a;
        font-weight: 600;
    }
    .blog-content-body a {
        color: #c0392b;
        text-decoration: underline;
    }
    .blog-content-body a:hover {
        color: #8b0000;
    }
    .blog-tags {
        margin: 30px 0;
        padding: 15px 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    .blog-tags a {
        display: inline-block;
        background: #f0f0f0;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 12px;
        color: #666;
        text-decoration: none;
        margin-right: 8px;
    }
    .blog-share {
        margin: 20px 0;
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }
    .blog-share a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        transition: transform 0.2s;
    }
    .blog-share a:hover { transform: translateY(-2px); }
    .share-facebook { background: #1877f2; }
    .share-twitter { background: #1da1f2; }
    .share-whatsapp { background: #25d366; }
    .share-linkedin { background: #0077b5; }
    
    .comments-section {
        margin-top: 40px;
        padding-top: 30px;
        border-top: 2px solid #eee;
    }
    .comment {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
    }
    .comment-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }
    .comment-author { font-weight: 700; color: #2c3e50; }
    .comment-date { font-size: 12px; color: #999; }
    .comment-text { color: #555; line-height: 1.6; }
    .comment-form {
        background: #f8f9fa;
        border-radius: 16px;
        padding: 25px;
        margin-top: 30px;
    }
    .comment-form input, .comment-form textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    .comment-form button {
        background: linear-gradient(135deg, #c0392b, #8b0000);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 8px;
        cursor: pointer;
    }
    .related-posts {
        margin-top: 50px;
        padding-top: 30px;
        border-top: 2px solid #eee;
    }
    .related-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }
    .related-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        text-decoration: none;
        color: inherit;
        transition: transform 0.2s;
    }
    .related-card:hover { transform: translateY(-3px); }
    .related-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }
    .related-card h4 { padding: 15px; font-size: 14px; margin: 0; }
    
    .sidebar-widget {
        background: white;
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 30px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
        position: sticky;
        top: 100px;
    }
    .sidebar-widget h3 {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #c0392b;
    }
    .popular-post {
        display: flex;
        gap: 12px;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    .popular-post img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
    }
    .popular-post h4 { font-size: 13px; margin: 0 0 5px; }
    .popular-post a { color: #2c3e50; text-decoration: none; }
    .popular-post a:hover { color: #c0392b; }
    .popular-post span { font-size: 11px; color: #999; }
    
    .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    @media (max-width: 992px) {
        .blog-details-hero { height: 450px; }
        .blog-details-hero .hero-content h1 { font-size: 32px; }
    }
    @media (max-width: 768px) {
        .blog-details-hero { height: 400px; }
        .blog-details-hero .hero-content h1 { font-size: 24px; }
        .blog-details-container { grid-template-columns: 1fr; }
        .blog-content { padding: 20px; }
        .blog-details-meta span { font-size: 11px; }
        .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
        .gallery-grid img { height: 100px; }
    }
