:root {
    --color-primary: #8ac1d8;
    --color-primary-soft: #c3dae6;
    --color-accent: #ffd6d1;
    --color-bg: #fff6d6;
    --color-surface: #ffffff;
    --color-surface-tint: #f9f3ff;
    --color-text: #3b4f60;
    --color-muted: #6a7a8f;
    --color-muted-strong: #4d5f72;
    --color-border: #e4eff6;
    --color-border-strong: #cbdce8;
    --shadow-soft: 0 20px 50px rgba(138, 193, 216, 0.28);
    --shadow-hover: 0 28px 70px rgba(255, 182, 193, 0.32);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 12px;
}

@keyframes header-rainbow {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float-soft {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes shimmer-wave {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent);
}

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

ul {
    list-style: none;
}

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

.header {
    background: linear-gradient(135deg, #fff6d6 0%, #ffd6d1 45%, #8ac1d8 100%);
    background-size: 250% 250%;
    animation: header-rainbow 12s ease infinite;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 16px 40px rgba(138, 193, 216, 0.28);
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo a {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.logo-image {
    max-height: 105px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-menu li {
    display: flex;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    font-weight: 600;
    color: #3b4f60;
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(138, 193, 216, 0.35);
}

.nav-cta a {
    background: rgba(255, 255, 255, 0.32);
    color: #4d5f72;
    box-shadow: 0 16px 35px rgba(255, 182, 193, 0.32);
}

.nav-cta a:hover {
    background: rgba(255, 255, 255, 0.42);
    color: #3b4f60;
}

.nav-user-chip {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    color: #3b4f60;
    font-weight: 600;
}

.hero {
    padding: 5.5rem 1.5rem 4.8rem;
    background: radial-gradient(120% 120% at 10% 20%, rgba(255, 214, 209, 0.85) 0%, rgba(195, 218, 230, 0.9) 45%, rgba(138, 193, 216, 0.9) 100%);
    color: #2e4152;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 35% at 80% 10%, rgba(255, 246, 214, 0.6), transparent),
        radial-gradient(35% 30% at 20% 80%, rgba(255, 182, 193, 0.55), transparent);
    opacity: 0.9;
    animation: shimmer-wave 18s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.hero::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    top: 12%;
    right: 8%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.75) 0%, rgba(255, 214, 209, 0.05) 70%, transparent 100%);
    filter: blur(0.5px);
    opacity: 0.65;
    animation: float-soft 8s ease-in-out infinite;
}

.hero-content > * {
    opacity: 0;
    animation: fade-up 0.9s ease forwards;
}

.hero-content > *:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-content > *:nth-child(4) {
    animation-delay: 0.4s;
}

.hero-content > *:nth-child(5) {
    animation-delay: 0.5s;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    color: #5c7f94;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 30px rgba(195, 218, 230, 0.35);
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 620px;
    opacity: 0.92;
}

.cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd6d1 0%, #8ac1d8 100%);
    color: #2e4152;
    font-weight: 700;
    box-shadow: 0 18px 36px rgba(255, 182, 193, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 48px rgba(138, 193, 216, 0.35);
    filter: saturate(1.1);
}

.cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    border: 1px solid rgba(46, 65, 82, 0.2);
    color: #2e4152;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 12px 26px rgba(195, 218, 230, 0.35);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-link:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(255, 214, 209, 0.35);
}

.section-block {
    padding: 4.6rem 0;
    position: relative;
    overflow: hidden;
}

.section-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 246, 214, 0.55) 0%, rgba(195, 218, 230, 0.45) 100%);
    opacity: 0.65;
    z-index: 0;
}

.section-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 12% 18%, rgba(255, 214, 209, 0.25) 0, transparent 55%), radial-gradient(circle at 88% 82%, rgba(195, 218, 230, 0.25) 0, transparent 50%);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.section-block > * {
    position: relative;
    z-index: 1;
}

.intro {
    background: transparent;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-badge {
    display: inline-flex;
    align-self: center;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 214, 209, 0.55);
    color: #4d5f72;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(255, 214, 209, 0.35);
}

.section-badge--inverse {
    background: rgba(255, 255, 255, 0.35);
    color: #3b4f60;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.section-heading p {
    color: var(--color-muted);
    font-size: 1rem;
}

.feature-grid,
.card-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.info-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 214, 209, 0.28) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    border: 1px solid rgba(195, 218, 230, 0.4);
    position: relative;
    overflow: hidden;
    animation: fade-up 0.9s ease both;
}

