*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.theme-light {
    --bapsi-bg: #f2f6fc;
    --bapsi-surface: #ffffff;
    --bapsi-surface-soft: #ecf2fa;
    --bapsi-text: #131f33;
    --bapsi-muted: #5f708b;
    --bapsi-border: rgba(19, 31, 51, 0.14);
    --bapsi-accent: #ff8a3d;
    --bapsi-accent-strong: #f0731d;
    --bapsi-dark: #15202b;
    --bapsi-hero: linear-gradient(130deg, #1d2f4f, #274f7d 48%, #2e7ea8);
    --bapsi-footer-bg: linear-gradient(160deg, #dfe8f5, #d3deef);
    --bapsi-card-shadow: 0 20px 40px rgba(19, 31, 51, 0.14);
}

body.theme-dark,
body.dark-mode {
    --bapsi-bg: #15202b;
    --bapsi-surface: #1e2732;
    --bapsi-surface-soft: #263241;
    --bapsi-text: #edf3fa;
    --bapsi-muted: #b0bdd0;
    --bapsi-border: rgba(255, 255, 255, 0.14);
    --bapsi-accent: #ff8a3d;
    --bapsi-accent-strong: #ffa25d;
    --bapsi-dark: #0f1721;
    --bapsi-hero: linear-gradient(130deg, #11243b, #17395b 48%, #1f5a73);
    --bapsi-footer-bg: linear-gradient(160deg, #10171f, #161d27);
    --bapsi-card-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}

body {
    margin: 0;
    color: var(--bapsi-text);
    background: radial-gradient(circle at 8% -10%, rgba(255, 138, 61, 0.22), transparent 34%), var(--bapsi-bg);
    font-family: "Space Grotesk", sans-serif;
    transition: background-color 0.28s ease, color 0.28s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    line-height: 1.75;
}

.note-editor.note-frame.is-invalid {
    border-color: #dc3545;
}

.title {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sub-title {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bapsi-accent-strong);
}

.btn-theme {
    border: 1px solid var(--bapsi-border);
    color: var(--bapsi-text);
    background: color-mix(in srgb, var(--bapsi-surface) 82%, transparent);
}

.btn-theme:hover {
    border-color: var(--bapsi-accent);
    color: var(--bapsi-accent-strong);
}

.btn-accent {
    border: 1px solid var(--bapsi-accent);
    background: var(--bapsi-accent);
    color: #fff;
    font-weight: 700;
}

.btn-accent:hover {
    border-color: var(--bapsi-accent-strong);
    background: var(--bapsi-accent-strong);
    color: #fff;
}

.btn1,
.btn2 {
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.btn1 {
    color: var(--bapsi-dark);
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 33, 0.24);
}

.btn2 {
    color: #fff;
    background: var(--bapsi-accent);
    box-shadow: 0 10px 22px rgba(255, 138, 61, 0.34);
}

.btn1:hover,
.btn2:hover {
    transform: translateY(-2px);
}

.btn2:hover {
    background: var(--bapsi-accent-strong);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0;
}

.theme-switch .theme-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #2196f3;
    transition: 0.4s;
    z-index: 0;
    overflow: hidden;
}

.theme-switch .sun-moon {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: yellow;
    transition: 0.4s;
}

.theme-switch .theme-input:checked + .slider {
    background-color: #111;
}

.theme-switch .theme-input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

.theme-switch .theme-input:checked + .slider .sun-moon {
    transform: translateX(26px);
    background-color: #fff;
    animation: rotate-center 0.6s ease-in-out both;
}

.theme-switch .moon-dot {
    opacity: 0;
    transition: 0.4s;
    fill: gray;
}

.theme-switch .theme-input:checked + .slider .sun-moon .moon-dot {
    opacity: 1;
}

.theme-switch .slider.round {
    border-radius: 34px;
}

.theme-switch .slider.round .sun-moon {
    border-radius: 50%;
}

.theme-switch #moon-dot-1 {
    position: absolute;
    left: 10px;
    top: 3px;
    width: 6px;
    height: 6px;
    z-index: 4;
}

.theme-switch #moon-dot-2 {
    position: absolute;
    left: 2px;
    top: 10px;
    width: 10px;
    height: 10px;
    z-index: 4;
}

.theme-switch #moon-dot-3 {
    position: absolute;
    left: 16px;
    top: 18px;
    width: 3px;
    height: 3px;
    z-index: 4;
}

.theme-switch #light-ray-1 {
    position: absolute;
    left: -8px;
    top: -8px;
    width: 43px;
    height: 43px;
    z-index: -1;
    fill: #fff;
    opacity: 10%;
}

