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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    /* background: linear-gradient(135deg, #f5f3ff 0%, #fce7f3 50%, #dbeafe 100%); */
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 4rem;
}

.main-title {
   /*  font-size: 3rem; */
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.title-underline {
    width: 4rem;
    height: 0.25rem;
    background: linear-gradient(to right, #ec4899, #9333ea);
    margin-bottom: 1rem;
}

.subtitle {
    /* font-size: 1.125rem; */
    color: #4b5563;
    line-height: 1.6;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-section {
    animation: heroFade 1s ease-out forwards;
}

.hero-section h1 {
    opacity: 0;
    transform: translateY(10px);
    animation: heroText 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.hero-section p {
    opacity: 0;
    animation: heroText 0.8s ease-out forwards;
    animation-delay: 0.7s;
}

.category-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    animation: cardRise 0.8s ease-out forwards;
    animation-delay: calc(var(--card-order, 0) * 0.12s);
}

.category-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
}

.card-image-wrapper {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .card-image {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
   /*  font-size: 1.25rem; */
    font-weight: 600;
    color: #111827;
}

.card-arrow {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-card:hover .card-arrow {
    transform: translate(3px, 3px);
}

@keyframes cardRise {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Button */
.button-wrapper {
    margin-bottom: 4rem;
}

.view-all-button {
	font-family: 'SCDream3', sans-serif; 
    width: 97%;
    padding: 1.25rem;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(to right, #1e3a8a, #1d4ed8);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-button:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
}

/* Table */
.table-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.table-container.hidden {
    display: none;
}

/* Inline Category Panel (for 기념행사) */
.inline-category-panel {
    background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
    border-radius: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 340px;
    animation: fadeIn 0.35s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cards-grid .inline-category-panel {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
}

.inline-category-panel.hidden {
    display: none;
}

.inline-category-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/resources/_Img/80th_logo.png') center/40% auto no-repeat;
    opacity: 0.16;
    filter: grayscale(0.2);
    z-index: 0;
}

.inline-category-panel::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #60a5fa, #93c5fd);
    z-index: 1;
}

.inline-category-panel-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px dashed rgba(37, 99, 235, 0.25);
}

.inline-category-label {
    display: inline-block;
    font-size: 0.875rem;
    color: #3b82f6;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
}

.inline-category-title {
    font-family: 'SCDream6', sans-serif; 
    font-size: 24px;
    color: #111827;
    position: relative;
    display: inline-block;
}


.c-tit00{
	font-family: 'SCDream5', sans-serif;
	font-size: 22px;
	color: #1d4ed8;
	margin-top: 0.2rem;
	margin-bottom: 0.5rem;
	display: block;
}
.c-tit01{
	margin-top: 0.2rem;
	display: block;
}

.inline-category-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    margin-top: 0.4rem;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.inline-category-description {
    color: #374151;
    line-height: 1.75;
}

.inline-category-description ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.inline-category-description li {
    margin-bottom: 0.35rem;
    font-family: 'SCDream3', sans-serif; 
    font-size: 17px;
}

.inline-category-description strong {
    color: #111827;
    font-family: 'SCDream5', sans-serif; 
    font-size: 20px;
}

.inline-category-panel > * {
    position: relative;
    z-index: 2;
}

.inline-category-panel.inline-panel-bottom {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding: 1.75rem 2rem;
}

.popup-section  .c-list01 li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-header {
    background: linear-gradient(to right, #1e3a8a, #1d4ed8);
    padding: 1.5rem 2rem;
}

.table-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

#projectListTable table {
    border-collapse: separate;
    border-spacing: 0;
}

thead {
    background-color: #f3f4f6;
    border-bottom: 2px solid #d1d5db;
}

th {
	font-family: 'SCDream4', sans-serif; 
    padding: 1rem 1rem;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #374151;
    
    
}

#projectListTable thead th {
    border-top: 3px solid #bbbcbf;
    border-bottom: 1px solid #d1d5db;
}

#projectListTable th + th,
#projectListTable td + td {
    border-left: 1px solid #bbbcbf;
}

#projectListTable td {
    border-bottom: 1px solid #bbbcbf;
}

#projectListTable tbody td:first-child {
    text-align: center;
}

#projectListTable tbody td:nth-child(2),
#projectListTable tbody td:nth-child(3),
#projectListTable tbody td:nth-child(5) {
    text-align: center;
}

tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

tbody tr:hover {
    background-color: #faf5ff;
}

td {
	font-family: 'SCDream3', sans-serif; 
    padding: 0.6rem 0.5rem;
    font-size: 17px;
    height:55px;
    color: #374151;
}

td:first-child,
td:nth-child(4) {
   /*  font-weight: 500; */
    color: #111827;
}

/* Category Modal */
.category-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.category-modal.hidden {
    display: none;
}

.category-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
}

.category-modal-content {
    position: relative;
    width: min(680px, calc(100% - 3rem));
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.6);
    z-index: 1;
    animation: modalUp 0.4s ease;
    min-height: 420px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
}

.category-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: transparent;
    font-size: 2rem;
    color: #374151;
    cursor: pointer;
    line-height: 1;
}

.category-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-modal-body::before {
    content: '';
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, #2563eb, #9333ea);
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.category-modal-label {
    font-size: 0.875rem;
    color: #6b7280;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
}

.category-modal-title {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.category-modal-title {
    position: relative;
}

.category-modal-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 60px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.5);
}

.category-modal-description {
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
}

.category-modal-description ul {
    padding-left: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.category-modal-description li {
    margin-bottom: 0.35rem;
}

.category-modal-description strong {
    color: #111827;
}

@keyframes modalUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

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

    .container {
        padding: 2rem 1rem;
    }

    .table-wrapper {
        overflow-x: scroll;
    }

    table {
        min-width: 800px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
