/*=========================================================
    ACADEMIC SECTION CSS START HERE
=========================================================*/

.academic-section{
    position: relative;

   /* padding: 90px 0;*/
    padding: 30px 0;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #ffffff 50%,
            #eef4ff 100%
        );
}


/*=========================================================
    ANIMATED BACKGROUND SHAPES
=========================================================*/

.academic-section::before,
.academic-section::after{
    content: "";

    position: absolute;

    border-radius: 50%;

    z-index: 1;
}

.academic-section::before{
    top: -120px;
    left: -100px;
/*
    width: 300px;
    height: 300px;*/

    width: 200px;
    height: 200px;

    background: rgba(13,59,102,0.05);

    animation: floatShape 8s ease-in-out infinite;
}

.academic-section::after{
    bottom: -100px;
    right: -100px;

    width: 260px;
    height: 260px;

    background: rgba(244,162,97,0.12);

    animation: floatShape 10s ease-in-out infinite;
}


/*=========================================================
    CONTAINER
=========================================================*/

.academic-section .container{
    position: relative;
    z-index: 5;
}


/*=========================================================
    ROW GAP
=========================================================*/

.academic-section .row{
    row-gap: 10px;
}


/*=========================================================
    COLUMN ANIMATION
=========================================================*/

.academic-section .col-md-4{
    animation: fadeUp 1s ease;
}


/*=========================================================
    ACADEMIC CARD
=========================================================*/

.academic-card{
    position: relative;

    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

   /* min-height: 220px;*/
    min-height: 150px;

   /* padding: 45px 30px !important;*/
    padding: 30px 20px !important;

    text-decoration: none;

    border-radius: 24px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.95),
            rgba(255,255,255,0.88)
        );

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,0.4);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.06);

    transition: all 0.4s ease;
}


/*=========================================================
    CARD TOP BORDER
=========================================================*/

.academic-card::before{
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            to right,
            #0d3b66,
            #f4a261
        );
}


/*=========================================================
    SHINE EFFECT
=========================================================*/

.academic-card::after{
    content: "";

    position: absolute;
    top: 0;
    left: -120%;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,0.35),
            transparent
        );

    transform: skewX(-25deg);

    transition: 0.7s ease;
}

.academic-card:hover::after{
    left: 150%;
}


/*=========================================================
    CARD HOVER EFFECT
=========================================================*/

.academic-card:hover{
    transform: translateY(-10px);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.12);

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f8fbff
        );
}


/*=========================================================
    CARD ICON EFFECT
=========================================================*/

.academic-card .academic-icon{
    width: 80px;
    height: 80px;

    margin-bottom: 25px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #0d3b66,
            #14548f
        );

    color: #ffffff;

    font-size: 32px;

    box-shadow:
        0 12px 25px rgba(13,59,102,0.25);

    transition: all 0.4s ease;
}

.academic-card:hover .academic-icon{
    transform: rotateY(180deg) scale(1.08);

    background:
        linear-gradient(
            135deg,
            #f4a261,
            #ffb877
        );
}


/*=========================================================
    CARD TITLE
=========================================================*/

.academic-card h3{
    position: relative;

    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;

    color: #0d3b66;

    margin: 0;

    transition: all 0.3s ease;
}

.academic-card:hover h3{
    color: #f4a261;
}


/*=========================================================
    BOTTOM LINE EFFECT
=========================================================*/

.academic-card h3::after{
    content: "";

    display: block;

    width: 0;
    height: 3px;

    margin: 14px auto 0;

    border-radius: 50px;

    background: #f4a261;

    transition: width 0.4s ease;
}

.academic-card:hover h3::after{
    width: 70px;
}


/*=========================================================
    FLOATING ANIMATION
=========================================================*/

@keyframes floatShape{

    0%{
        transform: translateY(0px);
    }

    50%{
        transform: translateY(25px);
    }

    100%{
        transform: translateY(0px);
    }

}


/*=========================================================
    FADE UP ANIMATION
=========================================================*/

@keyframes fadeUp{

    from{
        opacity: 0;
        transform: translateY(40px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }

}


/*=========================================================
    LARGE DESKTOP
=========================================================*/

@media (min-width: 1400px){

    .academic-card{
        min-height: 250px;
    }

    .academic-card h3{
        font-size: 32px;
    }

}


/*=========================================================
    DESKTOP
=========================================================*/

@media (max-width: 1199px){

    .academic-section{
        padding: 80px 0;
    }

    .academic-card{
        min-height: 210px;
        padding: 40px 25px !important;
    }

    .academic-card h3{
        font-size: 25px;
    }

}


/*=========================================================
    TABLET DEVICE
=========================================================*/

@media (max-width: 991px){

    .academic-section{
        padding: 70px 0;
    }

    .academic-card{
        min-height: 200px;
    }

    .academic-card h3{
        font-size: 22px;
    }

}


/*=========================================================
    MOBILE DEVICE
=========================================================*/

@media (max-width: 767px){

    .academic-section{
        padding: 60px 0;
    }

    .academic-section::before{
        width: 220px;
        height: 220px;
    }

    .academic-section::after{
        width: 180px;
        height: 180px;
    }

    .academic-card{
        min-height: 180px;

        padding: 35px 20px !important;

        border-radius: 18px;
    }

    .academic-card h3{
        font-size: 20px;
    }

    .academic-card:hover{
        transform: translateY(-6px);
    }

}


/*=========================================================
    SMALL MOBILE DEVICE
=========================================================*/

@media (max-width: 575px){

    .academic-section{
        padding: 50px 0;
    }

    .academic-card{
        min-height: 160px;

        padding: 30px 18px !important;

        border-radius: 16px;
    }

    .academic-card h3{
        font-size: 18px;
        line-height: 1.5;
    }

}