/* CSS for Kinternet Style Layout (index2.html) */

:root {
    --primary-navy: #002c5f;
    /* Kinternet Deep Blue */
    --accent-blue: #0090ff;
    /* Highlights */
    --text-main: #222;
    --text-sub: #666;
    --bg-light: #f8f9fa;
    --border-line: #e1e1e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

body,
button,
input,
textarea,
select {
    color: var(--text-main);
    line-height: 1.5;
    font-family: 'Noto Sans KR', sans-serif;
}

*:focus {
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header --- */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(5, 0, 26, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-top: 0;
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 48px;
    /* Adjust as needed for 72px header */
    width: auto;
    padding: 5px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
    line-height: 1.1;
}

.logo-text small {
    font-size: 0.7rem;
    color: #888;
    font-weight: 400;
    display: block;
}

.main-nav .nav-list {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-navy);
}

.main-nav a::after {
    /* Hover underline effect */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-navy);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Login/Logout Button Style */
.main-nav .nav-btn {
    background-color: var(--primary-navy);
    color: white !important;
    /* Override default link color */
    padding: 6px 18px;
    /* Slightly reduced padding */
    border-radius: 20px;
    /* Pill shape */
    transition: all 0.3s;
    font-size: 0.85rem;
    /* Further reduced size */
    font-weight: 400;
    /* Further reduced weight */
}

.main-nav .nav-btn:hover {
    background-color: var(--accent-blue);
    color: white !important;
}

.main-nav .nav-btn::after {
    display: none;
    /* Remove underline effect */
}

.util-nav {
    display: none;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    font-size: 0.85rem;
    border: 1px solid #ddd;
    padding: 4px 10px;
    border-radius: 20px;
    color: #666;
    transition: all 0.3s;
}

.lang-btn:hover {
    border-color: var(--primary-navy);
    color: var(--primary-navy);
}

.menu-trigger {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}


/* --- Hero Section --- */
.hero-section {
    height: 480px;
    background: linear-gradient(rgba(0, 44, 95, 0.8), rgba(0, 44, 95, 0.6)), url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h2 strong {
    font-weight: 700;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slide-counter {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.slide-nav button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s;
}

.slide-nav button:hover {
    background: white;
    color: var(--primary-navy);
}


/* --- Quick Links Grid --- */
.quick-links {
    margin-top: -60px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--accent-blue);
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 160px;
    border-right: 1px solid #f0f0f0;
    gap: 15px;
    transition: all 0.3s;
    color: var(--text-main);
}

.quick-item:last-child {
    border-right: none;
}

.quick-item:hover {
    background-color: #f9fcff;
}

.quick-item:hover .icon-box i {
    color: var(--accent-blue);
    transform: translateY(-3px);
}

.icon-box i {
    font-size: 2.5rem;
    color: #888;
    transition: all 0.3s;
}

.quick-item span {
    font-weight: 500;
    font-size: 1rem;
}


/* --- Board Section (Tabs) --- */
.board-section {
    margin-bottom: 20px;
}

/* Admin Management Button (Editors/Administrators only) */
.admin-management-btn-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.admin-management-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--primary-navy);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.admin-management-btn:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
}

.admin-management-btn-inline {
    display: inline-block;
    padding: 6px 16px;
    margin-left: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.admin-management-btn-inline:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.board-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #222;
    padding-bottom: 15px;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 400;
}

.section-header h3 strong {
    font-weight: 700;
}

.more-btn {
    font-size: 1.2rem;
    color: #888;
}

.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-top: 1px solid transparent;
    /* default */
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom: 1px solid transparent;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    margin-bottom: -1px;
    /* Align with border line */
    font-weight: 500;
}

.tab-btn.active {
    color: var(--primary-navy);
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid white;
    /* Hide bottom line */
    background: white;
}


.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-list {
    display: flex;
    flex-direction: column;
}

.post-list li {
    border-bottom: 1px solid #f0f0f0;
}

.post-list a {
    display: flex;
    padding: 15px 0;
    align-items: center;
    gap: 15px;
    color: #444;
    transition: color 0.2s;
}

.post-list a:hover {
    color: var(--accent-blue);
}

.post-list .category {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-navy);
    width: 60px;
}

.post-list .title {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.0rem;
}

.post-list .date {
    color: #999;
    font-size: 0.85rem;
}


