/* ==========================================================================
   Kano Quality Award — Main Stylesheet (Redesign 2026)
   Theme : "Prestige Navy & Gold"
   Fonts : Prompt (headings) / Sarabun (body)
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
    /* Brand palette */
    --navy-900: #081a33;
    --navy-800: #0a1f3d;
    --navy-700: #10294f;
    --navy-600: #143a6e;
    --blue-600: #085ad6;
    --blue-500: #1e6fe8;
    --gold-600: #d98e02;
    --gold-500: #f7a903;
    --gold-400: #ffc233;
    --gold-300: #ffd76e;
    --gold-100: #fff4d6;

    /* Neutrals */
    --ink-900: #101828;
    --ink-700: #344054;
    --ink-600: #475467;
    --ink-400: #98a2b3;
    --line-200: #e6eaf2;
    --bg-page: #f5f7fb;
    --white: #ffffff;

    /* Gradients */
    --grad-gold: linear-gradient(135deg, #f7a903 0%, #ffd34d 100%);
    --grad-navy: linear-gradient(135deg, #081a33 0%, #143a6e 60%, #085ad6 160%);
    --grad-title: linear-gradient(90deg, #f7a903, #ffd34d, #f7a903);

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(13, 32, 63, 0.07);
    --shadow-md: 0 10px 30px rgba(13, 32, 63, 0.10);
    --shadow-lg: 0 24px 60px rgba(13, 32, 63, 0.16);
    --shadow-gold: 0 10px 28px rgba(247, 169, 3, 0.35);

    /* Shape & rhythm */
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --nav-h: 78px;

    --font-head: 'Prompt', 'Sarabun', system-ui, sans-serif;
    --font-body: 'Sarabun', 'Prompt', system-ui, sans-serif;
}

/* ---------- 2. Reset / Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink-900);
    background-color: var(--bg-page);
    line-height: 1.8;
    font-size: 1rem;
    padding-top: var(--nav-h);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

::selection {
    background: var(--gold-400);
    color: var(--navy-800);
}

/* Page scrollbar (WebKit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b8c4d8, #8fa0bd);
    border-radius: 99px;
    border: 2px solid var(--bg-page);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-500);
}

:focus-visible {
    outline: 3px solid var(--gold-400);
    outline-offset: 2px;
    border-radius: 6px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.anchor-offset {
    display: block;
    position: relative;
    top: -110px;
    visibility: hidden;
}

/* ---------- 3. Section headers ---------- */
section {
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 700;
    color: var(--navy-800);
    letter-spacing: 0.2px;
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
}

.section-title .title-en {
    font-size: 0.55em;
    font-weight: 500;
    color: var(--ink-400);
    letter-spacing: 2px;
    vertical-align: middle;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 96px;
    height: 5px;
    border-radius: 99px;
    background: var(--grad-gold);
}

.section-title::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 9px;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(247, 169, 3, 0.25);
}

.section-subtitle {
    margin-top: 14px;
    color: var(--ink-600);
    font-size: 1.02rem;
    max-width: 640px;
    margin-inline: auto;
}

.section-title.light {
    color: var(--white);
}

.section-title.light .title-en {
    color: rgba(255, 255, 255, 0.55);
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   4. NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(10, 31, 61, 0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* NOTE: backdrop-filter is placed on ::after (NOT on .navbar itself)
   because filters create a containing block that would trap the
   position:fixed mobile menu panel inside the navbar. */
.navbar::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    pointer-events: none;
}

.navbar::before {
    /* gold hairline on top edge */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-gold);
    z-index: 2;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* Brand */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.logo-tpa {
    height: 44px;
}

.logo-kano {
    height: 48px;
    filter: drop-shadow(0 2px 6px rgba(247, 169, 3, 0.35));
}

.logo-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.18rem;
    color: var(--navy-800);
    line-height: 1.25;
    white-space: nowrap;
}

.logo-text em {
    display: block;
    font-style: normal;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--navy-700);
    padding: 10px 14px;
    border-radius: 10px;
    position: relative;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
    color: var(--gold-600);
    background: rgba(247, 169, 3, 0.08);
}

