/*
Theme Name: CompilerCafe
Theme URI: https://compilercafe.com
Author: CompilerCafe Team
Author URI: https://compilercafe.com
Description: A comprehensive learning platform theme for CompilerCafe, featuring language hubs, interactive code editors, tutorials, challenges, quizzes, and community forum - all optimized for programming education.
Version: 1.0.0
Requires at least: 5.6
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: compilercafe
Tags: education, e-learning, programming, code-editor, tutorials, one-column, two-columns, right-sidebar, custom-colors, custom-menu, editor-style, featured-images, flexible-header, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks

CompilerCafe WordPress Theme, (C) 2025 CompilerCafe.com
CompilerCafe is distributed under the terms of the GNU GPL.
*/

/* ---------------------------
   Reset and Base Styles
   --------------------------- */
:root {
    --primary-color: #0073aa;
    --secondary-color: #fca311;
    --tertiary-color: #14b8a6;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --gray-dark-color: #343a40;
    --gray-light-color: #e9ecef;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-code: 'Fira Code', 'Source Code Pro', Consolas, Monaco, 'Andale Mono', monospace;
    --border-radius: 6px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
}

.dark-mode .site-header,
.dark-mode .site-footer,
.dark-mode .widget-area,
.dark-mode .main-navigation ul ul {
    background-color: #1a1a1a;
}

.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3,
.dark-mode h4, 
.dark-mode h5, 
.dark-mode h6,
.dark-mode a:not(.button) {
    color: #e0e0e0;
}

.dark-mode .language-card,
.dark-mode .tutorial-card,
.dark-mode .challenge-card,
.dark-mode .forum-post,
.dark-mode .code-editor,
.dark-mode .quiz-question {
    background-color: #1e1e1e;
    border-color: #333;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005682;
    text-decoration: underline;
}

code, pre {
    font-family: var(--font-code);
    font-size: 0.9rem;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
}

code {
    padding: 0.2em 0.4em;
}

pre {
    padding: 1rem;
    overflow: auto;
    margin-bottom: 1.5rem;
}

.dark-mode code, 
.dark-mode pre {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

/* ---------------------------
   Layout & Container
   --------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
}

.col-md-3 {
    width: 25%;
}

.col-md-4 {
    width: 33.333333%;
}

.col-md-6 {
    width: 50%;
}

.col-md-8 {
    width: 66.666667%;
}

.col-md-9 {
    width: 75%;
}

@media (max-width: 992px) {
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-md-9 {
        width: 100%;
    }
}

/* ---------------------------
   Header Styles
   --------------------------- */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dark-mode .site-header {
    background-color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.site-description {
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
    color: var(--gray-color);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    margin-right: 1.5rem;
}

.main-navigation a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a {
    color: var(--primary-color);
    font-weight: 600;
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
}

.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-color);
    margin-right: 1rem;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    color: var(--primary-color);
}

.dark-mode .dark-mode-toggle {
    color: var(--light-color);
}

.dark-mode-icon.moon {
    display: block;
}

.dark-mode-icon.sun {
    display: none;
}

.dark-mode .dark-mode-icon.moon {
    display: none;
}

.dark-mode .dark-mode-icon.sun {
    display: block;
}

.auth-buttons {
    display: flex;
    align-items: center;
}

.login-button {
    font-weight: 500;
    margin-right: 0.75rem;
}

.register-button {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.register-button:hover {
    background-color: #005682;
    text-decoration: none;
    color: white;
}

.user-profile-menu {
    position: relative;
}

.user-profile-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.user-profile-toggle img {
    border-radius: 50%;
    margin-right: 0.5rem;
}

.user-name {
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-width: 200px;
    padding: 0.5rem 0;
    display: none;
    z-index: 10;
}

.dark-mode .user-dropdown {
    background-color: #1a1a1a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.user-profile-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    transition: background-color 0.3s ease;
}

.user-dropdown a:hover {
    background-color: var(--gray-light-color);
    text-decoration: none;
}

.dark-mode .user-dropdown a:hover {
    background-color: #2a2a2a;
}

/* Search Form */
.header-search {
    margin-right: 1.5rem;
}

.search-form {
    display: flex;
}

.search-form-container {
    display: flex;
    position: relative;
}

.search-field {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-light-color);
    border-radius: var(--border-radius);
    width: 200px;
    font-family: var(--font-primary);
}

