/* ==========================================================================
   Variables and Reset
   ========================================================================== */
:root {
    --primary-color: #405DE6;
    --secondary-color: #E1306C;
    --text-color: #262626;
    --text-light: #8e8e8e;
    --background: #ffffff;
    --background-alt: #fafafa;
    --border-color: #dbdbdb;
    --success: #2ecc71;
    --warning: #f1c40f;
    --error: #e74c3c;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    background-color: var(--background);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 25px;
    position: relative;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--background);
    box-shadow: var(--shadow);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: var(--background-alt);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #f8f8f8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--text-color);
}

/* Intro Section */
.intro {
    background-color: var(--background);
}

.intro p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

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

.category-card {
    background-color: var(--background);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.category-icon {
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.category-card p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.category-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.category-link:hover {
    text-decoration: underline;
}

/* Comparison Section */
.comparison {
    background-color: var(--background-alt);
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 30px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--background-alt);
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background-color: var(--background-alt);
}

/* How It Works Section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px;
    background-color: var(--background);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

/* FAQ Section */
.faq {
    background-color: var(--background);
}

.faq-item {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.faq-item p {
    color: var(--text-light);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #405DE6, #5851DB, #833AB4);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 20px;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #262626;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}
/* ==========================================================================
   Additional Styles for New Pages
   ========================================================================== */

/* About Page Styles */
.about-intro, .testing-methodology {
    margin-bottom: 60px;
}

.values-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.value-card, .team-member {
    background-color: var(--background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.team-member img {
    border-radius: 50%;
    margin-bottom: 20px;
}

.team-member .role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
}

.info-item {
    margin-bottom: 30px;
}

/* Policy Pages Styles */
.policy-content, .disclaimer-content {
    line-height: 1.8;
}

.policy-content h2, .disclaimer-content h2 {
    margin-top: 40px;
    color: var(--primary-color);
}

.policy-content h3, .disclaimer-content h3 {
    margin-top: 30px;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 30px;
}

/* Tool Page Styles */
.review-card {
    background-color: var(--background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.review-meta {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.rating {
    color: var(--primary-color);
    font-weight: 600;
}

.review-date {
    color: var(--text-light);
}

.review-content h4 {
    margin: 20px 0 10px;
    color: var(--primary-color);
}

.guide-steps {
    margin: 40px 0;
}

.step {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 20px;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.blog-card.featured img {
    height: 100%;
    border-radius: 10px 0 0 10px;
}

.blog-content {
    padding: 20px;
}

.category {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.excerpt {
    margin: 15px 0;
    color: var(--text-light);
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    background-color: var(--background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.newsletter-signup {
    background-color: var(--background-alt);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 60px 0;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 20px auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-family: var(--font-main);
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
}

/* Breadcrumb */
.breadcrumb {
    color: var(--text-light);
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--primary-color);
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured img {
        border-radius: 10px 10px 0 0;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 4px;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
/* Comparison Page Specific Styles */
.key-findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.finding-card {
    background-color: var(--background);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.finding-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.comparison-section {
    margin: 40px 0;
}

.comparison-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.recommendation-category {
    background-color: var(--background);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.recommendation-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.methodology-step {
    background-color: var(--background-alt);
    padding: 20px;
    border-radius: 10px;
}

.methodology-step h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.conclusion {
    background-color: var(--background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 40px 0;
}

/* Responsive adjustments for comparison page */
@media (max-width: 768px) {
    .key-findings-grid,
    .methodology-steps {
        grid-template-columns: 1fr;
    }
    
    .category-links {
        flex-direction: column;
    }
    
    .category-links .btn {
        width: 100%;
        text-align: center;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px;
    }
}