/* ============================================
   FlipEdu - 대학 전화/화상영어 플랫폼
   벤치마크: yu.in-touch.co.kr, uphone, YBM
   ============================================ */

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f8f9fa;
}
a { text-decoration: none; color: inherit; transition: color .2s; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.clearfix::after { content:''; display:table; clear:both; }

/* === Top Bar === */
.top-bar {
    background: #1a1a2e;
    color: #aaa;
    font-size: 13px;
    padding: 8px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: #ccc; margin-left: 15px; }
.top-bar a:hover { color: #fff; }
.top-bar .welcome { color: #7ecbf5; }

/* === Header === */
.header {
    background: #16213e;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    font-weight: 800;
}
.logo h1 {
    font-size: 22px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.logo h1 span {
    color: #4facfe;
    font-weight: 800;
}

/* === Main Navigation === */
.main-nav ul {
    display: flex;
    gap: 0;
}
.main-nav li { position: relative; }
.main-nav li a {
    display: block;
    padding: 24px 22px;
    color: #ccc;
    font-size: 15px;
    font-weight: 500;
    transition: all .3s;
    border-bottom: 3px solid transparent;
}
.main-nav li a:hover,
.main-nav li a.active {
    color: #fff;
    border-bottom-color: #4facfe;
    background: rgba(79,172,254,.08);
}

/* === Sub Navigation === */
.sub-nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
}
.sub-nav .container {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 50px;
}
.sub-nav .page-title {
    font-size: 15px;
    font-weight: 700;
    color: #16213e;
    white-space: nowrap;
}
.sub-nav ul { display: flex; gap: 0; }
.sub-nav li a {
    display: block;
    padding: 14px 18px;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all .2s;
}
.sub-nav li a:hover,
.sub-nav li a.active {
    color: #4facfe;
    border-bottom-color: #4facfe;
    font-weight: 600;
}

/* === Breadcrumb === */
.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: #999;
}
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #4facfe; }
.breadcrumb span { margin: 0 6px; color: #ccc; }

/* === Main Visual (Hero) === */
.main-visual {
    position: relative;
    height: 420px;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}
.main-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%234facfe" fill-opacity="0.05" d="M0,160L48,170.7C96,181,192,203,288,197.3C384,192,480,160,576,165.3C672,171,768,213,864,218.7C960,224,1056,192,1152,165.3C1248,139,1344,117,1392,106.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}
.main-visual .container {
    position: relative;
    z-index: 2;
}
.hero-content {
    max-width: 600px;
}
.hero-badge {
    display: inline-block;
    background: rgba(79,172,254,.2);
    color: #4facfe;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(79,172,254,.3);
}
.hero-content h2 {
    font-size: 40px;
    color: #fff;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    letter-spacing: -1px;
}
.hero-content h2 em {
    font-style: normal;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content p {
    font-size: 17px;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    gap: 12px;
}
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79,172,254,.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,172,254,.5);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.3);
}
.btn-outline:hover {
    border-color: #4facfe;
    color: #4facfe;
}
.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

/* Floating shapes */
.hero-shapes {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}
.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: .08;
}
.hero-shapes .shape-1 {
    width: 300px; height: 300px;
    background: #4facfe;
    top: 10%; right: 10%;
    animation: float 6s ease-in-out infinite;
}
.hero-shapes .shape-2 {
    width: 200px; height: 200px;
    background: #00f2fe;
    bottom: 20%; right: 30%;
    animation: float 8s ease-in-out infinite reverse;
}
.hero-shapes .shape-3 {
    width: 150px; height: 150px;
    background: #7b68ee;
    top: 40%; right: 5%;
    animation: float 7s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* === Section Title === */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h3 {
    font-size: 30px;
    font-weight: 800;
    color: #16213e;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.section-title p {
    font-size: 16px;
    color: #888;
}
.section-title .line {
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* === Home Content Sections === */
.home-sections {
    padding: 70px 0;
}

/* Quick Menu Cards */
.quick-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -80px;
    position: relative;
    z-index: 5;
    margin-bottom: 70px;
}
.quick-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
    transition: all .3s;
    cursor: pointer;
}
.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,.12);
}
.quick-card .icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
}
.quick-card:nth-child(1) .icon { background: rgba(79,172,254,.12); }
.quick-card:nth-child(2) .icon { background: rgba(102,126,234,.12); }
.quick-card:nth-child(3) .icon { background: rgba(0,242,254,.12); }
.quick-card:nth-child(4) .icon { background: rgba(123,104,238,.12); }
.quick-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #16213e;
    margin-bottom: 8px;
}
.quick-card p {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* Content Card */
.content-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.content-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 25px;
    border-bottom: 1px solid #f0f0f0;
}
.content-card .card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #16213e;
}
.content-card .card-header .more {
    font-size: 13px;
    color: #4facfe;
    font-weight: 500;
}
.content-card .card-body {
    padding: 20px 25px;
}

