@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #c2410c;
    /* Rich Deep Orange */
    --primary-deep: #2a1506;
    /* Darkest Coffee Brown */
    --primary-soft: #5b2106;
    /* Earthy Reddish Brown */
    --bg-light: #ffffff;
    --bg-accent: #fcfaf8;
    --text-main: #0c0a09;
    --text-muted: #57534e;
    --border-dim: #e5e7eb;

    /* New Rounded Design Tokens */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(42, 21, 6, 0.12);

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Pretendard', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    word-break: keep-all;
}

h1,
h2,
h3,
h4 {
    font-family: 'Pretendard', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary-deep);
}

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

/* Header - Modern Glassmorphism */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-dim);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

nav a:hover {
    background: rgba(194, 65, 12, 0.08);
    color: var(--primary-color);
}

/* Mobile Navigation Toggle */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    background: var(--bg-accent);
    border-radius: var(--radius-sm);
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background-color: var(--primary-deep);
    transition: var(--transition);
    border-radius: var(--radius-full);
}

/* Hero Section - Rounded Edges and Fluid Layout */
.hero {
    height: 90vh;
    min-height: 700px;
    margin: 0 1rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
    margin-bottom: 2rem;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: brightness(0.75);
    transition: opacity 1.5s ease-in-out;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 21, 6, 0.9) 0%, rgba(42, 21, 6, 0.3) 100%);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 85%;
    font-weight: 400;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out;
}

/* Notice Section - Clean White Cards */
.notice-section {
    padding: 3.6rem 0;
    position: relative;
    overflow: hidden;
}

.notice-outer {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    position: relative;
}

.notice-outer .container {
    max-width: 1300px;
    flex: 1;
}

.side-banner {
    flex: 0 0 200px;
    height: 500px;
    background: var(--bg-accent);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.side-banner:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.side-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1400px) {
    .side-banner {
        display: none;
    }
}

.section-title {
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.notice-list {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-dim);
}

.notice-item {
    display: grid;
    grid-template-columns: 1fr 120px;
    align-items: center;
    padding: 0.5rem 2.5rem;
    border-bottom: 1px solid var(--border-dim);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.notice-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
}

.badge-container {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
    width: 120px;
    /* Fixed width to align titles */
}

.badge {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.badge.category,
.badge.fixed {
    color: var(--primary-color);
    background: rgba(194, 65, 12, 0.1);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background-color: var(--bg-accent);
    transform: scale(1.005);
}

.notice-item .category {
    font-size: 0.85rem;
    color: #fff;
    background: var(--primary-color);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-align: center;
    width: fit-content;
}

.notice-item .title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-item .date {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: right;
}

/* Activity Section - Cards with deep rounding */
.info-section {
    padding: 4.8rem 0;
    background-color: var(--bg-accent);
    border-radius: var(--radius-lg);
    margin: 0 1rem;
}

.grid-parallel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.info-item {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

/* 
.info-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(194, 65, 12, 0.1);
} */

.info-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

.info-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Form Section - Modern Inputs */
.apply-section {
    padding: 4.8rem 0;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

/* Community Style Board View */
.board-view {
    background: #fff;
    padding: 3rem 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dim);
    box-shadow: none !important;
}

.notice-header-container {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--bg-accent);
    color: var(--primary-deep);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-back:hover {
    background: var(--primary-deep);
    color: #fff;
    transform: translateX(-5px);
}

.mini-notice-list {
    margin-top: 5rem;
    border-top: 1px solid var(--border-dim);
}

.mini-notice-header {
    padding: 1.5rem 0;
    font-weight: 700;
    color: var(--primary-deep);
    border-bottom: 1px solid var(--border-dim);
}

.mini-notice-item {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 0.5rem;
    border-bottom: 1px solid var(--border-dim);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

.mini-notice-item:hover {
    color: var(--primary-color);
    background: var(--bg-accent);
}

.mini-notice-item .mini-title {
    font-weight: 500;
}

.mini-notice-item.current {
    font-weight: 700;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-deep);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-dim);
    border-radius: var(--radius-sm);
    background: var(--bg-accent);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    background-color: var(--primary-deep);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer - Soft and modern */
footer {
    background-color: var(--primary-deep);
    color: #fff;
    padding: 3rem 0 1.8rem;
    margin-top: 4rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-about img {
    height: 60px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Mobile Optimized */
@media (max-width: 1024px) {
    .grid-parallel {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    header {
        background: rgba(255, 255, 255, 0.95);
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        padding: 7rem 2rem;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    nav a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .hero {
        height: 80vh;
        margin: 0 0.5rem;
    }

    .notice-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.5rem;
    }

    .notice-item .date {
        text-align: left;
        opacity: 0.6;
    }

    .notice-item .title {
        padding: 0;
    }

    .grid-parallel {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .form-box {
        padding: 2rem 1.5rem;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
    }
}