/* ====== EDUCATION CARDS ====== */

#education {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 20px;
    perspective: 1000px;
    /* enables subtle 3D */
}

.college {
    position: relative;
    width: 25%;
    height: 500px;
    min-height: 400px;
    min-width: 350px;
    margin: 30px;
    border-radius: 10px 50px 30px 50px;
    background-image: url('https://static.vecteezy.com/system/resources/previews/013/762/685/non_2x/abstract-blue-light-effect-with-planet-illustration-vector.jpg');
    background-color: rgba(0, 0, 0, 0.55);
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;

    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-m);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);

    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
    transform-style: preserve-3d;
    overflow: hidden;
}

.college::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from 0deg, var(--tertiary-color), transparent 30%, var(--secondary-color), transparent 60%, var(--primary-color), transparent);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .65;
    animation: borderRotate 8s linear infinite;
    pointer-events: none;
}

.college:hover {
    transform: translateY(-12px) rotateX(2deg) rotateY(-2deg);
    box-shadow: var(--shadow-l);
}

.clg-logo {
    width: 250px;
    height: 250px;
    border: 3px solid var(--text-color);
    background-image: url('/CSS/Images/logo.png');
    background-size: cover;
    background-position: center;
    margin: 20px 0px;
    border-radius: 50%;
    box-shadow: var(--shadow-s);
    animation: float 6s ease-in-out infinite;
}

.clg-details {
    width: 90%;
    color: var(--text-color);
    text-align: center;
}

.clg-details h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--quaternary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: .3px;
}

#clg-logo2 {
    background-image: url('/CSS/Images/IITM.png');
}

#clg-logo1 {
    background-image: url('/CSS/Images/galgotia.png');
}

#clg-logo3 {
    background-image: url('/CSS/Images/CBSE-LOGO.png');
}

.clg_year {
    font-size: 1.05rem;
    margin: 10px auto;
    border: 1px solid rgba(255, 255, 255, .6);
    background-color: rgba(255, 255, 255, 0.18);
    padding: 4px 10px;
    width: fit-content;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}