/* =========================================
   PARTNER SCHOOLS SPECIFIC STYLES
========================================= */

/* --- VISIBILITY FIX: SOFT BADGES --- */
.bg-primary-soft { background-color: #f3e8ff !important; color: #7e22ce !important; }
.bg-success-soft { background-color: #dcfce7 !important; color: #166534 !important; }
.bg-warning-soft { background-color: #fef3c7 !important; color: #b45309 !important; }
.bg-info-soft { background-color: #e0f2fe !important; color: #0369a1 !important; }
.bg-dark-soft { background-color: #f1f5f9 !important; color: #334155 !important; }

/* --- INNER PAGE HERO --- */
.inner-page-hero {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    padding: 100px 0 130px 0; /* Extra padding at bottom for search bar overlap */
    position: relative;
    text-align: center;
    border-bottom: 1px solid rgba(126, 34, 206, 0.1);
    overflow: hidden;
}

/* --- FLOATING 3D-STYLE ICONS --- */
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(126, 34, 206, 0.15), inset 0 2px 5px rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.floating-element i {
    font-size: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.float-1 { top: 15%; left: 10%; width: 75px; height: 75px; animation: floatY 6s ease-in-out infinite; transform: rotate(-10deg); }
.float-2 { bottom: 25%; right: 12%; width: 85px; height: 85px; border-radius: 50%; animation: floatY 8s ease-in-out infinite reverse; }
.float-3 { top: 25%; right: 25%; width: 60px; height: 60px; animation: floatX 7s ease-in-out infinite; transform: rotate(15deg); }
.float-4 { bottom: 20%; left: 20%; width: 65px; height: 65px; animation: floatX 9s ease-in-out infinite reverse; opacity: 0.8; }

@keyframes floatY {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}
@keyframes floatX {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(-20px) rotate(-5deg); }
}

.hero-content-wrapper { position: relative; z-index: 5; }

/* --- SEARCH BAR OVERLAP --- */
.search-bar-overlap {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(126, 34, 206, 0.08);
    padding: 30px;
    border: 1px solid #e9d5ff;
}
.form-control, .form-select {
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    font-size: 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(126, 34, 206, 0.1);
    background-color: #ffffff;
}

/* --- SUCCESS STORIES --- */
.success-story-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(88, 28, 135, 0.05);
    border: 1px solid #f3e8ff;
    transition: all 0.3s ease;
}
.success-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(126, 34, 206, 0.1);
}

/* --- SCHOOL CARDS --- */
.school-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(88, 28, 135, 0.04);
    border: 1px solid #f3e8ff;
    height: 100%;
    transition: all 0.3s ease;
}
.school-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(126, 34, 206, 0.12);
}
.school-cover {
    height: 180px;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
    position: relative;
}
.school-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.school-logo-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
    margin: -35px auto 15px 25px; 
    position: relative;
    z-index: 2;
}
.school-details {
    padding: 0 25px 25px 25px;
}
.school-meta-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

@media (max-width: 991px) {
    .floating-element { display: none; }
}