/* AMET user website */
:root {
    --bg: #f5f3ff;
    --surface: #fff;
    --text: #1f1b3a;
    --muted: #6b6790;
    --border: #e5e1f7;
    --p: #6a4cff;
    --pink: #ff4d8d;
    --orange: #ff9f1c;
    --teal: #2ec4b6;
    --sky: #4cc9f0;
    --shadow: 0 10px 30px rgba(80,60,170,.14)
}

@media (prefers-color-scheme:dark) {
    :root {
        --bg: #120d26;
        --surface: #1d1637;
        --text: #f1edff;
        --muted: #a9a1c9;
        --border: #352c5c;
        --shadow: 0 10px 30px rgba(0,0,0,.4)
    }
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI","Trebuchet MS",system-ui,sans-serif;
    line-height: 1.5
}

form {
    margin: 0
}

h1, h2, h3, h4 {
    margin: 0
}

body.lock {
    overflow: hidden
}

/* ---------- top bar ---------- */
.topnav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(90deg,#3a1c8f,#6a4cff 55%,#d63ba8);
    color: #fff;
    box-shadow: 0 4px 18px rgba(58,28,143,.35)
}

.nav-in {
    max-width: 1320px;
    margin: auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .5px;
    color: #fff;
    text-decoration: none
}

    .logo img {
        width: 42px;
        height: 42px;
        object-fit: contain;
        background: #fff;
        border-radius: 50%;
        padding: 3px
    }

.menu {
    display: flex;
    gap: 6px;
    margin-left: auto;
    align-items: center;
    flex-wrap: wrap
}

    .menu a {
        color: #fff;
        text-decoration: none;
        padding: 9px 16px;
        border-radius: 30px;
        font-weight: 700
    }

        .menu a:hover {
            background: rgba(255,255,255,.2)
        }

        .menu a.active {
            background: #fff;
            color: #4a2bd0
        }

.who {
    background: rgba(255,255,255,.18);
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 14px
}

.menu a.out {
    background: rgba(255,255,255,.18)
}

/* ---------- hero ---------- */
.wrap {
    max-width: 1320px;
    margin: auto;
    padding: 24px 20px
}

.hero {
    border-radius: 26px;
    padding: 34px;
    color: #fff;
    background: linear-gradient(120deg,#ff4d8d,#ff9f1c 45%,#2ec4b6);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden
}

    .hero.alt {
        background: linear-gradient(120deg,#6a4cff,#4cc9f0 60%,#2ec4b6)
    }

    .hero h1 {
        font-size: clamp(26px,4vw,40px)
    }

    .hero p {
        margin: 8px 0 0;
        opacity: .95;
        font-size: 17px
    }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px
}

.chip {
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 10px 18px
}

    .chip b {
        display: block;
        font-size: 26px;
        line-height: 1.1
    }

.btn-hero {
    margin-top: 18px;
    border: 0;
    border-radius: 30px;
    padding: 12px 24px;
    font: inherit;
    font-weight: 800;
    color: #4a2bd0;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,.18)
}

    .btn-hero:focus-visible, .modal-x:focus-visible, .btn-close:focus-visible {
        outline: 3px solid #1f1b3a;
        outline-offset: 2px
    }

/* ---------- course section (standard table look) ---------- */
:root {
    --th-bg: #1e293b;
    --th-tx: #fff;
    --tb: #d9dee7;
    --hover: #f1f5fb
}

@media (prefers-color-scheme:dark) {
    :root {
        --th-bg: #0b1220;
        --tb: #33304a;
        --hover: #262144
    }
}

.section {
    background: var(--surface);
    border: 1px solid var(--tb);
    border-radius: 14px;
    box-shadow: var(--shadow);
    margin-top: 26px;
    padding: 20px
}

.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px
}

    .sec-head h2 {
        color: var(--text);
        font-size: 22px
    }

.search {
    padding: 9px 14px;
    border: 1px solid var(--tb);
    border-radius: 8px;
    min-width: 250px;
    font: inherit;
    background: var(--surface);
    color: var(--text)
}

    .search:focus {
        outline: 3px solid var(--p);
        outline-offset: 1px;
        border-color: transparent
    }

.legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px
}

    .legend i {
        display: inline-block;
        width: 14px;
        height: 14px;
        border-radius: 3px;
        margin-right: 6px;
        vertical-align: -2px;
        border: 1px solid rgba(0,0,0,.12)
    }

