/* ==========================================================================
   FGPL — site-wide polish layer
   Loaded last, after style.css / responsive.css / theme-dark.css.
   Additive only: refines typography, page banners, cards, buttons and the
   notice board without changing any page's structure.
   Brand: #ff6015 (accent)  #302c51 (ink)
   ========================================================================== */

:root {
    --fgpl-accent: #ff6015;
    --fgpl-accent-dark: #e8500b;
    --fgpl-accent-soft: rgba(255, 96, 21, .12);
    --fgpl-accent-line: rgba(255, 96, 21, .28);
    --fgpl-ink: #302c51;
    --fgpl-ink-soft: #4f4b6b;
    --fgpl-body: #6b6b7d;
    --fgpl-line: #e8e8f0;
    --fgpl-surface: #ffffff;
    --fgpl-surface-2: #f7f7fb;
    --fgpl-radius: 18px;
    --fgpl-radius-sm: 12px;
    --fgpl-shadow: 0 2px 4px rgba(48, 44, 81, .04), 0 12px 32px rgba(48, 44, 81, .07);
    --fgpl-shadow-lg: 0 4px 8px rgba(48, 44, 81, .05), 0 24px 56px rgba(48, 44, 81, .13);
    --fgpl-ease: cubic-bezier(.22, .61, .36, 1);
}

/* Shared primitives, also defined in fgpl-people.css for the people pages.
   Kept here so the home page and notice board work without that file. */
.fgpl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fgpl-accent);
    margin-bottom: 12px;
}

.fgpl-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--fgpl-accent);
}

.fgpl-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--fgpl-ease), transform .6s var(--fgpl-ease);
    transition-delay: var(--d, 0ms);
}

.fgpl-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    .fgpl-reveal,
    .fgpl-reveal.is-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.fgpl-year {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--fgpl-accent-soft);
    color: var(--fgpl-accent);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Notice board — home page section and the /notices page
   -------------------------------------------------------------------------- */

.fgpl-board {
    padding: 74px 0 6px;
}

.fgpl-board--page {
    padding: 70px 0 90px;
    background:
        radial-gradient(880px 420px at 88% -8%, rgba(255, 96, 21, .07), transparent 60%),
        var(--fgpl-surface);
}

.fgpl-board__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.fgpl-board__title {
    font-size: 32px;
    line-height: 1.2;
    margin: 0;
    color: var(--fgpl-ink);
}

.fgpl-board__sub {
    margin: 10px 0 0;
    max-width: 58ch;
    font-size: 15px;
    line-height: 1.7;
    color: var(--fgpl-body);
}

.fgpl-board__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--fgpl-accent-line);
    background: var(--fgpl-surface);
    color: var(--fgpl-accent);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .28s var(--fgpl-ease), color .28s var(--fgpl-ease),
        transform .28s var(--fgpl-ease), box-shadow .28s var(--fgpl-ease);
}

.fgpl-board__all:hover {
    background: var(--fgpl-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(255, 96, 21, .28);
}

.fgpl-board__all i {
    transition: transform .3s var(--fgpl-ease);
}

.fgpl-board__all:hover i {
    transform: translateX(4px);
}

.fgpl-notices {
    display: grid;
    gap: 16px;
}

.fgpl-notice {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 20px 22px;
    background: var(--fgpl-surface);
    border: 1px solid var(--fgpl-line);
    border-radius: var(--fgpl-radius);
    box-shadow: var(--fgpl-shadow);
    transition: transform .4s var(--fgpl-ease), box-shadow .4s var(--fgpl-ease),
        border-color .4s var(--fgpl-ease);
}

.fgpl-notice:hover {
    transform: translateY(-4px);
    border-color: var(--fgpl-accent-line);
    box-shadow: var(--fgpl-shadow-lg);
}

.fgpl-notice__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    border-radius: var(--fgpl-radius-sm);
    background: linear-gradient(160deg, #332e57, #453d70);
    color: #fff;
    line-height: 1;
}

.fgpl-notice__day {
    font-size: 26px;
    font-weight: 800;
}

.fgpl-notice__mon {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #ffb08a;
}

.fgpl-notice__yr {
    margin-top: 3px;
    font-size: 11px;
    color: rgba(255, 255, 255, .62);
}

.fgpl-notice__title {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 8px;
}

.fgpl-notice__title a {
    color: var(--fgpl-ink);
    text-decoration: none;
    transition: color .25s var(--fgpl-ease);
}

.fgpl-notice:hover .fgpl-notice__title a {
    color: var(--fgpl-accent);
}

.fgpl-notice__excerpt {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--fgpl-body);
}

.fgpl-notice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.fgpl-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .25s var(--fgpl-ease), color .25s var(--fgpl-ease),
        border-color .25s var(--fgpl-ease), transform .25s var(--fgpl-ease);
}

.fgpl-btn:hover {
    transform: translateY(-2px);
}

.fgpl-btn--ghost {
    border-color: var(--fgpl-accent-line);
    color: var(--fgpl-accent);
    background: var(--fgpl-surface);
}

