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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.25rem;
}

.logo img {
    margin-right: 0.5rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(23, 70%, 50%);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 1rem;
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-btn {
    background: hsl(23, 70%, 50%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
}

.hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
}

.hero p {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: hsl(23, 70%, 50%);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background: hsl(23, 70%, 45%);
}

/* Sections */
.comparisons-section,
.features-section {
    padding: 4rem 0;
}

.comparisons-section h2,
.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a202c;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.comparison-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.comparison-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.comparison-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.comparison-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.comparison-card .category {
    display: inline-block;
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.comparison-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.comparison-card .card-link {
    color: hsl(23, 70%, 50%);
    text-decoration: none;
    font-weight: 600;
}

.comparison-card .card-link:hover {
    text-decoration: underline;
}

.section-footer {
    text-align: center;
}

.view-all-link {
    color: hsl(23, 70%, 50%);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.feature-card p {
    color: #666;
}

/* Comparison Detail */
.comparison-detail {
    padding: 2rem 0;
}

.comparison-header {
    text-align: center;
    margin-bottom: 3rem;
}

.comparison-header img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.comparison-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.comparison-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 1.5rem;
}

.content-section li:before {
    content: "•";
    color: hsl(23, 70%, 50%);
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

.external-links {
    margin-top: 2rem;
}

.external-links a {
    display: inline-block;
    background: #f8fafc;
    color: hsl(23, 70%, 50%);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.external-links a:hover {
    background: #e2e8f0;
}

/* Search and Filter */
.search-section {
    background: #f8fafc;
    padding: 2rem 0;
}

.search-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.search-input,
.category-select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.search-input {
    min-width: 300px;
}

.category-select {
    min-width: 200px;
}

/* Directory */
.directory-section {
    padding: 3rem 0;
}

.directory-header {
    text-align: center;
    margin-bottom: 3rem;
}

.directory-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

/* Forms */
.form-section {
    padding: 2rem 0;
}

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

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: hsl(23, 70%, 50%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background: hsl(23, 70%, 45%);
}

/* Content Pages */
.content-page {
    padding: 3rem 0;
}

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

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a202c;
}

.content-page h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem 0;
    color: #1a202c;
}

.content-page h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
    color: #1a202c;
}

.content-page p {
    margin-bottom: 1rem;
    color: #4a5568;
}

.content-page ul,
.content-page ol {
    margin: 1rem 0 1rem 2rem;
    color: #4a5568;
}

.content-page li {
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-item strong {
    min-width: 100px;
    color: #374151;
}

.contact-item a {
    color: hsl(23, 70%, 50%);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #cbd5e0;
}

.footer-section a {
    display: block;
    color: #cbd5e0;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: hsl(23, 70%, 60%);
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 1rem;
    text-align: center;
    color: #cbd5e0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

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

    .search-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        min-width: auto;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* RTL Support */
[dir="rtl"] .logo img {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .content-section li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .content-section li:before {
    left: auto;
    right: 0;
}

[dir="rtl"] .contact-item {
    direction: rtl;
}

[dir="rtl"] .external-links a {
    margin-right: 0;
    margin-left: 1rem;
}