/* animated gold underline */
.nav-menu > .dropdown > .nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2.5px;
    border-radius: 99px;
    background: var(--grad-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
}

.nav-menu > .dropdown:hover > .nav-link::after,
.nav-menu > .dropdown.open > .nav-link::after {
    transform: scaleX(1);
}

/* caret icon for dropdown toggles */
.dropdown-toggle::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s ease;
    margin-left: 2px;
}

.dropdown:hover .dropdown-toggle::before,
.dropdown.open .dropdown-toggle::before {
    transform: rotate(225deg) translateX(-1px);
}

/* Dropdown panels */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    translate: -50% 0;
    min-width: 218px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--line-200);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 60;
}

.dropdown-menu::before {
    /* little arrow */
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    translate: -50% 0;
    width: 12px;
    height: 12px;
    background: var(--white);
    border-left: 1px solid var(--line-200);
    border-top: 1px solid var(--line-200);
    transform: rotate(45deg);
}

.dropdown:hover > .dropdown-menu,
.dropdown.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .nav-link {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.93rem;
    border-radius: 9px;
    color: var(--ink-700);
}

.dropdown-menu .nav-link:hover {
    background: var(--gold-100);
    color: var(--gold-600);
    transform: translateX(4px);
}

/* Hamburger (hidden on desktop) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--navy-800);
    padding: 12px 11px;
    z-index: 1100;
}

.mobile-menu-toggle span {
    display: block;
    height: 2.6px;
    width: 100%;
    border-radius: 99px;
    background: var(--gold-400);
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7.6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.6px) rotate(-45deg);
}

/* ==========================================================================
   5. HERO SLIDER
   ========================================================================== */
.image-slider {
    padding: 26px 20px 10px;
    background:
        radial-gradient(700px 300px at 12% -10%, rgba(247, 169, 3, 0.10), transparent 60%),
        radial-gradient(700px 320px at 88% -20%, rgba(8, 90, 214, 0.10), transparent 60%),
        var(--bg-page);
}

.slider-container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 16px 40px -10px rgba(8, 26, 51, 0.25), 0 0 0 1px rgba(247, 169, 3, 0.15);
    background: radial-gradient(ellipse at center, #0a2347 0%, #051326 100%);
    aspect-ratio: 2016 / 528;
    max-height: 480px;
    min-height: 100px;
    width: 100%;
}

.slider-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 1.2s ease;
    z-index: 1;
}

.slider-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slider-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* soft bottom vignette */
.background-gradient {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 26, 51, 0.12) 0%, transparent 22%, transparent 70%, rgba(8, 26, 51, 0.35) 100%);
}

.slider-btn {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--navy-800);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.slider-container:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: var(--grad-gold);
    color: var(--navy-900);
    transform: scale(1.08);
}

.slider-btn.prev {
    left: 18px;
}

.slider-btn.next {
    right: 18px;
}

.play-pause-btn {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(8, 26, 51, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: background 0.3s ease, transform 0.3s ease;
}

.play-pause-btn:hover {
    background: rgba(247, 169, 3, 0.9);
    transform: scale(1.06);
}

/* dots */
.slider-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    translate: -50% 0;
    z-index: 5;
    display: flex;
    gap: 9px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

.dot.active {
    width: 34px;
    background: var(--grad-gold);
}

/* autoplay progress bar */
.loading-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 0;
    z-index: 6;
    background: var(--grad-gold);
    border-radius: 0 99px 99px 0;
}

.loading-bar.animate {
    animation: loadbar var(--slide-interval, 6s) linear forwards;
}

@keyframes loadbar {
    from { width: 0; }
    to { width: 100%; }
}

/* single-slide mode: hide controls */
.slider-container.single-slide .slider-btn,
.slider-container.single-slide .slider-dots,
.slider-container.single-slide .play-pause-btn,
.slider-container.single-slide .loading-bar {
    display: none;
}

