@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap');

:root{
    --portal-navy:#071c3b;
    --portal-blue:#0f4c81;
    --portal-sky:#1d6fd1;
    --portal-gold:#d6a21e;
    --portal-bg:#f4f7fb;
    --portal-text:#1f2937;
    --portal-muted:#6b7280;
    --portal-card:#ffffff;
    --portal-border:#e5e7eb;
    --portal-radius:24px;
    --portal-shadow:0 12px 32px rgba(15,23,42,.08);
}

*{
    box-sizing:border-box;
}

body{
    font-family:"Kanit",sans-serif;
    background:var(--portal-bg);
    color:var(--portal-text);
    padding-top:86px;
    overflow-x:hidden;
}

/* =========================
   NAVBAR
========================= */

.portal-navbar{
    background:linear-gradient(135deg,var(--portal-navy),var(--portal-blue) 55%,var(--portal-sky));
    box-shadow:0 10px 30px rgba(0,0,0,.12);
    border-bottom:1px solid rgba(255,255,255,.12);
}

.brand-logo{
    height:48px;
    width:auto;
}

.brand-text{
    display:flex;
    flex-direction:column;
    line-height:1.2;
    color:#fff;
}

.brand-text strong{
    font-size:1rem;
    font-weight:700;
    letter-spacing:.2px;
}

.brand-text span{
    font-size:.78rem;
    opacity:.78;
}

.portal-navbar .nav-link{
    color:#fff !important;
    font-weight:500;
    padding:11px 16px !important;
    border-radius:14px;
    transition:.25s ease;
}

.portal-navbar .nav-link:hover{
    background:rgba(255,255,255,.13);
}

.portal-navbar .nav-link.active{
    background:#fff;
    color:var(--portal-blue) !important;
}

.portal-login-link{
    background:rgba(214,162,30,.95);
    color:#111827 !important;
}

.portal-login-link:hover{
    background:#f0c64f !important;
}

/* =========================
   MAIN
========================= */

.portal-content{
    min-height:65vh;
}

.portal-loading{
    min-height:360px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:14px;
    color:var(--portal-muted);
}

/* =========================
   HERO
========================= */

.portal-hero{
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(circle at top right,rgba(255,255,255,.2),transparent 28%),
        linear-gradient(135deg,var(--portal-navy),var(--portal-blue) 52%,var(--portal-sky));
    color:#fff;
    padding:78px 0 94px;
    border-radius:0 0 42px 42px;
}

.portal-hero::after{
    content:"";
    position:absolute;
    width:420px;
    height:420px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    right:-120px;
    bottom:-180px;
}

.portal-hero-title{
    font-size:clamp(2rem,4vw,4.2rem);
    font-weight:800;
    line-height:1.12;
    margin-bottom:18px;
}

.portal-hero-subtitle{
    font-size:clamp(1rem,1.6vw,1.25rem);
    opacity:.88;
    max-width:760px;
}

.portal-hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:28px;
}

/* =========================
   BUTTONS
========================= */

.btn-portal-primary{
    background:#fff;
    color:var(--portal-blue);
    border:none;
    border-radius:16px;
    padding:12px 22px;
    font-weight:700;
    box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.btn-portal-primary:hover{
    background:#f8fafc;
    color:var(--portal-navy);
}

.btn-portal-outline{
    color:#fff;
    border:1px solid rgba(255,255,255,.45);
    border-radius:16px;
    padding:12px 22px;
    font-weight:600;
}

.btn-portal-outline:hover{
    background:rgba(255,255,255,.12);
    color:#fff;
}

.btn-trumis{
    background:var(--portal-blue);
    color:#fff;
    border:none;
    border-radius:14px;
    padding:10px 18px;
    font-weight:600;
}

.btn-trumis:hover{
    background:#08345d;
    color:#fff;
}

/* =========================
   SECTION
========================= */

.portal-section{
    padding:48px 0;
}

.section-head{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:24px;
}

.section-head h2{
    font-weight:800;
    margin:0;
}

.section-head p{
    margin:6px 0 0;
    color:var(--portal-muted);
}

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

.portal-card{
    background:var(--portal-card);
    border:1px solid var(--portal-border);
    border-radius:var(--portal-radius);
    box-shadow:var(--portal-shadow);
    overflow:hidden;
}

.hover-card{
    transition:.25s ease;
}

.hover-card:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 42px rgba(15,23,42,.14);
}

.stat-card{
    padding:26px;
    display:flex;
    align-items:center;
    gap:18px;
}

