/* offers/style.css */
.offer-details {
    padding: 40px 0;
    background-color: #ffffff;
    color: #333;
}

.offer-details .container h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 600;
}

.offer-details .container p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    line-height: 1.7;
    font-weight: 400;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    justify-content: center;
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-next-offer {
    display: block;
    width: fit-content;
    margin: 40px auto 20px;
    padding: 12px 25px;
    background-color: #e0e0e0;
    color: var(--dark-grey);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1em;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid #e0e0e0;
}

.btn-next-offer:hover {
    background-color: #28a745; /* Green color */
    color: white;
    border-color: #28a745;
    transform: translateY(-3px);
}

.btn-next-offer i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-next-offer:hover i {
    transform: translateX(5px);
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.offer-cta {
    padding: 60px 0;
    background-color: #f4f4f4;
    text-align: center;
    color: #333;
}

.offer-cta h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.offer-cta p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
}

.offer-cta .btn-primary {
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.offer-cta .btn-primary:hover {
    background-color: #218838;
    transform: translateY(-2px);
}


/* Copied and adapted from gallery styles for the lightbox */
.lightbox {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease;
    visibility: visible;
}

.lightbox.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lightbox-content {
    max-width: 55%;
    max-height: 70%;
    display: block;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 90%;
        max-height: 70%;
        display: block;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-caption {
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 1.2em;
    width: 80%;
    margin-top: 5px;
}