/* ==========================================================================
   6. HISTORY
   ========================================================================== */
.history {
    padding: 92px 0 84px;
    background:
        radial-gradient(620px 340px at 100% 8%, rgba(247, 169, 3, 0.09), transparent 62%),
        radial-gradient(560px 320px at 0% 90%, rgba(8, 90, 214, 0.08), transparent 60%),
        var(--white);
}

.history-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.history-card {
    background: var(--white);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-xl);
    padding: 44px 46px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.history-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    background: var(--grad-gold);
    border-radius: 99px 0 0 99px;
}

.history-card::after {
    /* decorative quote mark */
    content: "\201C";
    position: absolute;
    top: -14px;
    right: 22px;
    font-family: Georgia, serif;
    font-size: 8.5rem;
    line-height: 1;
    color: rgba(247, 169, 3, 0.12);
    pointer-events: none;
}

.history-text {
    color: var(--ink-700);
    font-size: 1.02rem;
    line-height: 2.0;
    text-align: justify;
    text-justify: inter-cluster;
}

.text-lead {
    font-weight: 700;
    color: var(--gold-600);
    margin-left: 30px;
}

.history-text .text-lead::after {
    content: "";
    display: inline-block;
    width: 46px;
    height: 3px;
    margin-left: 14px;
    vertical-align: middle;
    border-radius: 99px;
    background: var(--grad-gold);
}

/* "อ่านต่อ" pill button */
.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    padding: 10px 26px;
    border-radius: 99px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy-800);
    background: var(--grad-gold);
    box-shadow: var(--shadow-gold);
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    width: fit-content;
}

.news-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(247, 169, 3, 0.45);
    color: var(--navy-900);
}

.news-link .arrow {
    transition: transform 0.25s ease;
}

.news-link:hover .arrow {
    transform: translateX(4px);
}

.history-logo-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 44px 30px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(320px 220px at 50% 30%, rgba(247, 169, 3, 0.14), transparent 70%),
        linear-gradient(160deg, #fdfaf2 0%, #f3f6fc 100%);
    border: 1.5px dashed rgba(247, 169, 3, 0.55);
    overflow: hidden;
}

.logo-glow {
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 196, 60, 0.35) 0%, transparent 68%);
    top: 16%;
    left: 50%;
    translate: -50% 0;
    animation: pulse 4.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.18);
        opacity: 1;
    }
}

.history-logo {
    position: relative;
    width: min(300px, 62%);
    height: auto;
    animation: floaty 5.5s ease-in-out infinite;
    filter: drop-shadow(0 18px 32px rgba(13, 32, 63, 0.22));
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.logo-caption {
    position: relative;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink-600);
    text-align: center;
    border-top: 1px solid var(--line-200);
    padding-top: 18px;
    width: 100%;
    max-width: 300px;
}

/* ==========================================================================
   7. REGISTRATION (dark navy band)
   ========================================================================== */
.registration-section {
    padding: 96px 0 104px;
    background: var(--grad-navy);
    overflow: hidden;
}

.registration-section::before,
.registration-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.registration-section::before {
    width: 420px;
    height: 420px;
    top: -160px;
    right: -120px;
    background: radial-gradient(circle, rgba(247, 169, 3, 0.20) 0%, transparent 65%);
}

.registration-section::after {
    width: 520px;
    height: 520px;
    bottom: -240px;
    left: -160px;
    background: radial-gradient(circle, rgba(8, 90, 214, 0.28) 0%, transparent 65%);
}

.registration-section .container {
    position: relative;
    z-index: 2;
}

.registration-content2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 26px;
    margin-top: 14px;
}

.registration-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 22px 34px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
    overflow: hidden;
}

