/* Responsive course-years line in modal details */
.course-years-responsive {
    word-break: break-word;
    white-space: normal;
    font-size: 1.08rem;
    line-height: 1.5;
    margin-bottom: 0.7em;
    padding-right: 0.2em;
    padding-left: 0.2em;
    min-width: 0;
}

.course-years-responsive strong {
    font-size: 1.08em;
}

.course-years-responsive .course-name {
    font-weight: 600;
    margin-left: 0.3em;
    margin-right: 0.3em;
    display: inline-block;
}

.course-years-responsive .year-label {
    display: inline-block;
    margin-left: 0.15em;
    margin-right: 0.15em;
    font-weight: 400;
}

@media (max-width: 700px) {
    .course-years-responsive {
        font-size: 0.99rem;
        line-height: 1.35;
        padding-right: 0.1em;
        padding-left: 0.1em;
    }

    .course-years-responsive strong {
        font-size: 1em;
    }

    .course-years-responsive .course-name,
    .course-years-responsive .year-label {
        display: block;
        margin: 0.1em 0 0.1em 0;
        word-break: break-word;
    }
}

@media (max-width: 420px) {
    .course-years-responsive {
        font-size: 0.93rem;
    }
}

/* Responsive footer styles */
.site-branding {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2em 0.5em 1.2em 0.5em;
    box-sizing: border-box;
    background: none;
}

.brand-pill {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    text-align: center;
    font-size: 1rem;
}

.brand-pill small {
    display: block;
    font-size: 0.92em;
    margin-top: 0.2em;
    color: #5a709f;
    max-width: 420px;
}

@media (max-width: 700px) {
    .site-branding {
        padding: 1.1em 0.2em 1.1em 0.2em;
    }

    .brand-pill {
        flex-direction: column;
        gap: 0.3em;
        font-size: 0.98rem;
    }

    .brand-pill small {
        font-size: 0.95em;
        max-width: 98vw;
        padding-left: 0.2em;
        padding-right: 0.2em;
    }
}

@media (max-width: 420px) {
    .brand-pill {
        font-size: 0.93rem;
    }

    .brand-pill small {
        font-size: 0.91em;
    }
}

/* Enhanced responsive modal details for alumni profile */
.profile-modal-content .modal-details p {
    word-break: break-word;
    white-space: normal;
    margin-bottom: 0.7em;
    font-size: 1.08rem;
    line-height: 1.5;
}

.profile-modal-content .modal-details {
    min-width: 0;
    padding-right: 0.2em;
    padding-left: 0.2em;
}

.profile-modal-content .modal-details strong {
    font-size: 1.08em;
}

@media (max-width: 900px) {
    .profile-modal-content {
        max-width: 99vw;
        padding: 1.1em 0.7em;
    }

    .profile-modal-content .modal-details p {
        font-size: 1rem;
        line-height: 1.45;
    }

    .modal-photo-grid {
        flex-direction: column;
        gap: 1.2em;
    }

    .modal-photo-col {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .profile-modal-content {
        max-width: 100vw;
        padding: 0.7em 0.2em;
    }

    .profile-modal-content .modal-details p {
        font-size: 0.97rem;
        line-height: 1.35;
        padding-right: 0.1em;
        padding-left: 0.1em;
    }

    .profile-modal-content .modal-details strong {
        font-size: 1em;
    }
}

/* Responsive modal details for alumni profile */
.profile-modal-content {
    max-width: 540px;
    width: 96vw;
    min-width: 0;
    box-sizing: border-box;
}

.profile-modal-content .modal-details p {
    word-break: break-word;
    white-space: normal;
    margin-bottom: 0.7em;
}

.profile-modal-content .modal-details {
    min-width: 0;
}

@media (max-width: 600px) {
    .profile-modal-content {
        max-width: 98vw;
        padding: 1.1em 0.7em;
    }

    .profile-modal-content .modal-details p {
        font-size: 0.98rem;
        line-height: 1.45;
    }

    .modal-photo-grid {
        flex-direction: column;
        gap: 1.2em;
    }

    .modal-photo-col {
        width: 100%;
        min-width: 0;
    }
}

/* Education Years Row Styling for Alumni Card Modal */
.education-years-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 1.1em 0 1.2em 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.education-years-row span {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.04rem;
    margin-right: 0.7em;
    letter-spacing: 0.01em;
}

.education-years-row .btn,
.education-years-row .btn-outline-primary,
.education-years-row .btn-outline-secondary {
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.48em 1.1em;
    margin: 0;
    border: 1.5px solid var(--primary);
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(91, 124, 255, 0.07);
    transition: background 0.18s, color 0.18s, border 0.18s;
    cursor: default;
}

.education-years-row .btn-outline-primary {
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
    color: #fff;
    border: 1.5px solid var(--primary);
}

.education-years-row .btn-outline-secondary {
    background: #f7f9ff;
    color: var(--primary);
    border: 1.5px solid var(--line);
}

.education-years-row .btn-outline-primary:disabled,
.education-years-row .btn-outline-secondary:disabled {
    opacity: 1;
}

:root {
    --bg: #f7f9ff;
    --text: #1f2a44;
    --muted: #5f7096;
    --primary: #5b7cff;
    --secondary: #8f67ff;
    --tertiary: #37c5e8;
    --line: #d4dcf7;
    --surface: rgba(255, 255, 255, 0.74);
    --surface-strong: rgba(255, 255, 255, 0.9);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 10% 14%, rgba(111, 174, 255, 0.22), transparent 30%),
        radial-gradient(circle at 82% 15%, rgba(148, 120, 255, 0.2), transparent 30%),
        radial-gradient(circle at 50% 90%, rgba(130, 231, 255, 0.18), transparent 34%),
        linear-gradient(165deg, #f6f9ff 0%, #f9f8ff 50%, #f4fbff 100%);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1.6rem;
}

#home,
#about-us,
#contact-us {
    scroll-margin-top: 1.6rem;
}

.background-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(86px);
    opacity: 0.5;
    z-index: -1;
    animation: float 11s ease-in-out infinite;
}

.orb-1 {
    width: 260px;
    height: 260px;
    background: #bdd4ff;
    top: 8%;
    left: 1%;
}

.orb-2 {
    width: 320px;
    height: 320px;
    background: #d3c6ff;
    right: 4%;
    top: 22%;
    animation-delay: 2s;
}

.orb-3 {
    width: 280px;
    height: 280px;
    background: #b9ecff;
    left: 41%;
    bottom: 2%;
    animation-delay: 3.2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-17px);
    }
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    margin: 0.85rem auto 0;
    width: min(1160px, 94%);
    background: var(--surface-strong);
    border: 1px solid #e2e9ff;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0.5rem;
    z-index: 20;
}

.top-nav a {
    color: #445477;
    text-decoration: none;
    margin-left: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
}

.top-nav:not(.landing-nav) nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.22rem;
    margin-left: auto;
}

.top-nav:not(.landing-nav) nav a {
    margin-left: 0;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    border: 0;
    background: transparent;
    color: #445477;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.nav-dropdown-toggle::after {
    content: "\25BE";
    font-size: 0.68rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown-toggle:focus-visible {
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
    outline: none;
}

.nav-dropdown.is-open .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    display: none;
    z-index: 40;
    border: 1px solid #d6e5ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(53, 85, 140, 0.16);
    padding: 0.35rem;
    margin-top: 0.08rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
    gap: 0.2rem;
}

.nav-dropdown-menu a {
    margin-left: 0;
    border-radius: 10px;
    padding: 0.44rem 0.62rem;
}

.menu-toggle {
    display: none;
    border: 1px solid #c8d9ff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 255, 0.96));
    color: #33538e;
    border-radius: 999px;
    padding: 0.36rem 0.42rem 0.36rem 0.78rem;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 8px 18px rgba(76, 104, 160, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(76, 104, 160, 0.2);
}

.menu-label {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.menu-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--primary), var(--tertiary));
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
}

.menu-icon span {
    width: 0.78rem;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.menu-toggle.is-open .menu-icon span:nth-child(1) {
    transform: translateY(0.24rem) rotate(45deg);
}

.menu-toggle.is-open .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open .menu-icon span:nth-child(3) {
    transform: translateY(-0.24rem) rotate(-45deg);
}

.top-nav a:not(.brand):hover {
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
}

.top-nav .brand {
    display: inline-flex;
    align-items: center;
    margin-left: 0;
    font-size: 1.28rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    line-height: 1;
    background: none;
    color: inherit;
}

.brand-logo {
    height: 55px;
    max-width: min(46vw, 340px);
    width: auto;
    display: block;
    object-fit: contain;
}

.top-nav.landing-nav {
    justify-content: center;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    max-width: none;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    margin-top: 1rem;
    padding: 0.2rem 0;
    position: relative;
    top: 0;
}

.top-nav.landing-nav .brand {
    padding-left: 0;
    font-size: 2rem;
}

.top-nav.landing-nav .landing-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.top-nav.landing-nav .landing-menu a {
    margin-left: 0;
    color: #445477;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #d7e3ff;
    padding: 0.4rem 0.8rem;
}

.top-nav.landing-nav .landing-menu a:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
}

.main-wrap {
    width: min(1160px, 94%);
    margin: 0.9rem auto 3.2rem;
    flex: 1;
}

.page-landing .main-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(0.8rem, 2.2vw, 2rem);
}

.landing-fullscreen {
    position: relative;
    width: 100%;
    min-height: min(74vh, 820px);
    overflow: hidden;
}

.landing-fullscreen .hero-grid {
    min-height: min(74vh, 820px);
    max-width: none;
    width: 100%;
    margin-inline: 0;
    border-radius: 0;
    overflow: visible;
    isolation: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
    padding-left: clamp(0.6rem, 2.8vw, 2.8rem);
    padding-right: clamp(0.6rem, 2.8vw, 2.8rem);
}

.landing-fullscreen .hero-grid::after {
    display: none;
}

.motion-blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.75;
    animation: driftBlob 14s ease-in-out infinite;
}

.blob-a {
    width: 40vw;
    max-width: 520px;
    aspect-ratio: 1;
    left: -8%;
    top: 8%;
    background: radial-gradient(circle, rgba(91, 124, 255, 0.42), rgba(91, 124, 255, 0.06) 70%);
}

.blob-b {
    width: 34vw;
    max-width: 460px;
    aspect-ratio: 1;
    right: 3%;
    top: 18%;
    background: radial-gradient(circle, rgba(55, 197, 232, 0.45), rgba(55, 197, 232, 0.06) 72%);
    animation-delay: 2.2s;
}

.blob-c {
    width: 45vw;
    max-width: 580px;
    aspect-ratio: 1;
    left: 26%;
    bottom: -20%;
    background: radial-gradient(circle, rgba(143, 103, 255, 0.34), rgba(143, 103, 255, 0.05) 72%);
    animation-delay: 4.4s;
}

.motion-ring {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: pulseRing 8s ease-in-out infinite;
}

.ring-a {
    width: min(52vw, 620px);
    height: min(52vw, 620px);
    left: 10%;
    top: 12%;
}

.ring-b {
    width: min(40vw, 490px);
    height: min(40vw, 490px);
    right: 8%;
    bottom: 8%;
    animation-delay: 1.8s;
}

@keyframes driftBlob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(2.5%, -3.5%) scale(1.06);
    }
}

@keyframes pulseRing {

    0%,
    100% {
        opacity: 0.42;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.06);
    }
}

.main-wrap>.panel:first-child,
.main-wrap>.landing-shell:first-child,
.main-wrap>.hero:first-child {
    margin-top: 0;
}

