/* Hero Section - Matching MICE page style */
.agent-hero {
    background: url('https://quimbaya-tours.com/wp-content/uploads/2024/03/Ecuador-landscape.webp') center/cover;
    min-height: 546px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Section */
.agent-content {
    padding: 0 0 80px 0;
    background: white;
}

.agent-content p {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
}

.content-block {
    max-width: 900px;
    margin: 0 auto 60px;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.content-block p strong {
    color: #333;
    font-weight: 600;
}

/* Features List */
.features-list {
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    max-width: 40%;
}

.features-list p, .features-list li {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
}

.features-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    background: #6ec1e4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.features-list li strong {
    color: #333;
    font-weight: 600;
}

.features-list a {
    color: #54595f;
    text-decoration: none;
}

/* Image Carousel Section */
.carousel-section {
    padding: 0;
    background: white;
}

/* Custom Carousel Styles */
.agent-carousel-wrapper {
    max-width: 60%;
    margin: 0 auto;
    position: relative;
}

.custom-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    overflow: hidden;
    margin: 0 60px; /* Space for navigation buttons */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%; /* Show 1 slide at a time */
    padding: 0 10px;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
}

/* Navigation Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
}

.carousel-control:hover {
    background-color: #f8f9fa;
    color: #333;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.carousel-control:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-control-prev {
    left: 0;
    margin-left: 35px;
}

.carousel-control-next {
    right: 0;
    margin-right: 35px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 60px 0;
    background: #f8f9fa;
}

.cta-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section p strong {
    color: #333;
}

.cta-section .btn {
    font-size: 1.1rem;
    padding: 15px 40px;
    margin: 0 10px;
}

.gallery-row-container {
    margin: 70px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 20px;
    padding: 10px;
}

.gallery-row-container img {
    flex: 1 1 auto;
    max-width: 140px;
    max-height: 90px;
    height: auto;
    object-fit: contain;
}

/* Login Button */
.btn-secondary {
    background-color: #4a7ba7;
    border-color: #4a7ba7;
    color: white;
}

.btn-secondary:hover {
    background-color: #3b5d7f;
    border-color: #3b5d7f;
    color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .features-list {
        padding: 0;
        max-width: 100%;
        margin-bottom: 40px;
    }

    .agent-carousel-wrapper {
        max-width: 100%;
    }

    .carousel-section .container > div {
        flex-direction: column !important;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        margin: 0 40px;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
    }

    .gallery-row-container {
        position: relative;
        height: 200px; /* Fixed height for carousel */
        overflow: hidden;
        margin: 40px 0;
        padding: 0;
        display: block; /* Override flex */
        gap: 0; /* Reset gap */
    }

    .gallery-row-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        transform: none;
    }

    .gallery-row-container img:hover {
        transform: none;
    }

    .gallery-row-container img[data-active] {
        opacity: 1;
    }

    .agent-hero {
        min-height: 0;
        padding-top: 60px;
        padding-bottom: 115px;
    }
}

@media (max-width: 575px) {
    .cta-section .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
    }
}

@media (min-width: 992px) {
    .agent-content p, .features-list p, .features-list li  {
        font-size: 14px;
    }

    {
        font-size: 14px;
    }
}