/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and typography for desktop */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #eef3f9;
    color: #333333;
    line-height: 1.6;
    padding: 20px;
    font-size: 1rem;
    letter-spacing: 0.8px; /* Adjust spacing as needed */
}


/* Header styling */
.site-header {
    background-color: #eef3f9;
    padding: 0;
    top: 0;
    z-index: 10;
    margin-bottom: 15px;
}

/* Container alignment */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 70px;
}

.logo {
    max-width: 80px;
    margin-left: 70px;
}

.trending-button {
    background-color: #3575F3;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 60px;
}

.trending-button:hover {
    background-color: #2861c0;
}

/* Offer Wrapper (for intro and offers) */
.offer-wrapper {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 950px;
    margin: 0 auto;
}

/* Intro Text Section */
.intro {
    padding: 0;
    margin-bottom: 0;
    background-color: transparent;
}

/* Headline with margin and padding */
.intro h1 {
    font-size: 2.5rem; /* Adjust size as needed */
    font-weight: bold;
    color: #111111; /* Darker color for headline */
    line-height: 1.1;
    margin: 20px 0 10px 0; /* Spacing adjustments */
    text-align: center;
    letter-spacing: 0.5px; /* Optional for letter spacing */
}

.intro h2 {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: #393939; /* Subtle color for subheadline */
    line-height: 1.3;
    margin: 10px 0 20px 0; /* Spacing for subtitle */
    text-align: center;
}

/* Header Image */
.header-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 25px;
    margin: 10px 0; /* Reduced margin for compact layout */
    border: 1px solid #ffffff;
    padding: 10px;
}

.seen-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 15px 0;
    border: 1px solid #ffffff;
    padding: 10px;
}

/* Intro Text with proper margins */
.intro p {
    font-size: 1.1rem;
    color: #222; /* Darker intro text color */
    line-height: 1.5;
    font-weight: 400;
    margin: 15px 0;
    padding-left: 20px;
    padding-right: 20px;
    letter-spacing: 0.7px;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0; /* Smaller margin for tighter spacing */
    padding-left: 0;
}


/* Author Details Text */
.author-details p {
    font-size: 1rem;
    font-weight: 400;
    color: #333; /* Darker author details text color */
    text-align: center;
    margin: 0; /* Removed left margin for centering */
}

/* Offer Item Container */
.offer-item {
    background-color: #fff;
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Hover effect for desktop viewing only */
@media only screen and (min-width: 601px) {
    .offer-item:hover {
        box-shadow: 0 4px 20px rgba(53, 117, 243, 0.5);
        border-color: rgba(53, 117, 243, 0.5);
    }
}

/* Style the number in the headline */
.offer-title-wrapper h2::before {
    content: attr(data-number) ". ";
    background-color: #f1f6ff;
    color: rgb(0, 0, 0);
    padding: 8px 12px;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    line-height: 1.2;
}

/* Offer Content Text */
.offer-content p {
    font-size: 1.1rem;
    color: #222; /* Darker intro text color */
    line-height: 1.5;
    font-weight: 400;
    margin-top: 10px;
    padding: 5px;
    letter-spacing: 0.6px;
}


/* Image with automatic resizing and neat margins */
.offer-image {
    display: block;
    width: 100%;
    max-height: 450px;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
    object-fit: cover;
}

/* Button Style */
.offer-button {
    display: block;
    width: 100%;
    padding: 12px 18px;
    background-color: #3061ff;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    font-size: 1.2rem;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    margin-bottom: 10px;
}

.offer-button:hover {
    background-color: #1c47b7;
}

/* General link styles */
a {
    color: #3575F3; /* Match the blue color of the website */
    text-decoration: none; /* Remove underline */
}

a:hover {
    color: #2861c0; /* Darker blue for hover effect */
    text-decoration: underline; /* Optional: Add underline on hover */
}

a:visited {
    color: #3575F3; /* Keep the same blue color after visiting */
    text-decoration: none;
}

a:focus {
    color: #2861c0; /* Same as hover effect */
    outline: none; /* Remove default browser outline */
}

/* Specific styles for offer-button links */
.offer-button {
    color: white; /* Button color as desired */
    text-decoration: none; /* No underline */
}

.offer-button:hover {
    background-color: #1c47b7; /* Keep button hover effect */
    color: white; /* Ensure text color on hover remains white */
    text-decoration: none;
}

.offer-button:visited {
    color: white; /* No color change for visited state */
}

.offer-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-height: 450px;
    border-radius: 10px;
    overflow: hidden;
}

