﻿.ad-container {
    display: flex;
    flex-direction: row; /* Arrange children in a row */
    padding: 20px;
    border-radius: 8px; /* Optional: Add rounded corners */
}

.text-container {
    flex: 1; /* Allow text container to take up more space */
    padding: 20px;
    background-color: #f9f9f9; /* Optional: Background color for details */
    margin-right: 20px; /* Space between text and image container */
}

.image-container {
    flex: 1; /* Allow image container to take up equal space */
}

.image-gallery {
    display: flex; /* Arrange images side by side */
    flex-wrap: wrap; /* Allow images to wrap if necessary */
}

.gallery-image {
    width: calc(50% - 10px); /* Adjust size to fit two images side by side with spacing */
    margin: 5px; /* Add some space between images */
    border-radius: 4px; /* Optional: Add rounded corners to images */
}
/* Star Rating */
.star-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.full-star, .empty-star, .half-star {
    font-size: 1.5rem;
    color: gold;
}

.half-star {
    color: lightgray;
}

.rating-number {
    margin-left: 8px;
    font-size: 1rem;
    color: #333;
}

/* Rating Box */
.rating-box {
    background: linear-gradient(135deg, #f7f7f7, #e2e2e2);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    margin: 20px auto;
    transition: transform 0.3s;
}

    .rating-box:hover {
        transform: scale(1.05);
    }

/* Heading */
h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Rating Form */
.rating-form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2.5rem;
    color: #ccc;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

    .star-rating label:hover,
    .star-rating input:checked ~ label {
        color: #ffd700;
    }

.star-rating input:checked + label,
.star-rating input:hover + label {
    transform: scale(1.2);
    color: #ffac33;
}

/* Button Styles */
.btn-primary, .cta-button {
    display: inline-block;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
    background-color: #d5c188;
    border-color: #d5c188;
}

    .btn-primary:hover, .cta-button:hover {
        background-color: #a59056;
    }

/* Rating Output */
.rating-output {
    font-size: 1.2rem;
    color: #444;
    margin-top: 10px;
}

/* Reviews Section */
.reviews-title {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.reviews-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Review Item */
.review-item {
    background-color: #f1f1f1;
    border-left: 4px solid #a59056;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

    .review-item:hover {
        transform: translateY(-5px);
    }

.review-comment {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ad-container {
        flex-direction: column;
    }

    .text-container, .image-container {
        max-width: 100%;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
