:root {
    --primary-color: #f9b021;
    /* Warm Yellow/Orange from Image 2 */
    --primary-light: #fff5e1;
    --secondary-blue: #3b82f6;
    --accent-orange: #f59e0b;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    /* Main Purple Point */
    --accent-purple-light: #f5f3ff;
    /* Light Purple for Boxes */
    --bg-color: #f3f4f6;
    /* Neutral page background */
    --board-bg-infinitive: #f3e8ff;
    /* Light purple board */
    --board-bg-gerund: #fff9eb;
    /* Soft yellow board */
    --board-bg-participle: #f0fdf4;
    /* Soft green board */
    --card-bg: #ffffff;
    --text-main: #2d2d2d;
    --text-muted: #6b7280;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.06);
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

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

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

.app-container {
    padding-bottom: 50px;
}

/* Top Header with Back Button */
.top-header {
    padding: 15px 40px;
    background: transparent;
}

.back-button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #444;
}

.back-icon {
    font-size: 26px;
}

.back-text {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Navigation System Inline */
.top-nav-inline {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}


.nav-container {
    background: var(--card-bg);
    padding: 8px;
    border-radius: 20px;
    box-shadow: var(--shadow-nav);
    display: flex;
    align-items: center;
    pointer-events: auto;
    /* Re-enable clicks for the menu */
    transition: var(--transition);
}

.nav-pills {
    display: flex;
    gap: 4px;
    position: relative;
}

.nav-indicator {
    position: absolute;
    height: calc(100% - 8px);
    top: 4px;
    left: 4px;
    border-radius: 14px;
    background-color: var(--accent-purple);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.board-gerund .nav-indicator {
    background-color: var(--accent-orange);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.board-participle .nav-indicator {
    background-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.nav-pill {
    padding: 12px 32px;
    border: none;
    background: transparent;
    border-radius: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.nav-pill.active {
    color: white !important;
}

.nav-pill:not(.active):hover {
    color: var(--text-main);
}

/* Content Layout */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 40px;
    /* Bottom padding only */
}

.content-board {
    border-radius: 60px;
    padding: 60px 40px;
    margin-top: 30px;
    min-height: auto;
    transition: var(--transition);
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.005);
}

.board-infinitive {
    background: linear-gradient(0deg, #f9f8ff 0%, #e9d5ff 15%, #e9d5ff 85%, #f9f8ff 100%);
}

.board-gerund {
    background-color: var(--board-bg-gerund);
}

.board-participle {
    background-color: var(--board-bg-participle);
}

/* Header Card (Image 2 Style) */
.header-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 60px 50px;
    margin-top: 30px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.card-content {
    position: relative;
    z-index: 2;
}

.title-with-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.title-with-bar::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 28px;
    background-color: var(--primary-color);
    margin-right: 15px;
    border-radius: 2px;
}

.header-card h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
}

.subtitle strong {
    color: #2d89ff;
    /* Blue accent for 준동사 like image 1 */
    font-weight: 700;
}

.concept-section.purple-theme {
    border-top: none;
}

.concept-section.secondary {
    border-top: none;
}

.concept-section.tertiary {
    border-top: none;
}

.concept-section.gerund-theme {
    border-top: none;
}

.concept-section.participle-theme {
    border-top: none;
}

.bar-purple::before {
    background-color: var(--accent-purple) !important;
}

.bar-blue::before {
    background-color: #3b82f6 !important;
}

.bar-green::before {
    background-color: var(--accent-green) !important;
}

.bar-orange::before {
    background-color: var(--accent-orange) !important;
}

.section-badge {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    user-select: none;
}

.circle-purple {
    background: radial-gradient(circle, #e9d5ff 0%, #f5f3ff 70%, transparent 100%) !important;
}

.deco-circle {
    position: absolute;
    right: -50px;
    bottom: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #ffe19b 0%, #fff7e6 70%, transparent 100%);
    border-radius: 50%;
    opacity: 0.7;
    z-index: 1;
}

.content-board {
    border-radius: 50px;
    padding: 50px;
    margin-bottom: 50px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.01);
}

/* Concept Section Area */
.concept-section {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.concept-section>*,
.header-card>*,
.verb-info-card>*,
.dummy-it-card>* {
    position: relative;
    z-index: 2;
}

.concept-section::after,
.header-card::after,
.verb-info-card::after,
.dummy-it-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background-color: #f3efff;
    /* Slightly darker purple for better visibility */
    border-radius: 0 0 0 100%;
    /* Classic quarter-circle shape */
    z-index: 1;
    opacity: 1;
}

/* Hide corner deco on Infinitive Header and sub-detail cards */
.board-infinitive .header-card::after,
.board-gerund .header-card::after,
.board-participle .header-card::after,
.dummy-it-card::after,
.verb-info-card::after {
    display: none;
}

.board-gerund .concept-section::after {
    background-color: #fff8e1;
    /* Even lighter yellow for gerund */
}

.board-participle .concept-section::after {
    background-color: #e6fcf5;
    /* Very light green for participle */
}

/* New Side Pattern (Image 5 Style) */
.card-side-pattern {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
    width: 320px;
    height: 320px;
    color: var(--accent-purple);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.board-gerund .card-side-pattern {
    color: var(--accent-orange);
}

.section-title-with-bar {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.section-title-with-bar::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background-color: var(--primary-color);
    margin-right: 12px;
    border-radius: 2px;
}

.section-title-with-bar h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.section-description {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-description strong {
    color: var(--text-main);
}

/* Sub Sections */
.sub-section {
    margin-bottom: 50px;
}

.sub-section h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

.sub-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.sub-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-purple);
}

.sub-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #444;
}

.translation {
    font-size: 0.95rem;
    font-weight: 400;
    color: #888;
    margin-left: 8px;
}

.sub-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Example Boxes */
.example-box {
    background-color: #f9fafb;
    border-left: 4px solid #e5e7eb;
    padding: 15px 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 12px;
}

.example-box .en {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.example-box .ko {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Tip Box */
.tip-box {
    background-color: #fffaf0;
    border: 1px solid #ffedd5;
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tip-header h4 {
    color: #92400e;
    font-size: 1.05rem;
}

.tip-box p {
    font-size: 0.95rem;
    color: #78350f;
    margin-bottom: 20px;
}

/* Dummy It Card Specific (Purple Version) */
.dummy-it-card {
    background-color: #f5f3ff !important;
    border: 1px solid #ddd6fe !important;
}

.centered-box {
    background: white;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    color: var(--accent-purple);
    font-weight: 500;
    margin-bottom: 25px;
}

.tip-divider {
    border: 0;
    height: 1px;
    background-color: #ddd6fe;
    margin: 25px 0;
}

.card-subtitle {
    color: #6d28d9;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.formula-white {
    background: white;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    margin-bottom: 20px;
    color: #374151;
}

.point-text {
    color: var(--accent-purple);
    font-weight: 700;
}

.tag-yellow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag-yellow span {
    background: white;
    border: 1px solid #ddd6fe;
    color: #4b5563;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.table-flat {
    background: transparent !important;
    box-shadow: none !important;
}

.table-flat th {
    background: transparent !important;
    color: #6d28d9 !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #ddd6fe !important;
}

.table-flat td {
    border-bottom: 1px solid #ddd6fe !important;
    background: white;
}

/* Verb Info Cards (Image 3 Style) */
.verb-info-card {
    background-color: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.verb-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e40af;
    /* Deep blue-purple */
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.verb-card-title::before {
    content: '●';
    color: #3b82f6;
    font-size: 0.8rem;
}

.verb-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.verb-tag-cloud span {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.verb-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.verb-info-table th {
    background-color: #f1f5f9;
    color: #334155;
    padding: 15px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
}

.verb-info-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #475569;
}

.verb-info-table tr:last-child td {
    border-bottom: none;
}

.verb-info-table .verb-key {
    font-weight: 700;
    color: #1e40af;
}

.verb-info-table .ko-text {
    color: #64748b;
    font-size: 0.9rem;
}

/* Adjective Usage Hierarchical Styles (Image 4 Style) */


.visual-box-rows {
    background: var(--accent-purple-light);
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 10px 25px;
    margin-bottom: 25px;
}

.row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.row-item:last-child {
    border-bottom: none;
}

.row-label {
    color: #4b5563;
    font-weight: 500;
}

.row-value {
    color: var(--accent-purple);
    font-weight: 700;
}

.pattern-box {
    background: var(--accent-purple-light);
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.pattern-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.pattern-row:last-child {
    margin-bottom: 0;
}

.alphabet-label {
    background: #e9d5ff;
    color: #6d28d9;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.dual-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.dual-tag span {
    background: var(--accent-purple-light);
    border: 1px solid #ddd6fe;
    color: var(--accent-purple);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.dual-tag span b {
    color: #94a3b8;
    margin: 0 4px;
    font-weight: 400;
}

/* Tables */
.table-container {
    margin-top: 30px;
}

.table-container h5 {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 15px;
    font-weight: 700;
}

.concept-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.concept-table th {
    background-color: #f9fafb;
    padding: 12px 15px;
    text-align: left;
    color: #4b5563;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.concept-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.td-key {
    font-weight: 700;
    color: var(--accent-purple);
}

.purple-text {
    color: var(--accent-purple) !important;
}

.concept-table.mini td {
    padding: 10px 15px;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag-cloud span {
    background-color: var(--accent-purple-light);
    color: var(--accent-purple);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e9d5ff;
}

.tag-cloud.secondary span {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #dbeafe;
}

.tag-cloud.tertiary span {
    background-color: var(--accent-purple-light);
    color: #6d28d9;
    border-color: #ddd6fe;
}

/* Formula Box */
.formula-box {
    margin-bottom: 20px;
}

.formula {
    display: inline-block;
    background-color: var(--accent-purple-light);
    color: var(--accent-purple);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-family: monospace;
}

.formula.green {
    background-color: #d1fae5;
    color: #059669;
}

.formula-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

/* Visual Guide */
.visual-guide {
    display: flex;
    align-items: center;
    background: #f9fafb;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    justify-content: center;
    gap: 20px;
}

.guide-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #9ca3af;
}

.guide-item.active {
    color: #3b82f6;
}

.guide-item .label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.guide-item .content {
    font-weight: 700;
}

.guide-arrow {
    color: #d1d5db;
    font-size: 1.5rem;
}

/* Gerund Specific Styles */
.orange-border {
    border-left-color: var(--accent-orange);
}

.orange-text {
    color: var(--accent-orange) !important;
}

.orange-tags span {
    background-color: #fff7ed;
    color: #c2410c;
    border-color: #ffedd5;
}

.orange-tip {
    background-color: #fff7ed;
    border-color: #fed7aa;
}

.list-container {
    background: #fdfdfd;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #f3f4f6;
    margin-bottom: 20px;
}

.idiom-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 5px;
    border-bottom: 1px dashed #eee;
}

.idiom-item:last-child {
    border-bottom: none;
}

.idiom-en {
    font-weight: 700;
    color: #444;
    font-family: monospace;
}

.idiom-ko {
    color: #888;
    font-size: 0.9rem;
}

/* Participle Specific Styles */
.green-border {
    border-left-color: var(--accent-green);
}

.green-text {
    color: var(--accent-green) !important;
}

.green-table th {
    background-color: #f0fdf4;
}

.green-table td {
    border-bottom-color: #f0fdf4;
}

.green-tip {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.green-active {
    color: var(--accent-green) !important;
}

.green-guide {
    background-color: #f0fdf4;
}

.location-section {
    margin-top: 20px;
}

.location-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.location-icon {
    font-size: 1.2rem;
}

.location-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-item {
    background-color: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.list-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background-color: #fffaf0;
    box-shadow: 0 4px 15px rgba(249, 176, 33, 0.08);
}

.item-number {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.1rem;
}

.item-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-label {
    font-weight: 500;
    color: #555;
}

.item-formula {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.item-arrow {
    color: #ccc;
    font-size: 1.5rem;
    font-weight: 300;
}

.small-deco-circle {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #fff5e1 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

/* Image-specific layout (Gerund Subject Style) */
.dots-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.gerund-header-bar {
    width: 4px;
    height: 22px;
    background-color: var(--accent-orange);
    border-radius: 2px;
    flex-shrink: 0;
}

.dots-header h3 {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
}

.alt-text {
    font-size: 1rem;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 8px;
}

.bar-description {
    border-left: 1px solid #e5e7eb;
    padding-left: 20px;
    margin-bottom: 30px;
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.6;
}

.multi-example-box {
    background-color: #fcfcfc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px 40px;
}

.multi-example-box p {
    margin-bottom: 12px;
    color: #444;
    font-size: 1.05rem;
    font-weight: 500;
}

.multi-example-box p:last-child {
    margin-bottom: 0;
}

.ko-inline {
    color: #71717a;
    font-size: 0.95rem;
    font-weight: 400;
    margin-left: 4px;
}

/* Image-specific layout (Gerund Object Style) */
.sub-tag-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 20px;
    display: block;
}

.mint-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.mint-tags span {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    color: #115e59;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(13, 148, 136, 0.03);
}

.mint-tags span b {
    color: #94a3b8;
    margin: 0 8px;
    font-weight: 300;
}

.mint-table-box {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
}

.mint-table {
    width: 100%;
    border-collapse: collapse;
}

.mint-table th {
    background-color: #fafafa;
    color: #333;
    font-weight: 700;
    text-align: left;
    padding: 18px 25px;
    border-bottom: 1px solid #f1f1f1;
}

.mint-table td {
    padding: 22px 25px;
    border-bottom: 1px solid #f8f8f8;
    color: #444;
}

.mint-table tr:last-child td {
    border-bottom: none;
}

.mint-table .td-key {
    color: #0d9488 !important;
    font-weight: 700;
    width: 120px;
}

.mint-table .ko-text {
    color: #666;
    font-size: 0.95rem;
    width: 35%;
}

/* Orange/Gerund Theme Layouts */
.orange-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.orange-tags span {
    background: #fffaf0;
    border: 1px solid #ffedd5;
    color: #c2410c;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.03);
}

.orange-tags span b {
    color: #94a3b8;
    margin: 0 8px;
    font-weight: 300;
}

.orange-table-box {
    border: 1px solid #ffedd5;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
}

.orange-table {
    width: 100%;
    border-collapse: collapse;
}

.orange-table th {
    background-color: #fffaf0;
    color: #c2410c;
    font-weight: 700;
    text-align: left;
    padding: 18px 25px;
    border-bottom: 1px solid #ffedd5;
}

.orange-table td {
    padding: 22px 25px;
    border-bottom: 1px solid #fffaf0;
    color: #444;
}

.orange-table tr:last-child td {
    border-bottom: none;
}

.orange-table .td-key {
    color: var(--accent-orange) !important;
    font-weight: 700;
    width: 120px;
}

.orange-table .ko-text {
    color: #666;
    font-size: 0.95rem;
    width: 35%;
}

/* Image-specific layout (Gerund Idioms Style) */
.sub-group {
    margin-bottom: 40px;
}

.bullet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.orange-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    flex-shrink: 0;
}

.bullet-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
}

.sub-desc-small {
    font-size: 0.88rem;
    color: #71717a;
    margin-left: 16px;
    margin-bottom: 15px;
}

.grid-box {
    background-color: #fffaf0;
    border: 1px solid #ffedd5;
    border-radius: 12px;
    padding: 22px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.grid-item {
    flex: 1;
    min-width: 280px;
    font-size: 0.98rem;
    color: #c2410c;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.grid-item b {
    color: #94a3b8;
    margin: 0 12px;
    font-weight: 300;
}

.example-box-orange {
    background-color: #fffaf0;
    border: 1px solid #ffedd5;
    border-radius: 16px;
    padding: 30px 40px;
    margin-top: 20px;
}

.example-title-small {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ea580c;
    display: block;
    margin-bottom: 18px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.example-box-orange ul {
    list-style: none;
    padding: 0;
}

.example-box-orange li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
    font-size: 1.02rem;
    color: #334155;
    font-weight: 500;
}

.example-box-orange li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ea580c;
    font-size: 1.2rem;
}

.example-box-orange li strong {
    color: #ea580c;
    font-weight: 700;
}

/* Image-specific layout (Gerund vs Noun Comparison Style) */
.comparison-table-box {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    margin-top: 10px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background-color: #fff9eb;
    /* Light orange header */
    color: #c2410c;
    font-weight: 700;
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #ffedd5;
    font-size: 0.95rem;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.95rem;
    color: #444;
}

.comparison-table tr td:first-child {
    font-weight: 700;
    color: #333;
    background-color: #fafafa;
    width: 25%;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.color-red {
    color: var(--accent-orange);
    font-weight: 700;
}

.color-blue {
    color: #fb923c;
    /* Slightly lighter/different orange for distinction if needed, or just orange */
    font-weight: 700;
}


/* Modification Pattern Cards (Participle Page) */
.mod-card-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.mod-card {
    background: #ffffff;
    border: 1px solid #f0fdf4;
    border-radius: 20px;
    padding: 22px 30px;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.03);
}

.mod-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.mod-content {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
}

.highlight-purple-text {
    color: var(--accent-green);
}

.mod-sub-text {
    margin-top: 12px;
    padding-left: 15px;
    border-left: 1px solid #bbf7d0;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.6;
}

.mod-sub-text p {
    margin-bottom: 5px;
    font-weight: 500;
}

.mod-sub-text ul {
    list-style: none;
    padding: 0;
}

.mod-sub-text li {
    position: relative;
    padding-left: 15px;
}

.mod-sub-text li::before {
    content: '-';
    position: absolute;
    left: 0;
}

/* Info Badges & Rows */
.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.badge-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-right: 12px;
}

.badge-green {
    background-color: #e6fcf5;
    color: var(--accent-green);
}

.mod-desc-simple {
    color: #666;
    font-size: 0.95rem;
    margin-left: 2px;
}

.purple-dot,
.green-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.green-dot {
    background-color: var(--accent-green);
}

.purple-dot {
    background-color: var(--accent-purple);
}

.purple-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Small screen adjustments */

@media (max-width: 600px) {

    .header-card,
    .concept-section {
        padding: 30px 20px;
    }

    .list-item {
        padding: 18px 20px;
    }

    .item-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}