/* --- Side Banners --- */
.board-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-banner {
    display: block;
    text-decoration: none;
    padding: 30px;
    border-radius: 4px;
    /* subtle rounding */
    color: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.side-banner:hover {
    transform: translateY(-2px);
}

.side-banner.primary {
    background-color: var(--primary-navy);
}

.side-banner.secondary {
    background-color: #004e8c;
}

.side-banner h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.side-banner p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.side-banner i {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
}


/* --- Bottom Banner --- */
.bottom-banner-section {
    background-color: #f5f5f5;
    padding: 30px 0;
    border-top: 1px solid #e1e1e1;
}

.partners-carousel {
    display: flex;
    justify-content: space-around;
    color: #999;
    font-weight: 700;
    font-size: 1.2rem;
}


/* --- Footer --- */
.site-footer {
    background-color: #222;
    color: #888;
    padding: 50px 0;
    font-size: 0.9rem;
    margin-top: 0;
}

.footer-inner {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    opacity: 0.3;
}

.footer-info {
    flex-grow: 1;
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #bbb;
}

.footer-links a:hover {
    color: #fff;
}

.footer-address p {
    margin-bottom: 5px;
}

.footer-sns a {
    color: #888;
    font-size: 1.5rem;
    margin-left: 10px;
    transition: color 0.3s;
}

.footer-sns a:hover {
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .site-header .header-inner {
        position: relative;
    }

    /* Hide standard nav, show hamburger */
    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        /* Header height */
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    /* Active state for menu */
    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease-out forwards;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        width: 100%;
    }

    .main-nav a::after {
        display: none;
        /* No underline effect on mobile */
    }

    .util-nav {
        display: flex;
    }

    .lang-btn {
        display: none;
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-text h2 {
        font-size: 2.5rem;
    }

    .board-layout {
        grid-template-columns: 1fr;
    }

    .board-main,
    .board-side {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        /* Prevent horizontal scroll if inner content is too wide */
    }

    .board-side {
        flex-direction: row;
    }

    .side-banner {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .board-side {
        flex-direction: column;
    }

    .hero-text h2 {
        font-size: 2rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- K-Startup Dashboard Styles --- */
.dashboard-wrapper {
    margin-top: 30px;
    /* Overlap header or sit high */
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid #e1e7eb;
}

/* 1. Notice Bar */
.db-notice-bar {
    background-color: #2c3e50;
    /* Dark Navy matches visual */
    color: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notice-label {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    white-space: nowrap;
    color: #fff;
}

.notice-ticker {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    opacity: 0.95;
    display: flex;
    gap: 20px;
}

.ticker-item::before {
    content: '•';
    margin-right: 10px;
    opacity: 0.7;
}

.notice-controls {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notice-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    line-height: 0.8;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.notice-controls button:hover {
    opacity: 1;
}

/* 2. Main Grid */
.cal-layout>div:first-child {
    /* Reset wrapper if needed, or leave empty if defaults are fine */
}

.cal-layout h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    order: 1;
}

.cal-layout .more-btn,
.cal-layout button {
    order: 2;
    margin-left: 0;
    /* Remove auto margin */
    display: inline-block !important;
    /* Force visible */
}

/* Force the content list to break to next line */
/* Force the content list to break to next line */
.cal-layout>div:first-child>ul,
.cal-layout>div:first-child>div:not(.icon-circle) {
    order: 3;
    width: 100%;
    margin-top: 15px;
    padding-top: 20px;
}

.jeus-rp-header {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    border-top: none !important;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.jeus-rp-header h3,
.jeus-rp-header .title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    order: 1;
    /* Title First */
}

.jeus-rp-header button,
.jeus-rp-header .more-btn {
    display: inline-block !important;
    margin-left: 0 !important;
    font-size: 1.2rem;
    position: static;
    order: 2;
    /* Button Second */
}

.db-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #eee;
    min-height: 320px;
}

.db-column {
    padding: 30px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Critical for ellipsis in grid */
}

.db-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.db-col-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
}

.db-col-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    font-weight: 300;
    transition: color 0.2s;
}

.db-col-header button:hover {
    color: var(--primary-navy);
}

.db-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.db-list li {
    font-size: 1.0rem;
    color: #444;
    line-height: 1.5;
    position: relative;
    padding-left: 12px;
}

.db-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 3px;
    height: 3px;
    background: #888;
    border-radius: 50%;
}

.db-list li a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.db-list li a:hover {
    text-decoration: underline;
    color: var(--primary-navy);
}

/* Deadline Badges */
.deadline-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-left: 0;
}