.site-branding {
    width: min(1160px, 94%);
    margin: auto auto 1rem;
    display: flex;
    justify-content: center;
}

.page-landing .site-branding {
    scroll-margin-top: 5rem;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #d8e4ff;
    box-shadow: 0 8px 18px rgba(76, 104, 160, 0.12);
    color: #5a709f;
    font-size: 0.84rem;
}

.brand-pill a {
    text-decoration: none;
    color: #3a5fd1;
    font-weight: 700;
}

.brand-pill a:hover {
    color: #2549b8;
}

.glass {
    background: var(--surface);
    backdrop-filter: blur(8px);
    border: 1px solid #dde6ff;
    box-shadow: 0 16px 40px rgba(62, 89, 148, 0.14);
}

.hero,
.panel {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    margin-bottom: 1.3rem;
    border-radius: 24px;
}

.hero::before,
.panel::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -120px;
    top: -120px;
    background: radial-gradient(circle, rgba(111, 174, 255, 0.3), transparent 70%);
    pointer-events: none;
}

.hero {
    max-width: 980px;
    margin-inline: auto;
}

.hero h1 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: clamp(2rem, 4.6vw, 3.35rem);
}

.hero-sub {
    color: var(--muted);
    max-width: 700px;
    animation: fadeInUp 0.8s ease both;
    animation-delay: 0.08s;
}

.landing-shell {
    display: grid;
    gap: 0;
    position: relative;
}

.landing-shell::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -36px;
    transform: translateX(-50%);
    width: min(82vw, 960px);
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(91, 124, 255, 0.15), rgba(55, 197, 232, 0.2), rgba(143, 103, 255, 0.16));
    animation: landingGlow 4s ease-in-out infinite;
}

.hero-grid {
    max-width: 1060px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 1.4rem;
    align-items: center;
    padding: clamp(1.2rem, 2.2vw, 2rem);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.hero-grid::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    background: linear-gradient(125deg, rgba(91, 124, 255, 0.22), rgba(55, 197, 232, 0.14), rgba(143, 103, 255, 0.2));
    z-index: -1;
    animation: borderShift 8s linear infinite;
}

.hero-copy {
    display: grid;
    align-content: center;
    gap: 0.2rem;
    min-width: 0;
}

