/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    /* Colors */
    --primary-dark: #1e3a8a;
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --dark: #1f2937;
    --gray: #4b5563;
    --light-gray: #f3f4f6;
    --white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.8) 100%);

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.nav-brand h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 1.5rem;
}

.nav-brand h2 span {
    font-size: 0.7em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 10px;
    }

    100% {
        opacity: 0;
        top: 30px;
    }
}

/* ===========================
   Section Styles
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-top: 1rem;
}

/* ===========================
   About Section
   =========================== */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 15px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-item h4 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.stat-item p {
    color: var(--gray);
    margin-top: 0.5rem;
}

.about-image {
    position: relative;
}

.image-container {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.2);
}

.image-container img {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 10px;
}

/* ===========================
   Services Section
   =========================== */
.services {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ===========================
   Team Section
   =========================== */
.team {
    padding: var(--section-padding);
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.team-image {
    position: relative;
    overflow: hidden;
}

.team-image .image-placeholder {
    background: var(--gradient-primary);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image svg {
    width: 100px;
    height: 100px;
    color: var(--white);
}

.team-info {
    padding: 30px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-desc {
    color: var(--gray);
    line-height: 1.6;
}

/* ===========================
   Applications Section
   =========================== */
.applications {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.app-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.app-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.app-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.beta-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ea580c;
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dev-badge {
    display: inline-block;
    margin-top: auto;
    background: #d1d5db;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: none;
    z-index: 1;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
}

.app-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.app-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.app-desc {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.app-card .btn {
    margin-top: auto;
}

.app-disclaimer {
    margin-top: 40px;
    text-align: center;
}

.app-disclaimer p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}





/* ===========================
   Internal Control Section
   =========================== */
.internal-control {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.internal-control-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.internal-control-intro p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
}

.ic-tabs {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid var(--light-gray);
    background: var(--white);
}

.tab-btn {
    flex: 1;
    padding: 20px 30px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--light-gray);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.tab-content {
    padding: 40px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Board Styles */
.board-header,
.resources-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.board-header h3,
.resources-header h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.btn-small {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.board-table thead {
    background: var(--light-gray);
}

.board-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-light);
}

.board-table th:nth-child(1) {
    width: 80px;
}

.board-table th:nth-child(2) {
    width: auto;
    min-width: 300px;
}

.board-table th:nth-child(3) {
    width: 120px;
}

.board-table th:nth-child(4) {
    width: 120px;
}

.board-table th:nth-child(5) {
    width: 80px;
}

.board-table tbody tr {
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

.board-table tbody tr:hover {
    background: var(--light-gray);
}

.board-table tbody tr.notice {
    background: #fef3c7;
}

.board-table tbody tr.notice:hover {
    background: #fde68a;
}

.board-table td {
    padding: 15px;
    color: var(--dark);
}

.board-table td.title {
    font-weight: 500;
}

.board-table td.title a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.board-table td.title a:hover {
    color: var(--primary);
}

.badge-notice {
    background: var(--gradient-accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid var(--light-gray);
    background: var(--white);
    color: var(--dark);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.page-btn:hover {
    background: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
}

.page-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Resources Styles */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.resource-card {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
    border: 2px solid transparent;
}

.resource-card:hover {
    background: var(--white);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.resource-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

.resource-info {
    flex: 1;
}

.resource-info h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.resource-meta {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.btn-download {
    background: var(--gradient-accent);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-item svg {
    width: 30px;
    height: 30px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--gray);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form .btn {
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.6;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

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

    .section-title {
        font-size: 2rem;
    }

    :root {
        --section-padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideDown 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

.modal h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.modal .form-group {
    margin-bottom: 1rem;
}

.modal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.modal input[type="text"],
.modal textarea,
.modal select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.modal button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

/* Modal Large */
.modal-large {
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Post/QnA Detail Styles */
.detail-meta {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.detail-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--dark);
    white-space: pre-wrap;
    min-height: 100px;
    padding: 20px 0;
}

.detail-divider {
    border: none;
    border-top: 2px solid var(--light-gray);
    margin: 1.5rem 0;
}

/* Comments */
.comments-section h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.comment-item {
    background: var(--light-gray);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.comment-header strong {
    color: var(--primary-dark);
}

.comment-header span {
    color: var(--gray);
    font-size: 0.85rem;
}

.comment-item p {
    color: var(--dark);
    line-height: 1.6;
}

.no-comments, .no-answer {
    color: var(--gray);
    font-style: italic;
    padding: 15px 0;
}

.comment-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form input,
.comment-form textarea {
    padding: 10px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form input {
    max-width: 200px;
}

.comment-form button {
    width: auto !important;
    align-self: flex-end;
}

/* Q&A Answer */
.answer-box {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 20px 25px;
    border-radius: 0 10px 10px 0;
    margin: 10px 0;
}

.answer-box h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.answer-box p {
    color: var(--dark);
    line-height: 1.8;
    white-space: pre-wrap;
}

.answer-form {
    margin-top: 1rem;
}

.answer-form h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.answer-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 10px;
}

.answer-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.answer-form button {
    width: auto !important;
}

/* Badge Status */
.badge-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

.badge-status.completed {
    background: #dcfce7;
    color: #166534;
}

.badge-status.waiting {
    background: #fef3c7;
    color: #92400e;
}

/* Admin Login Wrapper */
.admin-login-wrapper {
    text-align: right;
    padding: 8px 40px 12px;
}

/* Admin Button */
.admin-login-btn {
    background: none;
    border: none;
    color: var(--gray);
    padding: 0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.admin-login-btn:hover {
    color: var(--primary);
}

.admin-login-btn.admin-active {
    color: #dc2626;
}

.admin-login-btn.admin-active:hover {
    color: #b91c1c;
}

/* Delete Buttons */
.btn-delete {
    background: #dc2626;
    color: var(--white);
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-delete:hover {
    background: #b91c1c;
}

.btn-delete-small {
    background: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-delete-small:hover {
    background: #dc2626;
    color: var(--white);
}

/* Detail Title Row */
.detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.detail-title-row h2 {
    flex: 1;
}

/* Answer Box Header */
.answer-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.answer-box-header h4 {
    margin-bottom: 0;
}
