/* ========================================
   TOPIK Page CSS
   ======================================== */

.topik-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    background: #f5f7fa;
}

.topik-section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 3rem 0 1.5rem;
}

.topik-section-subtitle {
    text-align: center;
    color: #666;
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* ========================================
   Hero Section
   ======================================== */
.topik-hero {
    background:
        linear-gradient(135deg, rgba(46, 80, 144, 0.85) 0%, rgba(30, 58, 110, 0.9) 100%),
        url('/images/topik/topik_hero_bg.webp') center/cover no-repeat;
    color: white;
    padding: 4rem 2rem;
    margin: -20px -20px 2rem -20px;
    min-height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.topik-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    width: 100%;
    gap: 3rem;
}

.topik-hero-content {
    flex: 1;
    text-align: left;
}

.topik-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.3;
    color: white;
}

.topik-hero .hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

.topik-hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.topik-hero-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.topik-hero-btn.primary {
    background: white;
    color: #2E5090;
}

.topik-hero-btn.primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.topik-hero-btn.secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.topik-hero-btn.secondary:hover {
    background: white;
    color: #2E5090;
}

.topik-hero-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.topik-hero-stat {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.topik-hero-stat .number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
}

.topik-hero-stat .label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.topik-hero-visual {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.topik-level-badge {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.topik-level-badge:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(-5px);
}

.topik-level-badge .level-num {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.topik-level-badge.level-1-2 .level-num { background: linear-gradient(135deg, #10b981, #059669); }
.topik-level-badge.level-3-4 .level-num { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.topik-level-badge.level-5-6 .level-num { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.topik-level-badge .level-info { flex: 1; }
.topik-level-badge .level-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.1rem; }
.topik-level-badge .level-desc { font-size: 0.75rem; opacity: 0.8; }

/* ========================================
   Why TOPIK Section
   ======================================== */
.topik-why-section {
    background: #fff;
    padding: 3rem 2rem;
    margin: 0 -20px 2rem -20px;
}

.topik-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.topik-why-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background: #f8f9fc;
    transition: transform 0.3s ease;
}

.topik-why-card:hover { transform: translateY(-5px); }

.topik-why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #2E5090, #1e3a6e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.topik-why-card h4 { color: #333; font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem 0; }
.topik-why-card p { color: #666; font-size: 0.85rem; margin: 0; line-height: 1.5; }

/* ========================================
   Schedule Section
   ======================================== */
.topik-schedule-section {
    background: #fff;
    padding: 3rem 2rem;
    margin: 0 -20px;
}

.topik-schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.topik-schedule-block {
    background: #f8f9fc;
    border-radius: 16px;
    overflow: hidden;
}

.topik-schedule-header {
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topik-schedule-block.pbt .topik-schedule-header {
    background: linear-gradient(135deg, #2E5090, #1e3a6e);
    color: white;
}

.topik-schedule-block.ibt .topik-schedule-header {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.topik-schedule-header .badge {
    background: rgba(255,255,255,0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.topik-schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.topik-schedule-table th {
    background: #f0f2f5;
    color: #333;
    padding: 0.8rem 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    border-bottom: 2px solid #e0e0e0;
}

.topik-schedule-table td {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid #eee;
    font-size: 0.8rem;
    text-align: center;
}

.topik-schedule-table tr:last-child td { border-bottom: none; }
.topik-schedule-table tr:hover { background: #f8f9fc; }

.topik-notice {
    background: #fff8e6;
    border: 1px solid #f0d58c;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.topik-notice strong { color: #856404; display: block; margin-bottom: 0.5rem; }
.topik-notice ul { margin: 0; padding-left: 1.2rem; }
.topik-notice li { color: #856404; font-size: 0.85rem; padding: 0.15rem 0; }

/* ========================================
   Exam Cards
   ======================================== */
.topik-exam-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.topik-exam-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.topik-exam-header {
    padding: 1.5rem;
    text-align: center;
}

.topik-exam-card.topik-1 .topik-exam-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.topik-exam-card.topik-2 .topik-exam-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.topik-exam-header h3 { font-size: 1.5rem; margin: 0 0 0.3rem 0; font-weight: 700; }
.topik-exam-header p { margin: 0; opacity: 0.9; font-size: 0.9rem; }

.topik-exam-body { padding: 1.5rem; }

.topik-exam-info {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.topik-exam-info:last-of-type { border-bottom: none; }
.topik-exam-info strong { color: #555; font-size: 0.9rem; }
.topik-exam-info span { color: #333; font-weight: 600; font-size: 0.9rem; }

.topik-criteria {
    background: #f0f7ff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.topik-exam-card.topik-1 .topik-criteria { background: #ecfdf5; }
.topik-criteria h4 { color: #333; margin: 0 0 0.5rem 0; font-size: 0.9rem; }

.topik-criteria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.topik-criteria-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.topik-criteria-item .grade {
    background: #2E5090;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}

.topik-exam-card.topik-1 .topik-criteria-item .grade { background: #059669; }

/* ========================================
   Usage Section
   ======================================== */
.topik-usage-section {
    background: #1e2a4a;
    padding: 3rem 2rem;
    margin: 2rem -20px;
    color: white;
}

.topik-usage-section .topik-section-title { color: white; }
.topik-usage-section .topik-section-subtitle { color: rgba(255,255,255,0.7); }

.topik-usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.topik-usage-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.topik-usage-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.topik-usage-card h4 .badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.topik-usage-card.level-12 h4 .badge { background: linear-gradient(135deg, #10b981, #059669); }
.topik-usage-card.level-34 h4 .badge { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.topik-usage-card.level-56 h4 .badge { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.topik-usage-card ul { margin: 0; padding-left: 1.2rem; }
.topik-usage-card li { padding: 0.3rem 0; font-size: 0.9rem; opacity: 0.9; }

/* ========================================
   Study Guide
   ======================================== */
.topik-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.topik-guide-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.topik-guide-header {
    padding: 1.2rem;
    text-align: center;
    color: white;
}

.topik-guide-card.level-12 .topik-guide-header { background: linear-gradient(135deg, #10b981, #059669); }
.topik-guide-card.level-34 .topik-guide-header { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.topik-guide-card.level-56 .topik-guide-header { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.topik-guide-header h3 { margin: 0 0 0.3rem 0; font-size: 1.2rem; }
.topik-guide-header .study-time { font-size: 0.85rem; opacity: 0.9; }

.topik-guide-body { padding: 1.5rem; }
.topik-guide-body h4 { font-size: 0.85rem; color: #666; margin: 0 0 0.5rem 0; text-transform: uppercase; letter-spacing: 0.5px; }
.topik-guide-body ul { margin: 0 0 1rem 0; padding-left: 1.2rem; }
.topik-guide-body li { padding: 0.2rem 0; font-size: 0.9rem; color: #555; }
.topik-guide-body .vocab-count { margin: 0; font-size: 0.9rem; color: #333; }

.topik-vocab-bar {
    background: #eee;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.topik-vocab-fill { height: 100%; border-radius: 10px; }
.topik-guide-card.level-12 .topik-vocab-fill { background: #10b981; width: 25%; }
.topik-guide-card.level-34 .topik-vocab-fill { background: #3b82f6; width: 55%; }
.topik-guide-card.level-56 .topik-vocab-fill { background: #8b5cf6; width: 100%; }

/* ========================================
   Calculator
   ======================================== */
.topik-calculator {
    background: linear-gradient(135deg, #f8f9fc, #eef2ff);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2rem 0;
    text-align: center;
}

.topik-calculator h3 { color: #333; margin: 0 0 0.5rem 0; font-size: 1.4rem; }
.topik-calculator > p { color: #666; margin: 0 0 1.5rem 0; font-size: 0.9rem; }

.topik-calc-type-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.topik-calc-type-tab {
    padding: 0.6rem 1.5rem;
    border: 2px solid #2E5090;
    background: white;
    color: #2E5090;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.topik-calc-type-tab.active { background: #2E5090; color: white; }

.topik-calc-form {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.topik-calc-group { text-align: left; }
.topik-calc-group label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; color: #555; font-weight: 500; }

.topik-calc-group input {
    width: 140px;
    padding: 0.7rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.topik-calc-group input:focus { outline: none; border-color: #2E5090; }
.topik-calc-group.hidden { display: none; }

.topik-calc-btn {
    background: linear-gradient(135deg, #2E5090, #1e3a6e);
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topik-calc-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(46,80,144,0.3); }

.topik-calc-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none;
}

.topik-calc-result.show { display: block; }
.topik-calc-level { font-size: 2.5rem; font-weight: 700; color: #2E5090; margin-bottom: 0.3rem; }
.topik-calc-result-text { color: #555; font-size: 1rem; }

/* ========================================
   Tips Grid
   ======================================== */
.topik-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.topik-tip-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 4px solid #2E5090;
}

.topik-tip-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.topik-tip-card h4 span { font-size: 1.3rem; }
.topik-tip-card ul { margin: 0; padding-left: 1.2rem; }
.topik-tip-card li { padding: 0.3rem 0; font-size: 0.9rem; color: #555; }

/* ========================================
   Mock Test Section
   ======================================== */
.topik-mock-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%),
                linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
    padding: 4rem 2rem;
    margin: 2rem -20px;
    position: relative;
}

.topik-mock-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), rgba(139, 92, 246, 0.3), transparent);
}

.topik-mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.topik-mock-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 25px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topik-mock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #8b5cf6);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.topik-mock-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.03), 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.topik-mock-card:hover::before { opacity: 1; }

.topik-mock-card.featured { border: 2px solid #8b5cf6; background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%); }
.topik-mock-card.topik1.featured { border: 2px solid #10b981; background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); }

.topik-mock-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.topik-mock-popular.topik1 { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }

.topik-mock-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    width: fit-content;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.topik-mock-badge.topik1 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.topik-mock-badge.topik2 { background: linear-gradient(135deg, #e9d5ff, #d8b4fe); color: #581c87; }

.topik-mock-title { font-size: 1.2rem; font-weight: 700; color: #333; margin: 0 0 0.5rem 0; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.topik-mock-desc { color: #666; font-size: 0.85rem; margin: 0 0 1rem 0; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.topik-mock-year { font-size: 0.8rem; color: #6b7280; margin-bottom: 1rem; font-weight: 500; font-style: italic; }

.topik-mock-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.topik-mock-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #555;
}

.topik-mock-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.topik-mock-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.topik-mock-price .price-original { color: #999; text-decoration: line-through; font-size: 0.85rem; }
.topik-mock-price .price-current { font-size: 1.5rem; font-weight: 800; color: #333; }
.topik-mock-price .price-discount { background: #fee2e2; color: #dc2626; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 700; white-space: nowrap; }

.topik-mock-btn {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.topik-mock-btn.topik1, .topik-mock-btn.free {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.topik-mock-btn.topik2 {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.topik-mock-btn:hover { transform: translateY(-3px) scale(1.02); }

/* Free Trial Intro */
.topik-free-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.12) 100%),
                linear-gradient(to bottom, #ffffff, #fafffe);
    border-radius: 24px;
    position: relative;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.topik-free-intro::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.3;
}

.topik-free-intro h4 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.8rem 0;
}

.topik-free-intro p { color: #047857; margin: 0; font-size: 1.05rem; font-weight: 500; line-height: 1.6; }

.topik-free-group { margin-bottom: 1.5rem; }

.topik-free-group-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 1.8rem auto;
    padding: 1rem 2rem;
    max-width: fit-content;
    border-radius: 16px;
    display: block;
    text-align: center;
}

.topik-free-group-title.topik1 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.15));
    color: #047857;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-left: 5px solid #10b981;
}

.topik-free-group-title.topik2 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.15));
    color: #6b21a8;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-left: 5px solid #8b5cf6;
}

.topik-free-group .topik-mock-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.topik-free-group .topik-mock-card { flex: 0 1 450px; max-width: 480px; min-width: 380px; }

/* Free Ribbon */
.free-ribbon {
    position: absolute;
    top: 16px;
    right: -10px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    color: #78350f;
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 900;
    border-radius: 6px 0 0 6px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    text-transform: uppercase;
    z-index: 10;
}

/* Package Header */
.topik-package-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    position: relative;
}

.topik-package-header.topik1 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.15));
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
}

.topik-package-header.topik2 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.15));
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
}

.topik-package-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.topik-package-header.topik1 h3 { color: #047857; }
.topik-package-header.topik2 h3 { color: #6b21a8; }
.topik-package-header h3 span { font-size: 0.9rem; font-weight: 600; opacity: 0.7; }

.topik-mock-subsection { margin-bottom: 2.5rem; }

/* ========================================
   FAQ Section
   ======================================== */
.topik-faq-section {
    background: #f8f9fc;
    padding: 3rem 2rem;
    margin: 2rem -20px;
}

.topik-faq-list { max-width: 800px; margin: 0 auto; }

.topik-faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.topik-faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.topik-faq-question:hover { background: #f8f9fc; }

.topik-faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #2E5090;
    transition: transform 0.3s ease;
}

.topik-faq-item.active .topik-faq-question::after { transform: rotate(45deg); }

.topik-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.topik-faq-item.active .topik-faq-answer { max-height: 300px; }
.topik-faq-answer p { padding: 0 1.5rem 1.2rem; margin: 0; color: #666; font-size: 0.95rem; line-height: 1.7; }

/* ========================================
   Official Sites
   ======================================== */
.topik-sites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.topik-site-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.topik-site-card:hover { transform: translateY(-5px); }
.topik-site-card.featured { border: 2px solid #e67e22; background: linear-gradient(135deg, #fffaf5, #fff5eb); }
.topik-site-card h3 { color: #333; margin: 0 0 0.3rem 0; font-size: 1.1rem; }
.topik-site-card .site-url { color: #2E5090; font-size: 0.85rem; margin-bottom: 1rem; }
.topik-site-card ul { text-align: left; margin: 0 0 1.2rem 0; padding-left: 1.2rem; }
.topik-site-card li { color: #555; font-size: 0.85rem; padding: 0.2rem 0; }

.topik-site-btn {
    display: inline-block;
    background: #2E5090;
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.topik-site-btn:hover { background: #1e3a6e; transform: translateY(-2px); }
.topik-site-btn.ibt { background: #e67e22; }
.topik-site-btn.ibt:hover { background: #d35400; }

/* ========================================
   CTA Section
   ======================================== */
.topik-cta {
    background: linear-gradient(180deg, rgba(46, 80, 144, 0.85) 0%, rgba(25, 45, 80, 0.92) 40%, rgba(30, 41, 59, 1) 100%);
    color: white;
    padding: 3.5rem 2rem;
    text-align: center;
    margin: 0 -20px;
    position: relative;
    overflow: hidden;
}

.topik-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1'%3E%3Ccircle cx='20' cy='20' r='12'/%3E%3Ccircle cx='0' cy='20' r='12'/%3E%3Ccircle cx='40' cy='20' r='12'/%3E%3Ccircle cx='20' cy='0' r='12'/%3E%3Ccircle cx='20' cy='40' r='12'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.topik-cta-inner { position: relative; z-index: 1; }

.topik-cta-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 2rem;
    backdrop-filter: blur(5px);
}

.topik-cta h3 { font-size: 1.6rem; font-weight: 700; margin: 0 0 0.8rem 0; text-shadow: 0 2px 4px rgba(0,0,0,0.1); color: white; }
.topik-cta p { margin: 0 0 1.5rem 0; opacity: 0.95; font-size: 1rem; line-height: 1.6; }
.topik-cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.topik-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: #0c1e36;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.topik-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

.topik-cta-btn.secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: none;
}

.topik-cta-btn.secondary:hover { background: rgba(255,255,255,0.25); border-color: white; }

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 1240px) {
    .topik-hero,
    .topik-why-section,
    .topik-usage-section,
    .topik-schedule-section,
    .topik-faq-section,
    .topik-mock-section,
    .topik-cta {
        margin-left: calc(-50vw + 580px);
        margin-right: calc(-50vw + 580px);
        padding-left: calc(50vw - 580px);
        padding-right: calc(50vw - 580px);
    }
}

@media (max-width: 1024px) {
    .topik-free-group .topik-mock-card { flex: 0 1 400px; max-width: 420px; min-width: 320px; }
    .topik-free-group .topik-mock-grid { gap: 1.5rem; }
}

@media (max-width: 768px) {
    .topik-wrap { padding: 15px; }
    .topik-hero { padding: 3rem 1.5rem; min-height: auto; margin: -15px -15px 1.5rem -15px; }
    .topik-hero-inner { flex-direction: column; gap: 2rem; text-align: center; }
    .topik-hero-content { text-align: center; }
    .topik-hero h1 { font-size: 1.6rem; }
    .topik-hero-buttons { flex-direction: column; align-items: center; }
    .topik-hero-stats { justify-content: center; }
    .topik-hero-visual { flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .topik-level-badge { flex: 0 0 auto; padding: 0.5rem 0.8rem; }
    .topik-level-badge .level-desc { display: none; }

    .topik-why-grid,
    .topik-usage-grid,
    .topik-guide-grid,
    .topik-tips-grid,
    .topik-sites-grid,
    .topik-mock-grid { grid-template-columns: 1fr; }

    .topik-free-group .topik-mock-grid { flex-direction: column; gap: 1rem; max-width: 100%; }
    .topik-free-group .topik-mock-card { flex: 1 1 auto; max-width: 100%; min-width: auto; }

    .topik-mock-section { margin: 1.5rem -15px; padding: 2rem 1rem; }
    .topik-mock-card.featured { order: -1; }
    .topik-exam-grid { grid-template-columns: 1fr; }

    .topik-why-section,
    .topik-usage-section,
    .topik-schedule-section,
    .topik-faq-section { margin: 1.5rem -15px; padding: 2rem 1rem; }

    .topik-cta { margin: 0 -15px; padding: 2.5rem 1.5rem; }
    .topik-cta h3 { font-size: 1.3rem; }
    .topik-cta-btn { width: 100%; justify-content: center; }
    .topik-section-title { font-size: 1.3rem; }
    .topik-calc-form { flex-direction: column; align-items: center; }
    .topik-calc-group input { width: 180px; }
    .topik-schedule-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .topik-schedule-header { padding: 0.8rem 1rem; font-size: 1rem; }
    .topik-schedule-table th, .topik-schedule-table td { padding: 0.5rem 0.3rem; font-size: 0.75rem; }
    .topik-cta-buttons { flex-direction: column; align-items: center; }
    .topik-criteria-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .topik-wrap { padding: 10px; }
    .topik-hero { padding: 2rem 1rem; margin: -10px -10px 1rem -10px; }
    .topik-hero h1 { font-size: 1.4rem; }
    .topik-hero .hero-subtitle { font-size: 0.9rem; }
    .topik-hero-btn { padding: 0.7rem 1.2rem; font-size: 0.85rem; }
    .topik-hero-stat { padding: 0.5rem 0.8rem; }
    .topik-hero-stat .number { font-size: 1.1rem; }
    .topik-hero-stat .label { font-size: 0.7rem; }
    .topik-section-title { font-size: 1.2rem; }
    .topik-section-subtitle { font-size: 0.85rem; }
    .topik-mock-section { margin: 1rem -10px; padding: 1.5rem 0.8rem; }
    .topik-free-intro { padding: 1.8rem 1.2rem; margin-bottom: 2rem; }
    .topik-free-intro h4 { font-size: 1.4rem; }
    .topik-free-intro p { font-size: 0.9rem; }
    .topik-free-group-title { font-size: 1.1rem; padding: 0.8rem 1.5rem; margin-bottom: 1.5rem; }
    .topik-mock-btn, .topik-hero-btn, .topik-cta-btn { min-height: 44px; }
    .topik-mock-card:hover { transform: none; }
    .topik-mock-btn:hover { transform: none; }
}
