body {
    background-color: #000;
    color: white;
    font-family: 'Times New Roman', Times, serif; /* Fallback to Arial and sans-serif */
    /* margin: 0;
    padding: 20px; */
}

#container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.left-section {
    width: 70%;
}

.right-section {
    width: 28%;
}

.section-title {
    font-size: 24px;
    color: #f00;
    margin-bottom: 20px;
}

.post {
    background-color: #1a1a1a;
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.post img {
    width: 150px;
    height: 100px;
    object-fit: cover;
}

.post-content {
    padding: 15px;
    flex: 1;
}

.post-content h3 {
    margin: 0;
    font-size: 18px;
}

.post-content p {
    margin: 10px 0;
    font-size: 14px;
    color: #ccc;
}

.post-tags {
    color: #f00;
    font-weight: bold;
    font-size: 12px;
}

.sidebar {
    background-color: #1a1a1a;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.sidebar h3 {
    margin-top: 0;
    font-size: 18px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #ccc;
    text-decoration: none;
}

.sidebar ul li a:hover {
    color: #f00;
}

.search-bar {
    display: flex;
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
}

.search-bar button {
    padding: 10px;
    border: none;
    background-color: #f00;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .left-section, .right-section {
        width: 100%;
        margin-bottom: 20px;
    }

    .post {
        flex-direction: column;
    }

    .post img {
        width: 100%;
        height: auto;
    }
}

.section-title {
    font-size: 24px;
    color: #f00;
    margin-bottom: 20px;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tip-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.tip-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.tip-card-content {
    padding: 15px;
}

.tip-tag {
    color: #f00;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.tip-title {
    font-size: 18px;
    margin: 5px 0;
}


.tip-info {
    font-size: 12px;
    color: #ccc;
    margin-top: 10px;
}

.tip-card:hover {
    transform: scale(1.05);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination button {
    background-color: #1a1a1a;
    color: #f00;
    border: 1px solid #333;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination button:hover {
    background-color: #333;
}
.section-title {
    color: #f1f1f1;
    font-weight: bold;
    border-bottom: none !important;
    padding-bottom: 10px;
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .tips-container {
        grid-template-columns: 1fr;
    }
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Display 4 cards side by side */
    gap: 20px;
}

/* Responsive for smaller screens */
@media (max-width: 1200px) {
    .tips-container {
        grid-template-columns: repeat(3, 1fr); /* 3 cards on smaller screens */
    }
}

@media (max-width: 992px) {
    .tips-container {
        grid-template-columns: repeat(2, 1fr); /* 2 cards on medium screens */
    }
}

@media (max-width: 768px) {
    .tips-container {
        grid-template-columns: 1fr; /* 1 card on small screens */
    }
}

/* Right Section Styling */
.right-section {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Search Bar Styling */
.search-bar {
    display: flex;
    margin-bottom: 20px;
}

.search-input {
    width: 80%;
    padding: 10px;
    background-color: #000;
    color: #fff;
    border: 1px solid #333;
    border-radius: 5px 0 0 5px;
}

.search-button {
    background-color: #f00;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.search-button:hover {
    background-color: #cc0000;
}

/* Sidebar Section Styling */
.sidebar-title {
    font-size: 18px;
    color: #f00;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.news-list li a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    margin-left: 10px; /* Space between image and text */
}

.news-list li a:hover {
    text-decoration: underline;
    color: #f00;
}

.news-date {
    display: block;
    font-size: 12px;
    color: #ccc;
    margin-top: 5px;
    margin-left: auto; /* Aligns date to the right */
}

/* Thumbnail Image Styling */
.news-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}


    .pagination .page-item .page-link {
        background-color: #1a1a1a; /* Light background color */
        color: #ff2e00; /* Text color */
        border: 1px solid #474747; /* Border color */
    }

    .pagination .page-item.active .page-link {
        background-color: #ff2e00; /* Active background color */
        color: #fff; /* White text for active page */
    }

    .pagination .page-item .page-link:hover {
        background-color: #333; /* Hover background color */
        color: #ff2e00; /* Hover text color */
        border-color: #ff2e00; /* Border color */
    }

    .pagination .page-item.disabled .page-link {
        background-color: #4d4c4c; /* Disabled background color */
        color: #ffffff; /* Disabled text color */
    }
