/* Blog Styles */
:root {
    --primary-color: #e63946;
    --secondary-color: #f4a261;
    --accent-color: #2a9d8f;
    --dark: #222222;
    --light: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --border-color: #dee2e6;
}

/* Review Box - Material Design Button Style */
.review-box-blog {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    border: none;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    flex-shrink: 0;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}

.review-box-blog:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
}

.review-box-blog:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.review-box-blog .stars {
    display: flex;
    gap: 1px;
    align-items: center;
}

.review-box-blog .stars i {
    color: #FFD700;
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.review-box-blog .rating-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* Enhanced Pagination with Animations */
.pagination-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    animation: fadeInUp 0.6s ease-out;
}

.custom-pagination {
    margin: 0;
    gap: 8px;
}

.custom-pagination .page-item {
    animation: slideInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.custom-pagination .page-item:nth-child(1) { animation-delay: 0.1s; }
.custom-pagination .page-item:nth-child(2) { animation-delay: 0.2s; }
.custom-pagination .page-item:nth-child(3) { animation-delay: 0.3s; }
.custom-pagination .page-item:nth-child(4) { animation-delay: 0.4s; }
.custom-pagination .page-item:nth-child(5) { animation-delay: 0.5s; }
.custom-pagination .page-item:nth-child(6) { animation-delay: 0.6s; }
.custom-pagination .page-item:nth-child(7) { animation-delay: 0.7s; }

.custom-pagination .page-link {
    border: 2px solid #e0e0e0;
    color: #28a745;
    padding: 12px 18px;
    margin: 0;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-decoration: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.custom-pagination .page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.custom-pagination .page-link:hover::before {
    left: 100%;
}

.custom-pagination .page-link:hover {
    background: #F4320B;
    border-color: #F4320B;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(244, 50, 11, 0.4);
}

.custom-pagination .page-item.active .page-link {
    background: #F4320B;
    border-color: #F4320B;
    color: white;
    box-shadow: 0 6px 20px rgba(244, 50, 11, 0.5);
    transform: translateY(-2px) scale(1.1);
    animation: pulse 2s infinite;
}

.custom-pagination .prev-btn,
.custom-pagination .next-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #28a745;
    font-weight: 700;
    padding: 12px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-pagination .prev-btn::after,
.custom-pagination .next-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.custom-pagination .prev-btn:hover::after,
.custom-pagination .next-btn:hover::after {
    width: 300px;
    height: 300px;
}

.custom-pagination .prev-btn:hover,
.custom-pagination .next-btn:hover {
    background: #F4320B;
    border-color: #F4320B;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(244, 50, 11, 0.4);
    color: white;
}

.custom-pagination .page-item.disabled .page-link {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    border-color: transparent;
    cursor: not-allowed;
}

.custom-pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    background: rgba(108, 117, 125, 0.1);
}

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

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

/* Pulse animation for active page */
@keyframes pulse {
    0% {
        box-shadow: 0 6px 20px rgba(244, 50, 11, 0.5);
    }
    50% {
        box-shadow: 0 8px 25px rgba(244, 50, 11, 0.8);
    }
    100% {
        box-shadow: 0 6px 20px rgba(244, 50, 11, 0.5);
    }
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

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

.navbar-brand .logo {
    display: flex;
    align-items: center;
}

.navbar-brand .logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #e63946, #f4a261);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-left: 10px;
    margin-bottom: 0;
}

.logo-icon {
    font-size: 2rem;
    color: #e63946;
}

.navbar-nav .nav-link {
    color: #222222;
    font-weight: 500;
    padding: 10px 15px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.search-form .input-group {
    width: 250px;
}

/* Breadcrumb */
.breadcrumb-section {
    background-color: var(--light-gray);
    padding: 30px 0;
    margin-bottom: 40px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 10px;
}

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

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0;
    color: var(--dark);
    font-weight: 600;
}

/* Main Content */
.main-content {
    min-height: 60vh;
    padding: 40px 0;
}

/* Blog Post Cards - Smaller and More Compact */
.blog-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    max-width: 100%;
}

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

.post-image {
    position: relative;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 0;
    background: #f8f9fa;
}

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


.post-content {
    padding: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray);
}

.post-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.post-meta-reviews {
    flex-shrink: 0;
    margin-left: auto;
}

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