.search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-color);
}

.search-submit:hover {
    color: var(--primary-color);
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--dark-color);
    transition: transform 0.3s ease;
}

.menu-toggle-icon::before {
    top: -6px;
}

.menu-toggle-icon::after {
    bottom: -6px;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .primary-menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation li {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .menu-toggle.toggled + .primary-menu-container {
        display: block;
    }
    
    .menu-toggle.toggled .menu-toggle-icon {
        background-color: transparent;
    }
    
    .menu-toggle.toggled .menu-toggle-icon::before {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .menu-toggle.toggled .menu-toggle-icon::after {
        transform: rotate(-45deg) translate(4px, -4px);
    }
}

/* Breadcrumbs */
.breadcrumbs-wrapper {
    background-color: var(--gray-light-color);
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.dark-mode .breadcrumbs-wrapper {
    background-color: #2a2a2a;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs span {
    margin-right: 0.5rem;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--gray-color);
}

/* ---------------------------
   Main Content Styles
   --------------------------- */
.site-content {
    padding: 3rem 0;
}

.site-main {
    margin-bottom: 2rem;
}

/* Page Title */
.page-title {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-light-color);
    padding-bottom: 1rem;
}

/* ---------------------------
   Post Styles
   --------------------------- */
.post {
    margin-bottom: 3rem;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.post-thumbnail a:hover img {
    transform: scale(1.03);
}

.entry-content {
    margin-bottom: 1.5rem;
}

.entry-footer {
    font-size: 0.875rem;
    color: var(--gray-color);
    border-top: 1px solid var(--gray-light-color);
    padding-top: 1rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #005682;
    text-decoration: none;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid var(--gray-light-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.page-numbers.current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-numbers:hover:not(.current) {
    background-color: var(--gray-light-color);
    text-decoration: none;
}

/* ---------------------------
   Sidebar Styles
   --------------------------- */
.widget-area {
    padding-left: 2rem;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-light-color);
}

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

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light-color);
}

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

/* Search Widget */
.widget_search .search-field {
    width: 100%;
}

/* ---------------------------
   Footer Styles
   --------------------------- */
.site-footer {
    background-color: var(--dark-color);
    color: white;
    padding-top: 3rem;
}

.dark-mode .site-footer {
    background-color: #121212;
    border-top: 1px solid #333;
}

.footer-widgets {
    padding-bottom: 3rem;
}

.footer-widget-area {
    margin-bottom: 2rem;
}

.footer-widget-area .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.social-links {
    display: flex;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.75rem;
    color: white;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    text-decoration: none;
}

.site-info {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    font-size: 0.875rem;
}

.dark-mode .site-info {
    background-color: rgba(0, 0, 0, 0.3);
}

#footer-menu {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer-menu li {
    margin-left: 1.5rem;
}

#footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

#footer-menu a:hover {
    color: white;
    text-decoration: none;
}

.text-end {
    text-align: right;
}

/* Newsletter Form */
.newsletter-form {
    margin-top: 1rem;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
}

.newsletter-form button {
    width: 100%;
}

/* ---------------------------
   Button Styles
   --------------------------- */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    line-height: 1.5;
}

.button:hover {
    background-color: #005682;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.button:active {
    transform: translateY(0);
}

.secondary-button {
    background-color: var(--secondary-color);
}

.secondary-button:hover {
    background-color: #e69001;
}

.tertiary-button {
    background-color: var(--tertiary-color);
}

.tertiary-button:hover {
    background-color: #0e9a8e;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
}

.view-all-button svg {
    margin-left: 0.5rem;
}

/* ---------------------------
   Front Page Styles
   --------------------------- */
/* Section Styles */
.section-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-header h2 {
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.75rem auto 0;
}