.lg-hot {
    background: #ffe9a8
}

.lg-new {
    background: #c8f0da
}

.lg-off {
    background: #dc2626 !important;
}
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--tb);
    border-radius: 8px
}

.ctable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 1100px
}

    .ctable th {
        background: var(--th-bg);
        color: var(--th-tx);
        text-align: left;
        padding: 11px 12px;
        font-weight: 600;
        white-space: nowrap
    }

    .ctable td {
        padding: 10px 12px;
        border-bottom: 1px solid var(--tb);
        vertical-align: middle
    }

    .ctable tbody tr:last-child td {
        border-bottom: 0
    }

    .ctable tbody tr:hover td {
        background: var(--hover)
    }

    .ctable th.num, .ctable td.num {
        text-align: right;
        white-space: nowrap
    }

    .ctable th.ctr, .ctable td.ctr {
        text-align: center
    }

    .ctable .n {
        color: var(--muted);
        width: 40px
    }

.code {
    font-family: Consolas,monospace;
    font-weight: 700;
    white-space: nowrap
}

.cname {
    min-width: 200px
}

.mode {
    white-space: nowrap
}

/* newly added rows */
.ctable tr.fresh td {
    background: #ecfaf2
}

    .ctable tr.fresh td:first-child {
        box-shadow: inset 4px 0 #22a06b
    }
/* discount rows stand out (wins over "new") */
.ctable tr.hot td {
    background: #fff6d6;
    font-weight: 600
}

    .ctable tr.hot td:first-child {
        box-shadow: inset 4px 0 #f59e0b
    }
/* Inactive rows in red */
.ctable tbody tr.inactive td {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.ctable tbody tr.inactive:hover td {
    background: #fee2e2 !important;
}

.ctable tr.inactive td:first-child {
    box-shadow: none;
}

@media (prefers-color-scheme: dark) {
    .ctable tr.fresh td {
        background: #0f3a35;
    }

    .ctable tr.hot td {
        background: #4a3a0e;
        color: #fff;
    }

    /* Inactive rows stay red in dark mode */
    .ctable tbody tr.inactive td {
        background: #3b1218 !important;
        color: #fca5a5 !important;
    }

    .ctable tbody tr.inactive:hover td {
        background: #4c1620 !important;
    }
}
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: 1px;
    color: #fff;
    white-space: nowrap
}

    .badge.off {
        background: #d97706
    }

    .badge.new {
        background: #16a34a
    }

    .badge.inactive {
        background: #6b7280
    }

.disc .amt {
    display: block;
    color: #b91c1c;
    font-weight: 600
}

.disc .pct {
    font-size: 12px;
    color: #b45309
}

.after .now {
    color: #15803d;
    font-weight: 700
}

.ctable tr.inactive .disc .amt, .ctable tr.inactive .disc .pct, .ctable tr.inactive .after .now {
    color: inherit
}

/* download button (icon only) */
.dlbtn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--tb);
    color: var(--p);
    background: var(--surface);
    text-decoration: none
}

    .dlbtn:hover {
        background: var(--p);
        color: #fff;
        border-color: var(--p)
    }

    .dlbtn:focus-visible {
        outline: 3px solid var(--p);
        outline-offset: 2px
    }

    .dlbtn svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round
    }

.ctable tr.inactive .dlbtn {
    color: #6b6b76
}

.nofile {
    color: var(--muted)
}

.empty {
    padding: 30px;
    text-align: center;
    color: var(--muted)
}

