/*
 * IAS 2026 ASIAN CHAPTER
 * Site-specific stylesheet
 *
 * CSS SECTIONS
 *
 * 0. Design tokens and site colours
 * 1. Base styles, resets and framework overrides
 * 2. General typography
 * 3. General layout and reusable components
 * 4. Header and hero
 * 5. Navigation
 * 6. Footer
 * 7. Buttons and form elements
 * 8. Utilities and miscellaneous
 * 9. Responsive adjustments
 */


/* ========================================================================
   0. DESIGN TOKENS AND SITE COLOURS
   ======================================================================== */

:root {

    /* Fonts */
    --font-heading: "Exo 2", sans-serif;
    --font-body: "Open Sans", sans-serif;
    --font-monospace: "Lekton", monospace;

    /* colours */
    --ias-red: #b7192a;
    --ias-red-dark: #8f1421;
    --ias-red-deep: #640d18;
    --ias-blue: #173b6d;
    --ias-blue-dark: #0b2444;
    --ias-blue-soft: #eaf1f9;
    --ias-gold: #d7a742;
    --ias-cream: #f6f9fd;
    --ias-soft: #eef4fb;
    --ias-ink: #1f2a38;
    --ias-muted: #607083;
    --ias-green: #286231;

    --event-blue: #173b6d;

}


/* ========================================================================
   1. BASE STYLES, RESETS AND FRAMEWORK OVERRIDES
   ======================================================================== */

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-stretch: 100%;
    line-height: 1.3;
    color: var(--ias-ink);
    background: #fff;
}

em {
    color: inherit;
}
.uk-text-large {
    font-size: 20px;
}

/* ========================================================================
   2. GENERAL TYPOGRAPHY
   ======================================================================== */

h2 {
    font-family: var(--font-body);
    color: var(--ias-blue);
}

h3 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 600;
    font-stretch: 90%;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

p {
    font-family: var(--font-body);
    font-weight: 400;
    font-stretch: 100%;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}
.p-spaced {
    line-height: 1.8;
}

p a {
    color: var(--ias-blue);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    text-underline-offset: .16em;
    text-decoration-thickness: .08em;
}
p a:hover,
p a:focus {
    color: var(--ias-red);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    text-underline-offset: .16em;
    text-decoration-thickness: .08em;
}

.ias-kicker {
    color: var(--ias-red);
    letter-spacing: .12em;
    text-transform: uppercase;
    /*font-weight: 800;*/
}

.ias-title {
    max-width: 980px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6.8rem);
    line-height: .95;
    text-shadow: 0 3px 22px rgba(0,0,0,.26);
}

.ias-subtitle {
    color: rgba(255,255,255,.94);
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 2.05rem);
}

.ias-section-title {
    color: var(--ias-blue);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.board {
    font-variant: small-caps;
    font-weight: bold;
}

.az_monosp {
	font-family: var(--font-monospace);
	font-size:15px;
}

.break {
	color: var(--ias-red);
	font-style:italic;
	font-weight:bold;
	font-size:16px;
}

.session {
	color: var(--ias-blue);
	font-size:16px;
	font-weight:bold;
}

.speaker {
	color: var(--ias-blue);
	font-size:15px;
	font-weight:bold;
}
.affiliation {
	color:var(--ias-blue);
	font-weight:normal;
	font-size:14px;
	font-style:italic;
}
.Title {
	font-size:15px;
}
.sessionST {
	color: var(--ias-green);
	font-size:16px;
	font-weight:bold;
}
.StudentHighlight {
	font-weight:bold;
	color: var(--ias-green);
	font-size:15px;
}
.affiliationSt {
	color: var(--ias-green);
	font-weight:normal;
	font-size:14px;
	font-style:italic;
}

li h3.blue {
	color: var(--ias-blue);
}

/* ========================================================================
   3. GENERAL LAYOUT AND REUSABLE COMPONENTS
   ======================================================================== */

.ias-section-soft {
    background: linear-gradient(180deg, var(--ias-cream), #fff);
}

.ias-card {
    overflow: hidden;
    border: 1px solid rgba(23,59,109,.12);
    border-radius: 1.3rem;
    box-shadow: 0 18px 45px rgba(23,59,109,.10);
}

/* Slightly tighter gutter for the Important Dates grid */
@media (min-width: 960px) {
    .ias-date-grid {
        margin-left: -10px;
    }
    .ias-date-grid > * {
        padding-left: 10px;
    }
}

.ias-date-card {
    border-left: .35rem solid var(--ias-red);
}

.ias-date-card .ias-kicker,
.ias-card h3 {
    color: var(--ias-red);
}

.ias-feature-image {
    min-height: 420px;
    border: 1px solid rgba(23,59,109,.16);
    border-radius: 1.5rem;
    background:
        linear-gradient(135deg, rgba(23,59,109,.15), rgba(183,25,42,.08)),
        url('/assets/images/NanjingWuxiMountain_1920x1080.webp') center/cover no-repeat;
    box-shadow: 0 20px 50px rgba(23,59,109,.18);
}

.ias-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ias-image-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.ias-avatar-img {
    display: block;
    width: 116px;
    height: 116px;
    margin: 0 auto 1rem;
    border: 4px solid var(--ias-blue-soft);
    border-radius: 15%;
    object-fit: cover;
    box-shadow: 0 10px 26px rgba(23,59,109,.13);
}

.ias-faculty-card:hover {
    transform: translateY(-3px);
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 24px 52px rgba(23,59,109,.16);
}

.ias-gold-rule {
    width: 76px;
    height: 4px;
    margin: 1rem 0 1.3rem;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--ias-red), var(--ias-blue), var(--ias-gold));
}

