/* ===== RESET & VARIABLES ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --border-color: #dee2e6;
    --text-color: #212529;
    --text-muted: #6c757d;
    --sidebar-bg: #f1f3f5;
    --ad-bg: #e9ecef;
    --ad-border: #ffc107;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    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: var(--text-color);
    background-color: #fff;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.main-content {
    flex: 1;
    min-width: 0; /* Prevent flex overflow */
}

.sidebar {
    flex: 0 0 300px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: linear-gradient(135deg, var(--primary-color), #1a252f);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo a {
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
    border-bottom-color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== ARTICLE STYLES ===== */
.article {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.article h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 2.5rem 0 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
}

.article h3 {
    font-size: 1.5rem;
    margin: 1.8rem 0 1rem;
    color: #34495e;
}

.article p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.article .lead {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-meta i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* ===== FEATURE GRID ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.feature-card {
    background: var(--light-bg);
    padding: 1.8rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0.5rem 0;
    font-size: 1.3rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.95rem;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1.2rem 1rem;
    text-align: left;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.comparison-table tr:nth-child(even) {
    background-color: var(--light-bg);
}

.comparison-table tr:hover {
    background-color: #e3f2fd;
}

.rating {
    color: #f1c40f;
    font-weight: 600;
}

/* ===== CITY SHOWCASE ===== */
.city-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 2rem 0;
}

.city-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.city-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
}

.city-card h4 {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 1.3rem;
}

.city-card p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    font-size: 0.95rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    margin: 3rem 0 1.5rem;
}

.faq-item {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary-color);
}

.faq-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.faq-item p {
    margin: 0;
    font-size: 1rem;
}

/* ===== AD CONTAINERS ===== */
.ad-container {
    background: linear-gradient(135deg, var(--ad-bg), #dee2e6);
    border: 3px dashed var(--ad-border);
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: center;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container::before {
    content: "Advertisement";
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--ad-border);
    color: #000;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-container.sidebar {
    min-height: 300px;
    margin: 1rem 0 2rem;
    background: linear-gradient(135deg, #dee2e6, #ced4da);
}

/* ===== SIDEBAR WIDGETS ===== */
.sidebar-widget {
    background: var(--sidebar-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin: 0 0 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    font-size: 1.3rem;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 0.8rem;
}

.sidebar-links a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.sidebar-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.sidebar-links i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.tip-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tip-card i {
    color: var(--warning-color);
    font-size: 1.2rem;
}

.tip-card p {
    margin: 0;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 10px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #2980b9;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        flex: 0 0 auto;
    }
    
    .article h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 1rem;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .article {
        padding: 1.5rem;
    }
    
    .article h1 {
        font-size: 1.8rem;
    }
    
    .article h2 {
        font-size: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .city-showcase {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILITY CLASSES ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

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

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.article-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-style: italic;
    color: var(--text-muted);
}

.fa-battery-quarter, .fa-parking, .fa-dollar-sign, .fa-wrench {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h4 {
    margin: 0.5rem 0;
    color: var(--primary-color);
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.feature-card p strong {
    color: var(--accent-color);
}