/* ---------- staff popup ---------- */
/* ===== Attractive animated staff popup ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 40, 0.78);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 18px;
    overflow-y: auto;
    opacity: 0;
}

.modal.open {
    display: flex;
    animation: staffOverlayIn 0.35s ease forwards;
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 1000px;
    padding: 36px 28px 30px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f6f2ff);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
    animation: staffModalIn 0.65s cubic-bezier(.2, .8, .2, 1) both;
}

    .modal-box::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 7px;
        background: linear-gradient( 90deg, #ff4d8d, #ffb703, #2ec4b6, #6a4cff, #ff4d8d );
        background-size: 250% 100%;
        animation: staffRainbow 5s linear infinite;
    }

    .modal-box h2 {
        text-align: center;
        font-size: clamp(25px, 4vw, 34px);
        font-weight: 900;
        letter-spacing: -0.5px;
        color: #4f2bd8;
        margin: 4px 35px 0;
    }

    .modal-box .sub {
        text-align: center;
        color: #77718f;
        font-size: 15px;
        margin: 8px 0 30px;
    }

.staff-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

/* Staff card entrance and hover effects */
.staff-card {
    --card-color: #6a4cff;
    position: relative;
    min-width: 0;
    padding: 30px 12px 22px;
    border-radius: 22px;
    text-align: center;
    color: #fff;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 28px rgba(55, 35, 100, 0.16);
    opacity: 0;
    animation: staffCardIn 0.65s cubic-bezier(.2, .8, .2, 1) forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .staff-card:nth-child(1) {
        animation-delay: 0.12s;
    }

    .staff-card:nth-child(2) {
        animation-delay: 0.24s;
    }

    .staff-card:nth-child(3) {
        animation-delay: 0.36s;
    }

    .staff-card:nth-child(4) {
        animation-delay: 0.48s;
    }

    .staff-card:nth-child(5) {
        animation-delay: 0.60s;
    }

    .staff-card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient( 145deg, rgba(255, 255, 255, 0.22), transparent 55%, rgba(0, 0, 0, 0.10) );
    }

    .staff-card::after {
        content: "";
        position: absolute;
        top: -70%;
        left: -100%;
        width: 65%;
        height: 240%;
        z-index: -1;
        background: rgba(255, 255, 255, 0.17);
        transform: rotate(25deg);
        transition: left 0.65s ease;
    }

    .staff-card:hover {
        transform: translateY(-9px) scale(1.025);
        box-shadow: 0 22px 38px rgba(55, 35, 100, 0.28);
    }

        .staff-card:hover::after {
            left: 140%;
        }

    /* Profile photos */
    .staff-card img,
    .staff-card .ph {
        width: 112px;
        height: 112px;
        max-width: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        margin: 4px auto 17px;
        border: 4px solid rgba(255, 255, 255, 0.95);
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.17), 0 10px 25px rgba(0, 0, 0, 0.20);
        animation: staffFloat 3s ease-in-out infinite;
        transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .staff-card:nth-child(2) img,
    .staff-card:nth-child(2) .ph {
        animation-delay: -.5s;
    }

    .staff-card:nth-child(3) img,
    .staff-card:nth-child(3) .ph {
        animation-delay: -1s;
    }

    .staff-card:nth-child(4) img,
    .staff-card:nth-child(4) .ph {
        animation-delay: -1.5s;
    }

    .staff-card:nth-child(5) img,
    .staff-card:nth-child(5) .ph {
        animation-delay: -2s;
    }

    .staff-card:hover img,
    .staff-card:hover .ph {
        border-color: #ffe08a;
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.24), 0 0 25px rgba(255, 224, 138, 0.55);
    }

    .staff-card .ph {
        display: grid;
        place-items: center;
        font-size: 42px;
        font-weight: 900;
        background: rgba(255, 255, 255, 0.20);
    }

    .staff-card h4 {
        position: relative;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

/* Rank badge */
.rank {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.40);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(5px);
}