.ias-directors-block {
    display: inline-block;
    margin-top: 2rem;
}

.ias-directors {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1rem;
}

.ias-directors img {
    display: block;
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.ias-signature {
    margin: 0;
    text-align: center;
}

/*
 * Faculty subsections
 */
.ias-faculty-groups {
    margin-top: 3rem;
}

.ias-faculty-group + .ias-faculty-group {
    margin-top: 5rem;
}

.ias-faculty-group__title {
    position: relative;

    margin: 0;
    padding-bottom: 1rem;

    color: var(--ias-blue);

    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.ias-faculty-group__title::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 0;

    width: 3.5rem;
    height: 3px;

    border-radius: 99px;

    background: var(--ias-gold);

    transform: translateX(-50%);
}

.ias-faculty-grid {
    margin-top: 2.25rem;
}


/*
 * Keynote-speaker cards
 */
.ias-faculty-card--keynote {
    border-color: rgba(215, 167, 66, .58);

    background:
        linear-gradient(
            180deg,
            rgba(215, 167, 66, .12) 0,
            rgba(215, 167, 66, .045) 24%,
            #fff 48%
        );

    box-shadow:
        0 20px 48px rgba(23, 59, 109, .13),
        0 0 0 1px rgba(215, 167, 66, .08);
}

.ias-faculty-card--keynote:hover {
    box-shadow:
        0 25px 54px rgba(23, 59, 109, .17),
        0 0 0 1px rgba(215, 167, 66, .16);
}

.ias-faculty-card--keynote .ias-avatar-img {
    border-color: rgba(215, 167, 66, .72);
}


/*
 * Keynote badge
 */
.ias-faculty-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;

    margin: 0 0 1rem;
    padding: .32rem .75rem;

    border: 1px solid rgba(215, 167, 66, .62);
    border-radius: 999px;

    background: rgba(215, 167, 66, .13);
    color: var(--ias-blue);

    font-family: var(--font-body);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .075em;
    line-height: 1.25;
    text-transform: uppercase;
}

.ias-faculty-card__badge .fa-star {
    color: var(--ias-gold);
    font-size: .82em;
}


/*
 * Faculty-card metadata
 */
.faculty-title {
    display: block;
    font-size: 0.9em;
    font-style: italic;
}

.faculty-institution,
.faculty-country {
    display: block;
}

.faculty-institution + .faculty-country {
    margin-top: .25rem;
}


/*
 * Narrow-screen adjustments
 */
@media (max-width: 639px) {

    .ias-faculty-groups {
        margin-top: 2.5rem;
    }

    .ias-faculty-group + .ias-faculty-group {
        margin-top: 4rem;
    }

    .ias-faculty-grid {
        margin-top: 1.75rem;
    }

    .ias-faculty-card__badge {
        font-size: .64rem;
        letter-spacing: .055em;
    }

}

