/* Grammar Lesson Common Styles
   Shared styles for all grammar lesson explanation pages
   Uses Cornell Notes layout structure
*/

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #0a0a0a;
    color: #e8d5c4;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
}

/* Main Content Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 80px;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

h1 {
    color: #daa520;
    text-align: center;
    margin-bottom: 30px;
}

/* Cornell Notes Layout */
.cornell-container {
    background: rgba(40, 40, 40, 0.8);
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.2);
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 800px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.header {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #e8d5c4;
    padding: 30px;
    text-align: center;
    border-bottom: 3px solid #daa520;
}

.header h2 {
    color: #daa520;
    margin-bottom: 10px;
    font-size: 2em;
}

.header p {
    font-size: 1.2em;
    color: #d4af37;
}

.cue-column {
    background: rgba(52, 73, 94, 0.3);
    padding: 25px;
    border-right: 2px solid rgba(218, 165, 32, 0.3);
}

.cue-column h3 {
    color: #daa520;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.note-area {
    padding: 30px;
    background: rgba(26, 26, 26, 0.5);
}

.note-area h3 {
    color: #daa520;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.summary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: #e8d5c4;
    padding: 30px;
    border-top: 3px solid #daa520;
}

.summary h3 {
    color: #daa520;
    margin-bottom: 15px;
}

/* Concept Box */
.concept-box {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid #daa520;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.2);
}

.concept-box h3 {
    color: #daa520;
    border: none;
    margin-bottom: 15px;
}