/* Colourful staff cards */
.staff-card.c0 {
    --card-color: #ff4d8d;
    background: linear-gradient(145deg, #ff4d8d, #f43f70 55%, #ff9665);
}

.staff-card.c1 {
    --card-color: #11998e;
    background: linear-gradient(145deg, #2ec4b6, #11998e);
}

.staff-card.c2 {
    --card-color: #6a4cff;
    background: linear-gradient(145deg, #6a4cff, #8e6bff);
}

.staff-card.c3 {
    --card-color: #f59e0b;
    background: linear-gradient(145deg, #ffb52e, #e87918);
}

.staff-card.c4 {
    --card-color: #4361ee;
    background: linear-gradient(145deg, #4cc9f0, #4361ee);
}

/* Close buttons */
.modal-x {
    position: absolute;
    top: 17px;
    right: 18px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f0ebff;
    color: #5b35d5;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

    .modal-x:hover {
        transform: rotate(90deg);
        background: #6a4cff;
        color: #fff;
    }

.btn-close {
    display: block;
    margin: 30px auto 0;
    padding: 13px 40px;
    border: 0;
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(100deg, #6a4cff, #d63ba8);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(106, 76, 255, 0.27);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .btn-close:hover {
        transform: translateY(-3px);
        box-shadow: 0 13px 26px rgba(106, 76, 255, 0.38);
    }

    .modal-x:focus-visible,
    .btn-close:focus-visible {
        outline: 3px solid #1f1b3a;
        outline-offset: 3px;
    }

/* Animation keyframes */
@keyframes staffOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes staffModalIn {
    from {
        opacity: 0;
        transform: translateY(35px) scale(.93);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes staffCardIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

@keyframes staffRainbow {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 250% 50%;
    }
}

/* Responsive layout */
@media (max-width: 850px) {
    .staff-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .modal {
        padding: 10px;
        align-items: flex-start;
    }

    .modal-box {
        margin: auto 0;
        padding: 30px 15px 22px;
        border-radius: 22px;
    }

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

    .staff-card {
        padding: 30px 8px 18px;
    }

        .staff-card img,
        .staff-card .ph {
            width: 86px;
            height: 86px;
        }

        .staff-card h4 {
            font-size: 14px;
        }

    .modal-box .sub {
        margin-bottom: 22px;
    }
}

/* Accessibility: reduce motion when requested */
@media (prefers-reduced-motion: reduce) {
    .modal.open,
    .modal-box,
    .staff-card,
    .staff-card img,
    .staff-card .ph,
    .modal-box::before {
        animation: none !important;
        opacity: 1;
    }

        .staff-card,
        .staff-card::after,
        .modal-x,
        .btn-close {
            transition: none !important;
        }
}

/* ---------- contact page ---------- */
.contact-hero {
    padding: 48px 34px;
    background: linear-gradient(125deg,#4f2bd8,#6a4cff 35%,#4cc9f0 75%,#2ec4b6)
}

    .contact-hero > * {
        position: relative;
        z-index: 1
    }

    .contact-hero .bubble {
        position: absolute;
        z-index: 0;
        border-radius: 50%;
        background: rgba(255,255,255,.16);
        animation: float 9s ease-in-out infinite
    }

    .contact-hero .b1 {
        width: 250px;
        height: 250px;
        right: -60px;
        top: -90px
    }

    .contact-hero .b2 {
        width: 150px;
        height: 150px;
        right: 150px;
        bottom: -70px;
        animation-delay: -3s
    }

    .contact-hero .b3 {
        width: 90px;
        height: 90px;
        left: 46%;
        top: 16px;
        animation-delay: -6s;
        background: rgba(255,255,255,.12)
    }

@keyframes float {
    0%,100% {
        transform: translateY(0)
    }

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

.eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.22);
    border-radius: 30px;
    padding: 4px 14px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 10px
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin: 32px 0 4px
}

    .toolbar h2 {
        color: var(--p);
        font-size: 28px
    }

    .toolbar p {
        margin: 2px 0 0;
        color: var(--muted)
    }

.searchbox {
    position: relative;
    display: block
}

    .searchbox svg {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        stroke: var(--muted);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round
    }

    .searchbox input {
        padding: 12px 18px 12px 44px;
        border: 2px solid var(--border);
        border-radius: 30px;
        min-width: 300px;
        font: inherit;
        background: var(--surface);
        color: var(--text);
        box-shadow: var(--shadow)
    }

        .searchbox input:focus {
            outline: 3px solid var(--p);
            outline-offset: 1px;
            border-color: transparent
        }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(290px,1fr));
    gap: 24px;
    margin-top: 22px
}

.ccard {
    position: relative;
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .2s,box-shadow .2s;
    animation: rise .5s ease both;
    animation-delay: calc(var(--i,0) * 60ms)
}

    .ccard:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 44px rgba(80,60,170,.28)
    }

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.ctop {
    height: 98px;
    background: radial-gradient(rgba(255,255,255,.32) 2px,transparent 2.6px) 0 0/18px 18px,var(--grad)
}

.av {
    position: relative;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    margin: -47px auto 0;
    display: grid;
    place-items: center;
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    background: var(--grad);
    border: 5px solid var(--surface);
    box-shadow: 0 10px 22px rgba(0,0,0,.22)
}

    .av::after {
        content: "";
        position: absolute;
        right: 3px;
        bottom: 5px;
        width: 17px;
        height: 17px;
        border-radius: 50%;
        background: #22c55e;
        border: 3px solid var(--surface)
    }

.cbody {
    padding: 10px 22px 24px;
    text-align: center
}

    .cbody h3 {
        font-size: 21px;
        margin: 8px 0 6px
    }

.state {
    display: inline-block;
    background: rgba(34,197,94,.15);
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
    margin-bottom: 8px
}

    .state::before {
        content: "\25CF  ";
        font-size: 9px;
        vertical-align: 1px
    }

.info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: color-mix(in srgb,var(--p) 7%,transparent);
    border-radius: 14px;
    padding: 9px 12px;
    margin: 10px 0;
    text-align: left;
    font-size: 14.5px
}

    .info .t {
        min-width: 0;
        overflow-wrap: anywhere
    }

    .info small {
        display: block;
        color: var(--muted);
        font-size: 10.5px;
        text-transform: uppercase;
        letter-spacing: .6px;
        line-height: 1.2
    }

.ic {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex: none;
    color: #fff;
    background: var(--grad)
}

    .ic svg, .acts svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round
    }

.acts {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    margin-top: 16px
}

    .acts a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        text-decoration: none;
        font-weight: 700;
        font-size: 12.5px;
        color: #fff;
        border-radius: 14px;
        padding: 10px 4px;
        transition: transform .15s,filter .15s
    }

        .acts a:hover {
            transform: translateY(-2px);
            filter: brightness(1.08)
        }

        .acts a:focus-visible {
            outline: 3px solid var(--text);
            outline-offset: 2px
        }

    .acts svg {
        width: 20px;
        height: 20px
    }

    .acts .call {
        background: var(--grad)
    }

    .acts .wa {
        background: linear-gradient(135deg,#25d366,#128c7e)
    }

    .acts .mail {
        background: linear-gradient(135deg,#475569,#1e293b)
    }

.k0 {
    --grad: linear-gradient(135deg,#ff4d8d,#ff8a5c)
}

.k1 {
    --grad: linear-gradient(135deg,#2ec4b6,#2a9d8f)
}

.k2 {
    --grad: linear-gradient(135deg,#6a4cff,#9b7bff)
}

.k3 {
    --grad: linear-gradient(135deg,#ff9f1c,#f4c430)
}

.k4 {
    --grad: linear-gradient(135deg,#4cc9f0,#4361ee)
}

.k5 {
    --grad: linear-gradient(135deg,#d63ba8,#8a5cff)
}

.cta {
    margin-top: 36px;
    border-radius: 24px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: #fff;
    background: linear-gradient(120deg,#ff4d8d,#ff9f1c);
    box-shadow: var(--shadow)
}

    .cta h3 {
        font-size: 23px
    }

    .cta p {
        margin: 3px 0 0;
        opacity: .95
    }

.cta-btn {
    background: #fff;
    color: #c2185b;
    font-weight: 800;
    text-decoration: none;
    border-radius: 30px;
    padding: 12px 28px;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    transition: transform .15s
}

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

    .cta-btn:focus-visible {
        outline: 3px solid #1f1b3a;
        outline-offset: 2px
    }

@media(prefers-reduced-motion:reduce) {
    .contact-hero .bubble, .ccard {
        animation: none
    }

    .ccard, .acts a, .cta-btn {
        transition: none
    }

        .ccard:hover, .acts a:hover, .cta-btn:hover {
            transform: none
        }
}

@media(max-width:700px) {
    .searchbox, .searchbox input {
        width: 100%;
        min-width: 0
    }

    .contact-hero {
        padding: 32px 22px
    }

    .toolbar h2 {
        font-size: 24px
    }
}

/* ---------- login ---------- */
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: linear-gradient(135deg,#6a4cff,#4cc9f0 40%,#2ec4b6 65%,#ff9f1c)
}

.lbox {
    background: var(--surface);
    width: 100%;
    max-width: 410px;
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(30,20,90,.4)
}

    .lbox .brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        font-weight: 800;
        font-size: 26px;
        color: var(--p)
    }

        .lbox .brand img {
            width: 76px;
            height: 76px;
            object-fit: contain
        }

    .lbox p.sub {
        text-align: center;
        color: var(--muted);
        margin: 4px 0 14px
    }

    .lbox label {
        display: block;
        font-weight: 700;
        font-size: 14px;
        margin: 14px 0 6px
    }

    .lbox input[type=text], .lbox input[type=password] {
        width: 100%;
        padding: 12px 14px;
        border: 2px solid var(--border);
        border-radius: 14px;
        font: inherit;
        background: var(--surface);
        color: var(--text)
    }

    .lbox input:focus {
        outline: 3px solid var(--p);
        outline-offset: 1px;
        border-color: transparent
    }

.pw {
    position: relative
}

    .pw input {
        padding-right: 50px !important
    }

.eye {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 0
}

    .eye:hover {
        background: rgba(106,76,255,.12);
        color: var(--p)
    }

    .eye svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round
    }

.btn-login {
    width: 100%;
    margin-top: 22px;
    border: 0;
    border-radius: 30px;
    padding: 13px;
    font: inherit;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(90deg,#6a4cff,#d63ba8);
    cursor: pointer
}

.err {
    display: block;
    color: #d6204f;
    font-weight: 700;
    text-align: center;
    margin-top: 14px;
    min-height: 20px
}

footer.foot {
    text-align: center;
    color: var(--muted);
    padding: 26px 10px;
    font-size: 14px
}

@media(max-width:700px) {
    .menu {
        margin-left: 0;
        width: 100%
    }

    .hero {
        padding: 24px
    }

    .wrap {
        padding: 16px 12px
    }
}

/* Animated Offer Price */
.offer-price {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 9px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #edfff3, #d6fbe3);
    border: 1px solid #8ce4a8;
    position: relative;
    overflow: hidden;
    animation: offerPop 0.7s ease-out both;
    box-shadow: 0 3px 12px rgba(22, 163, 74, 0.12);
}

.offer-price::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient( 110deg, transparent, rgba(255, 255, 255, 0.8), transparent );
    animation: offerShine 3s ease-in-out infinite;
}

.offer-label {
    position: relative;
    z-index: 1;
    color: #15803d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.offer-amount {
    position: relative;
    z-index: 1;
    color: #087443;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    animation: pricePulse 2s ease-in-out infinite;
}

.offer-original {
    position: relative;
    z-index: 1;
    color: #7b8794;
    font-size: 11px;
    text-decoration: line-through;
}

.offer-tag {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: #16a34a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 20px;
}

@keyframes offerPop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.94);
    }

    70% {
        transform: translateY(-2px) scale(1.02);
    }

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

@keyframes offerShine {
    0%, 55% {
        left: -120%;
    }

    85%, 100% {
        left: 150%;
    }
}

@keyframes pricePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}

/* Respect accessibility settings */
@media (prefers-reduced-motion: reduce) {
    .offer-price,
    .offer-price::before,
    .offer-amount {
        animation: none !important;
    }
}
/* ---------- course filters ---------- */
.filters .f-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap
}

.f-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--p)
}

.f-reset {
    border: 1px solid var(--tb);
    background: var(--surface);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer
}

    .f-reset:hover {
        background: var(--p);
        color: #fff;
        border-color: var(--p)
    }

    .f-reset:focus-visible {
        outline: 3px solid var(--p);
        outline-offset: 2px
    }

.fgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px
}

.fld label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 5px
}

.fld input, .fld select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--tb);
    border-radius: 8px;
    font: inherit;
    background: var(--surface);
    color: var(--text)
}

    .fld input:focus, .fld select:focus {
        outline: 3px solid var(--p);
        outline-offset: 1px;
        border-color: transparent
    }
/* ---------- discount badge under course code ---------- */
.code-badges {
    margin-top: 5px;
    line-height: 1
}

    .code-badges:empty {
        display: none
    }

.disc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 3px;
    border-radius: 30px;
    background: linear-gradient(90deg, #ff4d8d, #ff7a45);
    color: #fff;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(255, 77, 141, .35);
    animation: badgeBlink 2.4s ease-in-out infinite
}

    .disc-badge .pc {
        display: inline-grid;
        place-items: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        color: #ff4d8d;
        font-style: normal;
        font-size: 11px;
        font-weight: 900
    }

@keyframes badgeBlink {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(255, 77, 141, .35)
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 5px 14px rgba(255, 77, 141, .55)
    }
}

@media (prefers-reduced-motion: reduce) {
    .disc-badge {
        animation: none
    }
}