body,
html {
    height: 100vh;
    font-family: "Roboto Condensed", sans-serif;
    background-color: #fefae0;
    background-image: linear-gradient(315deg, #fefae0 0%, #faedcd 25%, #f4e8d0 50%, #e6cc8a 75%, #d4a373 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Earth-toned text classes with blue accent */
.main-text {
    color: #8b6914 !important;
}

.accent-color {
    color: #d4a373 !important;
}

.blue-accent {
    color: #0d6efd !important;
}

.main-title {
    color: #6b4e03 !important;
}

.earth-btn {
    background: linear-gradient(45deg, #d4a373, #8b6914);
    border: none;
    color: white;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.earth-btn:hover {
    background: linear-gradient(45deg, #8b6914, #6b4e03);
    color: white;
}

/* Download page subtle styling */
.download-card-windows {
    background: rgba(233, 237, 201, 0.6);
    border: 1px solid rgba(212, 163, 115, 0.3);
}

.download-card-mac {
    background: rgba(250, 237, 205, 0.6);
    border: 1px solid rgba(212, 163, 115, 0.3);
}

.download-card-github {
    background: rgba(254, 250, 224, 0.6);
    border: 1px solid rgba(212, 163, 115, 0.3);
}

.badge-recommended {
    background: #e6cc8a;
    color: #6b4e03;
}

.badge-auto-updates {
    background: #d4a373;
    color: white;
}

.github-header {
    background: rgba(212, 163, 115, 0.2);
}

.whats-new-section {
    background: linear-gradient(135deg, #f4e8d0 0%, #e6cc8a 100%);
}

#mainCarousel .carousel-inner {
    max-width: 50rem;
}

/* Theme Creator Section */
.theme-section {
    background: linear-gradient(135deg, #fefae0 0%, #e9edc9 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.theme-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    background-image: 
        radial-gradient(circle at 25% 30%, rgba(212, 163, 115, 0.2) 2px, transparent 4px),
        radial-gradient(circle at 75% 60%, rgba(204, 213, 174, 0.2) 3px, transparent 6px),
        radial-gradient(circle at 50% 80%, rgba(233, 237, 201, 0.2) 2px, transparent 5px);
    background-size: 100px 100px;
    animation: particleMove 20s infinite linear;
}

@keyframes particleMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

.theme-card {
    background: rgba(254, 250, 224, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(139, 105, 20, 0.1);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(212, 163, 115, 0.3);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    padding: 3rem 2rem;
    color: #8b6914;
}

.theme-card h2, .theme-card h5 {
    color: #8b6914;
}

.theme-card p {
    color: #6b5b0d;
}

.theme-badge {
    position: absolute;
    top: -5px;
    right: 30px;
    background: linear-gradient(45deg, #d4a373, #8b6914);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.4);
    transform: rotate(10deg);
}

.theme-feature {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(250, 237, 205, 0.8);
    transition: transform 0.3s ease, background 0.3s ease;
    height: 100%;
}

.theme-feature:hover {
    transform: translateY(-5px);
    background: rgba(233, 237, 201, 0.9);
}

.theme-icon {
    font-size: 2.5rem;
    color: #d4a373;
    position: relative;
    transition: all 0.3s ease;
}

.theme-icon:nth-child(2),
.col-md-4:nth-child(2) .theme-icon {
    color: #8b6914;
}

.theme-icon:nth-child(3),
.col-md-4:nth-child(3) .theme-icon {
    color: #e6cc8a;
}

.theme-icon:hover {
    transform: scale(1.2) rotate(15deg);
}

.theme-btn {
    background: linear-gradient(45deg, #d4a373, #8b6914);
    border: none;
    padding: 0.8rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3);
}

.theme-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 163, 115, 0.5);
}

.theme-cta {
    margin-top: 2rem;
}

.blockquote-footer {
    font-size: normal !important;
    color: #8b6914 !important;
}

.blockquote {
    color: #6b5b0d !important;
}

.text-primary {
    color: #8b6914 !important;
}

.hero-bg {
    background-color: #fefae0;
    background-image: linear-gradient(315deg, #fefae0 0%, #faedcd 74%);
}

.feature-icon {
    font-size: 2.5rem;
    color: #d4a373;
}

.download-btn {
    min-width: 220px;
}

.screenshot-img {
    box-shadow: 0px 9px 30px rgba(212, 163, 115, 0.4);
}

.card.bg-dark {
    background: rgba(254, 250, 224, 0.95) !important;
    border: 1px solid rgba(212, 163, 115, 0.2);
}

.card.bg-dark .card-title {
    color: #8b6914 !important;
}

.card.bg-dark .card-text {
    color: #6b5b0d !important;
}

.footer-link {
    color: #d4a373 !important;
}
.lead-free {
    color: #8b6914;
    text-align: center;
    background: rgba(250, 237, 205, 0.8);
    border: 1px solid rgba(212, 163, 115, 0.3);
}

/* New Version Badge Styling */
.new-version-badge {
    background: linear-gradient(45deg, #d4a373, #8b6914);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(212, 163, 115, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 163, 115, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 163, 115, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 163, 115, 0);
    }
}

/* Enhanced Touch and Mobile Improvements */

/* Better touch targets for mobile - but preserve original styling */
.btn,
.btn-professional,
.btn-professional-outline {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Restore proper button styling */
.btn {
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn i {
    margin-right: 0.5rem;
}

/* Fix icon spacing for all buttons */
.btn-lg i,
.download-btn i,
.earth-btn i,
.nav-link-professional i {
    margin-right: 0.5rem;
}

.nav-link-professional {
    color: var(--color-primary-brown) !important;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(212, 163, 115, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
}

.nav-link-professional:hover {
    color: var(--color-primary-brown) !important;
    background: linear-gradient(135deg, var(--color-light-gold) 0%, var(--bg-icon) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(93, 64, 55, 0.15);
}

.nav-link-professional:active {
    transform: translateY(0);
}

.nav-link-professional i {
    font-size: 1rem;
}

/* Improved image responsiveness */
.screenshot-img,
.card-img-bottom,
.theme-card-image,
img {
    max-width: 100%;
    height: auto;
}

/* Better card spacing on mobile */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-body {
    padding: 1.25rem;
}

/* Improved button styling for mobile */
.download-btn-prominent {
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 50px;
}

.download-btn-prominent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4);
}

/* Theme gallery responsive improvements */
.theme-gallery {
    padding: 0.5rem;
}

.theme-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Fix for full-width containers on mobile */
.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Improved text readability on mobile */
.lead {
    line-height: 1.6;
}

.card-text {
    line-height: 1.5;
}

/* Better spacing for sections on mobile */
.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Comprehensive Mobile Responsive Styling */

/* Large tablets and small desktops */
@media (max-width: 992px) {
    .hero-bg .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-3 {
        font-size: 3rem;
    }
    
    .screenshot-img {
        max-width: 100%;
        height: auto;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Navigation improvements */
    .nav-professional .container-fluid {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-professional .d-flex.gap-3 {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem !important;
    }
    
    .nav-link-professional {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }
    
    /* Hero section improvements */
    .hero-bg {
        padding: 2rem 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .download-btn-prominent {
        padding: 0.75rem 2rem !important;
    }
    
    /* Theme section improvements */
    .theme-badge {
        top: 1rem;
        right: 1rem;
        transform: none;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .theme-feature {
        margin-bottom: 2rem;
    }
    
    .theme-icon {
        font-size: 2.5rem;
    }
    
    .new-version-badge {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    /* Cards responsive improvements */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* Reviews grid responsive */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .review {
        margin-bottom: 1rem;
    }
    
    /* Download cards responsive */
    .download-card {
        margin-bottom: 2rem;
    }
    
    /* Flexbox improvements for mobile */
    .d-flex.gap-3 {
        gap: 1rem !important;
    }
    
    .d-flex.justify-content-center {
        flex-direction: column;
        align-items: center;
    }
    
    .d-flex.justify-content-center .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 0.5rem;
    }
    
    /* Better spacing for feature columns */
    .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Improved hero section layout */
    .hero-bg .row {
        text-align: center;
    }
    
    .hero-bg .col-lg-6 {
        margin-bottom: 2rem;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    /* Navigation for mobile */
    .nav-professional .container-fluid {
        padding: 0.75rem;
    }
    
    .nav-professional .d-flex.gap-3 {
        gap: 0.25rem !important;
    }
    
    .nav-link-professional {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .nav-link-professional i {
        font-size: 0.9rem;
    }
    
    /* Hide text on very small screens, show only icons */
    .nav-link-professional span.d-none.d-sm-inline {
        display: none !important;
    }
    
    /* Hero section mobile */
    .hero-bg {
        padding: 1.5rem 0;
    }
    
    .hero-bg .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .display-3 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .lead-free {
        font-size: 0.9rem;
        padding: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .download-btn-prominent {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem;
    }
    
    .hero-info-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-info-text {
        font-size: 0.85rem;
    }
    
    /* Theme section mobile */
    .theme-section {
        padding: 2rem 0;
    }
    
    .theme-card {
        padding: 2rem 1rem;
        margin: 0 0.5rem;
    }
    
    .theme-badge {
        padding: 5px 10px;
        font-size: 0.8rem;
        top: 1rem;
        right: 1rem;
        transform: none;
    }
    
    .theme-icon {
        font-size: 2rem;
    }
    
    .theme-feature h5 {
        font-size: 1.1rem;
    }
    
    .theme-feature p {
        font-size: 0.9rem;
    }
    
    /* Cards mobile */
    .card-body {
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    /* CTA section mobile */
    .cta-section {
        padding: 2rem 0;
    }
    
    .cta-section .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-section .lead {
        font-size: 0.95rem;
    }
    
    /* User reviews mobile */
    #user-reviews {
        margin: 1.5rem 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .user-reviews-title {
        font-size: 1.5rem;
    }
    
    .review {
        padding: 1rem;
    }
    
    .review blockquote {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .reviewer {
        font-size: 0.8rem;
    }
    
    /* General mobile improvements */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .display-3 {
        font-size: 1.75rem;
    }
    
    .nav-link-professional {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    .theme-card {
        padding: 1.5rem 0.75rem;
        margin: 0 0.25rem;
    }
    
    .download-btn-prominent {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-bg {
        padding: 1rem 0;
    }
    
    .theme-section {
        padding: 1.5rem 0;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .display-3 {
        font-size: 1.8rem;
    }
    
    .lead {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}

/* Large mobile/small tablet improvements */
@media (min-width: 577px) and (max-width: 767px) {
    .nav-link-professional span {
        display: inline !important;
    }
    
    .hero-bg .d-flex.justify-content-center {
        flex-direction: row;
    }
    
    .hero-bg .d-flex.justify-content-center .btn {
        width: auto;
        margin-bottom: 0;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Fix for iOS Safari bottom safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .nav-professional {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Additional Mobile Improvements */

/* Better table responsiveness */
.table-responsive {
    border: none;
}

/* Improve form elements on mobile */
input, textarea, select {
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Better handling of long text content */
.card-text, .review blockquote, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Sticky navigation improvements */
.nav-professional {
    position: sticky;
    top: 0;
    z-index: 1000;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.98) 0%, rgba(244, 232, 208, 0.98) 50%, rgba(240, 224, 192, 0.98) 100%);
    border-bottom: 2px solid var(--color-accent-gold);
    box-shadow: 0 4px 12px rgba(93, 64, 55, 0.08);
}

/* User Reviews Section Styling */
#user-reviews {
    margin-top: 3em;
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.15);
    padding: 2em 1.5em;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.user-reviews-title {
    text-align: center;
    color: #8b6914;
    margin-bottom: 1.5em;
    font-size: 2em;
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 1px;
    font-weight: 600;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1em;
}
.review {
    background: #ffffff;
    border: 1px solid rgba(212, 163, 115, 0.3);
    border-radius: 12px;
    padding: 1em;
    box-shadow: 0 2px 8px rgba(139, 105, 20, 0.1);
    position: relative;
    transition: all 0.2s ease;
}
.review:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.2);
    border-color: rgba(212, 163, 115, 0.5);
}
.stars {
    color: #d4a373;
    font-size: 1.1em;
    margin-bottom: 0.7em;
    letter-spacing: 1px;
}
.review blockquote {
    font-size: 0.95em;
    color: #8b6914;
    font-style: italic;
    margin: 0 0 0.7em 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.reviewer {
    color: #6b5b0d;
    font-size: 0.85em;
    font-weight: 500;
    text-align: right;
}
.review-lang {
    position: absolute;
    top: 0.7em;
    right: 0.7em;
    background: linear-gradient(45deg, #d4a373, #8b6914);
    color: white;
    font-size: 0.7em;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Download Page Styles */
.download-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.version-badge {
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.4);
}

.direct-download-item {
    padding: 1.5rem;
    border: 1px solid rgba(204, 213, 174, 0.5);
    border-radius: 0.5rem;
    background: rgba(250, 237, 205, 0.8);
    transition: border-color 0.3s ease;
}

.direct-download-item:hover {
    border-color: #d4a373;
}

.icon-lg {
    font-size: 3rem;
}

.icon-md {
    font-size: 2rem;
}

/* CTA Section Styling */
.cta-section {
    background: linear-gradient(45deg, #fefae0, #faedcd);
    color: #8b6914;
}

.cta-title {
    color: #8b6914;
}

.cta-free {
    color: #d4a373;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(107, 78, 3, 0.3);

    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid #d4a373;
    display: inline-block;
    margin-top: 0.5rem;
}

.cta-download-btn {
    background: linear-gradient(45deg, #d4a373, #8b6914);
    color: white;
    border: none;
}

.footer-copyright {
    color: #8b6914;
}

.version-description {
    color: #8b6914;
}

.download-section-title {
    color: #8b6914;
}

.footer-title {
    color: #8b6914;
}

.footer-text {
    color: #6b5b0d;
}

/* Hero section styling */
.hero-free-text {
    color: #d4a373;
}

.hero-download-btn {
    background: linear-gradient(45deg, #d4a373, #8b6914);
    color: white;
    border: none;
}

.hero-info-btn {
    border-color: #d4a373;
    color: #d4a373;
}

.hero-info-btn:hover {
    background-color: #d4a373;
    border-color: #d4a373;
    color: white;
}

.hero-info-text {
    color: #8b6914;
}

.hero-check-icon {
    color: #e6cc8a;
}

/* =============================================================
   Professional Design System - Based on ebook-reader page
   Sophisticated warm browns with cream backgrounds
   ============================================================= */

:root {
    /* Core Professional Palette */
    --color-primary-brown: #5d4037;     /* Primary headings & buttons */
    --color-secondary-brown: #6d4c41;   /* Body text */
    --color-tertiary-brown: #8d6e63;    /* Muted text */
    --color-accent-gold: #d4af37;       /* Borders & accents */
    --color-light-gold: #e6cc8a;        /* Secondary accents */
    --color-pale-gold: #f3e5ab;         /* Icon backgrounds */
    
    /* Background Gradients */
    --bg-primary: linear-gradient(135deg, #fef9e7 0%, #f9f1e1 50%, #f4e8d0 100%);
    --bg-card: rgba(255,248,220,0.7);
    --bg-card-solid: rgba(255,248,220,0.9);
    --bg-icon: #f3e5ab;
    
    /* Typography */
    --text-primary: var(--color-primary-brown);
    --text-secondary: var(--color-secondary-brown);
    --text-muted: var(--color-tertiary-brown);
    
    /* Borders & Shadows */
    --border-primary: 1px solid var(--color-accent-gold);
    --border-secondary: 1px solid var(--color-light-gold);
    --shadow-soft: 0 2px 8px rgba(93, 64, 55, 0.1);
    --shadow-medium: 0 4px 16px rgba(93, 64, 55, 0.15);
    
    /* Spacing & Sizing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

/* Enhanced Global Styles */
body {
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-secondary);
    font-family: "Roboto Condensed", sans-serif;
    line-height: 1.6;
}

/* Professional Card System */
.professional-card {
    background: var(--bg-card);
    border: var(--border-primary);
    border-radius: var(--radius);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.professional-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.professional-card-solid {
    background: var(--bg-card-solid);
    border: 2px solid var(--color-accent-gold);
    border-radius: var(--radius);
    padding: var(--space-lg);
    box-shadow: var(--shadow-medium);
}

/* Professional Feature Cards */
.feature-professional {
    background: var(--bg-card);
    border: var(--border-primary);
    border-radius: var(--radius);
    padding: var(--space-md);
    height: 100%;
    transition: all 0.3s ease;
}

.feature-professional:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.feature-professional .icon-container {
    background: var(--bg-icon);
    color: var(--color-primary-brown);
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

/* Professional Buttons */
.btn-professional {
    background-color: var(--color-primary-brown);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-professional:hover {
    background-color: #4a2c20;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-professional-outline {
    background-color: transparent;
    color: var(--color-primary-brown);
    border: 2px solid var(--color-primary-brown);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-professional-outline:hover {
    background-color: var(--color-primary-brown);
    color: white;
    transform: translateY(-2px);
}

.nav-professional::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent-gold) 50%, transparent 100%);
}

/* Navigation Link Hover Effects */
.nav-professional a:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.nav-professional .text-primary-warm:hover {
    color: var(--color-accent-gold) !important;
}

/* Back to Home Link Styling */
.nav-professional a[href="index.html"] {
    color: var(--color-primary-brown) !important;
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-professional a[href="index.html"]:hover {
    color: var(--color-primary-brown) !important;
    background: var(--color-light-gold);
    transform: translateX(-2px);
    box-shadow: 0 2px 8px rgba(93, 64, 55, 0.2);
    border-color: var(--color-accent-gold);
}

/* Professional Typography */
.heading-professional {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

.text-professional {
    color: var(--text-secondary);
    line-height: 1.6;
}

.text-professional-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* Professional Badges */
.badge-professional {
    background-color: var(--color-accent-gold);
    color: var(--color-primary-brown);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-professional-light {
    background-color: var(--color-light-gold);
    color: var(--color-primary-brown);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-professional-pale {
    background-color: var(--bg-icon);
    color: var(--color-primary-brown);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Professional Lists */
.list-professional {
    list-style: none;
    padding: 0;
}

.list-professional li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.list-professional .icon-container {
    background: var(--bg-icon);
    color: var(--color-primary-brown);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-sm);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Professional Comparison Cards */
.comparison-professional {
    background: var(--bg-card);
    border: var(--border-primary);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
}

/* Professional Hero Section */
.hero-professional {
    background: var(--bg-primary);
    padding: var(--space-xl) 0;
}

.hero-professional .container {
    max-width: 800px;
}

/* Professional Section Spacing */
.section-professional {
    padding: var(--space-xl) 0;
}

/* Professional Accordion */
.accordion-professional .accordion-item {
    background: var(--bg-card-translucent);
    border: var(--border-primary);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.accordion-professional .accordion-button {
    background: linear-gradient(135deg, var(--bg-card-solid) 0%, var(--bg-card-translucent) 100%);
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: var(--space-md);
    transition: all 0.3s ease;
}

.accordion-professional .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-light-gold) 100%);
    color: var(--color-primary-brown);
    box-shadow: none;
}

.accordion-professional .accordion-button:focus {
    box-shadow: 0 0 0 2px var(--color-accent-gold);
    border: none;
}

.accordion-professional .accordion-button:hover {
    background: linear-gradient(135deg, var(--color-light-gold) 0%, var(--bg-icon) 100%);
    color: var(--color-primary-brown);
}

.accordion-professional .accordion-body {
    background: var(--bg-card-solid);
    color: var(--text-secondary);
    padding: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.accordion-professional .accordion-body a {
    color: var(--color-accent-gold) !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.accordion-professional .accordion-body a:hover {
    color: var(--color-primary-brown) !important;
    text-decoration: underline;
}

/* Enhanced Professional Component Responsive Adjustments */
@media (max-width: 992px) {
    .hero-professional {
        padding: var(--space-xl) 0;
    }
    
    .professional-card,
    .feature-professional {
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 768px) {
    .hero-professional {
        padding: var(--space-lg) 0;
    }
    
    .section-professional {
        padding: var(--space-lg) 0;
    }
    
    .professional-card,
    .feature-professional {
        margin-bottom: var(--space-sm);
        padding: var(--space-md);
    }
    
    .btn-professional,
    .btn-professional-outline {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-professional {
        padding: var(--space-md) 0;
    }
    
    .section-professional {
        padding: var(--space-md) 0;
    }
    
    .professional-card,
    .feature-professional {
        padding: var(--space-sm);
        margin-bottom: var(--space-xs);
    }
    
    .btn-professional,
    .btn-professional-outline {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
    }
    
    .professional-card,
    .feature-professional {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .btn-professional,
    .btn-professional-outline {
        display: none !important;
    }
}

/* Theme Gallery Specific Styles */
.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.theme-card-image {
    height: 200px;
    object-fit: cover;
    border-bottom: var(--border-primary);
}