/* ========================================================================
   4. HEADER AND HERO
   ======================================================================== */

.ias-hero {
    position: relative;
    overflow: hidden;
    height: 82vh;
    min-height: 750px;
    max-height: 900px;
    background: var(--ias-blue-dark);
}

.ias-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.ias-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        radial-gradient(circle at 85% 20%, rgba(183,25,42,.40), transparent 34%),
        linear-gradient(
            90deg,
            rgba(11,36,68,.96),
            rgba(23,59,109,.76),
            rgba(183,25,42,.38),
            rgba(183,25,42,.08)
        );
    pointer-events: none;
}

.ias-hero-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1800ms ease-in-out;
    animation: iasKenBurns 9000ms ease-in-out forwards;
}

.ias-hero-slide.is-active {
    opacity: 1;
}

@keyframes iasKenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.10);
    }
}

.ias-hero-content {
    position: relative;
    z-index: 4;
}

.ias-hero-logo {
    width: 210px;
    max-width: 55vw;
    padding: .35rem;
    border-radius: 16px;
    background: rgba(255,255,255,0);
    box-shadow: 0 16px 40px rgba(0,0,0,.20);
}

.ias-hero .ias-kicker {
    display: inline-block;
    padding: .28rem .7rem;
    border-radius: 999px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.00rem;
    letter-spacing: .08em;

    background: var(--ias-red);
}

.ias-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.16);
}


/* ========================================================================
   5. NAVIGATION
   ======================================================================== */
.uk-navbar-nav > li > a {
    font-family: var(--font-body);
    color: var(--ias-blue-dark);
    font-size: .95rem;
    font-weight: 500;
    font-stretch: 92%;
    letter-spacing: .015em;
    text-transform: none;
}

.uk-navbar-nav > li > a:hover {
    color: var(--ias-red);
}

.ias-navbar {
    border-bottom: 1px solid rgba(23,59,109,.16);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    z-index: 9990;
}
#mobile-menu {
    z-index: 9999;
}
.ias-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--font-heading);
    color: var(--ias-blue);
    font-size: 1.20rem;
    font-weight: 600;
    letter-spacing: .08em;
    /*text-transform: uppercase;*/
}
.ias-brand:hover {
    color: var(--ias-red);
}
.ias-brand img {
    width: 92px;
    height: auto;
}



/* ========================================================================
   6. FOOTER
   ======================================================================== */
/*
 * IAS footer identity
 */
.ias-footer-identity {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 100%;
    text-align: left;
}

.ias-footer-identity__logo {
    display: block;
    width: auto;
    height: 4.4rem;
    flex: 0 0 auto;
}

.ias-footer-identity__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
    line-height: 1.25;
}

.ias-footer-identity__details span:first-child {
    color: var(--ias-blue);
    font-weight: 600;
}



/* ========================================================================
   7. BUTTONS AND FORM ELEMENTS
   ======================================================================== */

.ias-button-primary {
    border-radius: 999px;
    color: #fff;
    background: var(--ias-red);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: .015em;
    box-shadow: 0 12px 26px rgba(183,25,42,.24);
}

.ias-button-primary:hover {
    color: #fff;
    background: var(--ias-red-dark);
}

.ias-button-ghost {
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 999px;
    color: #fff;
}

.ias-button-ghost:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
}


/* ========================================================================
   8. UTILITIES AND MISCELLANEOUS
   ======================================================================== */

.indent {
    display: inline-block;
    margin-left: 1.5rem;
}


/* ========================================================================
   9. RESPONSIVE ADJUSTMENTS
   ======================================================================== */
@media (max-width: 639px) {
    .ias-hero {
        min-height: 760px;
    }
    .ias-pill {
        margin-bottom: .4rem;
    }
    .ias-brand img {
        width: 72px;
    }
    .ias-directors-block {
        display: block;
        text-align: center;
    }
    .ias-directors {
        gap: 1.5rem;
    }
    .ias-directors img {
        width: 90px;
        height: 90px;
    }
}

/* IAS-specific footer narrow transformation */
@media (max-width: 639px) {

    .ias-footer-identity {
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        text-align: center;
    }

    .ias-footer-identity__logo {
        height: 4rem;
    }

    .ias-footer-identity__details {
        align-items: center;
        text-align: center;
    }

}