.registration-card::before {
    /* step number badge */
    content: attr(data-step);
    position: absolute;
    top: 16px;
    left: 18px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--gold-500);
    background: var(--gold-100);
    border: 1px solid rgba(247, 169, 3, 0.4);
    padding: 3px 12px;
    border-radius: 99px;
    line-height: 1.5;
}

.registration-card::after {
    /* bottom gold reveal line */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--grad-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.registration-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(3, 12, 27, 0.45);
    border-color: rgba(247, 169, 3, 0.5);
}

.registration-card:hover::after {
    transform: scaleX(1);
}

.registration-card.clickable {
    cursor: pointer;
}

.card-icon {
    width: 104px;
    height: 104px;
    margin: 0 auto 20px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--gold-100) 0%, #fffdf7 100%);
    border: 1px solid rgba(247, 169, 3, 0.35);
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.8), 0 8px 18px rgba(247, 169, 3, 0.18);
    transition: transform 0.35s ease;
}

.registration-card:hover .card-icon {
    transform: scale(1.08) rotate(-3deg);
}

.card-icon img {
    width: 62%;
    height: 62%;
    object-fit: contain;
}

.registration-card h1 {
    font-family: var(--font-head);
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--navy-800);
    line-height: 1.45;
}

.registration-card p {
    margin-top: 8px;
    font-size: 0.92rem;
    color: var(--ink-600);
    line-height: 1.65;
}

/* ==========================================================================
   8. NEWS CAROUSEL (Portfolio)
   ========================================================================== */
.portfolio {
    padding: 92px 0 96px;
    background: var(--bg-page);
    overflow: hidden;
}

.portfolio-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 64px;
    position: relative;
}

.portfolio-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: auto; /* ต้องปิด smooth เพื่อให้ teleport ได้ไม่กระตุก */
    padding: 10px 4px 22px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-400) transparent;
}

.portfolio-grid::-webkit-scrollbar {
    height: 7px;
}

.portfolio-grid::-webkit-scrollbar-track {
    background: var(--line-200);
    border-radius: 99px;
}

.portfolio-grid::-webkit-scrollbar-thumb {
    background: var(--grad-gold);
    border: none;
}

.portfolio-item {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-200);
    box-shadow: var(--shadow-sm);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: var(--navy-800);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.07);
}

.portfolio-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(8, 26, 51, 0.35));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.portfolio-item:hover .portfolio-image::after {
    opacity: 1;
}

.portfolio-content {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portfolio-title {
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--navy-800);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.9em;
}

.portfolio-description {
    color: var(--ink-600);
    font-size: 0.92rem;
}

.portfolio-tags {
    margin-top: auto;
    padding-top: 16px;
}

.tag .news-link {
    margin-top: 0;
    padding: 7px 20px;
    font-size: 0.88rem;
    background: transparent;
    color: var(--gold-600);
    border: 1.5px solid var(--gold-500);
    box-shadow: none;
}

.tag .news-link:hover {
    background: var(--grad-gold);
    color: var(--navy-900);
    box-shadow: var(--shadow-gold);
}

/* carousel arrows */
.carousel-btn {
    position: absolute;
    top: 42%;
    z-index: 8;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy-800);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line-200);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--grad-gold);
    color: var(--navy-900);
    border-color: transparent;
    transform: scale(1.09);
}

.carousel-btn.prev-btn {
    left: 8px;
}

.carousel-btn.next-btn {
    right: 8px;
}

/* ==========================================================================
   9. TPA AWARDS
   ========================================================================== */
.awards-item {
    padding: 84px 0 96px;
    background:
        radial-gradient(700px 300px at 50% 0%, rgba(8, 90, 214, 0.06), transparent 65%),
        var(--white);
    border-top: 1px solid var(--line-200);
}

.awards-title {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 700;
    color: var(--blue-600);
    text-align: center;
    margin-bottom: 40px;
}

.awards-title .awards-title-th {
    display: block;
    font-size: 0.62em;
    font-weight: 500;
    color: var(--ink-600);
    margin-top: 6px;
}