.feature-card::after,
.info-card::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.feature-card:hover,
.info-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::after,
.info-card:hover::after {
    opacity: 1;
}

.feature-card h3,
.info-card h3 {
    font-size: 1.3rem;
    color: var(--color-text);
}

.feature-card p,
.info-card p {
    color: var(--color-muted);
    line-height: 1.7;
}

.info-card-icon {
    font-size: 2.2rem;
}

/* About page */
.about-hero {
    padding-top: 5.5rem;
    padding-bottom: 4rem;
    background: linear-gradient(180deg, rgba(255, 246, 214, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.about-hero__copy {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.6rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 214, 209, 0.35) 100%);
    box-shadow: 0 24px 60px rgba(138, 193, 216, 0.25);
}

.about-hero__copy h1 {
    font-size: clamp(2.4rem, 5vw, 3rem);
    margin-bottom: 1.6rem;
}

.about-hero__body p {
    margin-bottom: 1.1rem;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-muted-strong);
}

.about-background__body,
.about-features__body,
.about-local-characteristics__body {
    max-width: 960px;
    margin: 0 auto;
}

.about-background__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.about-background__list li {
    display: flex;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 32px rgba(138, 193, 216, 0.18);
    border: 1px solid rgba(195, 218, 230, 0.45);
}

.about-background__badge {
    min-width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 214, 209, 0.65);
    color: var(--color-muted-strong);
    font-weight: 700;
}

.about-background__list p {
    margin: 0;
    color: var(--color-muted-strong);
    line-height: 1.75;
}

.about-background__note {
    margin-top: 2rem;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    background: rgba(138, 193, 216, 0.12);
    color: var(--color-muted-strong);
    font-weight: 600;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.4rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 15px 35px rgba(138, 193, 216, 0.18);
    border: 1px solid rgba(195, 218, 230, 0.4);
}

.feature-icon {
    font-size: 2rem;
}

.feature-content strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

.feature-content p {
    margin: 0;
    color: var(--color-muted-strong);
    line-height: 1.6;
}

.local-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.local-card {
    background: rgba(255, 255, 255, 0.92);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(138, 193, 216, 0.2);
    border: 1px solid rgba(195, 218, 230, 0.45);
}

.local-card__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.local-card p {
    margin: 0;
    color: var(--color-muted-strong);
    line-height: 1.65;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(195, 218, 230, 0.45);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 38px rgba(138, 193, 216, 0.18);
}

.timeline-icon {
    font-size: 2rem;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timeline-year {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
}

.timeline-content strong {
    font-size: 1.15rem;
}

.timeline-content p {
    margin: 0;
    color: var(--color-muted-strong);
    line-height: 1.6;
}

.notices {
    background: var(--color-surface-tint);
}

.notice-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: stretch;
}

.notice-list {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.notice-heading {
    font-size: 1.25rem;
    color: var(--color-muted-strong);
}

.notice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.notice-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.notice-title {
    color: var(--color-text);
    font-weight: 600;
    flex: 1 1 auto;
}

.notice-title:hover {
    color: var(--color-primary);
}

.notice-date {
    font-size: 0.9rem;
    color: var(--color-muted);
    white-space: nowrap;
}

.notice-empty {
    background: rgba(138, 193, 216, 0.16);
    border-radius: var(--radius-md);
    padding: 2.2rem;
    text-align: center;
    color: var(--color-muted-strong);
    line-height: 1.7;
}

.post-actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.board-actions {
    margin-bottom: 1.5rem;
}

.action-grid {
    display: grid;
    gap: 1.2rem;
}

.action-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(195, 218, 230, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.action-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.action-card h3 {
    font-size: 1.2rem;
    color: var(--color-text);
}

.action-card p {
    color: var(--color-muted);
    line-height: 1.6;
}

.action-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--color-primary);
}

.action-link::after {
    content: '\2192';
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.action-link:hover::after {
    transform: translateX(6px);
}

.support {
    padding: 5rem 1.5rem;
    background: linear-gradient(150deg, #ffd6d1 0%, #8ac1d8 45%, #c3dae6 100%);
    color: #2e4152;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 55%);
    mix-blend-mode: screen;
    opacity: 0.75;
    animation: shimmer-wave 16s linear infinite;
}

.support::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    filter: blur(1px);
    animation: float-soft 9s ease-in-out infinite;
}

.support-content {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    align-items: center;
}

.support-content h2 {
    font-size: clamp(2rem, 4.2vw, 2.6rem);
    line-height: 1.2;
}

.support-content p {
    max-width: 620px;
    line-height: 1.7;
    color: rgba(59, 79, 96, 0.85);
}

.support-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgba(46, 65, 82, 0.18);
    color: #2e4152;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 16px 32px rgba(195, 218, 230, 0.32);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.support-button.primary {
    background: linear-gradient(135deg, #ffd6d1 0%, #8ac1d8 100%);
    color: #2e4152;
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 20px 40px rgba(255, 182, 193, 0.35);
}

.support-button.ghost {
    background: transparent;
}

.support-button:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
    color: #2e4152;
    box-shadow: 0 22px 44px rgba(138, 193, 216, 0.35);
}

