/* ============================================
   SCHOOL CARDS - BLOG STYLE DESIGN
   ============================================ */

/* Section Title */
.vb-school-list .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.vb-school-list .section-title span {
    color: #110e7f !important;
}

/* Remove yellow line from section title */
.vb-school-list .section-title:after {
    display: none !important;
}

.vb-school-list {
    padding: 50px 0;
}

/* School Cards Container - Flex Layout */
.vb-school-list-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: stretch;
}

/* Individual School Card */
.school-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex: 0 0 calc(33.333% - 20px);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

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

/* School Card Image */
.school-card-img {
    position: relative;
    overflow: hidden;
    height: 250px;
    flex-shrink: 0;
}

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

.school-card:hover .school-card-img img {
    transform: scale(1.05);
}

/* Logo Fallback Styles */
.school-card-logo-fallback {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #110e7f 0%, #2c3e8f 50%, #4a5bb8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.school-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    opacity: 0.9;
    filter: brightness(1.2);
}

.school-logo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    text-align: center;
}

.school-logo-text {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* School Card Content */
.school-card-content {
    padding: 25px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Volleyball Icon */
.volleyball-icon {
    position: absolute;
    top: -15px;
    left: 25px;
    width: 50px;
    height: 50px;
    background-color: #110e7f;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(17, 14, 127, 0.3);
}

.volleyball-icon::after {
    content: "🏐";
    font-size: 20px;
}

/* School Card Title */
.school-card-title {
    margin: 20px 0 15px 0;
}

.school-card-title a {
    color: #110e7f;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.3;
}

.school-card-title a:hover {
    color: #2c3e8f;
}

/* School Card Description */
.school-card-description {
    color: #58595b;
    line-height: 1.6;
    margin-bottom: 20px;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.school-card-description p {
    margin: 0;
    color: inherit;
}

/* School Card Button - Menu Style */
.school-card-btn {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8, #1E40AF, #1E3A8A) !important;
    background-size: 300% 300% !important;
    animation: menuActiveGlow 4s ease infinite !important;
    color: white !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    padding: 12px 24px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
    text-align: center;
    align-self: flex-start;
    margin-top: auto;
}

.school-card-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c) !important;
    background-size: 300% 300% !important;
    animation: menuHoverGlow 3s ease infinite !important;
    color: white !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* All Schools Link - Menu Style */
.all-schools {
    text-align: center;
    margin-top: 40px;
}

.all-schools a {
    display: inline-block;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8, #1E40AF, #1E3A8A) !important;
    background-size: 300% 300% !important;
    animation: menuActiveGlow 4s ease infinite !important;
    color: white !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    padding: 15px 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.all-schools a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c) !important;
    background-size: 300% 300% !important;
    animation: menuHoverGlow 3s ease infinite !important;
    color: white !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* ============================================
   ANIMATIONS - Menu Style
   ============================================ */

@keyframes menuHoverGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes menuActiveGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet Styles */
@media (max-width: 992px) {
    .school-card {
        flex: 0 0 calc(50% - 15px);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .vb-school-list-wrapper {
        gap: 20px;
    }
    
    .school-card {
        flex: 0 0 100%;
    }
}
