/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Navigation Styles */
nav {
    background-color: #34495e;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-around;
    list-style: none;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 5px;
}

.main-nav a {
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.main-nav a i {
    margin-right: 8px;
}

.main-nav a:hover {
    background-color: #2c3e50;
}

.main-nav a.active {
    background-color: #3498db;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 50px 0;
    background-color: #ecf0f1;
    border-radius: 8px;
    margin: 30px 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-card a {
    display: block;
    padding: 20px;
    text-align: center;
}

.category-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.category-card p {
    color: #7f8c8d;
}

/* About Section */
.about-section {
    padding: 50px 0;
    text-align: center;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Comparison Grid Styles */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.comparison-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #3498db;
    color: white;
    padding: 15px;
    position: relative;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.rank {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #2c3e50;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.card-body {
    padding: 20px;
}

.card-body img {
    display: block;
    margin: 0 auto 15px;
    border-radius: 5px;
}

.rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    color: #f39c12;
    font-size: 1.2rem;
}

.score {
    font-weight: bold;
    color: #2c3e50;
}

.features {
    list-style: none;
    margin-bottom: 20px;
}

.features li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.features li:last-child {
    border-bottom: none;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.pros, .cons {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.pros h4 {
    color: #27ae60;
    margin-bottom: 10px;
}

.cons h4 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.pros ul, .cons ul {
    padding-left: 20px;
}

.price {
    text-align: center;
    font-size: 1.1rem;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.price strong {
    color: #2c3e50;
    font-size: 1.2rem;
}

.cta-button {
    display: block;
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Category Page Styles */
.category-header {
    background-color: #3498db;
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 8px;
}

.category-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.category-header p {
    font-size: 1.2rem;
    max-width: 800px;
}

/* Page Content Styles */
.page-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.page-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2rem;
}

.page-content h3 {
    color: #2c3e50;
    margin: 25px 0 15px;
    font-size: 1.5rem;
}

.page-content p {
    margin-bottom: 15px;
}

.page-content ul, .page-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 5px;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ecf0f1;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.disclaimer {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #bdc3c7;
}

.disclaimer p {
    margin-bottom: 10px;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 10px;
}

.mobile-hidden {
    display: none;
}

.mobile-visible {
    display: flex;
    flex-direction: column;
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.contact-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: #3498db;
    width: 20px;
    text-align: center;
}

.contact-hours {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.contact-hours h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-form {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

.contact-form h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: normal;
}

/* Form validation styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
}

.success-message h3 {
    color: #3c763d;
    margin-bottom: 10px;
}

.success-message i {
    margin-right: 10px;
    color: #27ae60;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav li {
        margin: 5px 0;
        width: 100%;
    }
    
    .main-nav a {
        width: 100%;
        justify-content: center;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid, .category-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