.contact-band {
    background: linear-gradient(180deg, rgba(255, 246, 214, 0.55) 0%, rgba(195, 218, 230, 0.55) 100%);
}

.contact-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(195, 218, 230, 0.28) 100%);
    border: 1px solid rgba(195, 218, 230, 0.45);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.contact-card h3 {
    font-size: 1.1rem;
    color: var(--color-muted-strong);
}

.contact-card-highlight {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.contact-card p {
    color: var(--color-muted);
    line-height: 1.6;
}

.footer {
    background: linear-gradient(180deg, #506578 0%, #384a5a 80%, #2a3846 100%);
    color: #e6f1f5;
    padding: 3.5rem 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 214, 209, 0.25) 0%, transparent 45%), radial-gradient(circle at 80% 80%, rgba(138, 193, 216, 0.25) 0%, transparent 50%);
    opacity: 0.4;
    pointer-events: none;
}

.footer-container {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: flex-start;
}

.footer-section h3,
.footer-section h4 {
    color: #ffffff;
    margin-bottom: 0.9rem;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(230, 241, 245, 0.85);
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #ffd6d1;
}

.footer-bottom {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(230, 241, 245, 0.7);
}

.auth-wrapper {
    padding: 4.6rem 1.5rem;
    display: flex;
    justify-content: center;
}

.form-card {
    width: min(560px, 100%);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-card h2 {
    font-size: 1.8rem;
    color: var(--color-text);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-weight: 600;
    color: var(--color-muted-strong);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(138, 193, 216, 0.25);
    background: #ffffff;
}

textarea {
    min-height: 180px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, filter 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd6d1 0%, #c6eeff 100%);
    color: #2e4152;
    box-shadow: 0 18px 38px rgba(255, 182, 193, 0.35);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 48px rgba(138, 193, 216, 0.35);
    filter: saturate(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: #2e4152;
    border: 1px solid rgba(46, 65, 82, 0.15);
    box-shadow: 0 14px 30px rgba(195, 218, 230, 0.28);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-4px);
}

.error-message,
.success-message {
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.error-message {
    background: rgba(255, 174, 174, 0.22);
    color: #c2413f;
    border: 1px solid rgba(255, 174, 174, 0.35);
}

.success-message {
    background: rgba(180, 226, 201, 0.22);
    color: #1b7a5a;
    border: 1px solid rgba(180, 226, 201, 0.35);
}

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 2.5rem;
}

.post-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.9rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    z-index: 0;
    overflow: hidden;
    animation: fade-up 1s ease both;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.post-card::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
    pointer-events: none;
}

.post-card:hover::after {
    opacity: 1;
}

.post-card h3 {
    font-size: 1.35rem;
    color: var(--color-text);
}

.post-card h3 a {
    color: inherit;
}

.post-card h3 a:hover {
    color: var(--color-primary);
}