.hero-copy h1 {
    margin: 0.35rem 0 0.7rem;
    font-size: clamp(2.15rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-family: 'Sora', 'Poppins', sans-serif;
    background: linear-gradient(100deg, #27365c 10%, #3658a0 52%, #2e9ac5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleFloat 3.2s ease-in-out infinite;
}

.eyebrow {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #35568a;
    background: linear-gradient(90deg, #e7efff, #eaf7ff);
    border: 1px solid #d7e5ff;
}

.quote-strip {
    margin: 1rem 0 1.15rem;
    display: grid;
    gap: 0.38rem;
    animation: fadeInUp 0.9s ease both;
    animation-delay: 0.16s;
}

.quote {
    color: #6f82aa;
    font-size: 1.02rem;
    position: relative;
    width: fit-content;
}

.quote::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #80b7f0;
}

.cta-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease both;
    animation-delay: 0.22s;
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: 0.72rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(143, 98, 255, 0.22);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: buttonShine 3.5s ease-in-out infinite;
}

.btn-secondary {
    background: #ffffff;
    color: #40598b;
    border: 1px solid #cfdbff;
}

.hero-visual {
    position: relative;
    display: grid;
    align-content: center;
    gap: 0.75rem;
    padding: 0.4rem;
    min-width: 0;
    animation: fadeInRight 0.9s ease both;
    animation-delay: 0.2s;
}

.visual-main {
    padding: 1.35rem;
    border-radius: 22px;
    background: linear-gradient(155deg, #5f7dff 0%, #39c3e8 100%);
    color: #fff;
    box-shadow: 0 14px 34px rgba(71, 114, 200, 0.28);
    min-height: 190px;
    display: grid;
    align-content: center;
    position: relative;
    overflow: hidden;
}

.visual-main::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -48px;
    bottom: -66px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.visual-main h3 {
    margin: 0 0 0.48rem;
    font-size: 1.32rem;
}

.visual-main p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

.visual-lines {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.35rem;
}

.visual-lines span {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.visual-lines span:nth-child(2) {
    width: 82%;
}

.visual-lines span:nth-child(3) {
    width: 65%;
}

@keyframes landingGlow {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes borderShift {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes titleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes buttonShine {

    0%,
    55%,
    100% {
        transform: translateX(-110%);
    }

    70% {
        transform: translateX(120%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.panel:not(.compact-panel) {
    max-width: 640px;
    margin-inline: auto;
}

.compact-panel {
    max-width: 1080px;
    margin-inline: auto;
}

.panel-head {
    margin-bottom: 1.2rem;
}

.panel-head h2,
.panel-head h3 {
    margin: 0;
}

.panel-head p {
    color: var(--muted);
    margin: 0.42rem 0 0;
}

.batch-filter-form {
    margin-top: 0.75rem;
    max-width: 260px;
    display: grid;
    gap: 0.25rem;
}

.batch-filter-form label {
    margin-bottom: 0;
}

.form-grid {
    display: grid;
    gap: 0.66rem;
}

.form-helper-row {
    display: flex;
    justify-content: flex-end;
}

.text-link {
    color: #4466ae;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 0.9rem;
}

.text-link:hover {
    color: #2f4f91;
}

label {
    display: block;
    color: #546c99;
    font-size: 0.92rem;
    font-weight: 500;
}

.profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 1rem 1.4rem;
}

.field-box {
    padding: 0.2rem 0;
    min-height: 86px;
    border: none;
    background: transparent;
}

.field-box label {
    margin-bottom: 0.38rem;
}

.required-star {
    color: #d14c6f;
    margin-left: 0.2rem;
    font-weight: 700;
}

.field-box.full-width {
    grid-column: 1 / -1;
}

.course-repeater {
    display: grid;
    gap: 0.7rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.course-row {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #d8e5ff;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 16px rgba(84, 109, 164, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.course-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(84, 109, 164, 0.14);
}

.course-row-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px);
    gap: 0.7rem 1rem;
}

.course-input-wrap {
    min-width: 0;
}

.course-mini-label {
    margin-bottom: 0.2rem;
    font-size: 0.77rem;
    letter-spacing: 0.03em;
    color: #6f84b1;
    text-transform: uppercase;
    font-weight: 700;
}

.course-year-wrap {
    max-width: 220px;
}

.course-delete-wrap {
    color: #5f739d;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    margin-top: 0.1rem;
    padding: 0.2rem 0.35rem;
    border-radius: 999px;
    cursor: pointer;
    background: #eef4ff;
    border: 1px solid #d5e2ff;
}

.course-delete-wrap input[type="checkbox"] {
    accent-color: #d3507b;
}

.course-row.is-new {
    animation: courseRowPopIn 0.28s ease;
}

.course-row.is-marked-delete {
    opacity: 0.62;
    border-color: #f0b7c9;
    background: linear-gradient(165deg, #fff5f8, #fff);
    box-shadow: none;
}

.course-row.is-marked-delete .input-control {
    border-bottom-color: #e6b8c8;
}

@keyframes courseRowPopIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 820px) {
    .course-row-grid {
        grid-template-columns: 1fr;
    }

    .course-year-wrap {
        max-width: none;
    }
}

.employment-options ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.employment-options li {
    margin: 0;
}

.employment-options input[type="radio"] {
    accent-color: var(--primary);
    margin-right: 0.32rem;
}

.input-control,
.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid #cad7f8;
    background: transparent;
    color: var(--text);
    padding: 0.62rem 0.1rem;
    font-family: inherit;
    font-size: 1rem;
}

.input-control:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.mobile-input-row {
    display: grid;
    grid-template-columns: minmax(130px, 170px) 1fr;
    gap: 0.75rem;
    align-items: end;
}

.mobile-code-control,
.mobile-number-control {
    min-width: 0;
}

.file-control {
    width: 100%;
    border: none;
    border-bottom: 2px dashed #b4c9f4;
    border-radius: 0;
    background: transparent;
    padding: 0.36rem 0;
    color: #5872a5;
    font-size: 0;
}

.file-control::file-selector-button {
    border: none;
    background: linear-gradient(90deg, #eaf0ff, #e8f9ff);
    color: #3e5b8f;
    border-radius: 999px;
    padding: 0.4rem 0.84rem;
    margin-right: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.saved-photo-preview {
    margin-top: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.saved-photo-preview img {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #dbe6ff;
}

.saved-photo-preview span {
    color: #5c77a8;
    font-size: 0.86rem;
}

.more-photos-box {
    margin-top: 1rem;
    border: 1px solid #d9e5ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.8rem;
}

.more-photos-box summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3e5b8f;
    font-weight: 600;
}

.more-photos-box summary::-webkit-details-marker {
    display: none;
}

.plus-badge {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
    color: #fff;
    font-weight: 700;
}

.extra-photos-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.7rem;
}

.extra-photo-tile {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d8e4ff;
    aspect-ratio: 1 / 1;
}

.extra-photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.extra-photo-empty {
    grid-column: 1 / -1;
    color: #6880ad;
    font-size: 0.9rem;
}

.extra-photo-add-tile {
    grid-column: 1 / -1;
    border: 1px dashed #b8caf0;
    border-radius: 12px;
    padding: 0.75rem;
    background: #f8fbff;
    display: grid;
    align-content: start;
    gap: 0.55rem;
}

.multi-upload-hint {
    margin: 0;
    color: #6780b1;
    font-size: 0.84rem;
}

.selected-extra-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 0.55rem;
    width: 100%;
}

.selected-extra-preview-item {
    position: relative;
    border: 1px solid #cfdbf7;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(69, 95, 148, 0.08);
}

.selected-extra-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.selected-extra-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 999px;
    background: rgba(32, 42, 67, 0.82);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.selected-extra-remove-btn:hover {
    background: #cf3f61;
}

.selected-extra-preview-empty {
    grid-column: 1 / -1;
    color: #7a8fb6;
    font-size: 0.78rem;
}

.plus-tile-btn {
    border: 0;
    border-radius: 10px;
    background: #e7f1ff;
    color: #3f5f96;
    font-weight: 600;
    padding: 0.52rem 0.8rem;
    cursor: pointer;
    justify-self: start;
}

@media (max-width: 600px) {
    .selected-extra-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.messages {
    margin-bottom: 1rem;
}

.message {
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    margin-bottom: 0.45rem;
    border: 1px solid;
    font-size: 0.91rem;
    background: #fff;
}

.message.success {
    border-color: #9fe0c6;
    color: #2f7f61;
}

.message.error {
    border-color: #ffb9b9;
    color: #bf3a3a;
}

.message.info {
    border-color: #b8d6ff;
    color: #366fa7;
}

.errorlist {
    list-style: none;
    margin: 0.2rem 0 0;
    padding: 0;
    color: #c73f64;
    font-size: 0.84rem;
}

.hidden-grid {
    display: none;
    gap: 0.9rem 1.4rem;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    grid-column: 1 / -1;
}

.hidden-grid.show {
    display: grid;
}

.action-row {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.4rem;
}

.card-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.1rem;
    align-items: start;
}

.flip-card {
    perspective: 1200px;
    -webkit-perspective: 1200px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 300px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: transform 0.75s ease;
    will-change: transform;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card:focus .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
    transform: rotateY(180deg);
}

@media (hover: none) {
    .flip-card:hover .flip-card-inner {
        transform: none;
    }

    .flip-card.is-flipped .flip-card-inner {
        transform: rotateY(180deg);
    }
}

@keyframes mobileCardFlipIn {
    from {
        transform: rotateY(88deg);
        opacity: 0.2;
    }

    to {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

@media (pointer: coarse),
(max-width: 900px) {
    .flip-card .flip-card-inner {
        transform: none !important;
        transition: none;
    }

    .flip-card .flip-card-front,
    .flip-card .flip-card-back {
        transform: none !important;
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
    }

    .flip-card .flip-card-back {
        display: none;
    }

    .flip-card.is-flipped .flip-card-front {
        display: none;
    }

    .flip-card.is-flipped .flip-card-back {
        display: block;
        animation: mobileCardFlipIn 0.34s ease;
    }
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #dce7ff;
    background: #fff;
}

.flip-card-back {
    transform: rotateY(180deg) translateZ(1px);
}

.flip-card-front img,
.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(165deg, #f5f9ff, #f1fcff);
    color: #6e83ae;
    font-weight: 500;
}

.member-meta {
    padding: 0.74rem 0.3rem 0.2rem;
}

.member-info-row {
    margin: 0.36rem 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #6b81ac;
    font-size: 0.92rem;
}

.member-info-icon {
    width: 20px;
    display: inline-flex;
    justify-content: center;
    color: #4f6ea8;
}

.member-info-text {
    color: #5875a8;
}

.member-name-row {
    color: #324a78;
    font-size: 1.02rem;
}

.member-name-row strong {
    color: #324a78;
}

.birthday-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: 0.38rem;
    border-radius: 999px;
    background: #fff2de;
    border: 1px solid #ffd8a8;
    font-size: 0.95rem;
    vertical-align: middle;
}

.card-more-photos {
    margin-top: 0;
}

.card-more-photos summary {
    list-style: none;
}

.card-more-photos summary::-webkit-details-marker {
    display: none;
}

.card-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #ccdcff;
    background: #eef4ff;
    color: #4265a8;
    display: grid;
    place-items: center;
    cursor: pointer;
    user-select: none;
}

.icon-image {
    font-size: 1rem;
    line-height: 1;
}

.card-photo-strip {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    position: relative;
}

.thumb-preview {
    position: relative;
    display: inline-flex;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.thumb-small {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dbe6ff;
    transition: transform 0.2s ease;
}

.thumb-preview:hover .thumb-small {
    transform: scale(1.04);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2200;
}

.image-lightbox.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.image-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 29, 53, 0.62);
}

.image-lightbox-content {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 96vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: zoom-out;
}

.image-lightbox-content img {
    width: auto;
    max-width: 95vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 10px;
    background: #0f1930;
    box-shadow: 0 24px 44px rgba(8, 14, 28, 0.5);
}

.image-lightbox-close {
    position: fixed;
    top: 0.9rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #cfe0ff;
    background: rgba(255, 255, 255, 0.92);
    color: #355287;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2301;
}

.card-photo-empty {
    color: #7a8fb8;
    font-size: 0.82rem;
}

.batch-filter-row {
    max-width: none;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: 0.7rem 1rem;
}

.complete-filter-row {
    align-items: end;
    margin-top: 0.8rem;
}

.complete-view-panel {
    padding-top: 1.05rem;
}

.complete-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.complete-panel-head {
    margin-bottom: 0;
}

.complete-reset-top-btn {
    min-width: 142px;
    text-align: center;
}

.complete-summary-strip {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.complete-summary-strip span {
    border: 1px solid #cfe0ff;
    background: linear-gradient(135deg, rgba(242, 248, 255, 0.92), rgba(255, 255, 255, 0.94));
    color: #3e5f99;
    border-radius: 999px;
    padding: 0.36rem 0.72rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.22rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: #4f6798;
    user-select: none;
}

.checkbox-label input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: #3f67b0;
}

.checkbox-hint {
    color: #728bb8;
    font-size: 0.78rem;
}

.complete-filter-reset-box {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.complete-reset-btn {
    width: 100%;
    text-align: center;
}

.batch-group-block {
    margin-top: 1.2rem;
    border: 1px solid #dce8ff;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.85rem 0.85rem 0.95rem;
}

.batch-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.batch-group-head h3 {
    margin: 0;
    color: #2e4678;
    font-size: 1.02rem;
}

.batch-group-head p {
    margin: 0;
    color: #6a83b2;
    font-size: 0.86rem;
    font-weight: 600;
}

.batch-divider {
    height: 1px;
    width: 100%;
    margin: 0.55rem 0 0.85rem;
    background: linear-gradient(90deg, rgba(105, 132, 179, 0.14), rgba(105, 132, 179, 0.4), rgba(105, 132, 179, 0.14));
}

.alumni-card {
    position: relative;
    border: 1px solid #dce7ff;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 22px rgba(57, 83, 133, 0.12);
}

.my-batch-panel {
    overflow: hidden;
}

.view-mode-switch {
    margin: 0.25rem 0 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.mode-option {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border: 1px solid #cfe0ff;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    padding: 0.36rem 0.72rem;
    color: #39578f;
    font-weight: 600;
    cursor: pointer;
}

.mode-option input[type='radio'] {
    accent-color: #3f67b0;
}

.mode-content {
    display: none;
}

.mode-content.active {
    display: block;
}

.alumni-list-shell {
    margin-top: 0.85rem;
}

.list-view-filter-row {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 0.7rem 0.9rem;
}

.list-view-filter-row .search-field {
    grid-column: 3 / 5;
}

.list-filter-help {
    display: block;
    margin-top: 0.35rem;
    color: #6f86b2;
    font-size: 0.78rem;
}

.list-view-filter-row .action-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.list-view-filter-row .reset-field .list-filter-actions {
    justify-content: flex-start;
}

.list-search-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.list-search-row .input-control {
    width: 100%;
    max-width: 320px;
}

.list-search-row .btn {
    min-width: 100px;
}

.list-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
}

.list-filter-actions .btn {
    min-width: 130px;
    text-align: center;
}

.list-filter-count {
    margin: 0.2rem 0 0.55rem;
    color: #5a739f;
    font-size: 0.84rem;
    font-weight: 600;
}

.alumni-list-table td {
    vertical-align: top;
}

.list-action-row {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.alumni-card-photo {
    width: 100%;
    height: 260px;
    border-bottom: 1px solid #dce7ff;
    overflow: hidden;
    background: #fff;
}

.alumni-card-photo.flip-card {
    perspective: 1200px;
    cursor: pointer;
    touch-action: manipulation;
}

.alumni-card-photo.flip-card:focus {
    outline: 2px solid #9bb9ff;
    outline-offset: -2px;
}

.alumni-card-photo.flip-card .flip-card-inner {
    height: 100%;
}

.alumni-card-photo.flip-card .flip-card-front,
.alumni-card-photo.flip-card .flip-card-back {
    border: 0;
    border-radius: 0;
}

.alumni-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #eef3ff;
}

.card-action-row {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.card-icon-btn,
.eye-icon-btn,
.report-icon-btn {
    border: 1px solid #ccdcff;
    background: #eef4ff;
    color: #4265a8;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.report-icon-btn {
    color: #8f4254;
    border-color: #e8c9d2;
    background: #fff1f5;
}

.report-icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.profile-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.profile-modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1rem, 4vh, 2.5rem) 1rem 1rem;
    overflow-y: auto;
}

.profile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 32, 54, 0.45);
}

.profile-modal-content {
    position: relative;
    width: min(860px, 94vw);
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #dce7ff;
    padding: 1rem 1rem 0.9rem;
    max-height: calc(100vh - 4rem);
    overflow: auto;
    z-index: 1;
}

.modal-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border: 1px solid #d2dffc;
    background: #f5f8ff;
    color: #4c679f;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.modal-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 0.8rem;
}

.modal-photo-col {
    min-width: 0;
}

.modal-photo-grid h5 {
    margin: 0 0 0.3rem;
    color: #3f5e95;
}

.modal-photo-box {
    border: 1px solid #dce7ff;
    border-radius: 12px;
    overflow: hidden;
    height: 290px;
    background: #f7faff;
}

.modal-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-photo-box .photo-placeholder {
    height: 100%;
}

.modal-details {
    margin-top: 0.85rem;
    border-top: 1px solid #e4edff;
    padding-top: 0.7rem;
}

.modal-details p {
    margin: 0.35rem 0;
    color: #4d648f;
}


.report-link-btn {
    margin-top: 0.5rem;
    border: 1px solid #f2c7d3;
    background: #fff1f5;
    color: #a53b60;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-weight: 600;
    cursor: pointer;
}

.report-modal-content {
    width: min(520px, 94vw);
}

.report-form {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.35rem;
}

.request-link {
    display: inline-block;
    margin-top: 0.3rem;
    color: #3b60d8;
    font-weight: 600;
    text-decoration: underline;
}

.contact-request-state {
    color: #61789f;
}

.message-filter-bar {
    margin-bottom: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chat-shell {
    display: grid;
    grid-template-columns: minmax(250px, 0.95fr) minmax(300px, 1.55fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.chat-sidebar,
.chat-thread-panel {
    border: 1px solid #dce8ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.75rem;
}

.chat-sidebar h3,
.chat-thread-head h3,
.chat-thread-placeholder h3 {
    margin: 0;
    color: #354f82;
    font-size: 1rem;
}

.chat-thread-head p,
.chat-thread-placeholder p {
    margin: 0.35rem 0 0;
    color: #627ca9;
    font-size: 0.88rem;
}

.chat-contact-list {
    margin-top: 0.55rem;
    display: grid;
    gap: 0.45rem;
    max-height: 460px;
    overflow: auto;
    padding-right: 0.15rem;
}

.chat-contact-item {
    text-decoration: none;
    border: 1px solid #dce8ff;
    border-radius: 12px;
    padding: 0.56rem;
    background: #f8fbff;
    color: inherit;
    display: grid;
    gap: 0.2rem;
}

.chat-contact-item.active {
    border-color: #9fc0ff;
    background: linear-gradient(135deg, rgba(236, 245, 255, 0.95), rgba(246, 251, 255, 0.95));
}

.chat-contact-name {
    margin: 0;
    color: #2f4b82;
    font-size: 0.93rem;
    font-weight: 700;
}

.chat-contact-preview {
    margin: 0;
    color: #607aa9;
    font-size: 0.84rem;
}

.chat-contact-preview.muted,
.chat-empty-note {
    color: #7288af;
}

.chat-contact-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: #6f86b0;
}

.chat-unread-badge {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(130deg, #3f66b5, #4f88df);
    color: #fff;
    font-weight: 700;
}

.chat-thread-body {
    margin-top: 0.65rem;
    display: grid;
    gap: 0.42rem;
    max-height: 390px;
    overflow: auto;
    padding-right: 0.2rem;
}

.chat-bubble {
    max-width: 88%;
    border-radius: 12px;
    padding: 0.5rem 0.62rem;
    border: 1px solid #dce8ff;
    background: #f6faff;
    display: grid;
    gap: 0.2rem;
}

.chat-bubble.mine {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(228, 240, 255, 0.95), rgba(240, 248, 255, 0.95));
    border-color: #b8d0ff;
}

.chat-bubble.theirs {
    margin-right: auto;
}

.chat-bubble p {
    margin: 0;
    color: #365381;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-bubble span {
    font-size: 0.74rem;
    color: #6f86b0;
}

.chat-compose-form {
    margin-top: 0.7rem;
    display: grid;
    gap: 0.5rem;
}

.chat-thread-placeholder {
    min-height: 260px;
    display: grid;
    place-content: center;
    text-align: center;
}

.message-section-divider {
    border: 0;
    border-top: 1px solid #dce8ff;
    margin: 1rem 0;
}

.filter-chip {
    text-decoration: none;
    color: #4f6797;
    border: 1px solid #d5e2ff;
    border-radius: 999px;
    padding: 0.34rem 0.78rem;
    background: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-chip.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
}

.table-shell {
    overflow: auto;
    border: 1px solid #dbe7ff;
    border-radius: 12px;
}

.request-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
}

.request-table th,
.request-table td {
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid #e6eeff;
    text-align: left;
}

.request-table th {
    background: #edf4ff;
    color: #3d5e95;
}

.inline-profile-link {
    margin-left: 0.3rem;
    color: #4569d5;
    text-decoration: underline;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.btn-mini {
    padding: 0.28rem 0.65rem;
    font-size: 0.82rem;
}

.status-chip {
    display: inline-block;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-weight: 600;
    font-size: 0.82rem;
}

.status-chip.approved {
    background: #e7faef;
    color: #2f875f;
}

.status-chip.pending {
    background: #fff6e5;
    color: #b97a18;
}

.status-chip.rejected {
    background: #ffecec;
    color: #c14444;
}

.empty-row {
    text-align: center;
    color: #6d84ad;
}

.events-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 0.9rem;
}

.events-flow-shell {
    background:
        radial-gradient(circle at 10% 10%, rgba(98, 161, 255, 0.12), transparent 32%),
        radial-gradient(circle at 88% 8%, rgba(77, 205, 225, 0.11), transparent 30%),
        rgba(255, 255, 255, 0.84);
}

.events-flow-head h2 {
    margin: 0;
    color: #2f4c83;
}

.events-flow-head p {
    margin: 0.34rem 0 0.72rem;
    color: #617da9;
}

.event-lane {
    border: 1px solid #d6e6ff;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.7rem;
    margin-top: 0.75rem;
}

.event-lane-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-lane-head h3 {
    margin: 0;
    color: #2f4c83;
}

.event-lane-head span {
    border: 1px solid #c8dbff;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    color: #5b79ad;
    font-size: 0.8rem;
    font-weight: 700;
}

.event-lane-track {
    position: relative;
    overflow: hidden;
    padding: 0.2rem 0.15rem;
}

.event-lane-track::before,
.event-lane-track::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 58px;
    pointer-events: none;
    z-index: 3;
}

.event-lane-track::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.event-lane-track::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.past-events-filter-strip {
    margin-top: 0.75rem;
    margin-bottom: 0.95rem;
    display: grid;
    grid-template-columns: 1.4fr repeat(2, minmax(170px, 1fr)) minmax(170px, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
}

.past-events-filter-strip .input-control {
    min-height: 42px;
}

.past-events-filter-strip .btn {
    min-width: 98px;
    min-height: 42px;
}

.past-events-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.past-grid-card {
    width: 100%;
    min-width: 0;
}

.past-grid-card .event-coach-banner {
    height: 170px;
}

.past-grid-card .event-coach-banner img {
    object-fit: cover;
}

@media (max-width: 1200px) {
    .past-events-filter-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .past-events-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .past-events-filter-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .past-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .past-events-filter-strip {
        grid-template-columns: 1fr;
    }

    .past-events-grid {
        grid-template-columns: 1fr;
    }
}

.coaches-runner {
    display: flex;
    width: max-content;
    will-change: transform;
}

.coaches-segment {
    display: flex;
    gap: 0.65rem;
    padding-right: 0.65rem;
}

.coaches-runner.single-runner {
    display: flex;
    width: max-content;
}

.coaches-runner.single-runner .event-coach {
    position: relative;
}

.event-coach {
    border: 1px solid #d4e4ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    flex: 0 0 288px;
    width: 288px;
    min-height: 290px;
    box-shadow: 0 10px 20px rgba(71, 104, 165, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    overflow: hidden;
}

.event-coach:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(71, 104, 165, 0.16);
}

.event-coach-banner {
    height: 122px;
    overflow: hidden;
    background: #eaf2ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-coach-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-coach-banner-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #4566a4;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(145deg, #dce9ff, #edf5ff);
}

.event-coach-body {
    padding: 0.56rem 0.62rem 0.64rem;
}

.coach-date {
    margin: 0;
    color: #365495;
    font-size: 0.8rem;
    font-weight: 800;
}

.event-coach h4 {
    margin: 0.22rem 0 0;
    color: #2e4b80;
    font-size: 1rem;
}

.event-coach p {
    margin: 0.2rem 0 0;
    color: #6380ad;
    font-size: 0.86rem;
}

.event-coach a {
    margin-top: 0.42rem;
    display: inline-block;
    text-decoration: none;
    color: #3a61ce;
    font-size: 0.86rem;
    font-weight: 700;
}

.past-coach {
    background: #fcfdff;
}

.events-train-shell {
    background:
        radial-gradient(circle at 12% 14%, rgba(95, 157, 255, 0.15), transparent 34%),
        radial-gradient(circle at 86% 12%, rgba(84, 216, 228, 0.14), transparent 30%),
        rgba(255, 255, 255, 0.84);
}

.events-train-head h2 {
    margin: 0;
    color: #2b467b;
}

.events-train-head p {
    margin: 0.35rem 0 0.72rem;
    color: #627ea9;
}

.rail-block {
    border: 1px solid #d6e6ff;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    padding: 0.72rem;
    margin-top: 0.8rem;
}

.rail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
}

.rail-title-row h3 {
    margin: 0;
    color: #2f4c83;
}

.rail-title-row span {
    border: 1px solid #c8dcff;
    border-radius: 999px;
    padding: 0.2rem 0.56rem;
    color: #5675a9;
    font-size: 0.79rem;
    font-weight: 700;
}

.rail-line-wrap {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 0.65rem;
    position: relative;
}

.rail-line-wrap::before {
    content: '';
    position: absolute;
    left: 142px;
    right: 0.4rem;
    top: calc(50% + 8px);
    height: 14px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(90deg,
            rgba(60, 82, 124, 0.22) 0 12px,
            rgba(60, 82, 124, 0.08) 12px 24px);
    opacity: 0.55;
    z-index: 0;
    animation: sleepersMove 2.6s linear infinite;
}

.rail-line-wrap::after {
    content: '';
    position: absolute;
    left: 142px;
    right: 0.4rem;
    top: 50%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(83, 126, 196, 0.55), rgba(80, 202, 219, 0.5));
    z-index: 0;
}

