﻿
:root {
    --page-bg: #9fa1b5;
    --purple-dark: #3b185f;
    --purple-main: #5e2b97;
    --purple-soft: #f3eef9;
    --purple-soft-2: #ece4f7;
    --purple-soft-3: #f8f4fc;
    --text: #2b1248;
    --muted: #5c4b7d;
    --radius: 20px;
    --shadow: 0 18px 40px rgba(59,24,95,.18);
}



/* CONTAINER */
.dei-wrapper {
    max-width: 1100px;
    margin: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding-top: 60px;
}

/* HEADER */
.dei-header {
    padding: 45px 55px 25px;
    text-align: center;
    background: linear-gradient(180deg,#f7f3fc,#ffffff);
}

    .dei-header h1 {
        font-size: 34px;
        font-weight: 700;
        color: var(--purple-dark);
        margin-bottom: 12px;
    }

    .dei-header p {
        max-width: 850px;
        margin: auto;
        font-size: 15px;
        color: var(--muted);
        line-height: 1.8;
    }

/* GRID */
.dei-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
}

/* CARD */
.dei-card {
    padding: 36px 40px;
}

    .dei-card h3 {
        display: flex;
        align-items: center;
        gap: 14px;
        font-size: 20px;
        margin-bottom: 14px;
        font-weight: 600;
        color: var(--purple-dark);
    }

    .dei-card p {
        font-size: 14.6px;
        line-height: 1.8;
        color: #3f2a63;
    }

/* ICON */
.icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 8px 18px rgba(94,43,151,.25);
}

.icon-main {
    background: #5e2b97;
}

.icon-soft {
    background: #7a4bc2;
}

.icon-mid {
    background: #6a3fb4;
}

.icon-light {
    background: #8456cf;
}

/* CARD COLORS */
.card-dei {
    background: var(--purple-soft);
}

.card-misconduct {
    background: var(--purple-soft-2);
}

.card-equal {
    background: var(--purple-soft-3);
}

.card-ragging {
    background: #f1eafb;
}

/* RESPONSIVE */
@media(max-width:900px) {
    .dei-grid {
        grid-template-columns: 1fr;
    }

    .dei-header {
        padding: 32px 25px 20px;
    }
}

@media (max-width: 768px) {
    .dei-wrapper {
        padding-top: 10px;
    }
}



/* Fade-in animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wrapper animation */
.dei-wrapper {
    animation: fadeUp 0.9s ease forwards;
}

/* Header animation */
.dei-header {
    opacity: 0;
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.2s;
}

/* Card animation */
.dei-card {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

    /* Stagger effect */
    .dei-card:nth-child(1) {
        animation-delay: 0.3s;
    }

    .dei-card:nth-child(2) {
        animation-delay: 0.45s;
    }

    .dei-card:nth-child(3) {
        animation-delay: 0.6s;
    }

    .dei-card:nth-child(4) {
        animation-delay: 0.75s;
    }

/* Hover effect */
.dei-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .dei-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 45px rgba(94,43,151,.22);
    }

/* Icon micro interaction */
.icon {
    transition: transform 0.35s ease;
}

.dei-card:hover .icon {
    transform: scale(1.12);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dei-wrapper,
    .dei-header,
    .dei-card {
        animation: none;
        opacity: 1;
    }
}



.icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1; /*  KEY FIX */
}

/* Mobile-specific safety */
@media (max-width:768px) {
    .icon {
        font-size: 18px; /* slightly smaller emoji */
        line-height: 1; /* prevent stretch */
    }
}