.theme-switch #light-ray-2 {
    position: absolute;
    left: -50%;
    top: -50%;
    width: 55px;
    height: 55px;
    z-index: -1;
    fill: #fff;
    opacity: 10%;
}

.theme-switch #light-ray-3 {
    position: absolute;
    left: -18px;
    top: -18px;
    width: 60px;
    height: 60px;
    z-index: -1;
    fill: #fff;
    opacity: 10%;
}

.theme-switch .cloud-light {
    position: absolute;
    fill: #eee;
    animation: cloud-move 6s infinite;
}

.theme-switch .cloud-dark {
    position: absolute;
    fill: #ccc;
    animation: cloud-move 6s 1s infinite;
}

.theme-switch #cloud-1 {
    left: 30px;
    top: 15px;
    width: 40px;
}

.theme-switch #cloud-2 {
    left: 44px;
    top: 10px;
    width: 20px;
}

.theme-switch #cloud-3 {
    left: 18px;
    top: 24px;
    width: 30px;
}

.theme-switch #cloud-4 {
    left: 36px;
    top: 18px;
    width: 40px;
}

.theme-switch #cloud-5 {
    left: 48px;
    top: 14px;
    width: 20px;
}

.theme-switch #cloud-6 {
    left: 22px;
    top: 26px;
    width: 30px;
}

@keyframes cloud-move {
    0% {
        transform: translateX(0px);
    }

    40% {
        transform: translateX(4px);
    }

    80% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0px);
    }
}

.theme-switch .stars {
    transform: translateY(-32px);
    opacity: 0;
    transition: 0.4s;
}

.theme-switch .star {
    fill: #fff;
    position: absolute;
    transition: 0.4s;
    animation: star-twinkle 2s infinite;
}

.theme-switch .theme-input:checked + .slider .stars {
    transform: translateY(0);
    opacity: 1;
}

.theme-switch #star-1 {
    width: 20px;
    top: 2px;
    left: 3px;
    animation-delay: 0.3s;
}

.theme-switch #star-2 {
    width: 6px;
    top: 16px;
    left: 3px;
}

.theme-switch #star-3 {
    width: 12px;
    top: 20px;
    left: 10px;
    animation-delay: 0.6s;
}

.theme-switch #star-4 {
    width: 18px;
    top: 0px;
    left: 18px;
    animation-delay: 1.3s;
}

@keyframes star-twinkle {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.2);
    }

    80% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes rotate-center {
    0% {
        transform: translateX(26px) rotate(0deg);
    }

    100% {
        transform: translateX(26px) rotate(360deg);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 30px), 0) scale(var(--reveal-scale, 0.985));
    filter: blur(var(--reveal-blur, 8px));
    transition:
        opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.72s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.reveal-up {
    --reveal-x: 0;
    --reveal-y: 30px;
    --reveal-scale: 0.985;
    --reveal-blur: 8px;
}

.reveal-left {
    --reveal-x: -36px;
    --reveal-y: 20px;
    --reveal-scale: 0.985;
    --reveal-blur: 8px;
}

.reveal-right {
    --reveal-x: 36px;
    --reveal-y: 20px;
    --reveal-scale: 0.985;
    --reveal-blur: 8px;
}

.reveal-zoom {
    --reveal-x: 0;
    --reveal-y: 18px;
    --reveal-scale: 0.94;
    --reveal-blur: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

.landing-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.landing-header.is-scrolled .topnav {
    border-color: var(--bapsi-border);
    box-shadow: var(--bapsi-card-shadow);
    background: color-mix(in srgb, var(--bapsi-surface) 86%, transparent);
}

.landing-header.is-scrolled .topnav .logo,
.landing-header.is-scrolled .topnav .icon,
.landing-header.is-scrolled .topnav-links > a,
.landing-header.is-scrolled .dropbtn {
    color: var(--bapsi-text);
}

.landing-header.is-scrolled .topnav-links > a:hover,
.landing-header.is-scrolled .dropbtn:hover {
    background: var(--bapsi-surface-soft);
}

.topnav {
    width: min(1200px, calc(100% - 2rem));
    margin: 0.9rem auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.95rem;
    padding: 0.6rem 0.9rem;
    background: color-mix(in srgb, var(--bapsi-dark) 28%, transparent);
    backdrop-filter: blur(8px);
}

.topnav .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    font-family: "Outfit", sans-serif;
    font-size: 1.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    margin-right: auto;
}

.topnav .logo-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.topnav .logo-text {
    line-height: 1;
}