.stat-icon{
    width:58px;
    height:58px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eaf2ff;
    color:var(--portal-blue);
    font-size:1.45rem;
}

.stat-value{
    font-size:2rem;
    font-weight:800;
    line-height:1;
}

.stat-label{
    color:var(--portal-muted);
    margin-top:6px;
}

/* =========================
   SERVICE CARDS
========================= */

.service-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:20px;
}

.service-card{
    padding:24px;
    text-align:center;
}

.service-card img{
    height:72px;
    max-width:150px;
    object-fit:contain;
    margin-bottom:16px;
}

.service-card h3{
    font-size:1.2rem;
    font-weight:800;
}

/* =========================
   FILTER CHIPS
========================= */

.chip-scroll{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding-bottom:8px;
}

.chip-scroll::-webkit-scrollbar{
    height:6px;
}

.chip-scroll::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:999px;
}

.filter-chip{
    flex:0 0 auto;
    border:1px solid var(--portal-border);
    background:#fff;
    border-radius:999px;
    padding:10px 18px;
    font-weight:600;
    color:var(--portal-text);
    text-decoration:none;
    box-shadow:0 4px 14px rgba(15,23,42,.05);
}

.filter-chip:hover,
.filter-chip.active{
    background:var(--portal-blue);
    color:#fff;
}

/* =========================
   RESEARCH GRID
========================= */

.research-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(310px,1fr));
    gap:22px;
}

.research-card{
    padding:20px;
}

.research-person{
    display:flex;
    gap:14px;
    align-items:flex-start;
}

.research-person img{
    width:72px;
    height:72px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #eaf2ff;
}

.research-title{
    font-weight:700;
    margin-top:14px;
    line-height:1.45;
}

.research-meta{
    color:var(--portal-muted);
    font-size:.9rem;
}

.research-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:16px;
}

/* =========================
   SEARCH
========================= */

.portal-search{
    position:relative;
}

.portal-search i{
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    color:var(--portal-muted);
}

.portal-search input{
    padding:14px 18px 14px 48px;
    border-radius:18px;
    border:1px solid var(--portal-border);
    box-shadow:var(--portal-shadow);
}

/* =========================
   FOOTER
========================= */

.portal-footer{
    background:linear-gradient(135deg,var(--portal-navy),#0b2f5f);
    color:#fff;
    padding:52px 0 24px;
    margin-top:48px;
}

.portal-footer h5{
    font-weight:800;
    margin-bottom:16px;
}

.portal-footer p{
    color:rgba(255,255,255,.78);
}

.portal-footer a{
    display:block;
    color:rgba(255,255,255,.8);
    text-decoration:none;
    margin-bottom:8px;
}

.portal-footer a:hover{
    color:#fff;
}

.portal-footer hr{
    border-color:rgba(255,255,255,.18);
}
.carousel-control-prev,
.carousel-control-next{
    z-index:5;
}

.research-slide-link{
    position:relative;
    z-index:1;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:991px){
    body{
        padding-top:78px;
    }

    .brand-text strong{
        font-size:.9rem;
    }

    .brand-text span{
        display:none;
    }

    .portal-hero{
        padding:52px 0 72px;
        border-radius:0 0 28px 28px;
    }

    .section-head{
        display:block;
    }

    .stat-card{
        padding:20px;
    }
}

@media(max-width:575px){
    .brand-logo{
        height:40px;
    }

    .portal-navbar .nav-link{
        margin:4px 0;
    }

    .research-grid{
        grid-template-columns:1fr;
    }
} 

.portal-index-bar{
    position: sticky;
    top: 76px;
    z-index: 998;

    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(0,0,0,.06);

    padding: 10px 0;
}

.index-scroll{
    display:flex;
    gap:12px;

    overflow-x:auto;
    scrollbar-width:none;
}

.index-scroll::-webkit-scrollbar{
    display:none;
}

.index-chip{
    flex:0 0 auto;

    display:inline-flex;
    align-items:center;
    gap:8px;

    padding:10px 18px;

    border-radius:999px;

    background:#fff;
    border:1px solid rgba(15,76,129,.12);

    color:#0f4c81;
    text-decoration:none;

    font-size:14px;
    font-weight:600;

    transition:.25s ease;
}

.index-chip:hover{
    background:#0f4c81;
    color:#fff;

    transform:translateY(-2px);

    box-shadow:0 10px 24px rgba(15,76,129,.18);
}