.awards-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.award {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    padding: 26px 22px 20px;
    width: 168px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.award:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
    border-color: rgba(247, 169, 3, 0.55);
}

.sponsor-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(13, 32, 63, 0.12));
    transition: transform 0.3s ease;
}

.award:hover .sponsor-logo {
    transform: scale(1.08) rotate(2deg);
}

.award a {
    text-align: center;
}

.award p {
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-700);
    line-height: 1.5;
    transition: color 0.25s ease;
}

.award a:hover p {
    color: var(--gold-600);
}

/* ==========================================================================
   10. BACK TO TOP
   ========================================================================== */
#backToTop {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 900;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--grad-gold);
    color: var(--navy-900);
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.35s ease;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-4px);
}

/* ==========================================================================
   11. SCROLL REVEAL
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.12s;
}

.reveal-delay-2 {
    transition-delay: 0.24s;
}

.reveal-delay-3 {
    transition-delay: 0.36s;
}

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

    .reveal,
    .history-logo,
    .logo-glow {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */

/* --- Tablet & below : switch to hamburger --- */
@media (max-width: 1160px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: var(--white);
        padding: 18px 20px 40px;
        overflow-y: auto;
        transform: translateX(105%);
        transition: transform 0.38s cubic-bezier(0.22, 0.9, 0.36, 1);
        box-shadow: var(--shadow-lg);
        z-index: 1050;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu > .dropdown > .nav-link {
        justify-content: space-between;
        font-size: 1.05rem;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line-200);
        border-radius: 10px;
    }

    .nav-menu > .dropdown > .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        translate: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 14px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: linear-gradient(180deg, #fbfcff, #f6f8fc);
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown.open > .dropdown-menu {
        max-height: 400px;
    }

    .dropdown-menu .nav-link {
        padding: 12px 16px;
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* --- Small tablet --- */
@media (max-width: 900px) {
    .history-grid {
        grid-template-columns: 1fr;
    }

    .history-logo-panel {
        padding: 36px 24px;
    }

    .history-logo {
        width: min(240px, 55%);
    }

    .portfolio-item {
        flex: 0 0 calc((100% - 24px) / 2);
    }

    .slider-container {
        aspect-ratio: 2016 / 540;
        border-radius: var(--radius-lg);
        min-height: 160px;
    }

    .slider-btn {
        opacity: 0.9;
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .slider-btn.prev {
        left: 12px;
    }

    .slider-btn.next {
        right: 12px;
    }

    .play-pause-btn {
        width: 34px;
        height: 34px;
        right: 12px;
        bottom: 12px;
        font-size: 0.72rem;
    }

    .slider-dots {
        bottom: 12px;
        gap: 7px;
    }

    .dot {
        width: 9px;
        height: 9px;
    }

    .dot.active {
        width: 26px;
    }
}

/* Touch devices (iPad / Tablets / Phones) */
@media (hover: none) {
    .slider-btn {
        opacity: 0.88;
    }
}

/* --- Mobile --- */
@media (max-width: 640px) {
    :root {
        --nav-h: 68px;
    }

    .logo-img {
        height: 36px;
    }

    .logo-tpa {
        height: 34px;
    }

    .logo-kano {
        height: 38px;
    }

    .logo-text {
        display: none;
    }

    .history {
        padding: 64px 0 60px;
    }

    .history-card {
        padding: 30px 24px;
    }

    .history-card::after {
        font-size: 6rem;
    }

    .text-lead {
        margin-left: 12px;
    }

    .registration-section {
        padding: 68px 0 76px;
    }

    .registration-content2 {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .registration-card {
        padding: 30px 14px 26px;
    }

    .card-icon {
        width: 78px;
        height: 78px;
        border-radius: 20px;
    }

    .registration-card h1 {
        font-size: 1rem;
    }

    .portfolio-container {
        padding: 0 20px;
    }

    .portfolio-item {
        flex: 0 0 86%;
    }

    .carousel-btn {
        display: none;
    }

    /* Hero Banner Slider - Mobile */
    .image-slider {
        padding: 10px 10px 4px;
    }

    .slider-container {
        aspect-ratio: 16 / 5.5;
        border-radius: var(--radius-md);
        min-height: 110px;
        box-shadow: 0 10px 24px -6px rgba(8, 26, 51, 0.3);
    }

    .slider-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
        opacity: 0.88;
        background: rgba(8, 26, 51, 0.6);
        color: var(--white);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .slider-btn.prev {
        left: 6px;
    }

    .slider-btn.next {
        right: 6px;
    }

    .slider-btn:hover {
        background: var(--grad-gold);
        color: var(--navy-900);
    }

    .play-pause-btn {
        width: 26px;
        height: 26px;
        right: 6px;
        bottom: 6px;
        font-size: 0.58rem;
        background: rgba(8, 26, 51, 0.65);
    }

    .slider-dots {
        bottom: 7px;
        gap: 5px;
    }

    .dot {
        width: 7px;
        height: 7px;
    }

    .dot.active {
        width: 20px;
    }

    .loading-bar {
        height: 3px;
    }

    .award {
        width: calc(50% - 11px);
    }

    #backToTop {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
}

/* --- Very small Mobile (< 380px) --- */
@media (max-width: 380px) {
    .registration-content2 {
        grid-template-columns: 1fr;
    }

    .logo-text {
        display: none;
    }

    .image-slider {
        padding: 6px 6px 2px;
    }

    .slider-container {
        aspect-ratio: 16 / 5.8;
        border-radius: var(--radius-sm);
        min-height: 96px;
    }

    .slider-btn {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    .slider-btn.prev {
        left: 4px;
    }

    .slider-btn.next {
        right: 4px;
    }

    .play-pause-btn {
        width: 22px;
        height: 22px;
        font-size: 0.5rem;
        right: 4px;
        bottom: 4px;
    }

    .slider-dots {
        bottom: 5px;
        gap: 4px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .dot.active {
        width: 14px;
    }
}

/* ==========================================================================
   10. CONTACT PAGE STYLES
   ========================================================================== */
.contact-hero {
    background: var(--grad-navy);
    color: var(--white);
    padding: 70px 0 55px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.contact-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(247, 169, 3, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.contact-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(247, 169, 3, 0.5), transparent);
}

.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(247, 169, 3, 0.4);
    border-radius: 99px;
    color: var(--gold-300);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.contact-hero-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 3.8vw, 2.7rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.contact-hero-title span {
    background: var(--grad-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-hero-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact-body {
    padding: 60px 0 90px;
    background: var(--bg-page);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-200);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-gold);
    opacity: 0.85;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(247, 169, 3, 0.35);
}

.contact-card-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-200);
}

.contact-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(8, 26, 51, 0.05), rgba(247, 169, 3, 0.12));
    border: 1px solid rgba(247, 169, 3, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--navy-800);
    flex-shrink: 0;
}

.contact-card-title {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-800);
    line-height: 1.4;
    margin-bottom: 4px;
}

.contact-card-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-600);
    background: var(--gold-100);
    padding: 2px 10px;
    border-radius: 99px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    margin-bottom: 26px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.98rem;
    color: var(--ink-700);
    line-height: 1.65;
}