.topnav-links {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.topnav-links > a,
.dropbtn {
    color: #f7fbff;
    font-size: 0.94rem;
    padding: 0.62rem 0.78rem;
    border-radius: 0.6rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.topnav-links > a:hover,
.dropbtn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.dropdown {
    position: relative;
}

.dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.55rem;
}

.dropbtn {
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 0.35rem);
    min-width: 220px;
    padding: 0.35rem;
    border-radius: 0.8rem;
    border: 1px solid var(--bapsi-border);
    background: color-mix(in srgb, var(--bapsi-surface) 95%, transparent);
    box-shadow: var(--bapsi-card-shadow);
}

.dropdown-content a {
    display: block;
    color: var(--bapsi-text);
    padding: 0.5rem 0.62rem;
    border-radius: 0.55rem;
}

.dropdown-content a:hover {
    background: var(--bapsi-surface-soft);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

.topnav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topnav .icon {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    display: none;
}

.main-hero {
    position: relative;
    min-height: 100vh;
    padding-top: 6rem;
    overflow: clip;
    background: var(--bapsi-hero);
}

.main-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 40% 35%, black 32%, transparent 80%);
    pointer-events: none;
}

.hero-top {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.15rem 0 0.8rem;
    position: relative;
}

.hero-wrap {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0 2.4rem;
    position: relative;
}

.hero-slider {
    position: relative;
    width: 100%;
    min-height: clamp(420px, 72vh, 640px);
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.hero-top-slider {
    min-height: clamp(340px, 58vh, 560px);
}

.hero-copy {
    color: #fff;
}

.hero-copy .sub-title {
    color: rgba(255, 255, 255, 0.78);
}

.hero-copy .title {
    font-size: clamp(2rem, 4.9vw, 3.95rem);
    line-height: 1.04;
    margin: 0.8rem 0 1rem;
    max-width: 700px;
}

.hero-copy p {
    margin: 0;
    max-width: 590px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    margin-top: 1.3rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    display: flex;
    align-items: flex-end;
    padding: clamp(1rem, 2.2vw, 1.6rem);
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 16, 27, 0.08) 0%, rgba(7, 16, 27, 0.76) 100%),
        linear-gradient(130deg, rgba(255, 138, 61, 0.18), transparent 50%);
}

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

.hero-slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: min(720px, 86%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: clamp(0.95rem, 1.9vw, 1.35rem);
    background: color-mix(in srgb, #0a1726 62%, transparent);
    backdrop-filter: blur(4px);
}

.hero-slide-content span {
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.hero-slide-content h3 {
    margin: 0.48rem 0 0.5rem;
    font-size: clamp(1.35rem, 3.2vw, 2.35rem);
    font-family: "Outfit", sans-serif;
    line-height: 1.12;
}

.hero-slide-content p {
    margin: 0;
    font-size: clamp(0.92rem, 1.6vw, 1.02rem);
    color: rgba(255, 255, 255, 0.86);
}

.hero-link {
    display: inline-flex;
    margin-top: 0.85rem;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.22);
}

.hero-link:hover {
    background: rgba(0, 0, 0, 0.34);
    color: #fff;
}

.hero-nav {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.75rem;
    pointer-events: none;
}

.btn-hero-nav {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.2rem;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.46);
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-hero-nav:hover {
    color: #fff;
    transform: scale(1.08);
}

.btn-hero-nav:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.62);
    outline-offset: 4px;
}

.btn-hero-nav i {
    font-size: 1.85rem;
    line-height: 1;
    pointer-events: none;
}

.hero-dots-overlay {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.22);
}

.hero-dot.is-active {
    background: var(--bapsi-accent);
    border-color: var(--bapsi-accent);
}

.hero-side-image {
    min-height: 360px;
    display: grid;
    place-items: center;
}

.hero-side-image img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
}

