/**
 * 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: 300px;
    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: 250px;
    }
    .eau-page-hero-title {
        font-size: 44px !important;
    }
}

@media (max-width: 767px) {
    .eau-page-hero {
        min-height: 200px;
    }
    .eau-page-hero-title {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .eau-page-hero {
        min-height: 160px;
    }
    .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-campus-wrap {
    flex: 0 0 220px;
}

.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;
    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 - 4 columns
   ============================================ */

.eau-fc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* ============================================
   Card
   ============================================ */

.eau-fc-card {
    background: #fff;
    border: 1px solid #EDEBEB;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.eau-fc-card:hover {
    box-shadow: 0 4px 16px 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: 160px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

.eau-fc-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.eau-fc-card-logo-placeholder {
    color: #b0bec5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f0f4f8;
    border-radius: 8px;
}

/* Card Location */
.eau-fc-card-location {
    font-size: 13px;
    color: #1976D2;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Card Name */
.eau-fc-card-name {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Badge (Main Campus / Branch) */
.eau-fc-card-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-top: 10px;
}

.eau-fc-card-badge-main {
    background: #E8F5E9;
    color: #2E7D32;
}

.eau-fc-card-badge-branch {
    background: #E3F2FD;
    color: #1565C0;
}

/* ============================================
   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;
}

/* ============================================
   Map
   ============================================ */

#eau-fc-map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    margin-top: 40px;
    border: 1px solid #EDEBEB;
    z-index: 1;
}

/* ============================================
   Responsive: Large Tablet (3 cols)
   ============================================ */

@media (max-width: 1024px) {
    .eau-fc-grid {
        grid-template-columns: repeat(3, 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%;
    }

    .eau-fc-filter-campus-wrap {
        flex: 1 1 100% !important;
    }

    #eau-fc-map {
        height: 300px;
    }
}

/* ============================================
   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-card {
        padding: 20px;
    }

    .eau-fc-pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    #eau-fc-map {
        height: 250px;
    }
}