.contact-info-icon {
    font-size: 1.15rem;
    line-height: 1.5;
    flex-shrink: 0;
    opacity: 0.9;
}

.contact-info-label {
    font-weight: 600;
    color: var(--navy-800);
    margin-right: 4px;
}

.contact-info-item a {
    color: var(--navy-700);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-item a:hover {
    color: var(--gold-600);
    text-decoration: underline;
}

.awards-chips-wrap {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line-200);
}

.awards-chips-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.awards-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.award-chip {
    font-size: 0.82rem;
    padding: 4px 12px;
    background: var(--bg-page);
    border: 1px solid var(--line-200);
    border-radius: 99px;
    color: var(--ink-700);
    font-weight: 500;
    transition: all 0.2s ease;
}

.award-chip.highlight {
    background: rgba(247, 169, 3, 0.12);
    border-color: rgba(247, 169, 3, 0.4);
    color: var(--navy-900);
    font-weight: 600;
}

.contact-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    background: var(--navy-800);
    color: var(--white);
    border-radius: var(--radius-md);
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-top: auto;
    border: 1px solid transparent;
}

.contact-action-btn:hover {
    background: var(--grad-gold);
    color: var(--navy-900);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.contact-action-btn.secondary {
    background: var(--white);
    color: var(--navy-800);
    border-color: var(--line-200);
}

.contact-action-btn.secondary:hover {
    background: var(--navy-800);
    color: var(--white);
    border-color: var(--navy-800);
    box-shadow: var(--shadow-md);
}

/* Map Card */
.contact-map-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-200);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.contact-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}

