:root {
    --app-vh: 100vh;
    --ai-font-scale: 1;
    --bufs-yellow: #ffd200;
    --bufs-dark: #111827;
    --bufs-blue: #173b88;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Pretendard", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background: #fff;
}

body {
    overflow-x: hidden;
}

.official-page-frame {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: #fff;
}

.official-page-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.official-iframe-page .bufs-header,
.official-iframe-page .bufs-static-main {
    display: none;
}

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

button,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.composer textarea,
.feedback textarea,
.panel textarea {
    width: 100%;
    border: 1px solid #d7dde5;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    line-height: 1.6;
    padding: 14px 16px;
    box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.composer textarea {
    min-height: 32px;
    max-height: 160px;
    resize: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.composer textarea::placeholder,
.feedback textarea::placeholder,
.panel textarea::placeholder {
    color: #8b96a8;
}

.composer textarea:focus,
.feedback textarea:focus,
.panel textarea:focus {
    outline: none;
}

.feedback textarea:focus,
.panel textarea:focus {
    border-color: #c2d2ea;
    box-shadow: 0 0 0 3px rgba(23, 59, 136, 0.10);
}

.panel textarea[readonly],
.feedback textarea[readonly] {
    background: #f8fafc;
    color: #435160;
    resize: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.bufs-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.bufs-header-inner {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.bufs-logo img {
    display: block;
    height: 39px;
}

.bufs-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-weight: 700;
    font-size: 16px;
    color: #222;
}

.bufs-nav a {
    position: relative;
}

.bufs-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -20px;
    height: 3px;
    background: #e83410;
    transition: 0.2s ease;
}

.bufs-nav a:hover::after {
    left: 0;
    right: 0;
}

.bufs-main {
    padding-top: 64px;
}

.main-visual {
    position: relative;
    height: min(880px, calc(100vh - 64px));
    min-height: 620px;
    overflow: hidden;
    background: #101828;
}

.bufs-visual-swiper,
.bufs-visual-swiper .swiper-wrapper,
.bufs-visual-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.bufs-visual-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bufs-visual-swiper .swiper-pagination-bullet {
    width: 11px;
    height: 11px;
    background: #fff;
    opacity: 0.5;
}

.bufs-visual-swiper .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 99px;
    opacity: 1;
    background: var(--bufs-yellow);
}

.visual-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.24);
    transform: translateY(-50%);
}

.visual-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
}

.visual-prev {
    left: 40px;
}

.visual-prev::before {
    transform: translate(-35%, -50%) rotate(-45deg);
}

.visual-next {
    right: 40px;
}

.visual-next::before {
    transform: translate(-65%, -50%) rotate(135deg);
}

.quick-section {
    max-width: 1440px;
    margin: -80px auto 80px;
    padding: 0 48px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.quick-card {
    min-height: 160px;
    padding: 32px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15,23,42,0.16);
}

.quick-card strong {
    display: block;
    font-size: 24px;
    color: #111827;
    margin-bottom: 12px;
}

.quick-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.ai-navigator {
    position: fixed;
    z-index: 80;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    touch-action: none;
    user-select: none;
}

.ai-navigator.is-positioned {
    right: auto;
    bottom: auto;
    transform: none;
}

.ai-navigator.is-dragging {
    z-index: 120;
}

.ai-nav-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 58px;
    height: 58px;
    padding: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(14px);
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    isolation: isolate;
    cursor: grab;
}

.ai-navigator.is-dragging .ai-nav-button {
    cursor: grabbing;
    transform: scale(0.98);
    box-shadow: 0 28px 54px rgba(15, 23, 42, 0.38);
}

.ai-nav-button:hover,
.ai-nav-button:focus-visible {
    transform: translateY(-3px);
    background: rgba(6, 18, 46, 0.96);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.34);
}

.ai-nav-button::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.ai-nav-orbit {
    position: absolute;
    left: 7px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 210, 0, 0.22);
    animation: aiPulse 2.4s ease-in-out infinite;
}

.ai-nav-icon {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bufs-yellow);
    color: #111827;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.ai-nav-text {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: max-content;
    max-width: min(280px, calc(100vw - 120px));
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.94);
    color: #fff;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(-50%) translateX(6px);
    pointer-events: none;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
    transition: opacity 0.16s ease, transform 0.2s ease;
}