.engine-coach {
    position: relative;
    z-index: 2;
    border: 1px solid #c6dcff;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(225, 238, 255, 0.95), rgba(243, 249, 255, 0.96));
    min-height: 118px;
    padding: 0.6rem;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.16rem;
    animation: enginePulse 2.8s ease-in-out infinite;
}

.engine-coach strong {
    color: #2f4f89;
    letter-spacing: 0.06em;
    font-size: 0.73rem;
    text-align: center;
}

.engine-coach small {
    color: #6580ad;
    font-size: 0.74rem;
}

.engine-icon {
    font-size: 1.42rem;
    line-height: 1;
    display: inline-block;
    animation: engineNod 1.4s ease-in-out infinite;
}

.engine-coach-past {
    background: linear-gradient(145deg, rgba(237, 242, 254, 0.95), rgba(250, 252, 255, 0.96));
}

.coaches-track {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 0.2rem 0.2rem 0.3rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
}

.coaches-runner {
    display: flex;
    width: max-content;
    will-change: transform;
}

.coaches-segment {
    display: flex;
    gap: 0.65rem;
    padding-right: 0.65rem;
}

.coaches-runner.single-runner {
    display: flex;
    width: max-content;
}

.coaches-runner.single-runner .event-coach {
    position: relative;
}

.coaches-track::-webkit-scrollbar {
    display: none;
}

.event-coach {
    border: 1px solid #d5e6ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    padding: 0;
    flex: 0 0 288px;
    width: 288px;
    min-height: 290px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(72, 103, 162, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.event-coach:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(72, 103, 162, 0.15);
}

.coach-date {
    margin: 0;
    color: #355494;
    font-size: 0.8rem;
    font-weight: 800;
}

.event-coach h4 {
    margin: 0.22rem 0 0;
    color: #2f4b80;
    font-size: 1rem;
}

.event-coach p {
    margin: 0.2rem 0 0;
    color: #637fad;
    font-size: 0.86rem;
}

.event-coach a {
    margin-top: 0.42rem;
    display: inline-block;
    color: #3960cd;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.86rem;
}

.coach-thumb {
    height: 98px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.coach-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.past-coach {
    background: #fbfdff;
}

@keyframes sleepersMove {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: 24px;
    }
}

@keyframes engineNod {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes enginePulse {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 8px 18px rgba(72, 103, 162, 0.1);
    }

    50% {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(72, 103, 162, 0.16);
    }
}

.events-neo-shell {
    background:
        radial-gradient(circle at 15% 8%, rgba(83, 155, 255, 0.16), transparent 32%),
        radial-gradient(circle at 84% 4%, rgba(71, 203, 228, 0.15), transparent 34%),
        linear-gradient(165deg, rgba(248, 252, 255, 0.9), rgba(242, 250, 255, 0.82));
}

.events-neo-header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: #223b67;
    letter-spacing: -0.02em;
}

.events-neo-kicker {
    margin: 0 0 0.22rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.74rem;
    font-weight: 800;
    color: #5678b8;
}

.events-neo-header p {
    margin: 0.35rem 0 0;
    color: #5f7ba9;
    max-width: 70ch;
}

.events-neo-kpis {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.events-neo-kpis div {
    min-width: 130px;
    border: 1px solid #c9dcff;
    border-radius: 14px;
    padding: 0.5rem 0.62rem;
    background: rgba(255, 255, 255, 0.84);
    display: grid;
    gap: 0.1rem;
}

.events-neo-kpis strong {
    color: #2f4e86;
    font-size: 1.2rem;
}

.events-neo-kpis span {
    color: #6580af;
    font-size: 0.83rem;
    font-weight: 600;
}

.events-spotlight-zone {
    margin-top: 0.95rem;
    display: grid;
    gap: 0.8rem;
}

.spotlight-card {
    border: 1px solid #d4e5ff;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    grid-template-columns: minmax(210px, 0.95fr) minmax(240px, 1.05fr);
    box-shadow: 0 16px 30px rgba(71, 106, 170, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.spotlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px rgba(71, 106, 170, 0.16);
}

.spotlight-media {
    position: relative;
    min-height: 220px;
    overflow: hidden;
}

.spotlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.55s ease;
}

.spotlight-card:hover .spotlight-media img {
    transform: scale(1.08);
}

.spotlight-media-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #d9e8ff, #ebf5ff);
    color: #3a5f9f;
    font-weight: 700;
    padding: 0.7rem;
    text-align: center;
}

.spotlight-type {
    position: absolute;
    top: 0.62rem;
    left: 0.62rem;
    border-radius: 999px;
    padding: 0.22rem 0.58rem;
    background: rgba(22, 43, 80, 0.72);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
}

.spotlight-content {
    padding: 0.8rem;
    display: grid;
    align-content: center;
    gap: 0.28rem;
}

.spotlight-content h3 {
    margin: 0;
    color: #2b477b;
}

.spotlight-meta,
.spotlight-location {
    margin: 0;
    color: #5e78a7;
    font-size: 0.88rem;
}

.spotlight-cta {
    justify-self: start;
    margin-top: 0.45rem;
    text-decoration: none;
    color: #fff;
    border-radius: 999px;
    padding: 0.32rem 0.72rem;
    font-size: 0.82rem;
    font-weight: 700;
    background: linear-gradient(120deg, #3d65b5, #4c87e1);
}

.events-reel-zone {
    margin-top: 1rem;
    border: 1px solid #d7e6ff;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    padding: 0.7rem;
}

.events-reel-head h3 {
    margin: 0;
    color: #2f4b80;
}

.events-reel-head p {
    margin: 0.24rem 0 0.62rem;
    color: #6581af;
    font-size: 0.85rem;
}

.events-reel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
}