.section-header p {
    color: var(--gray-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: #f9f9f9;
}

.dark-mode section:nth-child(even) {
    background-color: #1a1a1a;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.dark-mode .hero-section {
    background-color: #121212;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--gray-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

@media (max-width: 992px) {
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* Featured Languages Section */
.language-cards {
    margin-bottom: 2rem;
}

.language-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.dark-mode .language-card {
    background-color: #1e1e1e;
}

.language-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.language-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-icon img {
    max-width: 100%;
    max-height: 100%;
}

.language-name {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.language-description {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.language-difficulty {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.difficulty-label {
    margin-right: 0.5rem;
    font-weight: 500;
}

.difficulty-level {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-beginner {
    background-color: var(--secondary-color);
    color: white;
}

.difficulty-intermediate {
    background-color: var(--tertiary-color);
    color: white;
}

.difficulty-advanced {
    background-color: var(--primary-color);
    color: white;
}

/* Recent Tutorials Section */
.tutorial-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .tutorial-card {
    background-color: #1e1e1e;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.tutorial-thumbnail {
    height: 200px;
    overflow: hidden;
}

.tutorial-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tutorial-card:hover .tutorial-thumbnail img {
    transform: scale(1.05);
}

.tutorial-content {
    padding: 1.5rem;
}

.tutorial-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.tutorial-title a {
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.tutorial-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.tutorial-language {
    display: inline-block;
    background-color: rgba(0, 115, 170, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tutorial-difficulty {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-left: 0.5rem;
}

.tutorial-excerpt {
    color: var(--gray-color);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.tutorial-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-color);
    font-size: 0.875rem;
}

/* Daily Challenge Section */
.daily-challenge-section {
    background-color: #f5f7fa;
}

.dark-mode .daily-challenge-section {
    background-color: #1a1a1a;
}

.daily-challenge-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.dark-mode .daily-challenge-card {
    background-color: #1e1e1e;
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.daily-challenge-label {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.challenge-difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-easy {
    background-color: var(--success-color);
    color: white;
}

.difficulty-medium {
    background-color: var(--warning-color);
    color: white;
}

.difficulty-hard {
    background-color: var(--danger-color);
    color: white;
}

.challenge-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.challenge-description {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.challenge-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-color);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Code Editor Preview */
.code-editor-preview {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    height: 100%;
}

.dark-mode .code-editor-preview {
    background-color: #1e1e1e;
}

.code-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f5;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.dark-mode .code-editor-header {
    background-color: #2a2a2a;
    border-bottom-color: #333;
}

.code-editor-tabs button {
    background: none;
    border: none;
    padding: 0.25rem 0.75rem;
    font-family: var(--font-code);
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.code-editor-tabs button.active {
    background-color: #e0e0e0;
    font-weight: 600;
}

.dark-mode .code-editor-tabs button.active {
    background-color: #333;
}

.code-editor-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--gray-dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.code-editor-actions button:hover {
    color: var(--primary-color);
}

.dark-mode .code-editor-actions button {
    color: #e0e0e0;
}

.code-editor-content {
    padding: 1.5rem;
    max-height: 400px;
    overflow: auto;
}

.code-snippet {
    margin: 0;
    font-family: var(--font-code);
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre;
    background-color: transparent;
    padding: 0;
}

/* Features Section */
.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.dark-mode .feature-card {
    background-color: #1e1e1e;
}

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

.feature-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    height: 100%;
    position: relative;
}

.dark-mode .testimonial-card {
    background-color: #1e1e1e;
}

.testimonial-content {
    margin-bottom: 2rem;
    position: relative;
    padding-top: 1.5rem;
}

.testimonial-content:before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 5rem;
    color: var(--gray-light-color);
    font-family: serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-light-color);
    color: var(--gray-color);
}

.author-details h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.author-details p {
    color: var(--gray-color);
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #f5f7fa;
}

.dark-mode .newsletter-section {
    background-color: #1a1a1a;
}

.newsletter-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 3rem;
}

.dark-mode .newsletter-container {
    background-color: #1e1e1e;
}

.newsletter-content {
    margin-bottom: 2rem;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: var(--gray-color);
    margin-bottom: 0;
}

.input-group {
    display: flex;
}

.form-control {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: var(--font-primary);
}

.input-group .button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--gray-color);
}

@media (max-width: 992px) {
    .newsletter-content {
        text-align: center;
    }
}

/* ---------------------------
   Learning Platform Styles
   --------------------------- */
/* Language Hub */
.language-hub-header {
    margin-bottom: 3rem;
    text-align: center;
}

.language-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.language-filters .filter-button {
    background: none;
    border: 1px solid var(--gray-light-color);
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-filters .filter-button:hover {
    background-color: var(--gray-light-color);
}

.language-filters .filter-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Single Language */
.language-header {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.language-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
}

.language-logo img {
    max-width: 100%;
    max-height: 100%;
}

.language-info h1 {
    margin-bottom: 0.5rem;
}

.language-info p {
    color: var(--gray-color);
    max-width: 600px;
}

.language-stats {
    display: flex;
    margin-top: 1rem;
}

.language-stat {
    margin-right: 2rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-color);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.language-tabs {
    margin-bottom: 2rem;
}

.nav-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--gray-light-color);
}

.nav-tabs li {
    margin-right: 1rem;
}

.nav-tabs a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--gray-color);
    font-weight: 500;
    position: relative;
}

.nav-tabs a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-tabs a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-tabs a.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
}

/* Code Editor */
.code-editor {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 3rem;
}

.dark-mode .code-editor {
    background-color: #1e1e1e;
}

.code-editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.dark-mode .code-editor-toolbar {
    background-color: #2a2a2a;
    border-bottom-color: #333;
}

.toolbar-left {
    display: flex;
    align-items: center;
}

.language-selector {
    margin-right: 1rem;
}

.toolbar-right {
    display: flex;
    align-items: center;
}

.toolbar-button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--gray-dark-color);
    margin-left: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.toolbar-button:hover {
    background-color: #e0e0e0;
}

.dark-mode .toolbar-button:hover {
    background-color: #333;
}

.code-editor-main {
    display: flex;
    height: 500px;
}

.code-area {
    flex: 1;
    border-right: 1px solid #e0e0e0;
}

.dark-mode .code-area {
    border-right-color: #333;
}

.output-area {
    flex: 1;
    padding: 1rem;
    overflow: auto;
}

/* Challenge */
.challenge-detail {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 3rem;
}

.dark-mode .challenge-detail {
    background-color: #1e1e1e;
}

.challenge-header {
    margin-bottom: 2rem;
}

.challenge-examples {
    margin-top: 2rem;
}

.example-item {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.dark-mode .example-item {
    background-color: #2a2a2a;
}

.example-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.example-code {
    font-family: var(--font-code);
    padding: 1rem;
    background-color: #f1f1f1;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.dark-mode .example-code {
    background-color: #333;
}

.example-explanation {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Quiz */
.quiz-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 3rem;
}

.dark-mode .quiz-container {
    background-color: #1e1e1e;
}

.quiz-header {
    margin-bottom: 2rem;
    text-align: center;
}

.quiz-progress {
    margin-bottom: 1.5rem;
}

.quiz-progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.quiz-progress-bar {
    height: 8px;
    background-color: var(--gray-light-color);
    border-radius: 4px;
    overflow: hidden;
}

.dark-mode .quiz-progress-bar {
    background-color: #333;
}

.quiz-progress-bar .progress {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.quiz-question {
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

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

.question-option {
    margin-bottom: 1rem;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--gray-light-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-label:hover {
    background-color: #f9f9f9;
}

.dark-mode .option-label:hover {
    background-color: #2a2a2a;
}

.option-radio {
    margin-right: 1rem;
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
}

/* Profile Page */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 2rem;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    margin-bottom: 0.5rem;
}

.profile-bio {
    color: var(--gray-color);
    max-width: 600px;
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
}

.profile-stat {
    margin-right: 2rem;
}

.profile-nav {
    margin-bottom: 2rem;
}

.profile-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.dark-mode .profile-content {
    background-color: #1e1e1e;
}

/* Progress Chart */
.progress-chart {
    margin-bottom: 3rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-filters {
    display: flex;
}

.chart-filter {
    margin-left: 1rem;
}

/* Badges */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.badge-item {
    width: 120px;
    text-align: center;
}

.badge-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-light-color);
    border-radius: 50%;
    color: var(--gray-dark-color);
    font-size: 2rem;
}

.dark-mode .badge-icon {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.badge-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.badge-description {
    font-size: 0.75rem;
    color: var(--gray-color);
}

/* ---------------------------
   Responsive Styles
   --------------------------- */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .button {
        margin-bottom: 1rem;
    }
    
    .language-header {
        flex-direction: column;
        text-align: center;
    }
    
    .language-logo {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .language-stats {
        justify-content: center;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .newsletter-container {
        padding: 2rem 1.5rem;
    }
    
    .site-info {
        text-align: center;
    }
    
    #footer-menu {
        justify-content: center;
        margin-top: 1rem;
    }
    
    #footer-menu li {
        margin: 0 0.75rem;
    }
    
    .text-end {
        text-align: center;
    }
}

/* ---------------------------
   Certificate Styles
   --------------------------- */
.certificate-preview {
    background-color: white;
    border: 1px solid var(--gray-light-color);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.dark-mode .certificate-preview {
    background-color: #1e1e1e;
}

.certificate-header {
    margin-bottom: 2rem;
}

.certificate-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.certificate-subtitle {
    font-size: 1.25rem;
    color: var(--gray-color);
}

.certificate-content {
    margin-bottom: 2rem;
}

.certificate-name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.certificate-course {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.certificate-date {
    font-style: italic;
    color: var(--gray-color);
}

.certificate-footer {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.certificate-signature {
    text-align: center;
}

.signature-line {
    width: 150px;
    height: 1px;
    background-color: var(--gray-color);
    margin: 0 auto 0.5rem;
}

.signature-name {
    font-weight: 600;
}

.signature-title {
    font-size: 0.875rem;
    color: var(--gray-color);
}

.certificate-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.certificate-button {
    display: flex;
    align-items: center;
}

.certificate-button svg {
    margin-right: 0.5rem;
}

/* Certificate Verification */
.verification-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.dark-mode .verification-container {
    background-color: #1e1e1e;
}

.verification-header {
    text-align: center;
    margin-bottom: 2rem;
}

.verification-form {
    margin-bottom: 2rem;
}

.verification-result {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.verification-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
}

.verification-error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
}

.verification-details {
    margin-top: 1.5rem;
}

.verification-detail {
    margin-bottom: 0.75rem;
}

.detail-label {
    font-weight: 600;
}

/* ---------------------------
   Forum Styles
   --------------------------- */
.forum-header {
    margin-bottom: 2rem;
}

.forum-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.forum-search {
    max-width: 400px;
}

.forum-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.forum-category {
    padding: 0.5rem 1rem;
    background-color: var(--gray-light-color);
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.forum-category:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.forum-category.active {
    background-color: var(--primary-color);
    color: white;
}

.forum-post {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.dark-mode .forum-post {
    background-color: #1e1e1e;
}

.forum-post:hover {
    transform: translateY(-3px);
}

.post-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-light-color);
}

.dark-mode .post-header {
    border-bottom-color: #333;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: var(--dark-color);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-color);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.post-timestamp {
    margin-left: auto;
}

.post-body {
    padding: 1.5rem;
}

.post-content {
    margin-bottom: 1.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    padding: 0.25rem 0.75rem;
    background-color: var(--gray-light-color);
    border-radius: 20px;
    font-size: 0.75rem;
}

.post-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-light-color);
    display: flex;
    justify-content: space-between;
}

.dark-mode .post-footer {
    border-top-color: #333;
}

.post-stats {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-color);
}

.post-stat {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.post-stat svg {
    margin-right: 0.5rem;
}

/* Forum Post Detail */
.post-detail {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.dark-mode .post-detail {
    background-color: #1e1e1e;
}

.post-detail-header {
    padding: 2rem;
    border-bottom: 1px solid var(--gray-light-color);
}

.dark-mode .post-detail-header {
    border-bottom-color: #333;
}

.post-detail-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.post-detail-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
}

.author-name {
    font-weight: 500;
}

.post-detail-body {
    padding: 2rem;
}

/* Comments */
.comments-section {
    margin-top: 3rem;
}

.comments-header {
    margin-bottom: 2rem;
}

.comment {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.dark-mode .comment {
    background-color: #1e1e1e;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
}

.comment-content {
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.comment-action {
    color: var(--gray-color);
    display: flex;
    align-items: center;
}

.comment-action svg {
    margin-right: 0.25rem;
}

.comment-form {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
}

.dark-mode .comment-form {
    background-color: #1e1e1e;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
}

textarea.form-control {
    min-height: 150px;
}

/* ---------------------------
   SEO Dashboard Styles
   --------------------------- */
.seo-dashboard {
    margin-bottom: 3rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    flex: 1;
    min-width: 250px;
}

.dark-mode .dashboard-card {
    background-color: #1e1e1e;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
}

.card-value {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.875rem;
    color: var(--gray-color);
}

.trend-up {
    color: var(--success-color);
}

.trend-down {
    color: var(--danger-color);
}

/* SEO Content Table */
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.content-table th,
.content-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light-color);
}

.dark-mode .content-table th,
.dark-mode .content-table td {
    border-bottom-color: #333;
}

.content-table th {
    font-weight: 600;
    background-color: #f5f5f5;
}

.dark-mode .content-table th {
    background-color: #2a2a2a;
}

.content-table tbody tr:hover {
    background-color: #f9f9f9;
}

.dark-mode .content-table tbody tr:hover {
    background-color: #2a2a2a;
}

.score-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.score-good {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.score-average {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

.score-poor {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
}

/* SEO Analysis */
.analysis-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.dark-mode .analysis-section {
    background-color: #1e1e1e;
}

.analysis-header {
    margin-bottom: 1.5rem;
}

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

.analysis-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light-color);
    display: flex;
    align-items: flex-start;
}

.dark-mode .analysis-item {
    border-bottom-color: #333;
}

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

.analysis-icon {
    margin-right: 1rem;
    padding-top: 0.25rem;
}

.analysis-icon-good {
    color: var(--success-color);
}

.analysis-icon-warning {
    color: var(--warning-color);
}

.analysis-icon-error {
    color: var(--danger-color);
}

.analysis-content {
    flex: 1;
}

.analysis-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.analysis-description {
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

/* Competitor Analysis */
.competitor-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.competitor-table th,
.competitor-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light-color);
}

.dark-mode .competitor-table th,
.dark-mode .competitor-table td {
    border-bottom-color: #333;
}

.competitor-table th {
    font-weight: 600;
    background-color: #f5f5f5;
}

.dark-mode .competitor-table th {
    background-color: #2a2a2a;
}

.competitor-table tbody tr:hover {
    background-color: #f9f9f9;
}

.dark-mode .competitor-table tbody tr:hover {
    background-color: #2a2a2a;
}

.competitor-name {
    display: flex;
    align-items: center;
}

.competitor-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
}

/* Keyword Trends */
.keyword-chart {
    height: 300px;
    margin-bottom: 2rem;
}

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

.keyword-table th,
.keyword-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light-color);
}