.deadline-list li::before {
    content: none;
}

.deadline-list li a {
    flex-grow: 1;
    max-width: 65%;
}

.badge-deadline {
    border: 1px solid #e74c3c;
    color: #e74c3c;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    background: #fff5f5;
    font-weight: 600;
}

/* Banner Column */
.db-banner {
    position: relative;
    overflow: hidden;
    background: white;
    /* Fallback green */
    display: flex;
    flex-direction: column;
    margin: 10px 20px 10px 20px;
}

.banner-content {
    flex-grow: 1;
    position: relative;
    padding: 30px;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.banner-content h4 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #2c3e50;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

.banner-content p {
    font-weight: 700;
    font-size: 0.95rem;
    background: #2c3e50;
    color: white;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    align-self: flex-start;
}

.banner-bg-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* 3. Icon Bar */
.db-icon-bar {
    display: flex;
    justify-content: space-between;
    padding: 30px 40px;
    background: #fff;
    gap: 20px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #333;
    transition: transform 0.2s;
    width: 100%;
    text-align: center;
}

.icon-item:hover {
    transform: translateY(-5px);
    color: var(--primary-navy);
}

.icon-circle {
    font-size: 2.2rem;
    color: #555;
    margin-bottom: 5px;
    width: 60px;
    height: 60px;
    border: 1px solid #eee;
    border-radius: 16px;
    background: #e5e5e5;
    /* User requested background */
    /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.icon-item:hover .icon-circle {
    color: white;
    /* Default fallback, overridden below */
}

/* Premium Colors for Icons */
/* 1. Deep Royal Blue */
.icon-item:nth-child(1):hover .icon-circle {
    background-color: #003366;
    border-color: #003366;
}

/* 2. Slate Grey/Blue */
.icon-item:nth-child(2):hover .icon-circle {
    background-color: #4A5568;
    border-color: #4A5568;
}

/* 3. Deep Emerald */
.icon-item:nth-child(3):hover .icon-circle {
    background-color: #10B981;
    border-color: #10B981;
}

/* 4. Burnt Orange / Bronze */
.icon-item:nth-child(4):hover .icon-circle {
    background-color: #C05621;
    border-color: #C05621;
}

/* 5. Royal Purple */
.icon-item:nth-child(5):hover .icon-circle {
    background-color: #6B46C1;
    border-color: #6B46C1;
}

/* 6. Teal/Cyan */
.icon-item:nth-child(6):hover .icon-circle {
    background-color: #008080;
    border-color: #008080;
}

/* 7. Gold/Mustard */
.icon-item:nth-child(7):hover .icon-circle {
    background-color: #D69E2E;
    border-color: #D69E2E;
}

/* 8. Crimson/Burgundy */
.icon-item:nth-child(8):hover .icon-circle {
    background-color: #9B2C2C;
    border-color: #9B2C2C;
}

.icon-item span {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 1024px) {
    .db-main-grid {
        grid-template-columns: 1fr;
    }

    .db-column {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .db-banner {
        min-height: 250px;
    }

    .db-icon-bar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* Partner List Scroll */
    .partner-list {
        display: flex;
        /* Ensure flex for horizontal layout */
        justify-content: flex-start;
        overflow-x: hidden;
        /* Hide scrollbar for JS auto-scroll */
        padding: 0;
        /* Remove container padding if we want edge-to-edge or control via items */
        white-space: nowrap;
    }

    .partner-list li {
        flex-shrink: 0;
        /* Prevent shrinking */
        padding: 0 20px;
        /* Add padding to items for equal spacing */
        box-sizing: content-box;
        /* Or border-box, ensuring width logic holds */
    }

    /* Footer Mobile */
    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }

    .footer-logo {
        margin-bottom: 20px;
    }
}

/* Partner Logos */
.footer-partners {
    padding: 0;
    width: 100%;
    border-top: 1px solid #eee;
    background: #fff;
}

.partner-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    height: 80px;
    /* Add height since padding is removed to keep vertical centering if needed, or rely on padding on ul? Let's check. */
    margin: 0;
}

.partner-list li a {
    font-size: 1rem;
    color: #888;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.partner-list li a:hover {
    color: #333;
}

.partner-list img {
    height: 39px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    vertical-align: middle;
}