.post-meta {
    font-size: 0.9rem;
    color: var(--color-muted);
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.post-summary {
    color: var(--color-muted);
    line-height: 1.7;
}

.dashboard-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.dashboard-links a {
    background: rgba(138, 193, 216, 0.22);
    color: #2e4152;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 12px 26px rgba(138, 193, 216, 0.24);
}

.page-toggle-block {
    padding: 1rem 0 0;
}

.page-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.page-toggle-group .btn {
    min-width: 160px;
}

.page-toggle-group .btn:not(.active) {
    opacity: 0.8;
    box-shadow: none;
}

.page-toggle-group .btn.active {
    opacity: 1;
    box-shadow: 0 24px 48px rgba(138, 193, 216, 0.35);
}

.page-toggle-block .page-toggle-group {
    justify-content: center;
}

.dashboard-links a:hover {
    background: rgba(255, 214, 209, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(255, 182, 193, 0.28);
}

.pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.page-link {
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    background: rgba(138, 193, 216, 0.18);
    color: #2e4152;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.page-link:hover {
    transform: translateY(-4px);
    background: rgba(255, 214, 209, 0.35);
    box-shadow: 0 20px 40px rgba(138, 193, 216, 0.25);
}

.page-status {
    font-weight: 600;
    color: var(--color-muted);
}

.post-detail .form-card {
    width: min(800px, 100%);
    margin: 0 auto;
    gap: 2rem;
}

.post-detail-header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.post-detail-header h2 {
    font-size: 2rem;
    color: var(--color-text);
    text-align: left;
}

.post-detail-header .post-meta {
    margin-top: 0.2rem;
}

.post-detail-image {
    margin: 0;
}

.post-detail-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 60px rgba(138, 193, 216, 0.28);
}

.post-detail-body {
    line-height: 1.85;
    color: var(--color-muted-strong);
}

.post-detail-actions {
    margin-top: 1rem;
    justify-content: space-between;
    align-items: center;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .notice-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        padding: 4.6rem 1.2rem 3.8rem;
    }

    .hero::after {
        display: none;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 7vw, 2.8rem);
    }

    .section-heading {
        margin-bottom: 2.6rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .nav-menu {
        gap: 0.6rem;
    }

    .nav-menu a,
    .nav-user-chip {
        padding: 0.4rem 0.85rem;
        font-size: 0.9rem;
    }

    .hero-tag {
        font-size: 0.85rem;
    }

    .footer {
        padding: 3rem 1.2rem 1.8rem;
    }

    .form-card {
        padding: 2rem;
    }
}


/* Admin specific styles */
.admin-section { padding: 3rem 0; }
.admin-card { background: var(--color-surface); border-radius: var(--radius-md); padding: 1.8rem; box-shadow: var(--shadow-soft); margin-bottom: 1.5rem; }
.admin-actions { display:flex; gap:0.75rem; flex-wrap:wrap; margin-top:1rem; }
.admin-card h2, .admin-card h3 { margin-bottom: 0.8rem; }
.admin-grid { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.admin-preview img { border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-md); overflow:hidden; }
.admin-table th, .admin-table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--color-border); text-align:left; }
.admin-table th { background: var(--color-surface-tint); font-weight: 700; }
.table-responsive { overflow-x:auto; }
.chip { display:inline-flex; align-items:center; justify-content:center; padding:0.4rem 1.1rem; border-radius:999px; background:rgba(138,193,216,0.18); color:#2e4152; font-weight:600; margin-right:0.4rem; transition: all 0.3s ease; box-shadow:0 10px 20px rgba(138,193,216,0.2); }
.chip:hover { background:rgba(255,214,209,0.35); transform:translateY(-2px); box-shadow:0 14px 28px rgba(255,182,193,0.3); }
.chip--active { background:linear-gradient(135deg, #ffd6d1 0%, #8ac1d8 100%); color:#2e4152; }
.card-grid--four { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mission-card, .highlight-card, .facility-card, .program-card { background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,214,209,0.2) 100%); border-radius: var(--radius-md); padding: 1.6rem; box-shadow: var(--shadow-soft); display:flex; flex-direction:column; gap:1rem; border:1px solid rgba(195,218,230,0.45); transition:transform 0.3s ease, box-shadow 0.3s ease; }
.mission-card:hover, .highlight-card:hover, .facility-card:hover, .program-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-hover); }
.mission-icon { font-size:2.4rem; }
.gallery-admin-grid { display:grid; gap:1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery-admin-item { background: var(--color-surface); border-radius: var(--radius-md); padding: 1rem; box-shadow: var(--shadow-soft); display:flex; flex-direction:column; gap:0.75rem; }
.form-card textarea { resize: vertical; }
.hidden { display:none !important; }
.admin-metric-grid { display:grid; gap:1rem; margin:1.5rem 0; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.admin-metric-card { background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(138,193,216,0.2) 100%); border-radius: var(--radius-md); padding:1rem 1.4rem; box-shadow: var(--shadow-soft); display:flex; flex-direction:column; gap:0.3rem; border:1px solid rgba(195,218,230,0.45); transition:transform 0.3s ease, box-shadow 0.3s ease; }
.admin-metric-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-hover); }
.metric-title { font-size:0.9rem; color:var(--color-muted); }
.metric-value { font-size:1.6rem; font-weight:700; color:var(--color-text); }
.metric-value--success { color:#16a34a; }
.metric-value--warning { color:#ea580c; }
.admin-card--highlight { border:2px dashed rgba(138,193,216,0.45); background:rgba(255,214,209,0.22); }
.btn-small { padding:0.35rem 0.8rem; font-size:0.85rem; }
@media (max-width: 768px) { .admin-grid { grid-template-columns: 1fr; } }