.offer-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Rating overlay */
.offer-rating {
    position: absolute;
    bottom: 10px; /* Position it at the bottom */
    left: 10px; /* Align it with some padding from the left */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

/* Star styling */
.offer-rating .stars {
    display: flex;
    margin-right: 10px;
    color: #FFD700; /* Gold color for stars */
}

.offer-rating .stars span {
    font-size: 1.1rem; /* Size of the stars */
    margin-right: 2px;
    position: relative;
}

/* Full stars */
.offer-rating .full-star {
    color: #FFD700;
}

/* Half stars */
.offer-rating .half-star {
    position: relative;
    display: inline-block;
    color: #FFD700;
    overflow: hidden;
    width: 0.6em; /* Only show half the star */
    height: 1.2em; /* Match the star height */
}

.offer-rating .half-star::after {
    content: "⭐";
    color: #ccc; /* Gray color for the empty part */
    position: absolute;
    left: 0;
    top: 0;
    width: 1.2em; /* Full star width */
    height: 1.2em; /* Full star height */
    overflow: hidden;
}

/* Discount and score styling */
.offer-rating .rating-score {
    font-size: 1rem;
    font-weight: bold;
    margin-right: 10px;
}

.offer-rating .discount {
    font-size: 0.9rem;
    color: #ddd; /* Lighter gray for the discount text */
}

/* Mobile styles for screens smaller than 600px */
@media only screen and (max-width: 600px) {
    html, body {
        padding: 0;
        margin: 0;
        font-size: 17px;
        overflow-x: hidden;
        box-sizing: border-box;
        background-color: #fff;
        touch-action: pan-y;
    }

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 10px;
        max-width: 100%;
    }

    .logo {
        max-width: 60px;
        padding-left: 7px;
        margin: 0;
    }

    .trending-button {
        padding: 4px 8px;
        font-size: 1rem;
        margin: 0;
    }

    .offer-wrapper, .intro {
        background-color: transparent;
        padding: 0 15px;
        box-shadow: none;
        border: none;
    }

    .intro h1 {
        font-size: 1.5rem; /* Adjust font size for mobile */
        line-height: 1.3; /* Adjust line height for readability */
        margin: 15px 10px; /* Equal left and right margins for centering */
        text-align: center;
        max-width: 100%; /* Use full width to ensure balanced margins */
        word-break: break-word;
    }


    .intro h2 {
        font-size: 1.2rem;
        margin: 12px 10px;
        line-height: 1.2;
        text-align: center;
    }

    .intro p {
        font-size: 1.1rem;
        color: #222; /* Darker intro text color */
        line-height: 1.5;
        font-weight: 400;
        margin: 15px 5px 5px 5px; /* Remove side margins by keeping only top and bottom values */
        padding-left: 0; /* Remove side padding if desired */
        padding-right: 0; /* Remove side padding if desired */
        letter-spacing: 0.7px;
    }

    .offer-content p {
        font-size: 1.1rem;
        color: #222; /* Darker intro text color */
        line-height: 1.5;
        font-weight: 400;
        margin: 15px 5px 5px 5px; /* Remove side margins by keeping only top and bottom values */
        padding-left: 0; /* Remove side padding if desired */
        padding-right: 0; /* Remove side padding if desired */
        letter-spacing: 0.7px;
    }

    .header-image, .offer-image {
        width: 100%;
        height: auto;
        margin: 10px 0;
        padding: 0;
        border: none;
    }

    .author-info {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
        padding-left: 0;
    }

    .author-photo {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }

    .author-details p {
        font-size: 0.8rem;
        text-align: center;
    }

    .offer-title-wrapper {
        display: flex;
        align-items: baseline;
        margin-bottom: 10px;
    }

    .offer-title-wrapper h2 {
        font-size: 1.2rem; /* Adjust font size for mobile */
        line-height: 1.2; /* Adjust line-height for readability */
        margin: 10px 0; /* Adjust margin for spacing */
    }

    .offer-title-wrapper h2::before {
        content: attr(data-number) ". ";
        background-color: #f1f6ff;
        color: rgb(0, 0, 0);
        padding: 4px 8px;
        border-radius: 5px;
        margin-right: 10px;
        font-size: 1.2rem;
        font-weight: bold;
        display: inline-block;
        line-height: 1.3;
    }

    .offer-button {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .offer-button:hover {
        background: linear-gradient(45deg, #1c47b7, #428bff);
    }

    .separator, .offer-separator {
        width: 90%;
        height: 1px;
        background-color: #ddd;
        margin: 15px auto;
    }

    .offer-item, .header-image, .offer-image, .intro {
            max-width: 100%;
            margin: 0 auto;
            padding: 0;
        }
    
     .offer-item {
            border: none;
            box-shadow: none;
            margin-bottom: 20px;
        }
    }
    