/*
 * School Management Solutions - CSS Framework
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --mgmt-font: 'Outfit', sans-serif;
    --mgmt-bg: #F0F4F8;
    --mgmt-slate-900: #1E293B;
    --mgmt-slate-600: #64748B;
    --mgmt-slate-400: #94A3B8;
    
    --mgmt-violet: #6366F1;
    --mgmt-pink: #D946EF;
    --mgmt-radius: 24px;
    --mgmt-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mgmt-solutions-wrapper {
    font-family: var(--mgmt-font);
    background: var(--mgmt-bg);
    color: var(--mgmt-slate-900);
    padding: 160px 0 100px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 1. Ambient Background Mesh */
.mgmt-ambient-mesh {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 1;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 100%);
}

.mgmt-ambient-mesh::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
    filter: blur(80px);
}

.mgmt-ambient-mesh::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.03) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    border-radius: 50%;
    filter: blur(60px);
}

/* 2. Hero Section */
.mgmt-hero-section {
    width: 100%;
    padding: 0 5%;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.mgmt-hero-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mgmt-hero-tag {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--mgmt-violet);
}

.mgmt-hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--mgmt-slate-900);
    margin: 0;
}

.highlight-text {
    background: linear-gradient(135deg, var(--mgmt-violet), var(--mgmt-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mgmt-hero-accent {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--mgmt-violet), var(--mgmt-pink));
    border-radius: 2px;
}

/* 3. Introduction Section */
.mgmt-intro-section {
    width: 100%;
    padding: 0 5%;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.mgmt-intro-card {
    background: rgba(255, 255, 255, 0.5);
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.85)), url('assets/mgmt_intro_bg_1777609738888.png');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--mgmt-radius);
    padding: 60px;
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.08);
}

.mgmt-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 991px) {
    .mgmt-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.mgmt-intro-left h2 {
    font-size: 17px;
    font-weight: 850;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--mgmt-slate-900);
}

.mgmt-intro-left p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--mgmt-slate-600);
    margin: 0;
}

.mgmt-quick-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mgmt-quick-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mgmt-quick-list li {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mgmt-slate-900);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 4px 10px rgba(30, 41, 59, 0.02);
    transition: var(--mgmt-transition);
}

.mgmt-quick-list li:nth-child(1) { background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%); }
.mgmt-quick-list li:nth-child(1) i { color: #4F46E5; }

.mgmt-quick-list li:nth-child(2) { background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%); }
.mgmt-quick-list li:nth-child(2) i { color: #DB2777; }

.mgmt-quick-list li:nth-child(3) { background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%); }
.mgmt-quick-list li:nth-child(3) i { color: #059669; }

.mgmt-quick-list li:nth-child(4) { background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%); }
.mgmt-quick-list li:nth-child(4) i { color: #D97706; }

.mgmt-quick-list li:nth-child(5) { background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%); }
.mgmt-quick-list li:nth-child(5) i { color: #0D9488; }

.mgmt-quick-list li:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(30, 41, 59, 0.08);
}

.mgmt-quick-list li i {
    font-size: 1.25rem;
}

/* 4. Solutions Bento Grid */
.mgmt-grid-section {
    width: 100%;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.mgmt-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 991px) {
    .mgmt-bento-grid {
        grid-template-columns: 1fr;
    }
}

.mgmt-bento-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--mgmt-radius);
    padding: 45px;
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.08);
    transition: var(--mgmt-transition);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: 
        "icon title"
        "body body";
    gap: 20px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.mgmt-bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
}

.mgmt-bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mask-image: linear-gradient(to bottom right, transparent 30%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom right, transparent 30%, black 100%);
    transition: var(--mgmt-transition);
}

.mgmt-bento-card:hover::after {
    opacity: 0.12;
    transform: scale(1.05);
}

.operations-card::after { background-image: url('assets/card_bg_operations_1777465180491.png'); }
.academic-card::after { background-image: url('assets/card_bg_academic_1777465201883.png'); }
.performance-card::after { background-image: url('assets/card_bg_performance_1777465223592.png'); }
.epd-card::after { background-image: url('assets/card_bg_epd_1777465249261.png'); }
.advisory-card::after { background-image: url('assets/card_bg_advisory_1777465270993.png'); }
.inspection-card::after { background-image: url('assets/card_bg_inspection_1777465293878.png'); }

.mgmt-card-icon,
.mgmt-bento-card h3,
.mgmt-card-body {
    position: relative;
    z-index: 2;
}

.mgmt-bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(30, 41, 59, 0.12),
                inset 0 -2px 0 var(--mgmt-violet);
    border-color: rgba(99, 102, 241, 0.3);
}

.mgmt-card-icon {
    grid-area: icon;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(79, 70, 229, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mgmt-violet);
    font-size: 1.8rem;
    transition: var(--mgmt-transition);
}

.mgmt-bento-card:hover .mgmt-card-icon {
    background: var(--mgmt-violet);
    color: white;
    transform: rotate(10deg);
}

.mgmt-bento-card h3 {
    grid-area: title;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--mgmt-slate-900);
    margin: 0;
    line-height: 1.3;
}

.mgmt-card-body {
    grid-area: body;
}

.mgmt-card-body p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--mgmt-slate-600);
    margin: 0 0 15px 0;
    text-align: justify;
}

.mgmt-card-body p:last-child {
    margin-bottom: 0;
}

.mgmt-card-body .mgmt-card-subtext {
    font-size: 0.95rem;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding-top: 15px;
    margin-top: 15px;
    color: var(--mgmt-slate-400);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .mgmt-solutions-wrapper {
        padding-top: 40px; /* Reduce top whitespace */
    }
    .mgmt-bento-card {
        padding: 25px 20px; /* Adjust padding for mobile */
        gap: 15px;
    }
    .mgmt-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    .mgmt-bento-card h3 {
        font-size: 1.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mgmt-hero-title {
    font-size: 18px;
}
.mgmt-intro-left h2 {
    font-size: 14px;
}
.mgmt-intro-card {
    padding: 35px;
}
}
