/**
 * Find a College Shortcode Styles
 *
 * Visual replica of the JetEngine/JetSmartFilters design
 * Used by [eau_find_college] shortcode
 *
 * @since 1.76.0
 */

/* ============================================
   Hero Banner (shared with Past Webinars)
   ============================================ */

.eau-page-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    min-height: 42vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.eau-page-hero-title {
    font-family: Calibri, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 56px !important;
    font-weight: 600;
    color: #fff !important;
    text-align: center;
    margin: 0;
    padding: 0 20px;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .eau-page-hero {
        min-height: 35vh;
    }
    .eau-page-hero-title {
        font-size: 44px !important;
    }
}

@media (max-width: 767px) {
    .eau-page-hero {
        min-height: 30vh;
    }
    .eau-page-hero-title {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .eau-page-hero {
        min-height: 25vh;
    }
    .eau-page-hero-title {
        font-size: 22px !important;
        padding: 0 15px;
    }
}

/* Rainbow gradient bar below hero — English Australia brand colors */
.eau-page-hero-rainbow {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: 14px;
    background: linear-gradient(90deg, #FFE604, #E8493C, #1A75BC, #7A489C);
    border-radius: 3px;
    margin-bottom: 40px;
}

/* Hide theme page title when hero banner is present.
   Structure: .site-main > .page-header + .page-content > .eau-page-hero */
.site-main > .page-header:has(+ .page-content .eau-page-hero) {
    display: none !important;
}

/* ============================================
   Container
   ============================================ */

.eau-fc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-family: Calibri, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================================
   Filters
   ============================================ */

.eau-fc-filters {
    margin-bottom: 40px;
    padding: 25px 30px;
    background: #fff;
    border: 1px solid #EDEBEB;
    border-radius: 8px;
}

.eau-fc-filter-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.eau-fc-filter-select-wrap {
    flex: 0 0 260px;
}

.eau-fc-filter-search-wrap {
    flex: 1;
}

.eau-fc-filter-select,
.eau-fc-filter-search {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-family: Calibri, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: #333;
    background: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 6px !important;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.eau-fc-filter-select:focus,
.eau-fc-filter-search:focus {
    border-color: #1976D2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.eau-fc-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.eau-fc-filter-search::placeholder {
    color: #9CA3AF;
}

.eau-fc-container .eau-fc-filter-btn,
.eau-fc-container button.eau-fc-filter-btn,
.eau-fc-container a.eau-fc-filter-btn {
    flex-shrink: 0;
    height: 48px;
    padding: 0 28px !important;
    font-family: Calibri, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: #1976D2 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
}

.eau-fc-container .eau-fc-filter-btn:hover,
.eau-fc-container button.eau-fc-filter-btn:hover,
.eau-fc-container a.eau-fc-filter-btn:hover {
    background: #1565C0 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Clear Filters Button */
.eau-fc-container .eau-fc-filter-clear,
.eau-fc-container a.eau-fc-filter-clear {
    flex-shrink: 0;
    height: 48px;
    padding: 0 20px !important;
    font-family: Calibri, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #6B7280 !important;
    background: transparent !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
}

.eau-fc-container .eau-fc-filter-clear:hover,
.eau-fc-container a.eau-fc-filter-clear:hover {
    color: #374151 !important;
    border-color: #9CA3AF !important;
    background: #F3F4F6 !important;
    text-decoration: none !important;
}

/* ============================================
   Results Count
   ============================================ */

.eau-fc-results-count {
    margin-bottom: 20px;
    font-size: 14px;
    color: #6B7280;
}

/* ============================================
   Grid - 3 columns
   ============================================ */

.eau-fc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* ============================================
   Card
   ============================================ */

.eau-fc-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    cursor: pointer;
    transition: box-shadow 0.2s;
    overflow: hidden;
}

.eau-fc-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
}

.eau-fc-card:visited {
    text-decoration: none !important;
}

/* Card Logo */
.eau-fc-card-logo {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 24px;
    overflow: hidden;
}

.eau-fc-card-logo img {
    width: 70%;
    height: 80%;
    object-fit: contain;
    display: block;
}

.eau-fc-card-logo-placeholder {
    color: #b0bec5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.eau-fc-card-logo-placeholder-name {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    line-height: 1.3;
    padding: 0 12px;
}

/* Tarefa 21.1 — tile minimalista (só logo) usado em Find a Corporate Affiliate */
.eau-fc-card-logo-only .eau-fc-card-logo {
    height: 200px;
    padding: 32px;
}
.eau-fc-card-logo-only .eau-fc-card-logo img {
    width: 85%;
    height: 100%;
    max-height: 140px;
}

/* Card Body */
.eau-fc-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Card Location */
.eau-fc-card-location {
    font-size: 13px;
    color: #7A489C;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Card Name Row */
.eau-fc-card-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.eau-fc-card-name-row svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #9CA3AF;
    margin-top: 2px;
}

/* Card Name */
.eau-fc-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Description */
.eau-fc-card-description {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Card Badge - Hidden */
.eau-fc-card-badge {
    display: none;
}

/* ============================================
   Pagination
   ============================================ */

.eau-fc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.eau-fc-container .eau-fc-page-link,
.eau-fc-container a.eau-fc-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-family: Calibri, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333 !important;
    background: #fff !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.eau-fc-container .eau-fc-page-link:hover,
.eau-fc-container a.eau-fc-page-link:hover {
    background: #f3f4f6 !important;
    color: #1976D2 !important;
    text-decoration: none !important;
}

.eau-fc-container .eau-fc-page-current,
.eau-fc-container span.eau-fc-page-current {
    background: #1976D2 !important;
    color: #fff !important;
    border-color: #1976D2 !important;
}

.eau-fc-container .eau-fc-page-current:hover,
.eau-fc-container span.eau-fc-page-current:hover {
    background: #1565C0 !important;
    color: #fff !important;
}

.eau-fc-prev,
.eau-fc-next {
    padding: 0 14px;
    font-weight: 600;
    color: #1976D2;
}

.eau-fc-prev:hover,
.eau-fc-next:hover {
    background: #e3f2fd;
}

.eau-fc-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 14px;
    color: #9CA3AF;
}

/* ============================================
   Empty State
   ============================================ */

.eau-fc-empty {
    text-align: center;
    padding: 80px 20px;
    color: #6B7280;
    font-size: 16px;
}

.eau-fc-empty p {
    margin-bottom: 20px;
}

/* ============================================
   Responsive: Large Tablet (2 cols)
   ============================================ */

@media (max-width: 1024px) {
    .eau-fc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .eau-fc-filter-form {
        flex-wrap: wrap;
    }

    .eau-fc-filter-select-wrap {
        flex: 1 1 200px;
    }

    .eau-fc-filter-search-wrap {
        flex: 1 1 200px;
    }
}

/* ============================================
   Responsive: Tablet (2 cols)
   ============================================ */

@media (max-width: 768px) {
    .eau-fc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .eau-fc-filters {
        padding: 15px;
    }

    .eau-fc-filter-form {
        flex-direction: column;
    }

    .eau-fc-filter-select-wrap,
    .eau-fc-filter-search-wrap {
        flex: 1 1 100%;
        width: 100%;
    }

    .eau-fc-filter-btn,
    .eau-fc-filter-clear {
        width: 100%;
    }

}

/* ============================================
   Responsive: Mobile (1 col)
   ============================================ */

@media (max-width: 480px) {
    .eau-fc-container {
        padding: 0 15px 40px;
    }

    .eau-fc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .eau-fc-pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* AJAX loading state (v2.1.0) */
.eau-fc-results.eau-fc-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
