@import "./styles.css";


:root{
    --h-title-color:#638d9c;
}

.header {
    border-bottom: solid 2px var(--h-title-color);
    z-index: 10000;
}

.bg-bottom {
    background-color: var(--h-title-color);
}

.top-section {
    position: relative;
    padding: 10rem 0;
    background-position: center;
    background-size: cover;
    height: 25rem;
}

.top-section h2 {
    font-weight: 400;
}

.top-section .top-section-content {
    position: relative;
    z-index: 1;
}

.top-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

section header h2{
    font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    color: var(--h-title-color);
    font-size: 2.3rem;
    line-height: 4rem;
}

/* Make PUBLICATIONS section heading black */
#publications header h2{
    color: #000000;
}

#education header h2{
    color: #000000;
}

/* Make AWARDS section heading black */
#awards header h2{
    color: #000000;
}

/* Make SERVICE section heading black */
#service header h2{
    color: #000000;
}

/* Make BLOG section heading black */
#blog header h2{
    color: #000000;
}

section .main-body{
    font-size: 1.3rem;
    font-weight: 200;
    line-height: 2.4rem;
}

.bg-gradient-primary-to-secondary-light {
    background: linear-gradient(45deg, #f2f7f7, #ffffff) !important;
}

.bg-gradient-primary-to-secondary-gray {
    background: linear-gradient(45deg, #e6f0f0, #f2f7f7) !important;
}



.on-top {
    position: relative;
    z-index: 10000;
}

.top-bg {
    background-position: center;
    background-size: fill;
    width: 100%;
    height: 100%;
}

.top-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}


#avatar {
    position: relative;
    height: 0;
    top:min(-65px,max(-100px,calc(-1*100vw/12)));
    max-width: 55em;
    margin: 0 1.5rem 0 0;
    float: right;
    z-index: 9000;
}

#avatar img {
    height: max(130px,min(320px,calc(100vw/6)));
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 991px) {
    #avatar {
        margin: 0;
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

.blog-card {
    display: block;
    background: #ffffff;
    border-radius: 0.8rem;
    overflow: hidden;
    text-decoration: none;
    color: #1e2d33;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.blog-card img {
    width: 100%;
    aspect-ratio: 5 / 3;
    height: auto;
    object-fit: cover;
    display: block;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    padding: 0.9rem 1rem;
}
