/* Custom Sections CSS */

/* General Container */
#custom-sections-wrapper {
    display: none; /* Piilotetaan oletuksena, JS näyttää tämän oikeassa paikassa */
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: 'Arial', sans-serif;
}

.custom-section {
    margin-bottom: 50px;
}

.custom-section .section-title {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

/* 1. Reviews Section */
.reviews-section .section-title a {
    text-decoration: none;
    color: inherit;
}
.reviews-section .section-title a::after {
    content: ' 🔗';
    font-size: 20px;
    color: #007bff;
}

.reviews-carousel .flickity-viewport {
    transition: height 0.2s;
}

.review-card {
    width: 32%;
    margin: 0 10px;
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.review-card-author {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.review-card-rating .stars {
    color: #FFD700; /* Gold color for stars */
    font-size: 18px;
}

.review-card-body {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
    margin-bottom: 15px;
}

.review-card-footer {
    font-size: 14px;
    color: #888;
    text-align: right;
}

/* Flickity arrows for reviews */
.reviews-carousel .flickity-prev-next-button {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.reviews-carousel .flickity-prev-next-button .flickity-button-icon {
    fill: #333;
}
.reviews-carousel .flickity-prev-next-button.previous { left: -20px; }
.reviews-carousel .flickity-prev-next-button.next { right: -20px; }


/* 2. Loan Info Table */
.info-table-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    max-width: 900px;
    margin: 0 auto;
}

.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.info-table tr {
    border-bottom: 1px solid #f0f0f0;
}
.info-table tr:last-child {
    border-bottom: none;
}

.info-table th, .info-table td {
    padding: 15px 10px;
    vertical-align: middle;
}

.info-table th {
    text-align: left;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}
.info-table th .icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #007bff;
}

.info-table td {
    text-align: right;
    font-weight: 600;
    font-size: 16px;
    color: #0056b3;
}


/* 3. Logos Section */
.logos-carousel {
    height: 60px; /* Varmistetaan että karusellilla on korkeus */
}
.logo-item {
    width: 150px;
    height: 60px;
    margin: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-item img {
    max-width: 100%;
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}
.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Flickity arrows for logos */
.logos-carousel .flickity-prev-next-button {
    display: none; /* Logot pyörivät automaattisesti, ei tarvita nappeja */
}

/* Responsive Styles */
@media (max-width: 992px) {
    .review-card {
        width: 48%;
    }
    .reviews-carousel .flickity-prev-next-button.previous { left: -15px; }
    .reviews-carousel .flickity-prev-next-button.next { right: -15px; }
}

@media (max-width: 768px) {
    #custom-sections-wrapper {
        margin: 20px auto;
    }
    .custom-section .section-title {
        font-size: 24px;
    }
    .review-card {
        width: 100%;
    }
    .reviews-carousel .flickity-prev-next-button {
        display: none;
    }
    .info-table th, .info-table td {
        font-size: 14px;
    }
    .info-table th .icon {
        width: 24px;
        height: 24px;
    }
    .info-table td {
        font-weight: 500;
    }
} 