/* Blog Page Styles */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #0082C3;
    margin-bottom: 10px;
    font-weight: 700;
}

.blog-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* FIXED IMAGE CONTAINER - Show full image */
.product-image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.product-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain; /* Changed from cover to contain to show full image */
    display: block;
    transition: transform 0.5s ease;
    background: #f5f5f5;
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-badge {
    display: inline-block;
    background: #FFD700;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-title {
    font-size: 1.3rem;
    color: #333;
    margin: 10px 0;
    font-weight: 600;
    line-height: 1.4;
}

.product-category {
    color: #0082C3;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 15px 0;
    flex-grow: 1;
}

.rating-container {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-right: 10px;
    letter-spacing: 2px;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.product-features li {
    padding: 5px 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

.product-features li:before {
    content: "✓ ";
    color: #0082C3;
    font-weight: bold;
    margin-right: 8px;
}

.back-link {
    display: inline-block;
    margin: 20px 0;
    color: #0082C3;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #005a8c;
}

.cta-section {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
}

.cta-section h3 {
    color: #0082C3;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cta-section p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.cta-link {
    display: inline-block;
    color: #0082C3;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.cta-link:hover {
    color: #005a8c;
}

.blog-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.blog-footer p {
    margin: 10px 0;
}

.blog-footer .disclaimer {
    font-size: 0.9rem;
    color: #aaa;
}

.blog-footer a {
    color: #0082C3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-footer a:hover {
    color: #00a8ff;
}

/* ENHANCED Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
    
    .product-image {
        max-height: 280px;
    }
    
    .product-image-container {
        min-height: 230px;
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .product-card {
        margin-bottom: 10px;
    }
    
    .product-image {
        max-height: 260px;
    }
    
    .product-image-container {
        min-height: 220px;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 650px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on small tablets */
        gap: 15px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-image {
        max-height: 240px;
    }
    
    .product-image-container {
        min-height: 200px;
    }
    
    .product-content {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .blog-container {
        padding: 20px 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-image {
        max-height: 300px; /* Larger images on single column */
        width: 100%;
        height: auto;
    }
    
    .product-image-container {
        min-height: 250px;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 20px 10px;
    }

    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-header p {
        font-size: 0.95rem;
    }

    .product-title {
        font-size: 1.1rem;
    }
    
    .product-image {
        max-height: 280px;
    }
    
    .product-image-container {
        min-height: 230px;
    }
    
    .product-description {
        font-size: 0.9rem;
    }
    
    .cta-section {
        padding: 20px 15px;
    }
    
    .cta-section h3 {
        font-size: 1.3rem;
    }
    
    .cta-section p {
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .products-grid {
        gap: 15px;
    }
    
    .product-image {
        max-height: 250px;
    }
    
    .product-image-container {
        min-height: 200px;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.85rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .product-image {
        max-height: 200px;
    }
    
    .product-image-container {
        min-height: 180px;
    }
    
    .product-content {
        padding: 12px;
    }
}

/* Very large screens */
@media (min-width: 1400px) {
    .blog-container {
        max-width: 1300px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 35px;
    }
    
    .product-image {
        max-height: 320px;
    }
    
    .product-image-container {
        min-height: 280px;
    }
}

/* Fallback for image loading */
.product-image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, 
                transparent 50%, #f0f0f0 50%, #f0f0f0 75%, 
                transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.5;
    display: none;
}

.product-image.loading ~ .product-image-container::before {
    display: block;
}