.events-reel-track::-webkit-scrollbar {
    height: 8px;
}

.events-reel-track::-webkit-scrollbar-thumb {
    background: #c5d8f9;
    border-radius: 999px;
}

.reel-card {
    scroll-snap-align: start;
    border: 1px solid #d6e6ff;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.reel-photo {
    height: 130px;
    overflow: hidden;
}

.reel-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reel-card:hover .reel-photo img {
    transform: scale(1.09);
}

.reel-body {
    padding: 0.58rem;
}

.reel-body h4 {
    margin: 0;
    color: #2f4b80;
    font-size: 0.94rem;
}

.reel-body p {
    margin: 0.28rem 0 0;
    color: #6680ad;
    font-size: 0.82rem;
}

.reel-body a {
    display: inline-block;
    margin-top: 0.42rem;
    color: #3c60ce;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: calc(var(--delay, 0) * 90ms);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.events-canvas {
    background:
        radial-gradient(circle at 10% 20%, rgba(103, 161, 255, 0.14), transparent 34%),
        radial-gradient(circle at 92% 10%, rgba(80, 202, 221, 0.12), transparent 28%),
        rgba(255, 255, 255, 0.8);
}

.events-canvas-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.events-canvas-head h2 {
    margin: 0;
    color: #2d487a;
}

.events-canvas-head p {
    margin: 0.35rem 0 0;
    color: #607ba8;
}

.events-kpi-pills {
    display: flex;
    gap: 0.42rem;
    flex-wrap: wrap;
}

.events-kpi-pills span {
    border: 1px solid #c8dcff;
    border-radius: 999px;
    padding: 0.3rem 0.58rem;
    color: #385a96;
    font-weight: 700;
    font-size: 0.82rem;
    background: rgba(248, 252, 255, 0.92);
}

.events-split-layout {
    display: grid;
    grid-template-columns: minmax(300px, 1.3fr) minmax(260px, 1fr);
    gap: 0.95rem;
}

.events-stream,
.events-archive {
    border: 1px solid #d8e6ff;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.83);
    padding: 0.72rem;
}

.events-stream-head h3 {
    margin: 0;
    color: #304d82;
}

.events-stream-head p {
    margin: 0.25rem 0 0.6rem;
    color: #6680ad;
    font-size: 0.86rem;
}

.events-timeline {
    display: grid;
    gap: 0.65rem;
}

.timeline-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 0.6rem;
    opacity: 0;
    transform: translateY(8px);
    animation: eventsCardIn 0.45s ease forwards;
    animation-delay: calc(var(--i) * 80ms);
}

.timeline-date-badge {
    border: 1px solid #bfd6ff;
    border-radius: 12px;
    background: linear-gradient(150deg, rgba(225, 238, 255, 0.92), rgba(243, 250, 255, 0.95));
    display: grid;
    place-items: center;
    padding: 0.35rem 0.2rem;
}

.timeline-date-badge span {
    color: #2f4f87;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

.timeline-date-badge small {
    color: #6180b1;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timeline-card-body {
    border: 1px solid #d6e5ff;
    border-radius: 12px;
    background: rgba(253, 254, 255, 0.95);
    padding: 0.56rem 0.62rem;
}

.timeline-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.45rem;
    color: #6a84b1;
    font-size: 0.78rem;
}

.timeline-chip {
    border-radius: 999px;
    padding: 0.15rem 0.48rem;
    font-weight: 700;
    color: #3357a0;
    background: #e9f1ff;
}

.timeline-card-body h4 {
    margin: 0.35rem 0 0.22rem;
    color: #2e4a7d;
}

.timeline-card-body p {
    margin: 0.2rem 0 0;
    color: #5f79a8;
    font-size: 0.86rem;
}

.timeline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.46rem;
    text-decoration: none;
    color: #355ccb;
    font-weight: 700;
    font-size: 0.86rem;
}

.timeline-link::after {
    content: '->';
    line-height: 1;
}

.events-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 0.6rem;
}

.archive-card {
    border: 1px solid #d8e7ff;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    opacity: 0;
    transform: translateY(8px);
    animation: eventsCardIn 0.45s ease forwards;
    animation-delay: calc(var(--i) * 85ms);
}

.archive-card-photo {
    height: 108px;
    overflow: hidden;
    position: relative;
}

.archive-card-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(19, 36, 66, 0.02), rgba(19, 36, 66, 0.22));
}

.archive-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88);
}

.archive-card-body {
    padding: 0.52rem;
}

.archive-card-body h4 {
    margin: 0;
    color: #2e4a7d;
    font-size: 0.9rem;
}

.archive-card-body p {
    margin: 0.22rem 0 0;
    color: #627ca9;
    font-size: 0.8rem;
}

@keyframes eventsCardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.events-page-column h3 {
    margin: 0 0 0.55rem;
    color: #324e81;
}

.event-card {
    border: 1px solid #dce8ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    overflow: hidden;
    margin-bottom: 0.7rem;
}

.event-card-past {
    opacity: 0.93;
}

.event-card-banner {
    height: 170px;
    overflow: hidden;
}

.event-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-body {
    padding: 0.7rem;
}

.event-card-body h4 {
    margin: 0;
    color: #2f4b80;
}

.event-card-body p {
    margin: 0.35rem 0 0;
    color: #5f77a7;
}

.event-detail-panel {
    display: grid;
    gap: 0.85rem;
}

.event-detail-head h2 {
    margin: 0.55rem 0 0.2rem;
    color: #2f4b80;
}

.event-detail-head p {
    margin: 0;
    color: #6179a6;
}

.event-detail-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.5fr) minmax(220px, 1fr);
    gap: 0.9rem;
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 0.5rem 1rem;
    margin-top: 0.25rem;
}

.event-info-grid p {
    margin: 0;
    font-size: 0.9rem;
    color: #1f2937;
    line-height: 1.5;
}

.event-info-grid strong {
    color: #0f172a;
}

.event-description-block {
    margin-top: 0.6rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.14);
}

.event-description-block>p {
    margin: 0 0 0.35rem;
}

.event-detail-main,
.event-detail-side {
    border: 1px solid #dce8ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.87);
    padding: 0.8rem;
}

.event-detail-banner {
    border-radius: 12px;
    overflow: hidden;
    height: clamp(220px, 32vw, 360px);
    background: #edf3ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-detail-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.event-detail-copy p {
    margin: 0.55rem 0 0;
    color: #6079a7;
}

.event-detail-copy a {
    color: #3359c7;
    font-weight: 700;
    text-decoration: none;
}

.event-detail-slider {
    position: relative;
    margin-bottom: 0.55rem;
}

.event-detail-track {
    position: relative;
}

.event-detail-slide {
    display: none;
}

.event-detail-slide.active {
    display: block;
}

.event-slide-caption {
    margin: 0.42rem 0 0;
    color: #5f77a7;
    font-size: 0.88rem;
}

.event-slider-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    border: 0;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(34, 58, 102, 0.72);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
}

.event-slider-arrow.prev {
    left: 0.55rem;
}

.event-slider-arrow.next {
    right: 0.55rem;
}

.event-slider-dots {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.34rem;
}

.event-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: #b9ccf2;
    cursor: pointer;
}

.event-slider-dot.active {
    background: #3e66b3;
}

.event-description {
    color: #466191;
}

.event-detail-side h3 {
    margin: 0 0 0.6rem;
    color: #2f4b80;
}

.event-related-item {
    display: block;
    text-decoration: none;
    border: 1px solid #dce8ff;
    border-radius: 12px;
    padding: 0.55rem;
    margin-bottom: 0.55rem;
    background: #f9fbff;
}

@media (max-width: 980px) {

    .events-page-grid,
    .event-detail-grid,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .events-split-layout {
        grid-template-columns: 1fr;
    }

    .rail-line-wrap {
        grid-template-columns: 1fr;
    }

    .rail-line-wrap::after {
        left: 0.6rem;
        right: 0.6rem;
        top: 128px;
    }

    .rail-line-wrap::before {
        left: 0.6rem;
        right: 0.6rem;
        top: 136px;
    }

    .engine-coach {
        max-width: 220px;
    }

    .event-coach {
        flex-basis: 260px;
        width: 260px;
        min-height: 282px;
    }

    .spotlight-card {
        grid-template-columns: 1fr;
    }

    .spotlight-media {
        min-height: 200px;
    }
}

@media (max-width: 760px) {
    .event-calendar-cell {
        min-height: 54px;
    }

    .dashboard-events-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-info-grid {
        grid-template-columns: 1fr;
    }

    .event-select {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .events-canvas-head {
        flex-direction: column;
    }

    .events-archive-grid {
        grid-template-columns: 1fr;
    }
}

.about-copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 0.9rem;
    margin-top: 0.8rem;
}

.about-copy-card {
    border: 1px solid #dce8ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    padding: 0.9rem 1rem;
}

.about-copy-card h3 {
    margin: 0 0 0.45rem;
    color: #344d7f;
}

.about-copy-card p {
    margin: 0.45rem 0;
    color: #5f76a1;
}

.about-points {
    margin: 0;
    padding-left: 1.1rem;
    color: #5f76a1;
    display: grid;
    gap: 0.35rem;
}

.about-technoadviser {
    margin-top: 0.9rem;
    border: 1px solid #dce8ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    padding: 1rem 1.1rem;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.techno-logo-badge {
    width: min(420px, 100%);
    min-height: 92px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid #e1e9ff;
    padding: 0.4rem;
    overflow: hidden;
    flex: 0 0 48%;
}

.about-technoadviser>div:last-child {
    flex: 1 1 52%;
    min-width: 260px;
}

.techno-logo-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.techno-logo-fallback {
    display: none;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    place-items: center;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
}

.about-technoadviser h3 {
    margin: 0 0 0.35rem;
    color: #344d7f;
}

.about-technoadviser p {
    margin: 0.35rem 0;
    color: #5f76a1;
}

.about-technoadviser a {
    color: #3a62d4;
    font-weight: 600;
}

.leadership-spotlight {
    margin-top: 0.95rem;
    border: 1px solid #dce8ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.1rem;
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 1rem 1.2rem;
    align-items: center;
}

.leader-photo-wrap {
    border-radius: 12px;
    border: 1px solid #dbe7ff;
    background: #ffffff;
    overflow: hidden;
    display: grid;
    place-items: center;
    min-height: 230px;
}

.leader-photo {
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.leader-content h3 {
    margin: 0 0 0.25rem;
    color: #334e82;
}

.leader-name {
    margin: 0.1rem 0;
    color: #2f4a7b;
    font-size: 1.06rem;
    font-weight: 700;
}

.leader-title {
    margin: 0 0 0.55rem;
    color: #4969a2;
    font-weight: 600;
}

.leader-content p {
    margin: 0.35rem 0;
    color: #5b739f;
}

.leader-thanks {
    margin-top: 0.7rem;
    color: #355fae;
    font-weight: 600;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 0.8rem;
}

.contact-info-card {
    border: 1px solid #dce8ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    padding: 0.95rem 1rem;
}

.contact-info-card h3 {
    margin: 0 0 0.6rem;
    color: #344d7f;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
}

.contact-icon {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(91, 124, 255, 0.14), rgba(55, 197, 232, 0.18));
    border: 1px solid #bfd4ff;
    color: #3f63d5;
    font-size: 0.95rem;
}