.hero-side-image.hero-side-image--plain {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.hero-side-image.hero-side-image--plain img {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.section0,
.team-section,
.news-section,
.chairman-section {
    padding: 4.2rem 0;
}

.team-section {
    background: color-mix(in srgb, var(--bapsi-surface) 94%, transparent);
    border-top: 1px solid var(--bapsi-border);
    border-bottom: 1px solid var(--bapsi-border);
}

.section0 .container,
.team-section .container,
.news-section .container,
.chairman-section .container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.banner {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2rem;
}

.banner .title {
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.banner .sub-title {
    margin-top: 0.65rem;
    color: var(--bapsi-muted);
    letter-spacing: 0;
    text-transform: none;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem 1rem;
}

.team-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0.25rem 0.15rem;
    text-align: center;
}

.team-card img {
    width: min(100%, 320px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #37a8ea;
    display: block;
    margin: 0 auto;
}

.team-meta {
    padding: 0.85rem 0 0;
}

.team-meta h3 {
    margin: 0;
    font-size: 1.08rem;
    font-family: "Outfit", sans-serif;
}

.team-meta p {
    margin: 0.32rem 0 0;
    font-size: 0.9rem;
    color: var(--bapsi-muted);
}

.section0 .card {
    border-radius: 1rem;
    border: 1px solid var(--bapsi-border);
    background: var(--bapsi-surface);
    box-shadow: var(--bapsi-card-shadow);
    padding: 1.2rem 1.2rem 1.3rem;
}

.card-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(125deg, #296bd5, #3f41d9);
    margin-bottom: 0.75rem;
}

.section0 .card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.25rem;
    font-family: "Outfit", sans-serif;
}

.section0 .card p {
    margin: 0;
    color: var(--bapsi-muted);
}

.news-section {
    background: color-mix(in srgb, var(--bapsi-surface) 92%, transparent);
    border-top: 1px solid var(--bapsi-border);
    border-bottom: 1px solid var(--bapsi-border);
}

.news-page-main {
    padding-top: 6rem;
    min-height: 100vh;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.news-card {
    border-radius: 1rem;
    border: 1px solid var(--bapsi-border);
    background: var(--bapsi-surface);
    box-shadow: var(--bapsi-card-shadow);
    padding: 1.2rem;
}

.news-date {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bapsi-accent-strong);
}

.news-card h3 {
    margin: 0.5rem 0;
    font-size: 1.22rem;
    font-family: "Outfit", sans-serif;
}

.news-card p {
    margin: 0;
    color: var(--bapsi-muted);
}

.news-card a {
    display: inline-flex;
    margin-top: 0.65rem;
    color: var(--bapsi-accent-strong);
    font-weight: 700;
}

.news-detail-card {
    border-radius: 1rem;
    border: 1px solid var(--bapsi-border);
    background: var(--bapsi-surface);
    box-shadow: var(--bapsi-card-shadow);
    padding: clamp(1.2rem, 2.4vw, 2rem);
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
    color: var(--bapsi-accent-strong);
    font-weight: 700;
}

.news-detail-card .title {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    margin-bottom: 0.85rem;
    text-align: center;
}

.news-detail-image {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid var(--bapsi-border);
    margin-bottom: 1rem;
}

.news-content {
    color: var(--bapsi-text);
}

.news-content > *:last-child {
    margin-bottom: 0;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.news-content a {
    color: var(--bapsi-accent-strong);
    text-decoration: underline;
}

.news-pagination {
    margin-top: 1.2rem;
}

.news-pagination .pagination {
    justify-content: center;
}

.chairman-wrap {
    border-radius: 1.15rem;
    border: 1px solid var(--bapsi-border);
    background: var(--bapsi-surface);
    box-shadow: var(--bapsi-card-shadow);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
}

.chairman-copy .title {
    margin: 0.62rem 0 0.75rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.chairman-copy p {
    margin: 0 0 0.65rem;
    color: var(--bapsi-muted);
}

.chairman-copy strong {
    display: block;
    margin-top: 0.95rem;
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
}

.chairman-copy small {
    color: var(--bapsi-muted);
}

.chairman-visual {
    min-height: 340px;
    border-radius: 1rem;
    border: 1px dashed var(--bapsi-border);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 48% 42%, rgba(255, 138, 61, 0.25), transparent 65%), var(--bapsi-surface-soft);
}

.ring {
    position: absolute;
    border: 1px solid color-mix(in srgb, var(--bapsi-accent) 64%, transparent);
    border-radius: 50%;
    animation: spin 14s linear infinite;
}

.ring-2 {
    width: 180px;
    height: 180px;
    animation-duration: 20s;
    animation-direction: reverse;
}

.ring-3 {
    width: 270px;
    height: 270px;
    animation-duration: 28s;
}

.core {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-family: "Outfit", sans-serif;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--bapsi-accent), #f06d2a);
    box-shadow: 0 12px 26px rgba(255, 138, 61, 0.42);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.bapsi-landing footer {
    position: relative;
    margin-top: 4.8rem;
    padding-top: 2.1rem;
    background: var(--bapsi-footer-bg);
    color: #13243c;
    overflow: visible;
}

body.bapsi-landing.dark-mode footer,
body.bapsi-landing.theme-dark footer {
    background: var(--bapsi-footer-bg);
}

.bapsi-landing footer::before {
    content: "";
    position: absolute;
    top: -84px;
    left: 0;
    width: 100%;
    height: 86px;
    background: var(--bapsi-footer-bg);
    clip-path: ellipse(72% 100% at 50% 100%);
    pointer-events: none;
}

.bapsi-landing .footer {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.2rem 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 1rem;
}

.bapsi-landing .footer .title {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.bapsi-landing .footer p {
    margin: 0.3rem 0;
    color: rgba(19, 36, 60, 0.85);
}

.bapsi-landing .logo-footer {
    font-family: "Outfit", sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.bapsi-landing .footer a:hover {
    color: var(--bapsi-accent);
}

.bapsi-landing .sub-footer {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(19, 36, 60, 0.62);
    border-top: 1px solid rgba(19, 36, 60, 0.2);
    padding: 0.8rem 0;
}

body.bapsi-landing.dark-mode .footer p,
body.bapsi-landing.theme-dark .footer p {
    color: rgba(239, 244, 251, 0.82);
}

body.bapsi-landing.dark-mode .sub-footer,
body.bapsi-landing.theme-dark .sub-footer {
    color: rgba(239, 244, 251, 0.65);
    border-top: 1px solid rgba(239, 244, 251, 0.18);
}

.bapsi-landing #scroll-up {
    position: fixed;
    right: 1.3rem;
    bottom: 1.3rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--bapsi-border);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    background: color-mix(in srgb, var(--bapsi-surface) 90%, transparent);
    box-shadow: var(--bapsi-card-shadow);
    z-index: 1001;
}

@media (max-width: 1080px) {
    .hero-wrap {
        grid-template-columns: 1fr;
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .topnav .logo {
        margin-right: 0;
    }
}

@media (max-width: 860px) {
    .topnav {
        flex-wrap: wrap;
    }

    .topnav .icon {
        display: block;
        margin-left: auto;
    }

    .topnav-links,
    .topnav-actions {
        width: 100%;
        display: none;
    }

    .topnav.is-open .topnav-links,
    .topnav.is-open .topnav-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .topnav.is-open .topnav-links > a,
    .topnav.is-open .dropbtn {
        width: 100%;
        background: rgba(255, 255, 255, 0.08);
    }

    .topnav.is-open .dropdown {
        width: 100%;
    }

    .topnav.is-open .dropdown-content {
        position: static;
        margin-top: 0.25rem;
        width: 100%;
    }

    .cards-grid,
    .team-grid,
    .news-grid,
    .chairman-wrap,
    .bapsi-landing .footer {
        grid-template-columns: 1fr;
    }

    .chairman-visual {
        min-height: 270px;
    }
}

@media (max-width: 600px) {
    .main-hero {
        padding-top: 5rem;
    }

    .hero-slider {
        min-height: 380px;
    }

    .hero-top {
        padding-top: 0.8rem;
    }

    .hero-slide-content {
        max-width: 94%;
    }

    .hero-slide-content h3 {
        font-size: 1.3rem;
    }

    .hero-side-image {
        min-height: 280px;
    }

    .section0,
    .team-section,
    .news-section,
    .chairman-section {
        padding: 3.2rem 0;
    }

    .banner {
        margin-bottom: 1.4rem;
    }
}

.bapsi-login-page {
    background: radial-gradient(circle at 6% 8%, rgba(255, 138, 61, 0.22), transparent 34%), var(--bapsi-bg);
}

.login-card {
    border-radius: 0.95rem;
    border: 1px solid var(--bapsi-border);
    box-shadow: var(--bapsi-card-shadow);
    background: color-mix(in srgb, var(--bapsi-surface) 96%, transparent);
}

.login-card .card-header,
.login-card .card-footer,
.login-card .card-body {
    border-color: var(--bapsi-border);
    background: transparent;
}

.login-card .login-box-msg,
.login-card label,
.login-card small {
    color: var(--bapsi-muted);
}

.login-card .form-control,
.login-card .input-group-text {
    border-color: var(--bapsi-border);
    background: var(--bapsi-surface-soft);
    color: var(--bapsi-text);
}

.dark-mode .main-header.navbar {
    background: var(--bapsi-surface) !important;
    border-color: var(--bapsi-border);
}

.dark-mode .content-wrapper,
.dark-mode .main-footer,
.dark-mode .card,
.dark-mode .card .card-header,
.dark-mode .card .card-body {
    background: var(--bapsi-surface);
    color: var(--bapsi-text);
    border-color: var(--bapsi-border);
}
