/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --border-color: #ddd;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #2980b9;
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
}

nav ul li.active a {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #5dade2);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Form */
.search-form {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
}

.form-group select, 
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Featured Providers */
.featured-providers {
    padding: 60px 0;
}

.featured-providers h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: var(--dark-color);
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.provider-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.provider-card:hover {
    transform: translateY(-5px);
}

.provider-image {
    height: 120px;
    background-color: #eee;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.provider-content {
    padding: 20px;
}

.provider-content h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.provider-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.provider-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.provider-spec {
    background-color: var(--light-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.provider-link {
    display: block;
    text-align: center;
    margin-top: 15px;
}

/* How It Works */
.how-it-works {
    background-color: var(--light-color);
    padding: 60px 0;
}

.how-it-works h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: var(--dark-color);
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 14px;
}

/* Calculator Page Styles */
.calculator-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.calculator-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.calculator-filters {
    padding: 40px 0;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.filter-form {
    max-width: 800px;
    margin: 0 auto;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-row .filter-group {
    flex: 1;
}

.calculator-results {
    padding: 40px 0 60px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-header h3 {
    font-size: 24px;
}

.sort-options {
    display: flex;
    align-items: center;
}

.sort-options label {
    margin-right: 10px;
}

.results-disclaimer {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.results-disclaimer i {
    margin-right: 10px;
    color: var(--primary-color);
}

.results-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

tr:hover {
    background-color: #f8f9fa;
}

.affiliate-badge, .best-value-badge, .performance-badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.affiliate-badge {
    background-color: var(--primary-color);
}

.best-value-badge {
    background-color: var(--success-color);
}

.performance-badge {
    background-color: var(--warning-color);
}

.results-legend {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.legend-item {
    display: flex;
    align-items: center;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--secondary-color), #34495e);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.about-hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.about-hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.about-mission {
    padding: 60px 0;
    background-color: white;
}

.about-mission h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.about-mission p {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
}

.mission-points {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.mission-point {
    flex: 1;
    text-align: center;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.mission-point i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mission-point h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.about-transparency {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.about-transparency h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.about-transparency p {
    margin-bottom: 20px;
}

.transparency-section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.transparency-section h4 {
    margin-bottom: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.transparency-section h4 i {
    margin-right: 10px;
}

.affiliate-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.affiliate-partner {
    background-color: var(--light-color);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.about-team {
    padding: 60px 0;
    background-color: white;
}

.about-team h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.about-team p {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
}

.team-members {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    flex: 1;
    text-align: center;
    padding: 30px 20px;
}

.member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #eee;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
}

.team-member h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.role {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Blog Page Styles */
.blog-header {
    background: linear-gradient(135deg, var(--primary-color), #5dade2);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.blog-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.blog-header p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.blog-categories {
    padding: 30px 0;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.categories-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover, .category-btn.active {
    background-color: var(--accent-color);
    color: white;
}

.blog-featured {
    padding: 60px 0 30px;
    background-color: #f8f9fa;
}

.blog-featured h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.featured-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.featured-article {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.article-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--light-color);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.article-content h4 {
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.4;
}

.article-content h4 a {
    color: var(--dark-color);
}

.article-content h4 a:hover {
    color: var(--accent-color);
}

.article-excerpt {
    margin-bottom: 20px;
    color: var(--text-light);
    flex: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-light);
}

.blog-main {
    padding: 30px 0 60px;
    background-color: white;
}

.blog-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-article {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-article:hover {
    transform: translateY(-5px);
}

.blog-article .article-image {
    height: 180px;
}

.blog-article .article-content {
    padding: 20px;
}

.blog-article .article-content h4 {
    font-size: 18px;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn, .pagination-next {
    padding: 8px 15px;
    background-color: #f8f9fa;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover, .pagination-btn.active {
    background-color: var(--accent-color);
    color: white;
}

.pagination-next {
    background-color: transparent;
}

.pagination-next:hover {
    color: var(--accent-color);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.blog-newsletter {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.newsletter-box h4 {
    font-size: 24px;
    margin-bottom: 15px;
}

.newsletter-box p {
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

.newsletter-note {
    font-size: 12px;
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .steps, .mission-points, .team-members {
        flex-direction: column;
    }
    
    .featured-articles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 15px;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .form-row, .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .results-legend {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .hero, .calculator-header, .blog-header {
        padding: 60px 0;
    }
    
    .hero h2, .calculator-header h2, .blog-header h2 {
        font-size: 28px;
    }
    
    .search-form, .filter-form {
        padding: 20px;
    }
    
    .provider-card, .step, .mission-point, .team-member {
        padding: 20px 15px;
    }
    
    .newsletter-box {
        padding: 30px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}