/* Formula Display */
.formula {
    background: rgba(52, 152, 219, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    line-height: 1.8;
    text-align: center;
}

/* Visual Examples */
.visual-example {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    padding: 5px 0;
}

/* Example Grid */
.example-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.example-card {
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 10px;
    padding: 20px;
    background: rgba(40, 40, 40, 0.6);
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(218, 165, 32, 0.2);
    border-color: #daa520;
}

.example-card h4 {
    color: #daa520;
    margin-bottom: 15px;
}

.example-card ul {
    list-style: none;
    padding-left: 0;
}

.example-card ul li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.example-card ul li::before {
    content: "\2192";
    position: absolute;
    left: 0;
    color: #3498db;
}

/* Sentence Breakdown Visual */
.sentence-breakdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(52, 73, 94, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.component {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    min-width: 120px;
}

.subject {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
}

.verb {
    background: rgba(52, 152, 219, 0.2);
    border: 2px solid #3498db;
}

.object {
    background: rgba(46, 204, 113, 0.2);
    border: 2px solid #2ecc71;
}

.plus-sign {
    font-size: 24px;
    color: #daa520;
    font-weight: bold;
}

.equals-sign {
    font-size: 28px;
    color: #2ecc71;
    font-weight: bold;
}

.sentence-result {
    background: rgba(46, 204, 113, 0.2);
    border: 2px solid #2ecc71;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 150px;
}

/* Korean Text Highlight */
.korean {
    color: #2ecc71;
    font-weight: bold;
}

/* Key Point Box */
.key-point {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.key-point h4 {
    color: #e74c3c;
    margin-bottom: 15px;
}

/* Interactive Box */
.interactive-box {
    background: rgba(155, 89, 182, 0.1);
    border: 2px solid #9b59b6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.interactive-box h4 {
    color: #9b59b6;
    margin-bottom: 15px;
}

/* Modal Category Box (for modals, categories) */
.modal-category {
    background: rgba(155, 89, 182, 0.1);
    border: 2px solid #9b59b6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.modal-category h4 {
    color: #9b59b6;
    margin-bottom: 15px;
}

/* Probability/Strength Scale */
.probability-scale {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid #2ecc71;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.probability-scale h4 {
    color: #2ecc71;
    margin-bottom: 15px;
    text-align: center;
}

.scale-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 5px;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.scale-percentage {
    background: #2ecc71;
    color: #1a1a1a;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
}

/* Strength Bar Visual */
.strength-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.strength-visual {
    display: flex;
    gap: 3px;
    align-items: center;
    min-width: 120px;
}

.strength-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(100, 100, 100, 0.3);
}

.strength-dot.active {
    background: #daa520;
}

/* Table Styles */
.modal-table {
    background: rgba(52, 73, 94, 0.2);
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.modal-table h4 {
    color: #daa520;
    margin-bottom: 15px;
    text-align: center;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

th {
    background: rgba(218, 165, 32, 0.2);
    color: #daa520;
    font-weight: bold;
}

td {
    background: rgba(40, 40, 40, 0.6);
}

/* Timeline Visual (for tense lessons) */
.timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
    height: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e8d5c4;
    z-index: 0;
}

.time-point {
    position: relative;
    z-index: 1;
    background: rgba(40, 40, 40, 0.9);
    padding: 10px 20px;
    border: 2px solid #e8d5c4;
    border-radius: 8px;
    font-weight: bold;
    color: #e8d5c4;
}

.time-point.now {
    background: #daa520;
    color: #1a1a1a;
    border-color: #daa520;
}

/* Symbol & Arrow Elements */
.symbol {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin: 0 5px;
}

.arrow {
    font-size: 20px;
    color: #3498db;
}

/* Perfect Tense Visual */
.perfect-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
    font-size: 18px;
}

/* Calendar Visual (for tense lessons) */
.calendar-visual {
    background: rgba(52, 73, 94, 0.2);
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.calendar-visual h4 {
    text-align: center;
    margin-bottom: 20px;
    color: #daa520;
}

.calendar-visual h5 {
    text-align: center;
    margin-bottom: 15px;
    color: #3498db;
}

.calendar-visual h6 {
    color: #daa520;
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.calendar-grid > div {
    padding: 10px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 8px;
    min-height: 50px;
}

.calendar-grid .today {
    background: rgba(218, 165, 32, 0.3);
    border: 3px solid #daa520;
}

.calendar-grid .day-header {
    font-weight: bold;
    color: #daa520;
    padding: 10px;
    min-height: auto;
}

.calendar-legend {
    margin-top: 20px;
    padding: 20px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.calendar-explanation {
    margin-top: 30px;
    background: rgba(255, 193, 7, 0.1);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comparison-item {
    text-align: center;
    padding: 15px;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 5px;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

/* Highlight Box */
.highlight-box {
    background: rgba(218, 165, 32, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

/* Perfect Examples Grid */
.perfect-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.perfect-example-box {
    background: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(218, 165, 32, 0.3);
    padding: 15px;
    border-radius: 5px;
}

.perfect-example-box h5 {
    color: #daa520;
    margin-bottom: 10px;
}

/* Connection Visual (for tense relationships) */
.connection-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.time-box {
    text-align: center;
    padding: 15px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 5px;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.time-box.present {
    background: rgba(218, 165, 32, 0.3);
    border: 3px solid #daa520;
}

.connection-arrow {
    flex: 1;
    max-width: 200px;
    text-align: center;
}

.connection-arrow div {
    border-bottom: 3px dashed #9b59b6;
    margin-bottom: 5px;
}

/* Connection Line */
.connection-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9b59b6, transparent);
    margin: 10px 0;
}

/* =====================================================
   LESSON-SPECIFIC STYLES
   Additional styles for specific grammar lessons
   ===================================================== */

/* Article Visual (Lesson 4) */
.article-visual {
    background: rgba(52, 73, 94, 0.2);
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.consonant {
    color: #3498db;
    font-weight: bold;
}

.vowel {
    color: #e74c3c;
    font-weight: bold;
}

.sound-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.sound-box {
    text-align: center;
    padding: 15px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 8px;
    flex: 1;
}

.definite-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

.definite-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #daa520;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #daa520;
}

.definite-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.definite-table tr:hover {
    background: rgba(218, 165, 32, 0.1);
}

/* Category Grids (Lesson 3, 5) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.category-item {
    background: rgba(40, 40, 40, 0.6);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(155, 89, 182, 0.3);
    text-align: center;
}

.noun-category {
    background: rgba(155, 89, 182, 0.1);
    border: 2px solid #9b59b6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.noun-category h4 {
    color: #9b59b6;
    margin-bottom: 15px;
}

.pronoun-category {
    background: rgba(155, 89, 182, 0.1);
    border: 2px solid #9b59b6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.pronoun-table {
    background: rgba(52, 73, 94, 0.2);
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.usage-example {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

/* Plural Rules (Lesson 3) */
.plural-rules {
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.plural-rules h4 {
    color: #3498db;
    margin-bottom: 15px;
}

.rule-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin: 15px 0;
    align-items: center;
}

.rule-pattern {
    background: rgba(40, 40, 40, 0.6);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.rule-examples {
    background: rgba(40, 40, 40, 0.6);
    padding: 10px;
    border-radius: 5px;
}

/* Pattern Box (Lesson 2) */
.pattern-box {
    background: rgba(155, 89, 182, 0.1);
    border: 2px solid #9b59b6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.pattern-item {
    background: rgba(40, 40, 40, 0.6);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.pattern-formula {
    background: rgba(40, 40, 40, 0.6);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #3498db;
}

.pattern-examples {
    background: rgba(40, 40, 40, 0.6);
    padding: 10px;
    border-radius: 5px;
}

.complement {
    background: rgba(155, 89, 182, 0.2);
    border: 2px solid #9b59b6;
}

/* Adjective Order (Lesson 9) */
.order-visual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(52, 73, 94, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
    border: 2px solid rgba(218, 165, 32, 0.3);
}

.order-item {
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 15px;
    margin: 5px;
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.order-item-title {
    font-weight: bold;
    color: #daa520;
    margin-bottom: 5px;
}

.order-item-example {
    color: #e8d5c4;
    font-size: 0.9em;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

.order-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #daa520;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #daa520;
}

.order-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.order-table tr:hover {
    background: rgba(218, 165, 32, 0.1);
}

.mnemonic {
    background: rgba(255, 193, 7, 0.2);
    color: #e8d5c4;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 1.1em;
    text-align: center;
    font-weight: bold;
    border: 2px solid #daa520;
}

.example-correct {
    color: #2ecc71;
    font-weight: bold;
}

.example-wrong {
    color: #e74c3c;
    font-weight: bold;
    text-decoration: line-through;
}

/* Adverb Types (Lesson 10) */
.type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.type-card {
    background: rgba(52, 73, 94, 0.2);
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.type-title {
    color: #daa520;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #daa520;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #daa520;
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.comparison-table tr:hover {
    background: rgba(218, 165, 32, 0.1);
}

.special-note {
    background: rgba(255, 193, 7, 0.1);
    border-left: 5px solid #daa520;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: bold;
}

.right {
    color: #2ecc71;
    font-weight: bold;
}

.wrong {
    color: #e74c3c;
    text-decoration: line-through;
}

/* Sentence Types (Lesson 11) */
.sentence-type-box {
    background: rgba(155, 89, 182, 0.1);
    border: 2px solid #9b59b6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.punctuation-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(52, 73, 94, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.punctuation-mark {
    font-size: 48px;
    font-weight: bold;
}

.period {
    color: #2ecc71;
}

.question {
    color: #3498db;
}

.exclamation {
    color: #e74c3c;
}

.command-box {
    background: rgba(241, 196, 15, 0.1);
    border: 2px solid #f1c40f;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.question-pattern {
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.wh-questions {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid #2ecc71;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.wh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.wh-item {
    background: rgba(40, 40, 40, 0.6);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(46, 204, 113, 0.3);
    text-align: center;
}

/* Conjunctions (Lesson 12) */
.conjunction-type {
    background: rgba(155, 89, 182, 0.1);
    border: 2px solid #9b59b6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.conjunction-table {
    background: rgba(52, 73, 94, 0.2);
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.conjunction-bridge {
    background: rgba(218, 165, 32, 0.2);
    border: 2px solid #daa520;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    color: #daa520;
    text-align: center;
}

.sentence-part {
    background: rgba(40, 40, 40, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #3498db;
    text-align: center;
    min-width: 120px;
}

.correlative-box {
    background: rgba(241, 196, 15, 0.1);
    border: 2px solid #f1c40f;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.pair-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 8px;
}

.pair-part {
    background: rgba(241, 196, 15, 0.2);
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #f1c40f;
    font-weight: bold;
}

.subordinating-box {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid #2ecc71;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.sub-category {
    background: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.nav-button {
    background: #3498db;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        margin-top: 60px;
        padding: 20px;
    }

    .cornell-container {
        grid-template-columns: 1fr;
    }

    .cue-column {
        border-right: none;
        border-bottom: 2px solid rgba(218, 165, 32, 0.3);
    }

    .example-grid,
    .comparison-grid,
    .perfect-examples,
    .category-grid,
    .pattern-grid,
    .type-grid,
    .wh-grid {
        grid-template-columns: 1fr;
    }

    .rule-grid {
        grid-template-columns: 1fr;
    }

    .order-visual,
    .pair-visual,
    .sound-visual {
        flex-direction: column;
    }

    .sentence-breakdown {
        flex-direction: column;
        gap: 10px;
    }

    .plus-sign, .equals-sign {
        transform: rotate(90deg);
    }

    .timeline {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }

    .timeline::before {
        display: none;
    }

    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        font-size: 0.9em;
        gap: 5px;
    }

    .connection-visual {
        flex-direction: column;
    }

    .table-container {
        font-size: 0.9em;
    }

    th, td {
        padding: 8px;
    }

    .scale-item {
        flex-direction: column;
        gap: 5px;
    }

    .navigation {
        flex-direction: column;
        gap: 15px;
    }

    .navigation > div {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}