.contact-map-title {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-embed-wrapper {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line-200);
    background: #eaeaea;
}

.map-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 28px 22px;
    }

    .contact-map-card {
        padding: 24px 18px;
    }

    .map-embed-wrapper {
        height: 300px;
    }
}

/* ==========================================================================
   11. HISTORY PAGE STYLES
   ========================================================================== */

/* Sub-navigation Pills */
.history-subnav-wrapper {
    position: sticky;
    top: var(--nav-h);
    z-index: 100;
    background: rgba(245, 247, 251, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(22, 42, 75, 0.08);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.history-subnav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.history-subnav::-webkit-scrollbar {
    display: none;
}

.history-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-700);
    background: var(--white);
    border: 1px solid var(--line-200);
    box-shadow: 0 2px 6px rgba(13, 32, 63, 0.04);
    white-space: nowrap;
    transition: all 0.25s ease;
}

.history-nav-pill:hover {
    color: var(--navy-900);
    border-color: var(--gold-400);
    background: var(--gold-100);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 169, 3, 0.15);
}

.history-nav-pill.active {
    color: var(--navy-900);
    border-color: var(--gold-500);
    background: linear-gradient(135deg, var(--gold-100), #ffffff);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(247, 169, 3, 0.2);
}

/* Main Container Spacing */
.history-main-content {
    padding: 50px 0 90px;
}

.history-section-block {
    margin-bottom: 70px;
    scroll-margin-top: 150px;
}

/* Story Highlight Card */
.history-story-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 45px 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(16, 41, 79, 0.07);
    position: relative;
    overflow: hidden;
}

.history-story-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--grad-gold);
}

.history-lead-paragraph {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--ink-900);
    margin-bottom: 24px;
    text-align: justify;
}

.history-paragraph {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--ink-700);
    margin-bottom: 22px;
    text-align: justify;
}

/* Highlight Quote */
.history-quote-box {
    margin: 32px 0;
    padding: 28px 32px 28px 36px;
    background: linear-gradient(135deg, rgba(8, 26, 51, 0.03) 0%, rgba(247, 169, 3, 0.06) 100%);
    border-left: 5px solid var(--gold-500);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    position: relative;
}

.history-quote-box .quote-icon {
    font-size: 2.2rem;
    line-height: 1;
    color: var(--gold-500);
    opacity: 0.6;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}

.history-quote-box blockquote {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.75;
    color: var(--navy-900);
    margin-bottom: 12px;
}

.history-quote-box cite {
    display: block;
    font-size: 0.92rem;
    font-style: normal;
    color: var(--ink-600);
    font-weight: 500;
}

/* Prof. Dr. Kano Honor Banner */
.kano-honor-banner {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    border-radius: var(--radius-lg);
    padding: 30px 34px;
    color: var(--white);
    margin: 32px 0 24px;
    display: flex;
    gap: 28px;
    align-items: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(247, 169, 3, 0.25);
}

.kano-honor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: var(--navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(247, 169, 3, 0.2);
}

.kano-honor-content h4 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-300);
    margin-bottom: 8px;
}

