:root {
    --primary-color: #800040;
    --secondary-color: #2c3e50;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --light-text: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    min-height: 100vh;
    padding: 20px;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

h1 {
    color: var(--light-text);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: #bdc3c7;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.content-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* For t-feat.wct - section-subtitle */
.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

/* For other pages - subsection-title */
.subsection-title {
    color: #000000;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 30px 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.content-area p {
    margin-bottom: 15px;
    text-align: justify;
    color: var(--text-color);
}

.content-area b {
    color: var(--primary-color);
}

.content-area a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.content-area a:hover {
    color: #a00050;
    text-decoration: underline;
}

/* For t-feat.wct - features-content */
.features-content {
    margin-top: 20px;
}

.features-content p {
    margin-bottom: 15px;
    text-align: justify;
    color: var(--text-color);
}

.features-content b {
    color: var(--primary-color);
}

.features-content ul {
    margin: 15px 0 15px 30px;
    list-style-type: disc;
    color: var(--text-color);
}

.features-content li {
    margin-bottom: 10px;
    padding-left: 5px;
    line-height: 1.6;
    color: var(--text-color);
}

/* For t-qwk.wct */
.qwk-container {
    margin-bottom: 40px;
}

.qwk-content p {
    margin-bottom: 15px;
    text-align: justify;
    color: var(--text-color);
}

.qwk-content b {
    color: var(--primary-color);
}

.steps-container {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid var(--primary-color);
}

.steps-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.steps-list {
    margin: 10px 0 10px 20px;
    list-style-type: decimal;
}

.steps-list li {
    margin-bottom: 10px;
    padding-left: 5px;
    color: var(--text-color);
    line-height: 1.6;
}

/* Definition Box */
.definition-box {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.definition-title {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.definition-title::before {
    content: "📌";
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Comparison Box */
.comparison-box {
    background-color: #fff8e1;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #ffc107;
    color: var(--text-color);
}

.comparison-title {
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.comparison-title::before {
    content: "⚖️";
    margin-right: 10px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    border-top: 3px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-title {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-description {
    font-size: 0.95rem;
    color: #666;
}

/* Highlight Box */
.highlight-box {
    background-color: #e8f5e9;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #4caf50;
    text-align: center;
    color: var(--text-color);
}

.highlight-title {
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Info Table */
.info-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.info-table {
    width: 80%;
    border-collapse: collapse;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-table tr {
    background-color: var(--light-bg);
    transition: background-color 0.3s ease;
}

.info-table tr:nth-child(even) {
    background-color: #f0f0f0;
}

.info-table tr:hover {
    background-color: #e8e8e8;
}

.info-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    color: var(--text-color);
}

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

.info-table td b {
    color: var(--secondary-color);
}

.info-table td:first-child {
    width: 50%;
    border-right: 1px solid #ddd;
}

.info-table td:last-child {
    width: 50%;
}

/* Lists */
.content-area ul {
    margin: 15px 0 15px 30px;
    list-style-type: disc;
    color: var(--text-color);
}

.content-area li {
    margin-bottom: 10px;
    padding-left: 5px;
    line-height: 1.6;
    color: var(--text-color);
}

.numbered-list {
    margin: 15px 0 15px 30px;
    list-style-type: decimal;
}

.numbered-list li {
    margin-bottom: 12px;
    padding-left: 5px;
}

/* Command/Example Boxes */
.command-container {
    margin-bottom: 40px;
}

.command-title {
    color: #000000;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.command-item {
    margin-bottom: 12px;
    padding-left: 5px;
    color: var(--text-color);
    line-height: 1.6;
}

.example-box {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 3px solid var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--text-color);
}

/* File Grid */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.file-item {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    border-left: 3px solid var(--primary-color);
}

.file-name {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.file-desc {
    font-size: 0.9rem;
    color: #666;
}

/* Note/Warning Boxes */
.note-box {
    background-color: #fff8e1;
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #ffc107;
    color: var(--text-color);
}

.note-title {
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 10px;
}

.warning-box {
    background-color: #ffebee;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #f44336;
    color: var(--text-color);
}

.warning-title {
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.warning-title::before {
    content: "⚠️";
    margin-right: 8px;
}

/* Limits Box */
.limits-box {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.limit-item {
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--secondary-color);
}

.limit-item:last-child {
    margin-bottom: 0;
}

/* Term List for Glossary */
.term-list {
    list-style-type: none;
    padding: 0;
}

.term-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #e0e0e0;
}

.term-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.term-name {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.term-name::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.term-definition {
    margin-left: 20px;
    text-align: justify;
    color: var(--text-color);
}

.term-definition b {
    color: var(--secondary-color);
}

/* Year Sections for History */
.year-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e0e0;
}

.year-section:last-child {
    border-bottom: none;
}

.year-title {
    color: #000000;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.year-title::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
}

.year-content {
    margin-left: 22px;
    text-align: justify;
    color: var(--text-color);
}

.year-content b {
    color: var(--primary-color);
}

/* Topic Titles for t-how */
.topic-title {
    color: #000000;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 40px 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
}

.topic-title::before {
    content: "📌";
    margin-right: 10px;
    font-size: 1.2rem;
}

.topic-container {
    margin-bottom: 50px;
}

/* Smiley Examples */
.smiley-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.smiley-item {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.smiley-symbol {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.smiley-meaning {
    font-size: 0.9rem;
    color: #666;
}

/* Tip List */
.tip-list {
    margin: 15px 0 15px 30px;
    list-style-type: disc;
    color: var(--text-color);
}

.tip-list li {
    margin-bottom: 10px;
    padding-left: 5px;
}

/* Specs Grid for t-set */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.specs-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.specs-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.4rem;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: flex-start;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 12px;
    margin-top: -2px;
    flex-shrink: 0;
}

/* Comparison Grid for t-spec */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.comparison-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    border-top: 4px solid #B73C00;
}

.comparison-card .comparison-title {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.comparison-list {
    list-style-type: none;
    padding: 0;
}

.comparison-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.comparison-list li::before {
    content: "✓";
    color: #B73C00;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Benefit List for t-spec */
.benefit-list {
    margin: 20px 0 20px 30px;
    list-style-type: decimal;
}

.benefit-list li {
    margin-bottom: 12px;
    padding-left: 5px;
}

/* Conclusion Box for t-spec */
.conclusion-box {
    background-color: #e8f5e9;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #4caf50;
    text-align: center;
}

.conclusion-title {
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Client List for t-wcNav */
.client-list {
    list-style-type: none;
    padding: 0;
}

.client-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.client-name {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.client-name::before {
    content: "▶";
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.9rem;
}

.client-description {
    margin-left: 20px;
    text-align: justify;
    color: var(--text-color);
}

/* wcNav specific */
.wc-header {
    text-align: center;
    margin-bottom: 30px;
}

.wc-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.wc-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Billboard Styles for t-note */
.billboard-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 30px;
    background-color: #C6FFC6;
    border-radius: var(--border-radius);
    border: 3px solid #000000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.billboard-content {
    width: 100%;
    display: block;
    padding: 20px;
    text-align: left;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.billboard-content.active {
    opacity: 1;
    position: relative;
}

.billboard-text {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: justify;
}

.billboard-text b {
    color: #000000;
}

.color-blue {
    color: #0000FF;
}

.color-red {
    color: #DD0000;
}

.billboard-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cccccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-color);
}

/* List Item Label for t-user */
.list-item-label {
    font-weight: bold;
    color: var(--secondary-color);
}

/* Counter */
.counter {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    color: var(--light-text);
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #bdc3c7;
    font-size: 0.9rem;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    .subsection-title {
        font-size: 1.2rem;
    }
    
    .topic-title {
        font-size: 1.3rem;
    }
    
    .year-title {
        font-size: 1.2rem;
    }
    
    .year-content {
        margin-left: 15px;
    }
    
    .term-definition {
        margin-left: 15px;
    }
    
    .term-name {
        font-size: 1rem;
    }
    
    .info-table {
        width: 100%;
    }
    
    .info-table td {
        padding: 12px 10px;
    }
    
    .command-title {
        font-size: 1.1rem;
    }
    
    .file-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .smiley-examples {
        grid-template-columns: 1fr;
    }
    
    .content-area ul,
    .numbered-list,
    .tip-list,
    .benefit-list {
        margin-left: 20px;
    }
    
    .client-description {
        margin-left: 15px;
    }
    
    .client-item {
        padding: 15px;
    }
    
    .wc-logo {
        max-width: 250px;
    }
    
    .wc-title {
        font-size: 1.6rem;
    }
    
    .billboard-wrapper {
        padding: 20px;
        min-height: 300px;
    }
    
    .billboard-text {
        font-size: 1rem;
    }
    
    .definition-box,
    .comparison-box,
    .highlight-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .info-table td {
        display: block;
        width: 100% !important;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .info-table tr {
        display: block;
        margin-bottom: 5px;
        border-bottom: 2px solid #ccc;
    }
    
    .info-table tr:last-child {
        margin-bottom: 0;
    }
    
    .info-table td:last-child {
        border-bottom: none;
    }
    
    .specs-card {
        padding: 15px;
    }
    
    .specs-list li {
        padding: 10px 0;
        font-size: 0.95rem;
    }
    
    .specs-list li:before {
        margin-right: 8px;
        font-size: 1.2rem;
    }
}