.contact-info-card p {
    margin: 0.28rem 0;
    color: #5f76a1;
}

.contact-info-card a {
    color: #3a62d4;
    font-weight: 600;
    text-decoration: none;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

.dashboard-shell {
    display: grid;
    gap: 1rem;
}

.dashboard-hero {
    border-radius: 22px;
    border: 1px solid #d9e6ff;
    padding: 1.2rem;
    display: grid;
    grid-template-columns: minmax(320px, 1.25fr) minmax(260px, 1fr);
    gap: 1rem;
    align-items: center;
}

.hero-copy-block h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
    color: #273d6b;
}

.dashboard-eyebrow {
    margin: 0 0 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    color: #6c82b1;
    font-weight: 700;
}

.dashboard-sub {
    margin: 0.45rem 0 0;
    color: #5f77a7;
}

.dashboard-profile-left {
    min-width: 0;
    padding: 0.35rem 0.2rem;
}

.dashboard-user-row {
    margin-top: 0.7rem;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: stretch;
}

.dashboard-user-photo {
    width: 100%;
    height: 220px;
    min-height: 220px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #c4d9ff;
    background: linear-gradient(145deg, #edf4ff, #e4efff);
    display: grid;
    place-items: center;
    color: #45679e;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(59, 92, 148, 0.16);
}

.dashboard-user-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.dashboard-user-details h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2.4vw, 1.9rem);
    color: #1f3566;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.dashboard-user-details p {
    margin: 0.35rem 0 0;
    color: #5873a6;
}

.dashboard-user-chips {
    margin-top: 0.38rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.34rem;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #345388;
    font-size: 0.84rem;
    font-weight: 700;
}

.profile-chip-primary {
    color: #2a477b;
}

.dashboard-user-chips .profile-chip+.profile-chip {
    position: relative;
    padding-left: 0.7rem;
}

.dashboard-user-chips .profile-chip+.profile-chip::before {
    content: "";
    position: absolute;
    left: 0.28rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: rgba(128, 153, 201, 0.7);
}

.dashboard-user-summary {
    --summary-key-width: 106px;
    margin-top: 0.5rem;
    padding-top: 0.44rem;
    border-top: 1px solid rgba(136, 164, 214, 0.25);
    display: grid;
    gap: 0.3rem;
}

.summary-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
}

.summary-row-location {
    padding-top: 0;
}

.summary-item {
    display: inline-grid;
    grid-template-columns: var(--summary-key-width) minmax(0, 1fr);
    align-items: start;
    column-gap: 0.35rem;
    padding: 0;
    position: relative;
    min-width: 0;
}

.summary-item+.summary-item::before {
    display: none;
}

.summary-key {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #748ab4;
    font-weight: 700;
}

.summary-value {
    color: #36568f;
    font-weight: 600;
    line-height: 1.35;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.summary-key,
.summary-value {
    display: block;
}

.dashboard-profile-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    justify-self: end;
    width: min(100%, 460px);
}

.dashboard-wire-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #314f86;
    border: 1px solid #d6e6ff;
    border-radius: 14px;
    padding: 0.62rem 0.68rem;
    background: linear-gradient(150deg, rgba(246, 250, 255, 0.96), rgba(235, 246, 255, 0.92));
    gap: 0.58rem;
    min-height: 72px;
    position: relative;
    overflow: hidden;
}

.dashboard-wire-item:hover {
    border-color: #a8c7ff;
    box-shadow: 0 10px 24px rgba(58, 95, 157, 0.18);
    transform: translateY(-1px);
}

.dashboard-stat-tile::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, #4b81de, #63c7df);
}

.tile-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #f8fcff;
    background: linear-gradient(145deg, #3768ba, #4f90e2);
    box-shadow: 0 7px 16px rgba(57, 92, 151, 0.26);
    margin-left: 0.08rem;
}

.tile-copy {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
    flex: 1;
}

.wire-label {
    font-weight: 800;
    font-size: 0.86rem;
    letter-spacing: 0.01em;
}

.tile-sub {
    color: #6782b2;
    font-size: 0.73rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wire-link {
    display: none;
}

.wire-count {
    min-width: 36px;
    height: 32px;
    border-radius: 999px;
    padding: 0 0.55rem;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(145deg, #3b6ec3, #4f9add);
    box-shadow: 0 7px 14px rgba(63, 103, 163, 0.24);
    justify-self: end;
}

.dashboard-actions {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dashboard-actions .btn {
    min-width: 162px;
    justify-content: center;
}

.hero-pulse-grid {
    display: none;
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.4fr) minmax(260px, 1fr);
    gap: 0.85rem;
    align-items: stretch;
}

.dashboard-wire-btn {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    border: 1px solid #d6e6ff;
}

.dashboard-events-module {
    border: 1px solid #d8e6ff;
    border-radius: 16px;
    padding: 0.88rem;
    display: grid;
    gap: 0.72rem;
    background: linear-gradient(160deg, rgba(238, 247, 255, 0.94), rgba(255, 255, 255, 0.88));
}

.dashboard-events-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.dashboard-events-head h3 {
    margin: 0;
    color: #2f4b80;
}

.dashboard-events-switch {
    display: inline-flex;
    gap: 0.4rem;
    background: #eff5ff;
    padding: 0.2rem;
    border-radius: 999px;
    border: 1px solid #d2e3ff;
}

.event-mode-btn {
    border: 0;
    border-radius: 999px;
    padding: 0.32rem 0.72rem;
    background: transparent;
    color: #4f699b;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.event-mode-btn.active {
    background: linear-gradient(130deg, #416ab8, #4f88df);
    color: #fff;
}

.event-mode-panel {
    display: none;
}

.event-mode-panel.active {
    display: grid;
    gap: 0.62rem;
}

.calendar-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.event-select {
    max-width: 170px;
}

.event-calendar {
    position: relative;
}

.event-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.3rem;
}

.event-calendar-weekday {
    text-align: center;
    font-size: 0.77rem;
    font-weight: 700;
    color: #607ba9;
    padding: 0.22rem 0;
}

.event-calendar-cell {
    min-height: 62px;
    border: 1px solid #d8e7ff;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.34rem;
    display: grid;
    align-content: space-between;
    justify-items: end;
    cursor: default;
}

.event-calendar-cell.empty {
    background: rgba(240, 246, 255, 0.5);
    border-style: dashed;
}

.event-calendar-cell.has-event {
    cursor: pointer;
    border-color: #aac9ff;
    background: linear-gradient(145deg, rgba(235, 245, 255, 0.92), rgba(252, 253, 255, 0.95));
}

.event-day-number {
    color: #3a5d96;
    font-size: 0.84rem;
    font-weight: 700;
}

.event-day-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(130deg, #ee7f45, #f3b154);
    box-shadow: 0 0 0 2px rgba(238, 127, 69, 0.2);
}

.event-hover-card {
    position: fixed;
    z-index: 10000;
    width: min(300px, 88vw);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #cfe2ff;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(49, 80, 133, 0.2);
    padding: 0.58rem;
    display: none;
    pointer-events: auto;
    transform: translateZ(0);
}

.event-hover-card.is-visible {
    display: block;
}

.event-hover-card img {
    width: 100%;
    height: 118px;
    object-fit: cover;
    border-radius: 9px;
    margin-bottom: 0.4rem;
}

.event-hover-card h5 {
    margin: 0;
    color: #2f4b80;
    font-size: 0.96rem;
    line-height: 1.3;
}

.event-hover-card p {
    margin: 0.2rem 0 0;
    color: #5f77a7;
    font-size: 0.8rem;
    line-height: 1.35;
}

.event-hover-card a {
    display: inline-block;
    margin-top: 0.35rem;
    color: #3f62d2;
    font-weight: 700;
    text-decoration: none;
}

.event-hover-more {
    color: #4f699b;
    font-weight: 700;
}

.event-list-compact {
    display: grid;
    gap: 0.5rem;
}

.event-list-item {
    text-decoration: none;
    border: 1px solid #dce8ff;
    border-radius: 12px;
    padding: 0.56rem 0.62rem;
    background: rgba(255, 255, 255, 0.86);
}

.event-list-date {
    margin: 0;
    color: #304b7f;
    font-size: 0.82rem;
    font-weight: 800;
}

.event-list-title {
    margin: 0.2rem 0 0;
    color: #385a94;
    font-size: 0.92rem;
    font-weight: 700;
}

.event-list-meta {
    margin: 0.2rem 0 0;
    color: #627ca8;
    font-size: 0.82rem;
}

.event-list-empty {
    margin: 0;
    color: #6d84ad;
}

.dashboard-message-preview {
    border-radius: 16px;
    border: 1px solid #d8e6ff;
    padding: 0.88rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.68rem;
    background: linear-gradient(160deg, rgba(241, 247, 255, 0.9), rgba(255, 255, 255, 0.86));
}

.dashboard-message-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-message-head h4 {
    margin: 0;
    color: #2e497a;
    font-size: 1rem;
}

.message-head-link {
    text-decoration: none;
    color: #3f62d2;
    font-weight: 600;
    font-size: 0.86rem;
}

.dashboard-message-list {
    display: grid;
    gap: 0.48rem;
}

.message-preview-item {
    text-decoration: none;
    border: 1px solid #dce8ff;
    border-radius: 12px;
    padding: 0.5rem 0.58rem;
    background: rgba(255, 255, 255, 0.88);
}

.message-preview-user {
    margin: 0;
    color: #355083;
    font-weight: 700;
    font-size: 0.86rem;
}

.message-preview-text {
    margin: 0.26rem 0 0;
    color: #617ca9;
    font-size: 0.84rem;
}

.message-preview-time {
    margin-top: 0.28rem;
    display: inline-block;
    color: #6f86b0;
    font-size: 0.74rem;
}

.message-preview-empty {
    margin: 0;
    color: #6d83ad;
    font-size: 0.88rem;
}

.dashboard-view-more-btn {
    width: 100%;
    text-align: center;
}


.dashboard-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1100;
}

.dashboard-modal.is-open {
    display: block;
}

.dashboard-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(29, 46, 78, 0.4);
}

.dashboard-modal-content {
    position: relative;
    width: min(480px, 92vw);
    margin: 10vh auto 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d1e3ff;
    border-radius: 16px;
    box-shadow: 0 22px 40px rgba(40, 63, 104, 0.2);
    padding: 1rem;
}

.dashboard-modal-content h4 {
    margin: 0;
    color: #2f4b80;
}

.dashboard-modal-close {
    position: absolute;
    top: 0.3rem;
    right: 0.4rem;
    border: 0;
    background: transparent;
    color: #5d75a4;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.birthday-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.42rem;
}

.birthday-list li {
    border: 1px solid #dce8ff;
    border-radius: 11px;
    padding: 0.5rem 0.58rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    color: #5f77a7;
}

.birthday-list strong {
    color: #355184;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 0.8rem;
}

.dashboard-panel {
    border-radius: 16px;
    border: 1px solid #d8e6ff;
    padding: 1rem;
    transition: all 0.24s ease;
}

.dashboard-panel.panel-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.dashboard-panel.panel-link:hover {
    border-color: #b8d0ff;
    box-shadow: 0 8px 20px rgba(91, 124, 255, 0.15);
    transform: translateY(-2px);
}

.dashboard-panel h4 {
    margin: 0 0 0.35rem;
    color: #314d80;
    font-size: 1rem;
}

.panel-desc {
    margin: 0;
    color: #5a729f;
    font-size: 0.9rem;
}

.quick-link-list {
    display: grid;
    gap: 0.45rem;
}

