/*
* Plugin: Featured Partners Showcase
* File: fps-style.css
* Description: Styles for the Featured Partners Showcase plugin,
* including a horizontal carousel layout.
*/

/* --- CSS Variables --- */
:root {
    /* Colors */
    --fps-primary-blue: #007bff;        /* Standard blue */
    --fps-light-blue: #0093ff;          /* Lighter blue */
    --fps-dark-text: #2c3e50;           /* Dark grey for main text */
    --fps-body-text: #555;              /* Medium grey for descriptions */
    --fps-light-text: #7f8c8d;          /* Light grey for subtle elements */
    --fps-background-light: #f8f9fa;    /* Very light background */
    --fps-card-background: #ffffff;     /* White card background */
    --fps-border-color: rgba(0,0,0,0.08); /* Light border */

    /* Shadows */
    --fps-shadow-light: rgba(0,0,0,0.1);
    --fps-shadow-medium: rgba(0,0,0,0.15);

    /* Typography */
    --fps-font-heading: 'Oswald', sans-serif; /* Stronger heading font */
    --fps-font-body: 'Roboto', sans-serif;    /* Clean body font */
}

/* --- Section Container Styling --- */
.fps-partners-section {
    padding: 60px 0; /* Vertical padding */
    background-color: var(--fps-background-light); /* Light background */
    font-family: var(--fps-font-body);
    color: var(--fps-body-text);
    box-sizing: border-box;
}

.fps-section-title {
    text-align: center;
    font-family: var(--fps-font-heading); /* Use Oswald for section title */
    font-size: 3em;
    color: var(--fps-dark-text);
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase; /* Make title uppercase */
    letter-spacing: 1px;
}

.fps-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--fps-primary-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- Partners Carousel Container --- */
.fps-partners-container {
    max-width: 1200px; /* Max width for carousel */
    margin: 0 auto;
    padding: 0 15px; /* Horizontal padding */
    box-sizing: border-box;
    position: relative; /* For arrow positioning */
}

/* --- Individual Partner Card --- */
.fps-partner-card {
    background-color: var(--fps-card-background);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--fps-shadow-light);
    padding: 25px;
    margin: 10px; /* Margin for spacing within carousel */
    text-align: center;
    display: flex !important; /* Important for Slick */
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 280px; /* Ensure consistent card height */
    transition: all 0.3s ease;
    border: 1px solid var(--fps-border-color);
}

.fps-partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--fps-shadow-medium);
    border-color: var(--fps-primary-blue);
}

/* --- Partner Logo --- */
.fps-partner-logo {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    background-color: #f0f0f0; /* Placeholder background */
    border-radius: 50%; /* Circular logos */
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking */
    border: 2px solid var(--fps-light-blue);
    transition: all 0.3s ease;
}

.fps-partner-card:hover .fps-partner-logo {
    transform: scale(1.05); /* Logo pops slightly */
    border-color: var(--fps-primary-blue);
}

.fps-partner-logo img {
    max-width: 80%; /* Limit logo size within circle */
    max-height: 80%;
    object-fit: contain;
    display: block;
}

.fps-no-logo {
    font-size: 3em;
    font-weight: bold;
    color: var(--fps-light-text);
    text-transform: uppercase;
}

/* --- Partner Name (Title) --- */
.fps-partner-name {
    font-family: var(--fps-font-heading);
    font-size: 1.6em;
    color: var(--fps-dark-text);
    margin: 0 0 10px;
    font-weight: 700;
    line-height: 1.2;
}

/* --- Partnership Description --- */
.fps-partnership-description {
    font-size: 0.95em;
    color: var(--fps-body-text);
    line-height: 1.5;
    flex-grow: 1; /* Allow description to take available space */
    margin-bottom: 20px;
    display: -webkit-box; /* For multi-line text truncation */
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Read More Button --- */
.fps-read-more {
    display: inline-flex; /* Use flex for icon alignment */
    align-items: center;
    gap: 8px; /* Space between text and icon */
    background-color: var(--fps-primary-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: auto; /* Pushes button to bottom */
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.fps-read-more:hover {
    background-color: var(--fps-light-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.fps-read-more i {
    font-size: 0.9em; /* Icon size relative to text */
}

/* --- Slick Carousel Overrides --- */
.fps-carousel .slick-list {
    padding: 10px 0 !important; /* Space for shadows */
}

/* Slick Dots */
.fps-carousel .slick-dots {
    bottom: -35px;
}

.fps-carousel .slick-dots li button:before {
    font-size: 12px;
    color: var(--fps-light-blue);
    opacity: 0.6;
}

.fps-carousel .slick-dots li.slick-active button:before {
    color: var(--fps-primary-blue);
    opacity: 1;
}

/* Slick Arrows */
.fps-carousel .slick-prev,
.fps-carousel .slick-next {
    width: 40px;
    height: 40px;
    background-color: var(--fps-primary-blue);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.fps-carousel .slick-prev:hover,
.fps-carousel .slick-next:hover {
    background-color: var(--fps-light-blue);
    transform: scale(1.05);
}

.fps-carousel .slick-prev:before,
.fps-carousel .slick-next:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
    color: white;
}

.fps-carousel .slick-prev:before {
    content: "\f053"; /* fa-chevron-left */
}

.fps-carousel .slick-next:before {
    content: "\f054"; /* fa-chevron-right */
}

.fps-carousel .slick-prev {
    left: -50px;
}

.fps-carousel .slick-next {
    right: -50px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .fps-carousel .slick-prev { left: 10px; }
    .fps-carousel .slick-next { right: 10px; }
}

@media (max-width: 992px) {
    .fps-section-title {
        font-size: 2.5em;
    }
    .fps-partner-card {
        padding: 20px;
        min-height: 260px;
    }
    .fps-partner-logo {
        width: 100px;
        height: 100px;
    }
    .fps-partner-logo img {
        max-width: 70%;
        max-height: 70%;
    }
    .fps-partner-name {
        font-size: 1.4em;
    }
    .fps-partnership-description {
        font-size: 0.9em;
    }
    .fps-read-more {
        padding: 8px 15px;
        font-size: 0.85em;
    }
}

@media (max-width: 768px) {
    .fps-section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .fps-section-title::after {
        width: 60px;
    }
    .fps-partners-container {
        padding: 0 5px;
    }
    .fps-partner-card {
        margin: 5px; /* Smaller margin for mobile slides */
        min-height: unset; /* Allow height to adjust */
        padding: 15px;
    }
    .fps-partner-logo {
        width: 80px;
        height: 80px;
        border-width: 1px;
    }
    .fps-partner-name {
        font-size: 1.2em;
    }
    .fps-partnership-description {
        font-size: 0.85em;
        -webkit-line-clamp: 4; /* Allow more lines on mobile if needed */
    }
    .fps-read-more {
        padding: 7px 12px;
        font-size: 0.8em;
    }
    .fps-carousel .slick-prev,
    .fps-carousel .slick-next {
        width: 30px;
        height: 30px;
        top: 35%; /* Adjust vertical position */
    }
    .fps-carousel .slick-prev:before,
    .fps-carousel .slick-next:before {
        font-size: 16px;
    }
    .fps-carousel .slick-prev { left: 0px; }
    .fps-carousel .slick-next { right: 0px; }
    .fps-carousel .slick-dots {
        bottom: -25px;
    }
}