.kano-honor-content p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.kano-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kano-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(247, 169, 3, 0.35);
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 0.82rem;
    color: var(--gold-300);
    font-weight: 500;
}

/* Timeline Components */
.timeline-wrapper {
    position: relative;
    padding: 30px 0;
}

.timeline-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 3px;
    background: linear-gradient(180deg, var(--gold-400) 0%, var(--blue-500) 50%, var(--navy-800) 100%);
    border-radius: 99px;
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 38px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 17px;
    top: 14px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--gold-500);
    box-shadow: 0 0 0 5px rgba(247, 169, 3, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background: var(--gold-500);
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(247, 169, 3, 0.35);
}

.timeline-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 26px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-200);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(247, 169, 3, 0.4);
}

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--line-200);
}

.timeline-year-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-900);
}

.timeline-year-tag .year-badge {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: var(--gold-300);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.timeline-award-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold-600);
    background: var(--gold-100);
    padding: 4px 12px;
    border-radius: 99px;
}

.timeline-desc {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--ink-700);
    margin-bottom: 16px;
}

.timeline-companies-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.company-chip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-page);
    border-radius: var(--radius-md);
    border: 1px solid rgba(13, 32, 63, 0.05);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-900);
    transition: all 0.2s ease;
}

.company-chip-item:hover {
    background: var(--white);
    border-color: var(--gold-400);
    box-shadow: 0 4px 12px rgba(13, 32, 63, 0.06);
    transform: translateX(4px);
}

.company-chip-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(247, 169, 3, 0.15);
    color: var(--gold-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Timeline Special Incident Cards (Flood, Covid, etc.) */
.timeline-card.special-notice {
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
    border-left: 4px solid var(--gold-500);
}

.timeline-card.special-notice .timeline-header {
    border-bottom-color: rgba(247, 169, 3, 0.2);
}

/* Honorary Committee Grid */
.committee-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.committee-member-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-200);
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.committee-member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-400);
}

.committee-member-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: var(--gold-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(8, 26, 51, 0.15);
}

.committee-member-info h4 {
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 6px;
    line-height: 1.4;
}

.committee-member-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink-600);
}

/* Vision Cards */
.vision-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.vision-card-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-200);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.vision-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-400);
}

.vision-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.vision-number-badge {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-500);
    opacity: 0.85;
}

.vision-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(247, 169, 3, 0.15), rgba(8, 26, 51, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--navy-800);
}

.vision-card-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink-800);
    font-weight: 500;
}

/* Objectives Grid */
.objectives-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.objective-card-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-200);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.objective-card-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-500);
}

.objective-num-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: var(--gold-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(8, 26, 51, 0.15);
}

.objective-content h4 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 6px;
    line-height: 1.4;
}

.objective-content p {
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--ink-700);
}

/* Emblem / Logo Showcase Section */
.emblem-card-showcase {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 50px 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line-200);
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.emblem-card-showcase::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(247, 169, 3, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.emblem-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fd 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 36px rgba(13, 32, 63, 0.08);
    border: 1px solid rgba(247, 169, 3, 0.25);
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.emblem-frame:hover {
    transform: scale(1.03);
}

.emblem-img {
    max-width: 260px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.emblem-tagline {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.emblem-desc {
    font-size: 0.98rem;
    color: var(--ink-600);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .history-story-card {
        padding: 30px 22px;
    }

    .kano-honor-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
    }

    .kano-badges-row {
        justify-content: center;
    }

    .timeline-wrapper::before {
        left: 18px;
    }

    .timeline-item {
        padding-left: 48px;
    }

    .timeline-marker {
        left: 8px;
        width: 22px;
        height: 22px;
    }

    .timeline-card {
        padding: 20px 18px;
    }

    .timeline-chips-grid {
        grid-template-columns: 1fr;
    }

    .history-subnav-wrapper {
        top: 64px;
    }

    .history-subnav {
        justify-content: flex-start;
    }
}