.ai-navigator.is-right-side .ai-nav-text,
.ai-navigator:not(.is-left-side) .ai-nav-text {
    right: 66px;
}

.ai-navigator.is-left-side .ai-nav-text {
    left: 66px;
    right: auto;
    transform: translateY(-50%) translateX(-6px);
}

.ai-nav-button:hover .ai-nav-text,
.ai-nav-button:focus-visible .ai-nav-text {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@keyframes aiPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.18);
        opacity: 0.28;
    }
}

.ai-chat-panel {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(2px);
}

.ai-chat-panel.is-open {
    display: flex;
}

.ai-chat-window {
    position: relative;
    width: min(540px, 100vw);
    height: 100%;
    background: #f5f7fb;
    box-shadow: -30px 0 80px rgba(15, 23, 42, 0.24);
    display: flex;
    flex-direction: column;
    animation: panelIn 0.28s ease both;
}

@keyframes panelIn {
    from {
        transform: translateX(40px);
        opacity: 0.5;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ai-chat-header {
    min-height: 76px;
    padding: 16px 18px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
}

.ai-chat-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.ai-chat-brand strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.ai-chat-brand span:not(.ai-avatar) {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #6b7280;
}

.ai-avatar {
    flex: 0 0 auto;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15,23,42,0.08);
}

.ai-avatar.small {
    width: 40px;
    height: 40px;
}

.ai-avatar.intro {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
}

.ai-avatar.message-icon {
    width: 36px;
    height: 36px;
    margin-top: 2px;
    background: var(--bufs-yellow);
}

.ai-avatar img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.ai-chat-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
    flex-wrap: nowrap;
}

.chat-tts-toggle {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 10px;
    background: #ffffff;
    color: #6b7280;
}

.chat-tts-toggle.is-on {
    border-color: rgba(216, 173, 0, 0.55);
    background: #fff8cc;
    color: #111827;
}

.chat-tts-toggle.is-off {
    background: #fff;
    color: #6b7280;
}

.chat-tts-toggle,
.font-slider-control,
.ai-chat-tools button {
    flex: 0 0 auto;
}

.chat-tts-toggle {
    order: 0;
}

.font-slider-control {
    order: 1;
}

.ai-chat-tools button {
    order: 2;
}

.ai-chat-tools button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    color: #111827;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.ai-chat-tools button:hover {
    background: var(--bufs-yellow);
}

.chat-tts-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.font-slider-control {
    height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #374151;
}

.font-slider-small {
    font-size: 11px;
    font-weight: 800;
}

.font-slider-large {
    font-size: 17px;
    font-weight: 900;
}

.font-slider-control input {
    width: 72px;
    accent-color: var(--bufs-yellow);
}

.notice-popup {
    position: absolute;
    z-index: 3;
    top: 82px;
    left: 16px;
    right: 16px;
}

.notice-card {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #f1d567;
    box-shadow: 0 18px 50px rgba(15,23,42,0.18);
}

.notice-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notice-title button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: #f3f4f6;
}

