body {
    font-family: Arial, sans-serif;
    background-color: #212121;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

header {
    background-color: #424242;
    color: #ffffff;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.top-finder ul {
    list-style-type: none;
    padding: 0;
}

.top-finder li {
    margin-bottom: 5px;
}

.top-finder a {
    text-decoration: none;
    color: #007bff;
}

.top-finder a:hover {
    text-decoration: underline;
}

.related-link {
    color: blue;
    text-decoration: none;
    font-size: 14px;
}

.related-link::before {
    content: "« ";
}

.related-link::after {
    content: " »";
}

.download-link {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

.download-link:hover {
    text-decoration: underline;
    color: #ff9900;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content .logo {
    font-size: 24px;
    font-weight: bold;
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 16px;
}

header nav a:hover {
    text-decoration: underline;
}

/* Sửa lại phần container chính */
.main-container {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr; /* Cột giữa rộng hơn */
    gap: 20px;
    max-width: 100%; /* Thay vì max-width: 1200px để mở rộng hết chiều rộng màn hình */
    margin: 0; /* Xóa bỏ margin để các cột sát góc */
    padding: 0; /* Xóa padding */
}

.sidebar {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    /* Đảm bảo các sidebar sát góc */
    margin: 0; /* Xóa bỏ margin */
}

.sidebar-left, .sidebar-right {
    padding: 15px;
    background-color: #333;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    margin: 0; /* Xóa bỏ margin */
}

.sidebar-left {
    margin-right: 20px;
}

.sidebar-right {
    margin-left: 20px;
}

.sidebar h2 {
    font-size: 18px;
    margin-top: 0;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    color: #ffffff;
    text-decoration: none;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

.content {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    padding: 10px;
    width: 100%;
    max-width: 300px;
}

.search-box button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
}

.search-box button:hover {
    background-color: #0056b3;
}

.software-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.software-card-content {
    padding: 10px;
    color: #fff;
    text-align: center;
}

.software-card h3 {
    margin: 10px 0;
    font-size: 18px;
}

.software-card a.download-btn {
    display: block;
    background: #ff6600;
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
    text-decoration: none;
}

.software-card a.download-btn:hover {
    background: #ff4500;
}
.software-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    background-color: #222;
}

.recent-searches {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-searches li {
    margin-bottom: 10px;
}

.search-banner {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.software-title {
    padding: 10px;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    white-space: nowrap;        /* Không cho xuống dòng */
    overflow: hidden;           /* Ẩn phần dư */
    text-overflow: ellipsis;    /* Thêm dấu ... nếu quá dài */
    max-width: 100%;            /* Đảm bảo không bị tràn */
}

 .description {
            text-align: justify;
            margin: 10px 0;
            font-size: 16px;
            line-height: 1.5;
        }
.software-detail {
    text-align: center;
}

.image-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.software-card img {
    width: 100%;
    height: 200px; /* Đảm bảo tất cả hình ảnh có chiều cao bằng nhau */
    object-fit: cover; /* Đảm bảo hình ảnh không bị méo */
}

.image-container img {
    width: 100%; /* Đảm bảo hình ảnh chiếm toàn bộ chiều rộng của container */
    height: 200px; /* Cũng chỉnh chiều cao để các hình ảnh trong container có kích thước đồng đều */
    object-fit: cover; /* Giữ tỷ lệ hình ảnh mà không bị kéo dãn */
}


.software-title {
    font-size: 14px;
    text-align: center;
}

.recent-searches img {
    width: 64px;
    height: 64px;
}

.site-footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    font-size: 14px;
}

.site-footer a {
    color: #ffcc00;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: #ff0000;
}


.read-more-btn:hover {
    background-color: #e6b800;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, color 0.3s;
}

.back-button:hover {
    background-color: #ff9900;
    color: #fff;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination-btn {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.pagination-btn:hover {
    background-color: #0056b3;
}
