/* Robertstown Quick Links - Frontend Styles */

.rql-quick-links {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.rql-links-container {
    overflow: hidden;
}

.rql-links-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

/* Card Styles */
.rql-link-card {
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
    aspect-ratio: 4 / 3;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rql-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.rql-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rql-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rql-link-card:hover .rql-card-image img {
    transform: scale(1.05);
}

.rql-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0033A0 0%, #0055cc 100%);
}

.rql-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;
}

.rql-card-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

/* Carousel Navigation */
.rql-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 10px 0;
}

.rql-nav-prev,
.rql-nav-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #0033A0;
    background: #fff;
    color: #0033A0;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rql-nav-prev:hover,
.rql-nav-next:hover {
    background: #0033A0;
    color: #fff;
}

.rql-nav-prev:disabled,
.rql-nav-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rql-nav-dots {
    display: flex;
    gap: 8px;
}

.rql-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.rql-nav-dot:hover {
    background: #999;
}

.rql-nav-dot.active {
    background: #0033A0;
    transform: scale(1.2);
}

/* Hide carousel nav when not needed */
.rql-quick-links:not(.rql-has-carousel) .rql-carousel-nav {
    display: none;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .rql-link-card {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }
}

@media screen and (max-width: 768px) {
    .rql-link-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }

    .rql-links-track {
        gap: 15px;
    }

    .rql-quick-links {
        padding: 0 15px;
    }

    .rql-card-title {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .rql-link-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .rql-card-title {
        font-size: 16px;
    }

    .rql-nav-prev,
    .rql-nav-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}
