/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

a {
    text-decoration: none;
    color: #005A9C;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 2px solid #ddd;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #b10000;
}

.search-bar input {
    padding: 8px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    padding: 8px 15px;
    border: 1px solid #b10000;
    background-color: #b10000;
    color: #fff;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

/* Navigation */
.navbar {
    background-color: #333;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li a {
    display: block;
    color: #fff;
    padding: 12px 20px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
}

.navbar ul li a:hover {
    background-color: #b10000;
    text-decoration: none;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 200px 1fr 250px;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Sidebars */
.sidebar-left, .sidebar-right {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
}

.sidebar-left h3, .sidebar-right h3 {
    font-size: 16px;
    border-bottom: 2px solid #b10000;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.brand-list {
    list-style: none;
}

.brand-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.all-brands-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: #e0e0e0;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.top-list {
    padding-left: 20px;
}

.top-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ad-space {
    margin-top: 20px;
    height: 250px;
    background: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    border: 1px dashed #ccc;
}

/* Center Content */
.content-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.latest-devices, .latest-news {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
}

.latest-devices h2, .latest-news h2 {
    font-size: 18px;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.device-card {
    text-align: center;
    border: 1px solid #eee;
    padding: 15px;
}

.device-card .placeholder-img {
    font-size: 50px;
    margin-bottom: 10px;
}

.device-card h4 {
    font-size: 14px;
    color: #005A9C;
}

.news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.news-item .news-img {
    font-size: 40px;
}

.news-item .news-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.news-item .news-text p {
    font-size: 12px;
    color: #777;
}

/* Footer */
.footer {
    background: #333;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

.footer a {
    color: #ccc;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .device-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}/* Comparison Layout */
.compare-layout {
    margin-top: 30px;
    margin-bottom: 50px;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
}

.compare-layout h2 {
    margin-bottom: 20px;
    border-bottom: 2px solid #b10000;
    padding-bottom: 10px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.compare-table th, .compare-table td {
    border: 1px solid #ddd;
    padding: 15px;
    vertical-align: top;
    width: 25%;
}

.compare-table th {
    background-color: #f9f9f9;
}

.compare-table select {
    width: 90%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.spec-title {
    font-size: 18px;
    color: #333;
    vertical-align: middle !important;
}

.device-preview .placeholder-img {
    font-size: 40px;
    margin-bottom: 10px;
}

.device-preview h4 {
    color: #005A9C;
}

.section-header td {
    background-color: #e0e0e0;
    font-weight: bold;
    text-align: left;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 15px;
}

.spec-label {
    text-align: right;
    font-weight: bold;
    color: #555;
    background-color: #fafafa;
}
/* Comparison Layout */
.compare-layout {
    margin-top: 30px;
    margin-bottom: 50px;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
}

.compare-layout h2 {
    margin-bottom: 20px;
    border-bottom: 2px solid #b10000;
    padding-bottom: 10px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.compare-table th, .compare-table td {
    border: 1px solid #ddd;
    padding: 15px;
    vertical-align: top;
    width: 25%;
}

.compare-table th {
    background-color: #f9f9f9;
}

.compare-table select {
    width: 90%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.spec-title {
    font-size: 18px;
    color: #333;
    vertical-align: middle !important;
}

.device-preview .placeholder-img {
    font-size: 40px;
    margin-bottom: 10px;
}

.device-preview h4 {
    color: #005A9C;
}

.section-header td {
    background-color: #e0e0e0;
    font-weight: bold;
    text-align: left;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 15px;
}

.spec-label {
    text-align: right;
    font-weight: bold;
    color: #555;
    background-color: #fafafa;
}