.fgpl-btn--ghost:hover {
    background: var(--fgpl-accent);
    color: #fff;
}

.fgpl-btn--quiet {
    background: var(--fgpl-surface-2);
    color: var(--fgpl-ink-soft);
}

.fgpl-btn--quiet:hover {
    background: var(--fgpl-ink);
    color: #fff;
}

.fgpl-notice__thumb {
    display: none;
}

@media (min-width: 768px) {
    .fgpl-notice {
        grid-template-columns: 78px minmax(0, 1fr) auto;
    }

    .fgpl-notice__thumb {
        display: block;
        width: 132px;
        height: 96px;
        border-radius: var(--fgpl-radius-sm);
        overflow: hidden;
        flex: none;
    }

    .fgpl-notice__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s var(--fgpl-ease);
    }

    .fgpl-notice:hover .fgpl-notice__thumb img {
        transform: scale(1.06);
    }
}

.fgpl-pager {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.fgpl-pager .pagination {
    gap: 6px;
}

.fgpl-pager .page-link {
    border-radius: 10px;
    border-color: var(--fgpl-line);
    color: var(--fgpl-ink);
}

.fgpl-pager .page-item.active .page-link {
    background: var(--fgpl-accent);
    border-color: var(--fgpl-accent);
}

/* --------------------------------------------------------------------------
   Research at a glance (home page)
   -------------------------------------------------------------------------- */

.fgpl-glimpse {
    padding: 74px 0 10px;
}

.fgpl-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.fgpl-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 16px;
    border-radius: var(--fgpl-radius);
    background: var(--fgpl-surface);
    border: 1px solid var(--fgpl-line);
    box-shadow: var(--fgpl-shadow);
    text-decoration: none;
    text-align: center;
    transition: transform .35s var(--fgpl-ease), box-shadow .35s var(--fgpl-ease),
        border-color .35s var(--fgpl-ease);
}

.fgpl-stat:hover {
    transform: translateY(-5px);
    border-color: var(--fgpl-accent-line);
    box-shadow: var(--fgpl-shadow-lg);
}

.fgpl-stat i {
    font-size: 26px;
    color: var(--fgpl-accent);
    margin-bottom: 6px;
    transition: transform .35s var(--fgpl-ease);
}

.fgpl-stat:hover i {
    transform: scale(1.12);
}

.fgpl-stat__num {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--fgpl-ink);
}

.fgpl-stat__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fgpl-ink-soft);
}

@media (max-width: 767px) {
    .fgpl-glimpse {
        padding-top: 48px;
    }

    .fgpl-stat {
        padding: 18px 12px;
    }

    .fgpl-stat__num {
        font-size: 24px;
    }
}

/* --------------------------------------------------------------------------
   Latest publication highlight (home page)
   -------------------------------------------------------------------------- */

.fgpl-latest-pub {
    padding: 44px 0 10px;
}

.fgpl-pubcard {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 30px 32px;
    border-radius: 22px;
    background: linear-gradient(135deg, #302c51 0%, #3d3765 55%, #4a3f6e 100%);
    box-shadow: 0 18px 44px rgba(48, 44, 81, .22);
    overflow: hidden;
}

.fgpl-pubcard::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -110px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 96, 21, .32), transparent 68%);
    pointer-events: none;
}

.fgpl-pubcard__mark {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--fgpl-accent);
    font-size: 27px;
}

.fgpl-pubcard__body {
    position: relative;
    z-index: 1;
}

.fgpl-pubcard .fgpl-eyebrow {
    color: #ffb08a;
}

.fgpl-pubcard .fgpl-eyebrow::before {
    background: #ffb08a;
}

.fgpl-pubcard__title {
    font-size: 21px;
    line-height: 1.42;
    margin: 0 0 10px;
    color: #fff;
}

.fgpl-pubcard__title a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 176, 138, .45);
    transition: color .25s var(--fgpl-ease), border-color .25s var(--fgpl-ease);
}

.fgpl-pubcard__title a:hover {
    color: #ffb08a;
    border-bottom-color: #ffb08a;
}

.fgpl-pubcard__authors {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .74);
}

.fgpl-pubcard__venue {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 18px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .62);
}

.fgpl-pubcard__venue i {
    color: #ffb08a;
}

.fgpl-pubcard__venue .fgpl-year {
    margin-left: 0;
    background: rgba(255, 176, 138, .18);
    color: #ffd9c6;
}

.fgpl-pubcard__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--fgpl-accent);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .28s var(--fgpl-ease), box-shadow .28s var(--fgpl-ease);
}

.fgpl-pubcard__cta:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(255, 96, 21, .4);
}

.fgpl-pubcard__cta i {
    transition: transform .3s var(--fgpl-ease);
}

