* {
    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;
}

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

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

.cookie-content p {
    margin: 0;
    margin-right: 20px;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 30px;
}

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

.nav-link:hover,
.nav-link.active {
    color: #007bff;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #333;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Sections */
.popular-comparisons,
.features-section,
.comparisons-directory,
.content-section {
    padding: 60px 0;
}

.features-section {
    background: #f8f9fa;
}

/* Section Headings */
h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

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

/* Comparison Card */
.comparison-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
    transition: box-shadow 0.3s, transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.comparison-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.card-image {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.card-category {
    display: inline-block;
    background: #e9ecef;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.card-overview {
    color: #666;
    line-height: 1.6;
}

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

.feature-card {
    text-align: center;
    padding: 30px 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

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

/* Filters */
.filters-section {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-input,
.category-select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-width: 200px;
}

.search-input:focus,
.category-select:focus {
    outline: none;
    border-color: #007bff;
}

/* Comparison Detail */
.comparison-header {
    text-align: center;
    margin-bottom: 50px;
}

.comparison-image {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.comparison-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #333;
}

.comparison-category {
    display: inline-block;
    background: #e9ecef;
    color: #666;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.comparison-overview {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.comparison-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.content-section-detail {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.content-section-detail h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

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

.content-section-detail li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
    color: #666;
}

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

.external-links {
    text-align: center;
    margin-top: 40px;
}

.external-links h3 {
    margin-bottom: 20px;
    color: #333;
}

.external-link {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 10px 10px 0;
    transition: background-color 0.3s;
}

.external-link:hover {
    background: #0056b3;
    text-decoration: none;
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    text-decoration: none;
    color: white;
}

/* Forms */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input,
.form-textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #007bff;
}

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

.form-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Info */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
}

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

.contact-note {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px 0;
    text-align: left;
    color: #333;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin: 30px 0 15px 0;
    color: #333;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #666;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.6;
}

.disclaimer-box,
.disclosure-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 20px;
    margin: 30px 0;
}

.disclaimer-box h2,
.disclaimer-box h4,
.disclosure-box h4 {
    color: #856404;
    margin-bottom: 10px;
}

.disclaimer-box p,
.disclosure-box p {
    color: #856404;
    margin: 0;
}

.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin: 30px 0;
}

/* Methodology Content */
.methodology-content {
    max-width: 800px;
    margin: 0 auto;
}

.methodology-content h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: left;
    color: #333;
}

.methodology-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
    color: #333;
}

.methodology-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #666;
}

.methodology-content ul {
    margin-bottom: 25px;
    padding-left: 30px;
}

.methodology-content li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.6;
}

/* About Content */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: left;
    color: #333;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #666;
}

.about-content ul {
    margin-bottom: 25px;
    padding-left: 30px;
}

.about-content li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.6;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.not-found-section {
    text-align: center;
    padding: 80px 20px;
}

.not-found-section h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.not-found-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 50px 0 20px 0;
    margin-top: 60px;
}

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

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #ccc;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu li {
        margin: 0 15px;
    }

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

    .hero-description {
        font-size: 1.1rem;
    }

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

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

    .filters-section {
        flex-direction: column;
    }

    .search-input,
    .category-select {
        min-width: 100%;
    }

    .comparison-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .comparison-title {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 50px 0;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }

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

    .page-header {
        padding: 40px 0;
    }

    .popular-comparisons,
    .features-section,
    .comparisons-directory,
    .content-section {
        padding: 40px 0;
    }

    .comparison-card {
        padding: 20px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .content-section-detail {
        padding: 20px;
    }

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

    .cookie-content p {
        margin-right: 0;
    }
}