.notice-card p {
    margin: 12px 0 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

.ai-chat-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.view {
    flex: 1;
    min-height: 0;
}

.home-view {
    display: none;
    padding: 40px 22px 24px;
    overflow-y: auto;
}

.home-view.is-active {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-view {
    display: none;
    min-height: 0;
}

.chat-view.is-active {
    display: flex;
    flex-direction: column;
}

.hero-copy {
    text-align: center;
    margin-bottom: 24px;
}

.hero-copy h1 {
    margin: 0;
    font-size: calc(30px * var(--ai-font-scale));
    letter-spacing: -0.06em;
}

.hero-copy .subtitle {
    margin: 12px 0 0;
    color: #6b7280;
    line-height: 1.55;
    font-size: calc(15px * var(--ai-font-scale));
}

.composer {
    position: relative;
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 24px;
    padding: 14px 58px 14px 16px;
    box-shadow: 0 14px 30px rgba(15,23,42,0.08);
}

.composer textarea {
    width: 100%;
    min-height: 32px;
    max-height: 160px;
    resize: none;
    border: 0;
    outline: none;
    background: transparent;
    color: #111827;
    font-size: calc(15px * var(--ai-font-scale));
    line-height: 1.5;
}

.composer-actions {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.btn-primary {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--bufs-yellow);
    display: grid;
    place-items: center;
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: default;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.chip {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: calc(13px * var(--ai-font-scale));
}

.chip:hover {
    border-color: var(--bufs-yellow);
    background: #fff8cc;
}

.message-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: messageIn 0.18s ease both;
}

@keyframes messageIn {
    from {
        transform: translateY(8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.message.user {
    justify-content: flex-end;
}

.message.assistant {
    justify-content: flex-start;
}

.message.assistant[data-feedback="like"] .bubble {
    border-color: #d7ad00;
    box-shadow: 0 0 0 2px rgba(255, 210, 0, 0.18), 0 10px 20px rgba(15, 23, 42, 0.07);
}

.message.assistant[data-feedback="dislike"] .bubble {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12), 0 10px 20px rgba(15, 23, 42, 0.07);
}

.message-content {
    max-width: 78%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.message.user .message-content {
    max-width: 80%;
    align-items: flex-end;
}

.bubble {
    padding: 13px 15px;
    border-radius: 18px;
    line-height: 1.55;
    word-break: keep-all;
    overflow-wrap: anywhere;
    font-size: calc(15px * var(--ai-font-scale));
}

.message.user .bubble {
    background: var(--bufs-yellow);
    color: #111827;
    border-bottom-right-radius: 6px;
}

.message.assistant .bubble {
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 6px;
    box-shadow: 0 8px 18px rgba(15,23,42,0.06);
}

.answer-sources {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #536171;
    font-size: calc(13px * var(--ai-font-scale));
    line-height: 1.5;
}

.answer-sources-title {
    font-weight: 700;
    color: #334155;
}

.answer-sources-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.answer-sources-item {
    color: #173b88;
    word-break: break-all;
}

.answer-sources-item:hover,
.answer-sources-item:focus-visible {
    text-decoration: underline;
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    margin-left: 2px;
}

.message-actions button {
    min-width: 30px;
    height: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
}

.message-actions .message-action-button {
    width: 30px;
    min-width: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.message-actions .message-action-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.message-actions .message-action-button.is-playing {
    color: #111827;
    background: var(--bufs-yellow);
    border-color: #d7ad00;
}

.message-actions .message-action-button.is-shared {
    color: #111827;
    background: #fff7cc;
    border-color: #d7ad00;
}

.message-actions .copy-button {
    width: 34px;
    min-width: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.message-actions .copy-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.message-actions .copy-button.is-copied {
    color: #111827;
    background: var(--bufs-yellow);
    border-color: #d7ad00;
    box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.22), 0 8px 18px rgba(15, 23, 42, 0.14);
}

.message-actions button:hover {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.message-actions .feedback-button {
    width: 34px;
    min-width: 34px;
    height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.message-actions .feedback-button:hover {
    transform: translateY(-1px);
}

.message-actions .feedback-button.is-active {
    color: #111827;
    background: var(--bufs-yellow);
    border-color: #d7ad00;
    box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.28), 0 8px 18px rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
}

.message-actions .dislike-button.is-active {
    color: #fff;
    background: #ef4444;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18), 0 8px 18px rgba(15, 23, 42, 0.16);
}

.message-actions .feedback-button.is-active span {
    transform: scale(1.08);
}

.message-actions .feedback-button:not(.is-active) {
    opacity: 0.72;
}

.message-actions .feedback-button:not(.is-active):hover {
    opacity: 1;
}

.typing-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
}

.typing-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--bufs-yellow);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

.typing-text {
    font-size: calc(14px * var(--ai-font-scale));
    font-weight: 600;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.composer-chat {
    margin: 0 16px 16px;
    width: calc(100% - 32px);
}

.official-visual {
    height: min(900px, calc(100vh - 64px));
}

.official-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0.28));
    pointer-events: none;
}

.visual-copy {
    position: absolute;
    z-index: 6;
    left: max(56px, calc((100vw - 1440px) / 2 + 56px));
    bottom: 132px;
    color: #fff;
}

.visual-copy p {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 800;
    color: var(--bufs-yellow);
}

.visual-copy h1 {
    margin: 0;
    font-size: 64px;
    line-height: 1.08;
    font-weight: 900;
}

.quick-strip {
    position: relative;
    z-index: 8;
    max-width: 1280px;
    margin: -58px auto 90px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-radius: 0;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.quick-strip a {
    min-height: 116px;
    padding: 24px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: 800;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.quick-strip a:hover {
    background: var(--bufs-yellow);
    color: #111827;
}

.main-section {
    max-width: 1440px;
    margin: 0 auto 110px;
    padding: 0 48px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.section-head p {
    margin: 0 0 8px;
    color: #173b88;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.section-head h2 {
    margin: 0;
    font-size: 42px;
    font-weight: 900;
}

.voice-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.8fr;
    gap: 24px;
}

.voice-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.voice-card img,
.program-grid img,
.post-grid img {
    width: 100%;
    display: block;
    aspect-ratio: 1.25;
    object-fit: cover;
}

.voice-card h3,
.program-grid h3,
.post-grid h3 {
    margin: 0;
    padding: 18px 20px 22px;
    font-size: 20px;
    line-height: 1.35;
    word-break: keep-all;
}

.main-news {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
}

.main-news img {
    height: 100%;
    aspect-ratio: auto;
}

.main-news div {
    padding: 36px;
}

.main-news span {
    color: #173b88;
    font-weight: 900;
}

.main-news h3 {
    padding: 16px 0 18px;
    font-size: 30px;
}

.main-news p {
    margin: 0;
    color: #4b5563;
    line-height: 1.65;
}

.notice-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.notice-column {
    padding: 30px;
    background: #fff;
    border-top: 4px solid #111827;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.notice-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.notice-title-row h2 {
    margin: 0;
    font-size: 26px;
}

.notice-title-row a {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.notice-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-column li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
    align-items: center;
}

.notice-column li:last-child {
    border-bottom: 0;
}

.notice-column li a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 650;
}

.notice-column li span {
    color: #6b7280;
    font-size: 14px;
}

.beyond-section {
    margin: 0 0 110px;
    background: #10234f url("https://www.bufs.ac.kr/data/file/site_main.png") center / cover no-repeat;
    color: #fff;
}

.beyond-inner {
    max-width: 1440px;
    min-height: 430px;
    margin: 0 auto;
    padding: 86px 48px;
}

.beyond-inner p {
    margin: 0 0 14px;
    color: var(--bufs-yellow);
    font-weight: 900;
    font-size: 22px;
}

.beyond-inner h2 {
    margin: 0 0 28px;
    font-size: 48px;
    font-weight: 900;
}

.beyond-inner div {
    max-width: 680px;
    line-height: 1.8;
    font-size: 18px;
}

.beyond-links {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.beyond-links a {
    padding: 13px 20px;
    background: #fff;
    color: #111827;
    font-weight: 800;
}

.program-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.program-grid article,
.post-grid article {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.post-grid img {
    aspect-ratio: 1;
}

@media (max-width: 900px) {
    .bufs-header-inner {
        padding: 0 20px;
    }

    .bufs-nav {
        display: none;
    }

    .main-visual {
        min-height: 520px;
    }

    .quick-section {
        grid-template-columns: 1fr;
        margin-top: 24px;
        padding: 0 20px 60px;
    }

    .ai-navigator {
        right: 16px;
        bottom: 18px;
        top: auto;
        transform: none;
    }

    .ai-navigator.is-positioned {
        right: auto;
        bottom: auto;
    }

    .ai-nav-button {
        min-width: 64px;
        width: 64px;
        height: 64px;
        padding: 9px;
        border-radius: 50%;
    }

    .ai-nav-button:hover,
    .ai-nav-button:focus-visible {
        width: 64px;
        transform: translateY(-3px);
    }

    .ai-nav-text {
        display: none;
    }

    .ai-nav-icon {
        width: 46px;
        height: 46px;
    }

    .ai-chat-window {
        width: 100vw;
    }

    .ai-chat-tools {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .font-slider-control {
        order: 1;
        min-width: 0;
    }

    .ai-chat-tools button {
        order: 2;
    }

    .visual-copy {
        left: 24px;
        right: 24px;
        bottom: 84px;
    }

    .visual-copy h1 {
        font-size: 38px;
    }

    .quick-strip {
        grid-template-columns: 1fr;
        margin: 0 20px 64px;
    }

    .quick-strip a {
        min-height: 66px;
    }

    .main-section {
        padding: 0 20px;
        margin-bottom: 72px;
    }

    .section-head {
        display: block;
    }

    .section-head h2,
    .beyond-inner h2 {
        font-size: 32px;
    }

    .voice-grid,
    .main-news,
    .notice-board,
    .program-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .beyond-inner {
        padding: 64px 20px;
    }
}