.post-meta .author img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.post-meta .category {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.post-meta .date,
.post-meta .views {
    white-space: nowrap;
    flex-shrink: 0;
}

.post-meta .views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.excerpt-text {
    margin: 0;
    position: relative;
}

.excerpt-full {
    display: block;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 10;
}

.see-more-btn {
    background: none;
    color: #28a745;
    border: none;
    padding: 0;
    font-size: inherit;
    font-weight: 500;
    cursor: pointer;
    margin-left: 4px;
    transition: color 0.3s ease;
    display: inline;
    text-decoration: none;
}

.see-more-btn:hover {
    color: #1e7e34;
    text-decoration: underline;
}

.see-more-btn.expanded {
    color: #6c757d;
}

.see-more-btn.expanded:hover {
    color: #495057;
    text-decoration: underline;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

.read-more {
background-color: rgba(230, 57, 70, 0.1);
border: 1px solid var(--primary-color);
color: var(--primary-color);
padding: 10px 20px;
border-radius: 25px;
font-weight: 500;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
text-decoration: none;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.read-more:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

/* Sidebar */
.sidebar-widget {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.sidebar-widget h4 {
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-list a {
    color: var(--gray);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list .count {
    background: var(--light-gray);
    color: var(--gray);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Recent Posts */
.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-thumb {
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.recent-post-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.recent-post-info h4 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-info h4 a:hover {
    color: var(--primary-color);
}

.recent-post-info .date {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--light-gray);
    color: var(--gray);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-link {
    color: var(--gray);
    border: 1px solid #eaeaea;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 8px;
}

.pagination .page-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-widget h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #999;
    text-decoration: none;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
}

.newsletter-form .input-group {
    border-radius: 5px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: white;
}

.newsletter-form .btn-subscribe {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.newsletter-form .btn-subscribe:hover {
    background-color: #c53030;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    margin-top: 40px;
}

.copyright {
    margin-bottom: 0;
    color: #999;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-links a {
    color: #999;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #c53030;
    color: white;
    transform: translateY(-3px);
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    /* Smaller blog posts on mobile */
    .blog-post {
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .post-image {
        height: 200px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    /* Mobile Layout - Keep desktop structure but stack review button */
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
        font-size: 0.8rem;
    }
    
    .post-meta-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        flex: none;
        min-width: auto;
    }
    
    .post-meta-reviews {
        width: 100%;
        margin-top: 6px;
        margin-left: 0;
    }
    
    .post-meta .author {
        gap: 6px;
    }
    
    .post-meta .author img {
        width: 20px;
        height: 20px;
    }
    
    .post-meta .category {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .post-meta .date,
    .post-meta .views {
        font-size: 0.75rem;
    }
    
    /* Mobile Review Button */
    .review-box-blog {
        padding: 8px 14px;
        border-radius: 18px;
        font-size: 0.75rem;
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    }
    
    /* Mobile See More Button */
    .see-more-btn {
        font-size: 0.8rem;
        margin-left: 3px;
    }
    
    .excerpt-full {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    /* Mobile Pagination */
    .pagination-container {
        padding: 15px;
        margin: 20px 0;
    }
    
    .custom-pagination .page-link {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .custom-pagination .prev-btn,
    .custom-pagination .next-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .review-box-blog .stars i {
        font-size: 0.8rem;
    }
    
    .review-box-blog .rating-text {
        font-size: 0.75rem;
    }
    
    .post-excerpt {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .search-form .input-group {
        width: 100%;
    }
    
    .recent-post-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .recent-post-thumb img {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .breadcrumb-section {
        padding: 20px 0;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    /* Simple Mobile Layout - Clean and minimal */
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
    
    .post-meta-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    
    .post-meta-reviews {
        width: 100%;
        margin-top: 6px;
    }
    
    .post-meta .author {
        gap: 5px;
    }
    
    .post-meta .author img {
        width: 18px;
        height: 18px;
    }
    
    .post-meta .category {
        padding: 3px 8px;
        font-size: 0.65rem;
    }
    
    .post-meta .date,
    .post-meta .views {
        font-size: 0.7rem;
    }
    
    /* Smaller blog posts on very small screens */
    .blog-post {
        margin-bottom: 15px;
        border-radius: 8px;
        padding: 10px;
    }
    
    .post-image {
        height: 260px;
    }
    
    .post-content {
        padding: 12px;
    }
    
    .post-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    /* Simple Mobile Review Button */
    .review-box-blog {
        width: 100%;
        margin: 0;
        padding: 8px 12px;
        border-radius: 16px;
        font-size: 0.75rem;
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
        justify-content: center;
    }
    
    /* Very Small Mobile See More Button */
    .see-more-btn {
        font-size: 0.75rem;
        margin-left: 2px;
    }
    
    .excerpt-full {
        padding: 8px;
        font-size: 0.8rem;
        margin-top: 6px;
    }
    
    /* Very Small Mobile Pagination */
    .pagination-container {
        padding: 12px;
        margin: 15px 0;
        border-radius: 15px;
    }
    
    .custom-pagination {
        gap: 4px;
    }
    
    .custom-pagination .page-link {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    
    .custom-pagination .prev-btn,
    .custom-pagination .next-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    /* Hide some page numbers on very small screens */
    .custom-pagination .page-item:nth-child(n+6) {
        display: none;
    }
    
    .review-box-blog .stars i {
        font-size: 0.7rem;
    }
    
    .review-box-blog .rating-text {
        font-size: 0.7rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
}
