/* ===== SECTION ===== */
.home-section{
    padding:50px 5%;
    background:#f4f6fb;
}

/* ===== GRID DEFAULT (Large Desktop 1450px+) ===== */
.home-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr); /* 3 column by default */
    gap:30px;
}

/* ===== CARD ===== */
.home-card{
    background:#14376b;
    color:#fff;
    padding:50px 25px;
    text-align:center;
    font-size:22px;
    font-weight:600;
    position:relative;
    overflow:hidden;
    cursor:pointer;
    transition:0.4s ease;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:150px;
    text-decoration:none;
    line-height:1.4;
}

.home-card span{
    position:relative;
    z-index:2;
}

/* ===== CORNER BLOCK DESIGN ===== */
.home-card::before,
.home-card::after{
    content:"";
    position:absolute;
    width:80px;
    height:60px;
    background:#412a97;
    z-index:1;
}

.home-card::before{
    top:0;
    right:0;
}

.home-card::after{
    bottom:0;
    left:0;
}

/* ===== HOVER EFFECT ===== */
.home-card:hover{
    background:#1b4f9c;
    transform:translateY(-6px);
    box-shadow:0 10px 25px rgba(0,0,0,0.25);
}


/* ============================= */
/* ===== 768px – 1450px ======= */
/* ============================= */
@media (min-width:768px) and (max-width:1449px){

    .home-grid{
        grid-template-columns: repeat(2, 1fr); /* 2 column */
    }

    .home-card{
        font-size:20px;
        min-height:140px;
    }

    .home-card::before,
    .home-card::after{
        width:65px;
        height:50px;
    }
}


/* ===== MOBILE (Below 768px) ===== */
@media (max-width:767px){

    .home-grid{
        grid-template-columns: 1fr; /* 1 column */
    }

    .home-card{
        font-size:18px;
        padding:40px 20px;
        min-height:120px;
    }

    .home-card::before,
    .home-card::after{
        width:50px;
        height:40px;
    }
}