.fgpl-pubcard__cta:hover i {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .fgpl-board {
        padding-top: 48px;
    }

    .fgpl-board__title {
        font-size: 25px;
    }

    .fgpl-notice {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .fgpl-notice__day {
        font-size: 21px;
    }

    .fgpl-pubcard {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px 20px;
        gap: 16px;
    }

    .fgpl-pubcard__title {
        font-size: 18px;
    }
}

/* --------------------------------------------------------------------------
   Base rhythm
   -------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -.01em;
}

::selection {
    background: rgba(255, 96, 21, .22);
    color: var(--fgpl-ink);
}

/* Visible keyboard focus everywhere (the base theme removes outlines). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(255, 96, 21, .45);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Page banner (used by every inner page)
   -------------------------------------------------------------------------- */

.page-title-area {
    position: relative;
    background-size: cover;
    background-position: center;
}

.page-title-area::before {
    background: linear-gradient(115deg, rgba(30, 27, 52, .92) 0%, rgba(48, 44, 81, .82) 48%, rgba(48, 44, 81, .62) 100%) !important;
}

.page-title-area .title-item h2 {
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -.015em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}

.page-title-area .title-item ul li a {
    transition: color .25s var(--fgpl-ease);
}

.page-title-area .title-item ul li a:hover {
    color: var(--fgpl-accent);
}

@media (max-width: 767px) {
    .page-title-area .title-item h2 {
        font-size: 27px;
    }
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 58px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--fgpl-accent), rgba(255, 96, 21, .25));
}

/* --------------------------------------------------------------------------
   Cards (notice board, achievements, generic Bootstrap cards)
   -------------------------------------------------------------------------- */

.card {
    border: 1px solid #ebebf2;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .4s var(--fgpl-ease), box-shadow .4s var(--fgpl-ease), border-color .4s var(--fgpl-ease);
}

.card.shadow-sm {
    box-shadow: 0 2px 4px rgba(48, 44, 81, .04), 0 12px 30px rgba(48, 44, 81, .07) !important;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 96, 21, .28);
    box-shadow: 0 4px 8px rgba(48, 44, 81, .05), 0 22px 48px rgba(48, 44, 81, .13) !important;
}

.card .card-body {
    padding: 22px;
}

.card .card-title {
    font-size: 17px;
    line-height: 1.45;
    color: var(--fgpl-ink);
}

.card .card-text.text-muted {
    font-size: 13px;
    letter-spacing: .02em;
}

/* The notice board heading on the homepage */
.container > h4.mb-4 {
    position: relative;
    padding-left: 16px;
    font-size: 24px;
}

.container > h4.mb-4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: var(--fgpl-accent);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: background-color .28s var(--fgpl-ease), border-color .28s var(--fgpl-ease),
        color .28s var(--fgpl-ease), transform .28s var(--fgpl-ease), box-shadow .28s var(--fgpl-ease);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 13px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--fgpl-accent);
    border-color: rgba(255, 96, 21, .5);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--fgpl-accent);
    border-color: var(--fgpl-accent);
    color: #fff;
    box-shadow: 0 10px 22px rgba(255, 96, 21, .28);
}

.btn-outline-info {
    color: var(--fgpl-ink);
    border-color: rgba(48, 44, 81, .35);
}

.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-info:active {
    background-color: var(--fgpl-ink);
    border-color: var(--fgpl-ink);
    color: #fff;
    box-shadow: 0 10px 22px rgba(48, 44, 81, .26);
}

/* The theme's own primary button */
.common-btn a,
.cmn-btn {
    border-radius: 999px;
    transition: transform .3s var(--fgpl-ease), box-shadow .3s var(--fgpl-ease);
}

.common-btn a:hover,
.cmn-btn:hover {
    box-shadow: 0 12px 26px rgba(255, 96, 21, .3);
}

/* --------------------------------------------------------------------------
   Images & media
   -------------------------------------------------------------------------- */

.details-img img,
.about-img img,
.gallery-item img {
    border-radius: 14px;
}

.details-item img {
    border-radius: 14px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer-item ul li a,
.footer-item p a {
    transition: color .25s var(--fgpl-ease), padding-left .25s var(--fgpl-ease);
}

.footer-item ul li a:hover {
    color: var(--fgpl-accent);
    padding-left: 4px;
}

/* --------------------------------------------------------------------------
   Go-to-top
   -------------------------------------------------------------------------- */

.go-top {
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(48, 44, 81, .26);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.main-nav nav .navbar-nav .nav-item .nav-link {
    transition: color .25s var(--fgpl-ease);
}

.main-nav nav .navbar-nav .nav-item .dropdown-menu {
    border: 1px solid #ebebf2;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(48, 44, 81, .14);
    overflow: hidden;
}

.main-nav nav .navbar-nav .nav-item .dropdown-menu li a {
    transition: background-color .2s var(--fgpl-ease), color .2s var(--fgpl-ease), padding-left .2s var(--fgpl-ease);
}

.main-nav nav .navbar-nav .nav-item .dropdown-menu li a:hover {
    background-color: rgba(255, 96, 21, .08);
    color: var(--fgpl-accent);
    padding-left: 22px;
}

/* --------------------------------------------------------------------------
   Print — keep profiles and notices readable on paper
   -------------------------------------------------------------------------- */

@media print {

    .page-title-area,
    .go-top,
    .main-nav,
    .footer-area,
    .fgpl-search,
    .fgpl-toc {
        display: none !important;
    }

    .fgpl-reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .fgpl-section,
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
}