/* Today's Expression Card */
.today-expression {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 15px;
}
.today-expression .label {
    display: inline-block;
    background: rgba(255,255,255,.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 12px;
}
.today-expression .eng {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}
.today-expression .kor {
    font-size: 14px;
    opacity: .85;
}

/* List Style */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background .2s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: #f8f9ff; margin: 0 -25px; padding: 12px 25px; }
.list-item .title {
    font-size: 14px;
    color: #333;
    flex: 1;
}
.list-item .title .new {
    display: inline-block;
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: 600;
}
.list-item .date {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
    margin-left: 15px;
}

/* Study Steps Section */
.study-steps {
    padding: 80px 0;
    background: #fff;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}
.step-card {
    text-align: center;
    position: relative;
}
.step-card::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: #e0e0e0;
}
.step-card:last-child::after { display: none; }
.step-num {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}
.step-card:nth-child(1) .step-num { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.step-card:nth-child(2) .step-num { background: linear-gradient(135deg, #667eea, #764ba2); }
.step-card:nth-child(3) .step-num { background: linear-gradient(135deg, #f093fb, #f5576c); }
.step-card:nth-child(4) .step-num { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.step-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #16213e;
    margin-bottom: 10px;
}
.step-card p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,.05);
    transition: all .3s;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,.1);
}
.feature-card .feat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    background: rgba(79,172,254,.1);
}
.feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #16213e;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* === Board (게시판) Page === */
.page-visual {
    height: 200px;
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.page-visual h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.page-visual p {
    font-size: 15px;
    color: #aaa;
}

.board-wrap {
    padding: 40px 0 80px;
}
.board-desc {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.board-desc .desc-icon {
    font-size: 32px;
}
.board-desc .desc-text h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}
.board-desc .desc-text p {
    font-size: 14px;
    opacity: .85;
}

/* Board Table */
.board-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.board-table thead th {
    background: #16213e;
    color: #fff;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.board-table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    text-align: center;
    color: #555;
}
.board-table tbody tr:hover { background: #f8f9ff; }
.board-table tbody td.title-cell {
    text-align: left;
    color: #333;
    font-weight: 500;
}
.board-table tbody td.title-cell a:hover { color: #4facfe; }
.badge-new {
    display: inline-block;
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: 600;
    vertical-align: middle;
}
.badge-level {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.badge-level.beginner { background: #e8f5e9; color: #2e7d32; }
.badge-level.intermediate { background: #e3f2fd; color: #1565c0; }
.badge-level.advanced { background: #fce4ec; color: #c62828; }

/* Search Box */
.board-search {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}
.board-search select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    background: #fff;
}
.board-search input[type="text"] {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    width: 280px;
}
.board-search input[type="text"]:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79,172,254,.1);
}
.board-search button {
    padding: 10px 25px;
    background: #16213e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}
.board-search button:hover { background: #4facfe; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}
.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: all .2s;
}
.pagination a:hover,
.pagination a.active {
    background: #4facfe;
    color: #fff;
    border-color: #4facfe;
}
.pagination a.arrow {
    font-size: 12px;
    color: #999;
}
.pagination a.arrow:hover { color: #fff; }

/* === Detail View === */
.view-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    overflow: hidden;
    margin-bottom: 30px;
}
.view-header {
    padding: 30px 35px;
    border-bottom: 1px solid #f0f0f0;
}
.view-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #16213e;
    margin-bottom: 12px;
}
.view-meta {
    display: flex;
    gap: 25px;
    font-size: 13px;
    color: #999;
}
.view-meta span { display: flex; align-items: center; gap: 5px; }
.view-body {
    padding: 35px;
    line-height: 1.8;
    font-size: 15px;
    color: #444;
}
.view-body .expression-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin: 25px 0;
}
.view-body .expression-box .eng-main {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}
.view-body .expression-box .kor-main {
    font-size: 16px;
    opacity: .9;
}
.view-body .example-section {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #4facfe;
}
.view-body .example-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: #16213e;
    margin-bottom: 15px;
}
.view-body .example-section .example-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8f0;
}
.view-body .example-section .example-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.view-body .example-section .eng { font-weight: 600; color: #333; margin-bottom: 3px; }
.view-body .example-section .kor { font-size: 13px; color: #888; }

.view-body .tip-box {
    background: #fff8e1;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #ffb300;
}
.view-body .tip-box h4 {
    color: #f57f17;
    font-size: 15px;
    margin-bottom: 8px;
}
.view-body .tip-box p {
    font-size: 14px;
    color: #666;
}

.view-body .speaking-practice {
    background: #e8f5e9;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #43a047;
}
.view-body .speaking-practice h4 {
    color: #2e7d32;
    font-size: 16px;
    margin-bottom: 12px;
}
.view-body .speaking-practice ol {
    padding-left: 20px;
    list-style: decimal;
}
.view-body .speaking-practice li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.view-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 35px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.view-nav a {
    font-size: 14px;
    color: #4facfe;
    font-weight: 500;
}
.view-nav a:hover { text-decoration: underline; }

/* === Course Page === */
.course-section { padding: 80px 0; }
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.course-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: all .3s;
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
}
.course-card .card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.course-card .card-img .level-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.level-badge.lv-beginner { background: #43a047; }
.level-badge.lv-intermediate { background: #1565c0; }
.level-badge.lv-advanced { background: #c62828; }
.course-card .card-content {
    padding: 25px;
}
.course-card .card-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #16213e;
    margin-bottom: 10px;
}
.course-card .card-content p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 15px;
}
.course-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.course-card .card-tags span {
    background: #f0f4ff;
    color: #4facfe;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

/* Evaluation Rubric */
.rubric-section {
    padding: 80px 0;
    background: #fff;
}
.rubric-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.rubric-table thead th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.rubric-table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    text-align: center;
    color: #555;
}
.rubric-table tbody td:first-child {
    font-weight: 700;
    color: #16213e;
    background: #f8f9ff;
    text-align: left;
}
.rubric-table tbody tr:hover { background: #f8f9ff; }

/* Speaking Test Page */
.test-info-section {
    padding: 80px 0;
}
.test-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.test-info-text h3 {
    font-size: 28px;
    font-weight: 800;
    color: #16213e;
    margin-bottom: 15px;
}
.test-info-text p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}
.test-info-list {
    list-style: none;
}
.test-info-list li {
    padding: 10px 0;
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.test-info-list li .check {
    color: #4facfe;
    font-weight: 700;
    font-size: 18px;
}
.test-info-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.test-info-image .mock-screen {
    background: #fff;
    border-radius: 12px;
    width: 80%;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.test-info-image .mock-screen .mock-header {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
}
.test-info-image .mock-screen .mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.test-info-image .mock-screen .mock-dot:nth-child(1) { background: #ff5f57; }
.test-info-image .mock-screen .mock-dot:nth-child(2) { background: #febc2e; }
.test-info-image .mock-screen .mock-dot:nth-child(3) { background: #28c840; }
.test-info-image .mock-screen .mock-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 10px;
}
.test-info-image .mock-screen .mock-bar:nth-child(2) { width: 80%; }
.test-info-image .mock-screen .mock-bar:nth-child(3) { width: 60%; }
.test-info-image .mock-screen .mock-wave {
    height: 60px;
    background: linear-gradient(135deg, rgba(79,172,254,.2), rgba(0,242,254,.2));
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.test-info-image .mock-screen .wave-bar {
    width: 4px;
    background: #4facfe;
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}
.test-info-image .mock-screen .wave-bar:nth-child(1) { height: 15px; animation-delay: 0s; }
.test-info-image .mock-screen .wave-bar:nth-child(2) { height: 25px; animation-delay: .1s; }
.test-info-image .mock-screen .wave-bar:nth-child(3) { height: 35px; animation-delay: .2s; }
.test-info-image .mock-screen .wave-bar:nth-child(4) { height: 20px; animation-delay: .3s; }
.test-info-image .mock-screen .wave-bar:nth-child(5) { height: 40px; animation-delay: .4s; }
.test-info-image .mock-screen .wave-bar:nth-child(6) { height: 30px; animation-delay: .5s; }
.test-info-image .mock-screen .wave-bar:nth-child(7) { height: 18px; animation-delay: .6s; }
.test-info-image .mock-screen .wave-bar:nth-child(8) { height: 28px; animation-delay: .7s; }
@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(.5); }
}

/* === Login Modal === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: #16213e;
    margin-bottom: 25px;
    text-align: center;
}
.modal-box .form-group {
    margin-bottom: 15px;
}
.modal-box label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.modal-box input[type="text"],
.modal-box input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}
.modal-box input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79,172,254,.1);
}
.modal-box .btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all .3s;
}
.modal-box .btn-login:hover {
    box-shadow: 0 4px 15px rgba(79,172,254,.4);
}
.modal-box .modal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 13px;
}
.modal-box .modal-links a { color: #888; }
.modal-box .modal-links a:hover { color: #4facfe; }
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
}

/* === Footer === */
.footer {
    background: #16213e;
    color: #aaa;
    padding: 50px 0 30px;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-info h3 {
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
}
.footer-info p {
    font-size: 13px;
    line-height: 1.8;
    color: #888;
}
.footer-links h4 {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}
.footer-links a {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}
.footer-links a:hover { color: #4facfe; }
.footer-contact h4 {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}
.footer-contact p {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}
.footer-contact .phone {
    font-size: 24px;
    font-weight: 700;
    color: #4facfe;
    margin: 10px 0;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}
.footer-bottom a { color: #888; margin-left: 15px; }
.footer-bottom a:hover { color: #4facfe; }

/* === Mobile Responsive === */
@media (max-width: 1024px) {
    .quick-menu { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .course-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .main-nav ul { display: none; }
    .main-visual { height: 300px; }
    .hero-content h2 { font-size: 28px; }
    .quick-menu { grid-template-columns: 1fr; margin-top: -40px; }
    .steps-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .course-grid { grid-template-columns: 1fr; }
    .test-info-grid { grid-template-columns: 1fr; }
    .board-table thead { display: none; }
    .board-table tbody td { display: block; text-align: left; padding: 8px 20px; }
    .board-table tbody td:first-child { display: none; }
    .header .container { height: 60px; }
    .logo h1 { font-size: 18px; }
}
