﻿/* ==========================================================
   theEduAIHub Homepage
   Main Home CSS
   ========================================================== */


/* ==========================================================
   HOME SECTION CSS FILES
   ========================================================== */

@import url("/css/home/hero.css");
@import url("/css/home/latest.css");
@import url("/css/home/exam-tools.css");
@import url("/css/home/recent-posts.css");
@import url("/css/home/why-choose.css");
@import url("/css/home/faq.css");
@import url("/css/home/final-cta.css");
@import url("/css/home/about-platform.css");


/* ==========================================================
   CATEGORY SECTION
   ========================================================== */

.category-section {
    position: relative;
    padding: 80px 0;
    background: #ffffff;
}

    .category-section .section-title {
        margin: 8px 0 8px;
        color: #102a43;
        font-size: clamp(1.8rem, 3vw, 2.35rem);
        font-weight: 750;
        line-height: 1.2;
    }

    .category-section .section-subtitle {
        max-width: 650px;
        margin-bottom: 0;
        color: #64748b;
        font-size: .98rem;
        line-height: 1.7;
    }

    .category-section .hero-badge {
        display: inline-flex;
        align-items: center;
        padding: 5px 11px;
        border-radius: 999px;
        background: #eef5ff;
        color: #1769e0;
        font-size: .76rem;
        font-weight: 700;
    }

    .category-section .category-card {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: 100%;
        min-height: 225px;
        padding: 31px 22px 26px;
        border: 1px solid #e5ebf3;
        border-radius: 20px;
        background: #ffffff;
        color: #102a43;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 7px 24px rgba(15, 23, 42, .045);
        transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    }

        .category-section .category-card:hover {
            transform: translateY(-6px);
            border-color: #cfe0f5;
            box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
        }

    .category-section .category-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 68px;
        height: 68px;
        margin-bottom: 19px;
        border-radius: 50%;
        background: #eef5ff;
        font-size: 1.8rem;
        box-shadow: inset 0 0 0 1px rgba(23, 105, 224, .04);
        transition: transform .28s ease, background-color .28s ease;
    }

    .category-section .category-card:hover .category-icon {
        transform: translateY(-3px) scale(1.04);
        background: #e5f0ff;
    }

    .category-section .category-card h4 {
        margin: 0 0 8px;
        color: #102a43;
        font-size: 1.02rem;
        font-weight: 750;
        line-height: 1.4;
    }

    .category-section .category-card p {
        margin: 0;
        color: #718096;
        font-size: .84rem;
        line-height: 1.55;
    }

    .category-section .category-card .read-more {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: auto;
        padding-top: 15px;
        color: #1769e0;
        font-size: .82rem;
        font-weight: 750;
    }

    .category-section .row {
        align-items: stretch;
    }


/* ==========================================================
   COMMON HOME COMPONENTS
   ========================================================== */

.common-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

    .common-card:hover {
        box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
    }

.shadow-soft {
    box-shadow: 0 15px 40px rgba(0, 0, 0, .06);
}

.rounded-xl {
    border-radius: 22px;
}

.btn-rounded {
    border-radius: 50px;
}


/* ==========================================================
   HOME ADVERTISEMENT
   ========================================================== */

.home-ad {
    margin: 60px 0;
    text-align: center;
}


/* ==========================================================
   CATEGORY RESPONSIVE
   ========================================================== */

@media (max-width: 767.98px) {

    .category-section {
        padding: 55px 0 !important;
    }

        .category-section .section-title {
            font-size: 1.75rem;
        }

        .category-section .section-subtitle {
            font-size: .9rem;
        }

        .category-section .category-card {
            min-height: 205px;
            padding: 27px 20px 23px;
        }

        .category-section .category-icon {
            width: 62px;
            height: 62px;
            margin-bottom: 16px;
            font-size: 1.65rem;
        }

        .category-section .category-card h4 {
            font-size: 1rem;
        }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .category-section .category-card,
    .category-section .category-icon,
    .common-card {
        transition: none;
    }

        .category-section .category-card:hover {
            transform: none;
        }

            .category-section .category-card:hover .category-icon {
                transform: none;
            }
}
