/* CSS Variables */
:root {
    --background-light: #f9f9f9;
    --background-dark: #0d1117;
    --text-light: #333;
    --text-dark: #c9d1d9;
    --primary-light: #007acc;
    --primary-dark: #58a6ff;
}

/* Base Styles */
body {
    font-family: 'Fira Code', 'Source Code Pro', Menlo, Consolas, monospace;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-light);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-theme {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

/* Header and Footer */
header, footer {
    background-color: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    color: #ccc;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Icon animations */
.theme-toggle svg {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Dark theme icon states */
body.dark-theme .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.dark-theme .moon-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 20px;
    background-color: #f7f9fb;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ctext x='6' y='26' font-family='Courier,monospace' font-size='16' fill='%23e8f0ff'%3E%3E%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    position: relative;
}

body.dark-theme .hero {
    background-color: #0d1117;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ctext x='6' y='26' font-family='Courier,monospace' font-size='16' fill='%23182030'%3E%3E%3C/text%3E%3C/svg%3E");
}


.hero img {
    max-height: 360px;
    margin: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hero img:hover {
    transform: scale(1.05);
}

/* Books Container */
.books-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    margin-top: 20px;
}

.book-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Books Container Mobile Responsive */
@media (max-width: 768px) {
    .books-container {
        flex-direction: column;
        gap: 32px;
        margin-top: 24px;
    }
    
    .book-item {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .book-item img {
        max-width: 200px;
        height: auto;
    }
}

/* Star Ratings */
.star-rating {
    color: #FFD700 !important;
    font-size: 24px;
    letter-spacing: 2px;
    margin: 8px 0;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    display: inline-block;
}

a.star-rating {
    color: #FFD700 !important;
}

a.star-rating:hover {
    color: #FFD700 !important;
    opacity: 0.9;
}

.star-rating::after {
    content: 'Amazon';
    font-size: 10px;
    color: #666;
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 0.5px;
    font-weight: normal;
}

body.dark-theme .star-rating::after {
    color: #999;
}

/* Buy Buttons */
.buy-button {
    display: inline-block;
    background-color: var(--primary-light);
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
}

.buy-button:hover {
    background-color: var(--primary-dark);
}

body.dark-theme .buy-button {
    background-color: var(--primary-dark);
    color: #000;
}

body.dark-theme .buy-button:hover {
    background-color: var(--primary-light);
    color: #fff;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background-color: #fff;
}

body.dark-theme table {
    background-color: #1c2128;
}

table, th, td {
    border: 1px solid #ddd;
}

body.dark-theme table,
body.dark-theme th,
body.dark-theme td {
    border: 1px solid #444;
}

th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: 600;
}

body.dark-theme th {
    background-color: #2d333b;
    color: #c9d1d9;
}

th, td {
    padding: 12px;
    text-align: left;
}

/* Compare Editions Table Responsive Design */
@media (max-width: 768px) {
    /* Hide table headers on mobile */
    table thead {
        display: none;
    }
    
    /* Make each row a card */
    table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    body.dark-theme table tbody tr {
        background: #161b22;
        border: 1px solid #30363d;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    /* Make cells block level and add labels */
    table tbody td {
        display: block;
        padding: 12px 16px;
        border: none;
        border-bottom: 1px solid #e2e8f0;
        position: relative;
        padding-left: 40%;
    }
    
    body.dark-theme table tbody td {
        border-bottom: 1px solid #30363d;
    }
    
    /* Remove border from last cell */
    table tbody td:last-child {
        border-bottom: none;
    }
    
    /* Add labels before each cell */
    table tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        font-weight: 600;
        color: var(--primary-light);
    }
    
    body.dark-theme table tbody td:before {
        color: var(--primary-dark);
    }
    
    /* Special styling for the first cell (Feature name) */
    table tbody td:first-child {
        background: #f8fafc;
        font-weight: 600;
        padding-left: 16px;
        padding-top: 16px;
        padding-bottom: 8px;
        color: var(--primary-light);
    }
    
    body.dark-theme table tbody td:first-child {
        background: #0d1117;
        color: var(--primary-dark);
    }
    
    /* Remove table borders on mobile */
    table {
        border: none;
        background: transparent;
    }
}

/* Typography */
h2 {
    margin-top: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    color: var(--primary-light);
}

body.dark-theme h2 {
    border-bottom: 2px solid #444;
    color: var(--primary-dark);
}

section {
    margin-bottom: 32px;
}

/* Links */
a {
    color: var(--primary-light);
}

body.dark-theme a {
    color: var(--primary-dark);
}

/* Social Media Links */
.social-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: #ccc;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.2);
}

.social-links a svg {
    display: block;
}

/* Sponsors Section */
.sponsors {
    margin: 20px 0 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.sponsors h4 {
    margin: 0 0 10px 0;
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sponsor-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.sponsor-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.05);
}

.sponsor-links a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Build timestamp */
.build-timestamp {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    margin-top: 8px;
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.4px;
    user-select: text;
    opacity: 0.5;
    cursor: text;
}

/* TOC Page Specific Styles */
.toc-page {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
}

h1 {
    color: var(--primary-light);
}

body.dark-theme h1 {
    color: var(--primary-dark);
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* Terminal Intro Animation */
.terminal-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d1117;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fira Code', 'Source Code Pro', Menlo, Consolas, monospace;
    color: #58a6ff;
    font-size: 18px;
    line-height: 1.8;
}

.terminal-intro.hidden {
    display: none;
}

.terminal-content {
    text-align: left;
    max-width: 600px;
    padding: 20px;
}

.prompt {
    color: #7dd3fc;
    font-weight: bold;
}

.terminal-line {
    opacity: 0;
    margin-bottom: 10px;
}

.terminal-line.visible {
    opacity: 1;
    animation: fadeIn 0.5s ease-in;
}

.cursor {
    display: inline-block;
    width: 12px;
    height: 20px;
    background-color: #58a6ff;
    margin-left: 2px;
    animation: blink 1s infinite;
}

.cursor.typing {
    animation: none;
    background-color: #58a6ff;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.terminal-intro.fade-out {
    animation: fadeOut 1s ease-out forwards;
}

.main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.main-content.visible {
    opacity: 1;
}

/* Syntax Highlighting */
.highlight {
    color: #58a6ff;
    font-family: 'Fira Code', 'Source Code Pro', Menlo, Consolas, monospace;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
    background-color: rgba(88, 166, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.highlight:hover {
    background-color: rgba(88, 166, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(88, 166, 255, 0.3);
}

body.dark-theme .highlight {
    color: #58a6ff;
    background-color: rgba(88, 166, 255, 0.15);
}

body.dark-theme .highlight:hover {
    background-color: rgba(88, 166, 255, 0.25);
}

/* Animated underline effect for highlights */
.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #58a6ff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.highlight:hover::after {
    width: 100%;
}

/* Copy Code Button */
.copy-code-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #58a6ff;
}

.copy-btn:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.5);
    transform: translateY(-1px);
}