.quick-link-list a {
    text-decoration: none;
    color: #3b60d7;
    background: rgba(240, 246, 255, 0.72);
    border: 1px solid #d5e3ff;
    border-radius: 10px;
    padding: 0.48rem 0.65rem;
    font-weight: 600;
}

.quick-link-list a:hover {
    background: #3b60d7;
    color: #fff;
    border-color: #3b60d7;
}

.spotlight-line {
    margin: 0.45rem 0;
    color: #5a729f;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .dashboard-user-summary {
        --summary-key-width: 88px;
    }

    .alumni-card-photo {
        height: 210px;
    }

    .about-copy-grid {
        grid-template-columns: 1fr;
    }

    .about-technoadviser {
        flex-direction: column;
        align-items: stretch;
    }

    .leadership-spotlight {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0.9rem;
    }

    .leader-photo-wrap {
        min-height: 200px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .techno-logo-badge {
        width: 100%;
        flex: 0 0 auto;
    }

    .batch-filter-row {
        grid-template-columns: 1fr;
    }

    .modal-photo-grid {
        grid-template-columns: 1fr;
    }

    .modal-photo-box {
        height: 220px;
    }

    .image-lightbox-content {
        max-width: 96vw;
    }

    .image-lightbox-content img {
        max-width: 96vw;
        max-height: 84vh;
    }

    .dashboard-hero,
    .dashboard-panels {
        grid-template-columns: 1fr;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-bottom-grid,
    .chat-shell {
        grid-template-columns: 1fr;
    }
}

.animated-up {
    animation: slideUp 0.62s ease;
}

.delayed {
    animation-delay: 0.16s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .profile-form {
        grid-template-columns: 1fr;
    }

    .mobile-input-row {
        grid-template-columns: minmax(118px, 150px) 1fr;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-visual {
        padding: 0;
        max-width: 620px;
        width: 100%;
        margin-inline: auto;
    }

    .hero-copy {
        text-align: left;
    }
}

@media (max-width: 760px) {
    .top-nav {
        border-radius: 18px;
        top: 0;
        padding: 0.62rem 0.72rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .top-nav .brand {
        align-self: auto;
        padding: 0.05rem 0.2rem;
    }

    .brand-logo {
        height: 58px;
        max-width: min(64vw, 280px);
    }

    .menu-toggle {
        display: inline-flex;
        align-self: auto;
    }

    .top-nav nav {
        width: 100%;
        display: none !important;
        order: 3;
        margin-top: 0.3rem;
    }

    .top-nav.landing-nav .landing-menu {
        display: none !important;
    }

    .top-nav nav.menu-open,
    .top-nav.landing-nav .landing-menu.menu-open {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 0.55rem;
        border-radius: 16px;
        border: 1px solid #d5e3ff;
        background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 255, 0.92));
        box-shadow: 0 12px 28px rgba(75, 108, 172, 0.12);
        animation: menuDropIn 0.28s ease;
    }

    .top-nav a {
        margin-left: 0;
    }

    .top-nav nav a {
        text-align: center;
        padding: 0.4rem 0.5rem;
        font-size: 0.95rem;
    }

    .top-nav nav .nav-dropdown {
        width: 100%;
    }

    .top-nav nav .nav-dropdown-toggle {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .top-nav nav .nav-dropdown-menu {
        position: static;
        right: auto;
        min-width: 0;
        box-shadow: none;
        margin-top: 0.3rem;
        border-radius: 12px;
    }

    .top-nav nav .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }

    .top-nav nav .nav-dropdown.is-open .nav-dropdown-menu {
        display: grid;
    }

    .top-nav.landing-nav .landing-menu {
        width: 100%;
    }

    .top-nav.landing-nav .landing-menu a {
        margin-left: 0;
        text-align: center;
    }

    .top-nav nav.menu-open a,
    .top-nav.landing-nav .landing-menu.menu-open a {
        opacity: 0;
        transform: translateY(8px);
        animation: menuItemIn 0.24s ease forwards;
    }

    .top-nav nav.menu-open a:nth-child(1),
    .top-nav.landing-nav .landing-menu.menu-open a:nth-child(1) {
        animation-delay: 0.04s;
    }

    .top-nav nav.menu-open a:nth-child(2),
    .top-nav.landing-nav .landing-menu.menu-open a:nth-child(2) {
        animation-delay: 0.08s;
    }

    .top-nav nav.menu-open a:nth-child(3),
    .top-nav.landing-nav .landing-menu.menu-open a:nth-child(3) {
        animation-delay: 0.12s;
    }

    .top-nav nav.menu-open a:nth-child(4),
    .top-nav.landing-nav .landing-menu.menu-open a:nth-child(4) {
        animation-delay: 0.16s;
    }

    .top-nav nav.menu-open a:nth-child(5),
    .top-nav.landing-nav .landing-menu.menu-open a:nth-child(5) {
        animation-delay: 0.2s;
    }

    .top-nav nav.menu-open a:nth-child(6),
    .top-nav.landing-nav .landing-menu.menu-open a:nth-child(6) {
        animation-delay: 0.24s;
    }

    .top-nav nav.menu-open a:nth-child(7),
    .top-nav.landing-nav .landing-menu.menu-open a:nth-child(7) {
        animation-delay: 0.28s;
    }

    .main-wrap {
        width: 95%;
        margin-top: 1rem;
        margin-bottom: 1.4rem;
    }

    .site-branding {
        margin-bottom: 0.8rem;
    }

    .brand-pill {
        font-size: 0.8rem;
        padding: 0.42rem 0.72rem;
    }


    @media (max-width: 900px) {
        .dashboard-hero {
            grid-template-columns: 1fr;
        }

        .dashboard-profile-left {
            padding: 0.25rem 0.1rem;
        }

        .dashboard-user-row {
            grid-template-columns: 210px minmax(0, 1fr);
            gap: 0.75rem;
            align-items: start;
        }

        .dashboard-user-photo {
            width: 100%;
            height: 170px;
            min-height: 170px;
            border-radius: 10px;
        }

        .dashboard-user-summary {
            row-gap: 0.42rem;
            flex-wrap: wrap;
        }

        .summary-item+.summary-item::before {
            display: none;
        }

        .dashboard-profile-right {
            margin-top: 0.35rem;
            justify-self: stretch;
            width: 100%;
            grid-template-columns: 1fr;
        }

        .dashboard-wire-item {
            min-height: 66px;
        }
    }

    .hero,
    .panel {
        padding: 1rem;
        border-radius: 18px;
    }

    .hero-grid {
        padding: 1rem;
    }

    .hero-copy h1 {
        font-size: clamp(1.9rem, 9vw, 2.35rem);
    }

    .hero-sub,
    .quote {
        font-size: 0.98rem;
    }

    .cta-group {
        gap: 0.55rem;
    }

    .cta-group .btn {
        width: 100%;
        text-align: center;
    }

    .hidden-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-actions .btn {
        width: 100%;
        text-align: center;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr;
    }

    .dashboard-bottom-grid,
    .chat-shell {
        grid-template-columns: 1fr;
    }

    .metric-card h3 {
        font-size: 1.55rem;
    }

    .request-table {
        min-width: 560px;
    }

    .profile-modal-content {
        width: 96vw;
        max-height: calc(100vh - 2rem);
        padding: 0.9rem;
    }
}

@media (max-width: 520px) {
    .top-nav .brand {
        text-align: center;
    }

    .brand-logo {
        height: 52px;
        max-width: 240px;
    }

    .top-nav nav.menu-open {
        grid-template-columns: 1fr;
    }

    .top-nav.landing-nav .landing-menu.menu-open {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: clamp(1.55rem, 8.8vw, 2rem);
    }

    .hero-sub,
    .quote {
        font-size: 0.92rem;
    }

    .dashboard-shell {
        gap: 0.75rem;
    }

    .dashboard-hero,
    .metric-card,
    .dashboard-panel {
        border-radius: 14px;
    }

    .panel-head p,
    .panel-desc,
    .metric-card small {
        font-size: 0.86rem;
    }

    .contact-info-card,
    .about-copy-card {
        padding: 0.82rem;
    }
}

@keyframes menuDropIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes menuItemIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-years-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 0.7rem;
}

[data-year-field].is-hidden {
    display: none;
}

.course-limit-hint {
    margin: 0;
    color: #6a7fa9;
    font-size: 0.84rem;
}

.file-upload-hint {
    margin: 0.42rem 0 0;
    color: #6a7fa9;
    font-size: 0.82rem;
}

.file-upload-hint.has-file {
    color: #2c8b57;
    font-weight: 600;
}

#add-course-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 820px) {
    .course-years-grid {
        grid-template-columns: 1fr;
    }
}

/* Course row overflow fix */
.course-row-grid {
    grid-template-columns: minmax(220px, 1.2fr) minmax(0, 1fr);
}

.course-years-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-years-grid .input-control {
    min-width: 0;
}

@media (max-width: 1200px) {
    .course-row-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure course dropdown text is always visible across browser themes */
.course-name-select {
    color: #1f2a44 !important;
    background-color: rgba(255, 255, 255, 0.92) !important;
    -webkit-text-fill-color: #1f2a44;
    color-scheme: light;
}

.course-name-select option {
    color: #1f2a44;
    background-color: #ffffff;
}

/* Keep profile modal centered and fully usable from any scroll position */
.profile-modal.show {
    align-items: center;
    padding: 1rem;
}

.profile-modal {
    overscroll-behavior: contain;
}

.dashboard-marquee-wrap {
    border-radius: 16px;
    border: 1px solid #d8e6ff;
    padding: 0.55rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(115deg, rgba(235, 244, 255, 0.9), rgba(238, 252, 255, 0.9));
    overflow: hidden;
}

.marquee-label {
    flex: 0 0 auto;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #35568a;
    border: 1px solid #cfe1ff;
    background: rgba(255, 255, 255, 0.92);
}

.dashboard-marquee {
    width: 100%;
    color: #365381;
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
}

.promo-slider-wrap {
    border-radius: 16px;
    border: 1px solid #d8e6ff;
    padding: 0.36rem;
    background: linear-gradient(120deg, rgba(237, 245, 255, 0.94), rgba(236, 252, 255, 0.92));
}

.promo-block {
    margin-bottom: 0.8rem;
}

.promo-slider-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.34rem;
}

.promo-slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 6 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    border: 0;
}

.promo-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-slide.active {
    opacity: 1;
}

.promo-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.promo-slide-caption {
    margin: 0;
    min-height: 1.05rem;
    color: #486292;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0 0.2rem;
    text-align: left;
    flex: 1;
}

.promo-dots {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
}

.promo-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: #bfd2f5;
    cursor: pointer;
}

.promo-dot.active {
    background: #3f66b5;
}

.promo-cta-row {
    display: flex;
    justify-content: flex-end;
}

.promo-add-btn {
    text-decoration: none;
    border: 1px solid #bcd3ff;
    color: #395ba8;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 0.24rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.promo-add-btn:hover {
    background: #3f66b5;
    color: #fff;
    border-color: #3f66b5;
}

.page-my-batch {
    overflow-x: clip;
}

.page-my-batch .main-wrap,
.page-my-batch .my-batch-panel,
.page-my-batch .dashboard-marquee-wrap {
    overflow-x: clip;
}