.dark-mode .keyword-table th,
.dark-mode .keyword-table td {
    border-bottom-color: #333;
}

.keyword-table th {
    font-weight: 600;
    background-color: #f5f5f5;
}

.dark-mode .keyword-table th {
    background-color: #2a2a2a;
}

.keyword-table tbody tr:hover {
    background-color: #f9f9f9;
}

.dark-mode .keyword-table tbody tr:hover {
    background-color: #2a2a2a;
}

/* Backlink Manager */
.backlink-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-label {
    margin-right: 0.5rem;
    font-weight: 500;
}

.backlink-chart {
    height: 300px;
    margin-bottom: 2rem;
}

/* Internal Linking */
.page-structure {
    margin-bottom: 2rem;
}

.structure-item {
    padding: 1rem;
    border: 1px solid var(--gray-light-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.dark-mode .structure-item {
    border-color: #333;
}

.structure-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.structure-title {
    font-weight: 500;
    margin: 0;
}

.structure-content {
    margin-top: 1rem;
    display: none;
}

.structure-content.active {
    display: block;
}

.link-suggestion {
    padding: 0.75rem;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dark-mode .link-suggestion {
    background-color: #2a2a2a;
}

.suggestion-add {
    color: var(--success-color);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.suggestion-add svg {
    margin-right: 0.25rem;
}

/* Media Queries for all sections */
@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .dashboard-card {
        min-width: 100%;
    }
    
    .certificate-preview {
        padding: 1rem;
    }
    
    .certificate-title {
        font-size: 1.75rem;
    }
    
    .certificate-name {
        font-size: 1.5rem;
    }
    
    .certificate-course {
        font-size: 1.25rem;
    }
    
    .certificate-footer {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: none !important;
        color: #000 !important;
    }
    
    .site-header,
    .site-footer,
    .widget-area,
    .breadcrumbs-wrapper,
    .certificate-actions {
        display: none !important;
    }
    
    .site-content {
        padding: 0 !important;
    }
    
    .certificate-preview {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        padding: 1.5rem !important;
    }
}