/* 
 * Global Edu Solutions - Schools Page Modernization
 * "The Academic Ecosystem Showcase"
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --school-indigo: #4F46E5;
    --school-indigo-hover: #4338CA;
    --school-pink: #EC4899;
    --school-slate-900: #0F172A;
    --school-slate-600: #475569;
    --school-slate-50: #F8FAFC;
    --school-white: #FFFFFF;
    --school-radius: 20px;
    --school-font-display: 'Poppins', sans-serif;
    --school-font-body: 'Poppins', sans-serif;
    --school-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.schools-redesign-wrapper {
    background: #FFFFFF;
    font-family: var(--school-font-body);
    color: var(--school-slate-900);
    padding: 140px 0 0px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================================================
   1. The Academic Horizon (Hero Section - Matching Courses)
   ========================================================================== */
.courses-hero-modern {
    width: 100%;
    max-width: 100%;
    padding: 0 5%;
    margin-bottom: 0px;
}

.courses-editorial-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.courses-editorial-tag {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--school-indigo);
    margin-bottom: 5px;
    display: inline-block;
    animation: fadeDown 0.8s ease-out forwards;
}

.courses-editorial-title {
    font-family: var(--school-font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--school-slate-900);
    margin: 0;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.courses-editorial-accent {
    height: 4px;
    width: 60px;
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    margin-top: 10px;
    border-radius: 2px;
    animation: widthExpand 0.8s ease-out 0.4s both;
}

/* ==========================================================================
   2. Academic Transition (Animating Icons & Typing)
   ========================================================================== */
.schools-transition-pattern {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(79, 70, 229, 0.05);
    border-bottom: 1px solid rgba(79, 70, 229, 0.05);
}

.school-bg-illustration {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.06;
    color: var(--school-indigo);
    z-index: 1;
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite alternate;
}

.school-bg-illustration svg {
    height: 120%;
    width: auto;
}

.school-floating-icon {
    position: absolute;
    color: var(--school-indigo);
    transition: all 0.5s ease;
    z-index: 2;
}

.school-floating-icon svg {
    width: 60px;
    height: 60px;
    opacity: 0.04;
}

.icon-1 { top: 15%; left: 10%; animation: float 8s ease-in-out infinite; }
.icon-2 { bottom: 10%; right: 15%; animation: floatAlt 10s ease-in-out infinite; }
.icon-3 { top: 25%; right: 25%; animation: float 12s ease-in-out infinite reverse; }

.schools-typewriter-container {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
}

.schools-typewriter-text {
    font-family: var(--school-font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--school-indigo) 0%, var(--school-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.schools-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: var(--school-pink);
    margin-left: 5px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

/* ==========================================================================
   3. School Category Sections
   ========================================================================== */
.school-category-section {
    padding: 100px 5%;
}

.school-category-section.alt-bg {
    background-color: #F8FAFC;
    background-image: radial-gradient(rgba(79, 70, 229, 0.05) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding-top: 60px;
}

.school-category-header {
    margin-bottom: 80px;
    text-align: center;
}

.school-category-header h2 {
    font-family: var(--school-font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--school-slate-900);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.category-line {
    height: 3px;
    width: 80px;
    background: var(--school-indigo);
    margin: 0 auto;
    border-radius: 2px;
}

.career-section-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.career-section-tag {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--school-pink);
    background: rgba(236, 72, 153, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
}

.career-section-header h2 {
    font-family: var(--school-font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--school-slate-900);
    margin: 0;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   4. Staggered Editorial Showcase (Cards)
   ========================================================================== */
.school-showcase-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.school-card {
    display: flex;
    align-items: stretch;
    gap: 80px;
    background: var(--school-white);
    border-radius: var(--school-radius);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.02);
    transition: var(--school-transition);
}

.school-card.reverse {
    flex-direction: row-reverse;
}

.school-card:hover {
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
    transform: translateY(-5px);
}

.school-card-image {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
    background: var(--school-slate-50);
}

.school-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    filter: brightness(0.95);
}

.school-card:hover .school-card-image img {
    transform: scale(1.06) rotate(-1deg);
    filter: brightness(1.05);
}

.school-card-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--school-slate-900);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.school-card:hover .school-card-overlay {
    transform: translateY(-5px);
}

.school-card-overlay svg {
    width: 18px;
    height: 18px;
    color: var(--school-indigo);
}

.school-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.school-name {
    font-family: var(--school-font-display);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--school-slate-900);
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.school-description {
    color: var(--school-slate-600);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.school-description p {
    margin-bottom: 15px;
}

.school-description p:last-child {
    margin-bottom: 0;
}

.school-description strong {
    color: var(--school-slate-900);
    font-weight: 700;
}

.school-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--school-indigo);
    color: var(--school-white);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: var(--school-transition);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.school-btn-modern svg {
    width: 20px;
    height: 20px;
    transition: var(--school-transition);
}

.school-btn-modern:hover {
    background: var(--school-slate-900);
    color: var(--school-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.school-btn-modern:hover svg {
    transform: translate(3px, -3px);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes widthExpand {
    from { width: 0; }
    to { width: 60px; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatAlt {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes transitionDrift {
    from { background-position: 0 0; }
    to { background-position: 1200px 1200px; }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   5. Career Guidance Premium Block
   ========================================================================== */
.career-guidance-block {
    background: var(--school-white);
    border-radius: var(--school-radius);
    padding: 60px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: center;
    border: 1px solid rgba(79, 70, 229, 0.08);
    position: relative;
    overflow: hidden;
}

.career-guidance-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--school-indigo), var(--school-pink));
}

.career-guidance-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 60px;
    border-right: 1px solid rgba(15, 23, 42, 0.05);
}

.career-logo-wrapper {
    background: var(--school-slate-50);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.02), 0 10px 30px rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.03);
    position: relative;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.career-logo-wrapper::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px dashed rgba(79, 70, 229, 0.2);
    animation: rotateSlow 25s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.career-logo-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(236, 72, 153, 0.2);
    animation: rotateSlow 15s linear infinite reverse;
    pointer-events: none;
    z-index: -1;
}

.career-logo-wrapper img {
    max-width: 150px;
    height: auto;
}

.career-name {
    font-family: var(--school-font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--school-slate-900);
    margin-bottom: 15px;
    line-height: 1.2;
}

.career-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--school-indigo);
    background: rgba(79, 70, 229, 0.05);
    padding: 6px 15px;
    border-radius: 20px;
}

.career-headline {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--school-slate-900);
    margin-bottom: 25px;
    font-family: var(--school-font-display);
}

.career-text {
    color: var(--school-slate-600);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}
.career-text p {
    margin-bottom: 15px;
}
.career-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .school-card, .school-card.reverse {
        flex-direction: column;
        gap: 40px;
        padding: 30px;
    }
    
    .school-card-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .school-category-section {
        padding: 60px 5%;
    }
    .schools-redesign-wrapper {
    padding: 10px 0 0px;
}
.schools-transition-pattern {
    height: 70px;
    margin-top: 15px;
} 
.school-name {
    font-size: 15px;
    text-align: center;
}
    .school-showcase-container {
        gap: 60px;
    }
    
    .career-guidance-block {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 40px;
    }
    
    .career-guidance-brand {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.05);
        padding-bottom: 40px;
    }
}
