@font-face {
    font-family: 'Pretendard Variable';
    src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.min.css');
}

:root {
    --mint-act: #E6FAF5;
    --mint-point: #00D1A0;
    --bg-main: #FFFFFF;
    --card-grey: #F2F4F6;
    --text-main: #1A1F27;
    --text-sub: #8B95A1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.05em;
}

body {
    font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Slim Header */
.top-nav {
    height: 60px;
    border-bottom: 1px solid var(--card-grey);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
}

.logo-area {
    font-weight: 900;
    font-size: 20px;
    color: var(--mint-point);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
}

.search-container input {
    width: 100%;
    height: 42px;
    background: var(--card-grey);
    border: none;
    border-radius: 12px;
    padding: 0 16px 0 44px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: 0.2s;
}

.search-container input:focus {
    background: var(--mint-act);
    box-shadow: 0 0 0 2px var(--mint-point);
}

.search-container i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sub);
    font-size: 14px;
}

.top-menu {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-sub);
}

.top-menu a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.top-menu a:hover, .top-menu a.active {
    color: var(--text-main);
}

/* Main Layout: 3 Columns */
.portal-container {
    display: grid;
    grid-template-columns: 240px 1fr 340px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 24px;
    gap: 30px;
}

/* Left: Sidebar */
.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.menu-label {
    font-size: 12px;
    color: var(--text-sub);
    font-weight: 800;
    margin-bottom: 12px;
    padding-left: 8px;
    text-transform: uppercase;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text-sub);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    transition: 0.2s;
}

.nav-link i {
    font-size: 16px;
}

.nav-link:hover {
    background: var(--card-grey);
    color: var(--text-main);
}

.nav-link.active {
    background: var(--mint-act);
    color: var(--mint-point);
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* News/Notice Bar */
.notice-board {
    background: var(--card-grey);
    border-radius: 20px;
    padding: 12px 20px;
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    cursor: pointer;
}

.notice-tag {
    font-size: 11px;
    font-weight: 900;
    background: var(--mint-point);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    margin-right: 12px;
}

.notice-title {
    flex: 1;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Section Header */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-head h2 {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-main);
}

.section-head .more {
    font-size: 14px;
    color: var(--mint-point);
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Video Grid */
.lesson-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.lesson-item {
    cursor: pointer;
    transition: 0.3s;
}

.lesson-item:hover {
    transform: translateY(-4px);
}

.thumb-box {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--card-grey);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 14px;
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
}

.lesson-info .title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lesson-info .meta {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 600;
}

/* Tag Cloud */
.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    font-size: 14px;
    background: var(--card-grey);
    padding: 8px 18px;
    border-radius: 20px;
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.tag-pill:hover {
    background: var(--mint-act);
    color: var(--mint-point);
}

/* Right Sidebar */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget-box {
    background: #fff;
    border: 2px solid var(--card-grey);
    border-radius: 25px;
    padding: 24px;
}

.widget-title {
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 18px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: var(--card-grey);
    padding: 16px;
    border-radius: 18px;
    text-align: center;
}

.stat-card .val {
    font-size: 20px;
    font-weight: 900;
    color: var(--mint-point);
}

.stat-card .lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-sub);
    margin-top: 4px;
}

.word-table {
    width: 100%;
}

.word-table td {
    padding: 10px 4px;
    border-bottom: 1px solid var(--card-grey);
}

.word-table .word {
    font-weight: 800;
    color: var(--text-main);
    font-size: 14px;
}

.word-table .trans {
    color: var(--text-sub);
    text-align: right;
    font-size: 13px;
    font-weight: 600;
}

.view-all-btn {
    width: 100%;
    height: 44px;
    margin-top: 16px;
    border: none;
    background: var(--card-grey);
    color: var(--text-main);
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

.view-all-btn:hover {
    background: var(--mint-act);
    color: var(--mint-point);
}

/* Mobile */
@media (max-width: 1100px) {
    .portal-container { grid-template-columns: 1fr 300px; }
    .sidebar-left { display: none; }
}

@media (max-width: 850px) {
    .portal-container { grid-template-columns: 1fr; }
    .sidebar-right { display: none; }
    .search-container { margin: 0 16px; }
}
