/* =========================
   EDUCATION MAIN PAGE
   ========================= */

.edu-main-wrap {
    direction: rtl;
    max-width: 1100px;
    margin: 35px auto;
    padding: 18px;
}

/* ===== HEADER ===== */
.edu-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 2.2rem 1.5rem;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 18px;
}

.edu-header h1 {
    font-size: 38px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 10px;
    line-height: 1.7;
}

.edu-header p {
    font-size: 19px;
    color: #94a3b8;
    margin: 0;
    line-height: 2;
}

/* ===== GRID ===== */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* ===== CARD ===== */
.edu-card {
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    padding: 1.4rem 1rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 155px;
}

.edu-card:hover {
    border-color: var(--card-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
    text-decoration: none;
}

/* Bottom color accent bar */
.edu-card-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--card-color);
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.edu-card:hover .edu-card-accent {
    opacity: 1;
}

/* Icon */
.edu-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #f5f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: background 0.2s ease;
}

.edu-card:hover .edu-icon-wrap {
    background: #eef1ff;
}

/* Title */
.edu-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #111;
    text-align: center;
    line-height: 1.8;
}

/* Arrow */
.edu-arrow {
    position: absolute;
    left: 12px;
    bottom: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--card-color);
    opacity: 0.45;
    transition: opacity 0.2s ease, left 0.2s ease;
}

.edu-card:hover .edu-arrow {
    opacity: 1;
    left: 9px;
}

/* Disabled */
.edu-card-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== TABLET ===== */
@media (max-width: 900px) {
    .edu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .edu-header h1 {
        font-size: 30px;
    }

    .edu-header p {
        font-size: 16px;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
    .edu-main-wrap {
        margin: 18px auto;
        padding: 12px;
    }

    .edu-header {
        padding: 1.6rem 1rem;
        border-radius: 14px;
    }

    .edu-header h1 {
        font-size: 24px;
    }

    .edu-header p {
        font-size: 14px;
    }

    .edu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .edu-card {
        min-height: 130px;
        padding: 1rem 0.8rem;
        border-radius: 14px;
    }

    .edu-icon-wrap {
        width: 46px;
        height: 46px;
        font-size: 22px;
        border-radius: 12px;
    }

    .edu-card-title {
        font-size: 14px;
    }
}