@media (max-width: 760px) {
    .promo-slider-track {
        aspect-ratio: 1080 / 420;
    }

    .page-my-batch .top-nav,
    .page-my-batch .main-wrap,
    .page-my-batch .my-batch-panel,
    .page-my-batch .dashboard-marquee-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .page-my-batch .card-grid,
    .page-my-batch .alumni-card,
    .page-my-batch .batch-filter-row,
    .page-my-batch .batch-filter-row .field-box {
        min-width: 0;
    }

    .dashboard-marquee-wrap {
        gap: 0.45rem;
        padding: 0.5rem 0.7rem;
        margin-bottom: 0.6rem;
    }

    .promo-slider-wrap {
        padding: 0.32rem 0.32rem 0.42rem;
        margin-bottom: 0.6rem;
    }

    .promo-slider-track {
        height: clamp(116px, 32vw, 150px);
    }

    .marquee-label {
        font-size: 0.72rem;
        padding: 0.24rem 0.5rem;
    }

    .dashboard-marquee {
        font-size: 0.87rem;
    }
}

/* Global responsiveness hardening for all pages */
img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

textarea,
input,
select,
button {
    max-width: 100%;
}

.member-info-text,
.modal-details p,
.about-copy-card p,
.contact-info-card p,
.panel-head p,
.dashboard-sub,
.spotlight-line {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.site-branding {
    width: min(1160px, 96vw);
    margin: 1rem auto 0.9rem;
    padding: 0 0.25rem;
}

.brand-pill {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.38rem 0.6rem;
    text-align: center;
}

.brand-pill small {
    flex-basis: 100%;
    margin: 0.1rem 0 0;
    max-width: 74ch;
    line-height: 1.42;
}

@media (max-width: 1100px) {
    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .batch-filter-row {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }

    .complete-filter-row {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
}

@media (max-width: 900px) {
    .about-technoadviser>div:last-child {
        min-width: 0;
    }

    .profile-modal.show {
        align-items: flex-start;
    }

    .profile-modal-content {
        width: min(900px, 96vw);
    }
}

@media (max-width: 760px) {

    .main-wrap,
    .site-branding {
        width: min(100%, 96vw);
    }

    .batch-filter-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .complete-filter-row {
        grid-template-columns: 1fr;
    }

    .complete-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .complete-reset-top-btn {
        width: 100%;
        min-width: 0;
    }

    .complete-summary-strip span {
        width: 100%;
        text-align: center;
    }

    .view-mode-switch {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .mode-option {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-actions .btn {
        min-width: 0;
        width: 100%;
    }

    .batch-filter-row .field-box {
        min-width: 0;
    }

    .top-nav {
        width: min(100%, 96vw);
        margin-top: 0.6rem;
    }

    .top-nav .brand {
        font-size: 1.1rem;
    }

    .top-nav nav.menu-open,
    .top-nav.landing-nav .landing-menu.menu-open {
        grid-template-columns: 1fr;
    }

    .request-table {
        min-width: 520px;
    }

    .table-shell {
        -webkit-overflow-scrolling: touch;
    }

    .profile-modal.show {
        padding: 0.7rem;
    }

    .profile-modal-content,
    .report-modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 14px;
    }

    .card-action-row,
    .table-actions,
    .dashboard-actions,
    .cta-group,
    .message-filter-bar {
        gap: 0.45rem;
    }

    .table-actions form,
    .dashboard-actions .btn,
    .cta-group .btn {
        width: 100%;
    }

    .table-actions .btn,
    .btn-mini {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {

    .panel,
    .hero,
    .dashboard-hero,
    .dashboard-panel,
    .metric-card,
    .about-copy-card,
    .contact-info-card,
    .about-technoadviser {
        border-radius: 14px;
    }

    .request-table {
        min-width: 460px;
    }

    .modal-photo-box {
        height: 200px;
    }

    .visual-main {
        min-height: 170px;
    }

    .brand-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
        border-radius: 14px;
        padding: 0.58rem 0.68rem;
    }

    .dashboard-user-row {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 0.7rem;
    }

    .dashboard-profile-left {
        padding: 0.2rem 0;
    }

    .dashboard-user-chips .profile-chip+.profile-chip {
        padding-left: 0.55rem;
    }

    .dashboard-user-chips .profile-chip+.profile-chip::before {
        left: 0.22rem;
        height: 12px;
    }

    .dashboard-user-photo {
        width: 84px;
        height: 84px;
    }

    .dashboard-user-details h2 {
        font-size: 1.55rem;
    }

    .summary-item {
        width: 100%;
        padding: 0;
    }

    .summary-item+.summary-item::before {
        display: none;
    }

    .summary-key {
        font-size: 0.68rem;
    }

    .brand-pill small {
        font-size: 0.85rem;
    }
}

/* Dedicated footer styles */
.site-footer {
    width: min(1160px, 96vw);
    margin: 1.1rem auto 0.9rem;
    padding: 0 0.2rem;
}

.site-footer-pill {
    width: 100%;
    border-radius: 20px;
    border: 1px solid #d8e4ff;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 18px rgba(76, 104, 160, 0.1);
    padding: 0.72rem 1rem;
    text-align: center;
}

.site-footer-lead,
.site-footer-copy {
    margin: 0;
    color: #5a709f;
    overflow-wrap: anywhere;
}

.site-footer-lead {
    font-weight: 600;
    font-size: 0.96rem;
}

.site-footer-lead a {
    color: #2f59cd;
    font-weight: 700;
    text-decoration: none;
}

.site-footer-lead a:hover {
    text-decoration: underline;
}

.site-footer-copy {
    margin-top: 0.16rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 760px) {
    .site-footer {
        width: min(100%, 96vw);
        margin-top: 0.8rem;
    }

    .site-footer-pill {
        border-radius: 14px;
        padding: 0.62rem 0.72rem;
    }

    .site-footer-lead {
        font-size: 0.9rem;
    }

    .site-footer-copy {
        font-size: 0.82rem;
    }
}

@media (max-width: 420px) {
    .site-footer {
        width: 100%;
        padding: 0 0.15rem;
    }

    .site-footer-pill {
        border-radius: 12px;
        padding: 0.56rem 0.62rem;
    }

    .site-footer-lead {
        font-size: 0.84rem;
    }

    .site-footer-copy {
        margin-top: 0.2rem;
        font-size: 0.78rem;
        line-height: 1.34;
    }
}

/* My Batch hardening for small screens */
@media (max-width: 760px) {
    .my-batch-panel {
        padding: 0.85rem;
        overflow: hidden;
    }

    .my-batch-panel .panel-head {
        margin-bottom: 0.7rem;
    }

    .my-batch-panel .card-grid {
        margin-top: 0.8rem;
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .my-batch-panel .alumni-card {
        border-radius: 14px;
    }

    .my-batch-panel .alumni-card-photo {
        height: 205px;
    }

    /* Disable 3D flip on small screens to avoid mobile render glitches */
    .my-batch-panel .flip-card-inner {
        transform: none !important;
        transition: none;
    }

    .my-batch-panel .flip-card-back {
        display: none;
    }

    .my-batch-panel .flip-card-front,
    .my-batch-panel .flip-card-back {
        position: absolute;
        inset: 0;
        backface-visibility: visible;
    }

    .my-batch-panel .member-meta {
        padding: 0.68rem 0.5rem 0.35rem;
    }

    .my-batch-panel .member-info-row {
        margin: 0.25rem 0;
        font-size: 0.9rem;
    }

    .my-batch-panel .card-action-row {
        margin-top: 0.45rem;
    }

    .my-batch-panel .card-icon-btn,
    .my-batch-panel .eye-icon-btn,
    .my-batch-panel .report-icon-btn {
        width: 32px;
        height: 32px;
    }

    .my-batch-panel .batch-filter-row {
        grid-template-columns: 1fr !important;
        gap: 0.55rem;
    }

    .my-batch-panel .field-box {
        min-height: 0;
        padding: 0.06rem 0;
    }

    .my-batch-panel .input-control {
        min-height: 40px;
        font-size: 0.98rem;
    }

    .my-batch-panel .message,
    .my-batch-panel p {
        overflow-wrap: anywhere;
    }

    .animated-up {
        animation: none;
    }
}

@media (max-width: 420px) {
    .my-batch-panel {
        padding: 0.72rem;
    }

    .my-batch-panel .alumni-card-photo {
        height: 190px;
    }

    .my-batch-panel .member-name-row {
        font-size: 0.96rem;
    }

    .my-batch-panel .member-info-row {
        font-size: 0.86rem;
    }
}

@media (max-width: 420px) {

    .main-wrap,
    .site-branding,
    .top-nav {
        width: 100%;
    }

    .page-landing .main-wrap {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .hero-grid,
    .hero,
    .panel {
        padding: 0.82rem;
    }

    .btn {
        padding: 0.66rem 0.92rem;
        font-size: 0.93rem;
    }

    .batch-filter-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .complete-filter-row {
        gap: 0.5rem;
    }

    .batch-filter-row .field-box {
        min-height: 0;
    }

    .site-branding {
        padding: 0 0.15rem;
    }

    .brand-pill {
        gap: 0.26rem 0.5rem;
        font-size: 0.79rem;
    }

    .brand-pill small {
        font-size: 0.8rem;
    }

    .request-table {
        min-width: 400px;
    }

    .list-view-filter-row .search-field {
        grid-column: span 1;
    }

    .list-search-row {
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .list-search-row .input-control {
        max-width: none;
    }

    .list-filter-actions {
        width: 100%;
    }

    .list-filter-actions .btn {
        flex: 1;
        min-width: 0;
    }

    .modal-close-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .image-lightbox-close {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .mobile-input-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Dashboard mobile layout hardening */
@media (max-width: 760px) {
    .dashboard-hero {
        padding: 0.85rem;
        gap: 0.72rem;
    }

    .dashboard-user-row {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .dashboard-user-photo {
        width: 100%;
        height: min(62vw, 240px);
        min-height: 0;
        border-radius: 12px;
    }

    .dashboard-user-details {
        text-align: center;
    }

    .dashboard-user-chips {
        justify-content: center;
    }

    .dashboard-user-summary {
        --summary-key-width: 1fr;
    }

    .dashboard-user-details h2 {
        font-size: 1.6rem;
    }

    .summary-row {
        display: grid;
        gap: 0.28rem;
    }

    .summary-item {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0;
        white-space: normal;
        text-align: center;
        row-gap: 0.08rem;
    }

    .summary-item+.summary-item::before {
        display: none;
    }

    .summary-key {
        letter-spacing: 0.07em;
    }

    .summary-value {
        overflow-wrap: anywhere;
    }

    .dashboard-profile-right {
        grid-template-columns: 1fr;
        gap: 0.52rem;
    }

    .dashboard-wire-item {
        width: 100%;
        min-height: 64px;
        padding: 0.58rem 0.62rem;
    }

    .tile-sub {
        white-space: normal;
        overflow: visible;
    }

    .dashboard-events-head {
        flex-wrap: wrap;
    }

    .dashboard-events-switch {
        width: 100%;
    }

    .event-mode-btn {
        flex: 1;
        text-align: center;
    }

    .calendar-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .event-select {
        max-width: none;
    }

    .event-calendar-cell {
        min-height: 48px;
        border-radius: 9px;
        padding: 0.24rem;
    }

    .event-calendar-weekday {
        font-size: 0.68rem;
        padding: 0.12rem 0;
    }

    .event-day-number {
        font-size: 0.75rem;
    }
}

@media (max-width: 420px) {
    .dashboard-user-summary {
        --summary-key-width: 1fr;
    }

    .dashboard-user-photo {
        width: 100%;
        height: min(68vw, 220px);
    }

    .dashboard-user-details h2 {
        font-size: 1.42rem;
    }

    .wire-label {
        font-size: 0.81rem;
    }

    .tile-sub {
        font-size: 0.69rem;
    }

    .calendar-controls {
        grid-template-columns: 1fr;
    }

    .event-calendar-grid {
        gap: 0.2rem;
    }

    .event-calendar-cell {
        min-height: 44px;
    }
}