/* Blog Section Styles */
.blog-section {
    padding: 50px 0;
    background-color: #f8f8f8;
}

.blog-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #333;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-10px);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.blog-post-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-title {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-post-excerpt {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
    align-self: flex-start;
}

.read-more-button:hover {
    background-color: #0056b3;
}

/* Responsive adjustments for blog section */
@media (max-width: 768px) {
    .blog-section h2 {
        font-size: 2em;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-image {
        height: 180px;
    }
}

/* Advertisement Section Styles */
.advertisement-section {
    padding: 50px 0;
    background-color: #f0f8ff;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ad-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ad-card:hover {
    transform: translateY(-5px);
}

.ad-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.ad-card iframe {
    width: 100%;
    height: 315px; /* Standard YouTube embed height */
    border-radius: 5px;
}

/* Responsive adjustments for advertisement section */
@media (max-width: 768px) {
    .ad-grid {
        grid-template-columns: 1fr;
    }
    .ad-card iframe {
        height: 250px;
    }
}

/* Header Styles */
.header {
    background-color: #f8f8f8;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.header a {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
}

.header a:hover {
    background-color: #0056b3;
}

/* Product Grid Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 1.2em;
}

.product-details {
    padding: 15px;
}

.product-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.product-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.1em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

.view-details-button {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.2s ease-in-out;
}

.view-details-button:hover {
    background-color: #218838;
}

/* Hero Shop Section */
.hero-shop {
    background: url('../product_images/placeholder_hero.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero-shop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-shop h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    z-index: 1;
    position: relative;
}

.hero-shop p {
    font-size: 1.2em;
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}

/* Footer Styles */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0;
    font-size: 0.9em;
}