﻿body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(-45deg, #f5f7ff, #eef1f8, #f9f9ff, #eef3ff );
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite;
}

/* animation */
@@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body::before {
    content: "";
    position: fixed;
    top: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.25), transparent 60% );
    filter: blur(60px);
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    bottom: -150px;
    right: -150px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(29, 22, 58, 0.18), transparent 60% );
    filter: blur(70px);
    z-index: -1;
}



.profile-col {
    padding: 20px;
}

/* card หลัก */
/*     .profile-card {
        position: relative;
        border-radius: 18px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(6px);
        border: 1px solid rgba(0,0,0,0.05);
    } */


.profile-card {
    position: relative;
    border-radius: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    overflow: hidden;
}

    /* hover premium lift */
    .profile-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    }

    .profile-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 5px;
        width: 100%;
        background: linear-gradient(90deg, #1d163a, #6c5ce7, #a29bfe );
    }




/* hover effect */
/*    .profile-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 25px 50px rgba(0,0,0,0.18);
        } */

/* รูป container */
.profile-img-box {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d163a, #6c5ce7, #a29bfe );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.25);
    /*  padding-top: 20px; */
}

/* รูป */
.profile-img {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
}

/* hover รูป */
.profile-card:hover .profile-img {
    transform: scale(1.05);
}

/* body */
.profile-body {
    padding: 15px;
}

/* ชื่อ */
.profile-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f1b3a;
    text-decoration: none;
}

/* ตำแหน่ง */
.profile-position {
    font-size: 13px;
    color: #6b6b6b;
    margin-top: 6px;
    display: block;
    line-height: 1.5;
}

/* hover text */
.profile-card:hover .profile-name {
    color: #1d163a;
}


.menu-grid {
    margin-top: 10px;
}

/* spacing column */
.menu-col {
    padding: 15px;
}

/* card menu */
.menu-tile {
    position: relative;
    border-radius: 16px;
    background: #ffffff; /* ⭐ พื้นขาว */
    border: 1px solid #e8e8e8;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.35s ease;
    text-align: center;
    padding: 18px 10px;
    cursor: pointer;
    overflow: hidden;
}

    /* hover */
    .menu-tile:hover {
        transform: translateY(-10px);
        background: linear-gradient(135deg, #1d163a, #3b2b7a, #6c5ce7 );
        box-shadow: 0 20px 45px rgba(108, 92, 231, 0.25);
        border-color: transparent;
    }

    /* active state */
    .menu-tile.active {
        background: linear-gradient(135deg, #1d163a, #6c5ce7);
        box-shadow: 0 15px 35px rgba(29, 22, 58, 0.3);
    }

/* link */
.menu-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: #1f1b3a;
    transition: 0.3s ease;
}

/* hover text */
.menu-tile:hover .menu-link {
    color: #ffffff;
}

/* active text */
.menu-tile.active .menu-link {
    color: #fff;
}

/* hover text */


/* active hover fix */
.menu-tile.active:hover .menu-link {
    color: #fff;
}

.menu-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.25), transparent );
    transition: 0.6s;
}

.menu-tile:hover::before {
    left: 100%;
}

.page-context {
    text-align: center;
    margin: 25px 0 10px 0;
}

/* Title หลัก */
.context-title {
    font-size: 22px;
    font-weight: 700;
    color: #1d163a;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

    /* เส้น underline สวย ๆ */
    .context-title::after {
        content: "";
        display: block;
        width: 60%;
        height: 3px;
        margin: 8px auto 0;
        background: linear-gradient(90deg, #1d163a, #6c5ce7, #a29bfe);
        border-radius: 10px;
    }

/* subtitle */
.context-subtitle {
    margin-top: 8px;
    font-size: 13px;
    color: #7a7a7a;
    letter-spacing: 0.3px;
}