.copy-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.copy-btn.copied {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.copy-btn.copied svg {
    fill: #22c55e;
}

body.dark-theme .copy-btn {
    background: rgba(88, 166, 255, 0.15);
    border-color: rgba(88, 166, 255, 0.4);
}

body.dark-theme .copy-btn:hover {
    background: rgba(88, 166, 255, 0.25);
    border-color: rgba(88, 166, 255, 0.6);
}

body.dark-theme .copy-btn.copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
}

/* Git clone code styling */
.git-clone-code {
    font-size: 12px;
    color: var(--text-light);
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Fira Code', monospace;
    word-break: break-all;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    max-width: 100%;
    display: inline-block;
}

body.dark-theme .git-clone-code {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsive for git clone */
@media (max-width: 768px) {
    .git-clone-code {
        font-size: 10px;
        padding: 2px 4px;
        word-break: break-all;
        line-height: 1.2;
    }
    
    .copy-code-container {
        overflow: hidden;
        width: 100%;
    }
}

/* Code element in dark theme */
body.dark-theme code {
    color: var(--text-dark) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Author Section Styles */
.author-profile-compact {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    text-align: center;
}

body.dark-theme .author-profile-compact {
    background: #161b22;
    border: 1px solid #30363d;
}

.author-profile-compact h3 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    color: var(--primary-light);
    font-weight: 700;
}

body.dark-theme .author-profile-compact h3 {
    color: var(--primary-dark);
}

.author-profile-compact .author-credentials {
    margin: 0 0 16px 0;
    font-size: 0.95em;
    color: #666;
    font-weight: 500;
}

body.dark-theme .author-profile-compact .author-credentials {
    color: #8b949e;
}

.author-profile-compact p:last-child {
    margin-bottom: 0;
    text-align: left;
    line-height: 1.6;
}

/* Responsive Design for Author Section */
@media (max-width: 768px) {
    .author-profile-compact {
        padding: 20px;
        margin: 16px 0;
    }
    
    .author-profile-compact h3 {
        font-size: 1.3em;
    }
}

/* Reviews Section Styles */
.reviews-container {
    margin: 32px 0;
    overflow: hidden;
}

/* Reviews Tabs */
.reviews-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 24px 0 32px 0;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.dark-theme .reviews-tabs {
    background: #161b22;
}

.tab-button {
    flex-shrink: 0;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button:hover {
    color: var(--primary-light);
    background: rgba(0, 122, 204, 0.1);
}

.tab-button.active {
    background: var(--primary-light);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 122, 204, 0.2);
}

body.dark-theme .tab-button {
    color: #8b949e;
}

body.dark-theme .tab-button:hover {
    color: var(--primary-dark);
    background: rgba(88, 166, 255, 0.1);
}

body.dark-theme .tab-button.active {
    background: var(--primary-dark);
    color: #0d1117;
    box-shadow: 0 2px 4px rgba(88, 166, 255, 0.2);
}

.reviews-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

body.dark-theme .reviews-header {
    background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
    border: 1px solid #30363d;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.rating-number {
    font-size: 3em;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
}

body.dark-theme .rating-number {
    color: var(--primary-dark);
}

.rating-stars {
    color: #FFD700;
    font-size: 1.8em;
    letter-spacing: 2px;
}

.rating-label {
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
}

body.dark-theme .rating-label {
    color: #8b949e;
}

.rating-subtitle {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

body.dark-theme .rating-subtitle {
    color: #8b949e;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.review-card.hidden {
    display: none;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body.dark-theme .review-card {
    background: #161b22;
    border: 1px solid #30363d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .review-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-stars {
    color: #FFD700;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.review-date {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
}

body.dark-theme .review-date {
    color: #8b949e;
}

.review-title {
    margin: 0 0 16px 0;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.4;
}

.review-title-link {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.review-title-link:hover {
    color: #005a99;
    text-decoration: underline;
}

body.dark-theme .review-title-link {
    color: var(--primary-dark);
}

body.dark-theme .review-title-link:hover {
    color: #7eb8ff;
    text-decoration: underline;
}

.review-text {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #333;
    font-size: 0.95em;
}

body.dark-theme .review-text {
    color: #c9d1d9;
}

.review-attribution {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85em;
}

body.dark-theme .review-attribution {
    border-top: 1px solid #30363d;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
    background-color: #f8fafc;
}

body.dark-theme .review-avatar {
    border: 2px solid #30363d;
    background-color: #161b22;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.review-author-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.review-source {
    color: #666;
    font-weight: 500;
}

body.dark-theme .review-source {
    color: #8b949e;
}

.review-book {
    background: var(--primary-light);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

body.dark-theme .review-book {
    background: var(--primary-dark);
    color: #0d1117;
}


.reviews-cta {
    text-align: center;
    padding: 32px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

body.dark-theme .reviews-cta {
    background: #161b22;
    border: 1px solid #30363d;
}

.reviews-cta p {
    margin: 0 0 24px 0;
    font-size: 1.1em;
    color: #555;
    font-weight: 500;
}

body.dark-theme .reviews-cta p {
    color: #8b949e;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.reviews-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-light);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.reviews-link:hover {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

body.dark-theme .reviews-link {
    background: var(--primary-dark);
    color: #0d1117;
}

body.dark-theme .reviews-link:hover {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

/* Responsive Design for Reviews Section */
@media (max-width: 768px) {
    .reviews-tabs {
        margin: 20px 0 24px 0;
        padding: 3px;
        justify-content: flex-start;
    }
    
    .tab-button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    
    .reviews-header {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .rating-display {
        flex-direction: column;
        gap: 8px;
    }
    
    .rating-number {
        font-size: 2.5em;
    }
    
    .rating-stars {
        font-size: 1.5em;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .review-attribution {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }
    
    .review-avatar {
        width: 36px;
        height: 36px;
    }
    
    .review-meta {
        flex: 1;
    }
    
    .reviews-cta {
        padding: 20px;
    }
    
    .reviews-cta p {
        margin: 0 0 16px 0;
        font-size: 1em;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    
    .reviews-link {
        width: calc(100% - 32px);
        max-width: 280px;
        text-align: center;
        padding: 10px 16px;
        word-wrap: break-word;
        white-space: normal;
        font-size: 0.9em;
    }
}

/* FAQ Section Styles */
.faq-item {
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fff;
}

body.dark-theme .faq-item {
    border: 1px solid #30363d;
    background-color: #161b22;
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.1);
}

body.dark-theme .faq-item:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.1);
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    list-style: none;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

body.dark-theme .faq-item summary {
    background-color: #1c2128;
}

.faq-item summary:hover {
    background-color: #e9ecef;
}

body.dark-theme .faq-item summary:hover {
    background-color: #262c36;
}

.faq-item summary::before {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-light);
    transition: transform 0.3s ease;
}

body.dark-theme .faq-item summary::before {
    color: var(--primary-dark);
}

.faq-item[open] summary::before {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding: 0 20px 20px 20px;
    margin: 0;
    line-height: 1.8;
    color: #4a5568;
}

body.dark-theme .faq-item p {
    color: #8b949e;
}

/* Style bullet points in FAQ answers */
.faq-item p {
    white-space: pre-line;
}

/* Responsive Design for FAQ */
@media (max-width: 768px) {
    .faq-item summary {
        padding: 16px;
        font-size: 15px;
    }
    
    .faq-item p {
        padding: 0 16px 16px 16px;
        font-size: 14px;
    }
    
    .faq-item summary::before {
        right: 16px;
        font-size: 20px;
    }
}