/* Basic Reset */

/* Grid Layout for Articles */
#featured-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
    gap: 10px; /* Space between grid items */
}

/* Article Styling */
.review-article {
    background-size: cover;
    background-position: center;
/*    border-radius: 5px;*/
    position: relative;
    overflow: hidden;
    border: 3px solid black;
    height: 250px; /* Default height */
    transition: transform 0.3s ease, height 0.3s ease;
/*    cursor: pointer;*/
}

/* Hover effect for desktop */
.review-article:hover .article-details,
.review-article.active .article-details { /* Use active class for mobile */
    opacity: 1;
    overflow: visible;
    z-index: 10;

}

.review-article:hover {
    z-index: 10; /* Bring to front when hovered */
    transform: scale(1.02); /* Slight scaling on hover */
        border: 3px solid whitesmoke;
        border-radius: 5px;
}

/* Article Image as Background */
.review-article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.3); /* Darken the image slightly */
    z-index: 1;
}

/* Article Content */
.article-content {
    position: relative;
    padding: 8px;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay background */
    color: white;
    z-index: 2; /* Ensure content is above the background */
}

.article-summary h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: white;
}

/* Meta Data for Articles */
.meta {
    font-size: 14px;
    color: #ddd;
    margin-top: 10px;
}

.meta .date {
    display: block;
    margin-bottom: 5px;
}
.scrollable-questions {
    max-height: 100px; /* Adjust height as needed */
    overflow-y: auto;  /* Enable vertical scrolling */
    padding: 1px;     /* Optional padding */
    border: 0px solid black; /* Optional border */
    border-radius: 0px; /* Optional rounded corners */
    background-color: whitesmoke; /* Optional background color */
}


/* Article Details (Hover Content) */
.article-details {
    position: absolute;

    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background:whitesmoke; /* Slightly transparent white */
    color: black;
    font-size: 11px;
    overflow: hidden;
    transition: opacity 0.6s ease;
    z-index: 3;
    opacity: 0;
    padding: 10px;
}

/* Underline for Questions */
.title_question {
/*    text-decoration: underline;*/
}

/* Separator between sections */
.separator {
    height: 60px;
}

/* Question Styling */
.question {
    color: #3A3B3C;
    margin-top: 5px;
}

/* Badge for certified reviews */
.badge-certified {
    font-size: 10px;
    background-color: gold;
    color: black;
    padding: 2px 5px;
    border-radius: 3px;
    position: absolute;
    bottom: 5px; /* Stick the medals to the bottom of the meta section */
    right: 5px; /* Align to the right */
    padding-bottom: 5px;
}

/* Buy Button Styling */
.buy-button-container {
    text-align: center;
    position: absolute;
    bottom: 5px;

    right: 10px;
    padding-bottom: 2px;
}

.buy-button {
    background-color: #28a745; /* Green for the buy button */
    color: white;
    padding: 4px 4px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 11px;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background-color: #218838; /* Darker green on hover */
}

/* Gold Medals Styling */
.gold-medals {
    position: absolute;
    bottom: 5px; /* Stick the medals to the bottom of the meta section */
    left: 5px; /* Align to the left */
    padding-bottom: 5px;
}

/* Overlay for expanded view */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.overlay-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* Close button styling */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* Read Article button styling */
.read-article-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.read-article-btn:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 700px) {
    .article-summary h3 {
        font-size: 20px;
    }

    .meta {
        font-size: 12px;
    }

    .close-btn {
        font-size: 20px;
    }

    .read-article-btn {
        font-size: 14px;
    }


    #featured-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
    gap: 2px; /* Space between grid items */
}

}

ul.question {
    list-style: none; /* Remove default bullet points */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}

ul.question li {
/*    background-color: #f9f9f9; /* Light background for each item */
/*    margin-bottom: 10px; /* Spacing between list items */
/*    padding: 10px 15px; /* Padding for better readability */
/*    border-radius: 5px; /* Rounded corners */
    font-size: 10px;
/*     line-height: 1; Better line spacing */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    transition: background-color 0.3s ease; /* Smooth transition effect */
    display: flex;
    align-items: center;
       list-style: none;
}

ul.question li::before {
        list-style: none;
/*    content: "❓"; /* Optional icon (a question mark) */
    font-size: 10px;
    margin-right: 5px; /* Space between icon and text */
    color: #3498db; /* Icon color (blue) */
}

ul.question li:hover {
    background-color: #e0f7fa; /* Change background color on hover */
}

