@media only screen and (min-width: 641px) and (max-width: 1080px) {
    .top-bar {
        padding: 10px 15px; /* Adjust padding for smaller screens */
        font-size: 12px; /* Reduce font size for smaller screens */
    }

    .top-bar-left {
        gap: 8px; /* Adjust gap between items */
    }

    .top-bar-right a {
        margin-left: 8px; /* Adjust margin for right side links */
    }

    .navbar {
        padding: 10px 15px; /* Adjust padding */
        flex-direction: column; /* Stack logo and nav vertically */
        align-items: flex-start; /* Align items to the start */
    }

    .navbar .logo a {
        font-size: 20px; /* Adjust font size for logo */
    }

    .navbar nav {
        width: 100%;
        text-align: left; 
        margin: 10px 0; 
    }

    .navbar nav a {
        margin: 0 10px; 
        font-size: 14px; 
    }

    .navbar nav a i {
        margin-left: 3px; 
        position: relative;
        top: -1px; 
    }

    .nav-right {
        gap: 10px; 
    }

    .nav-right a {
        font-size: 14px; 
    }

    .search-bar {
      display: none;
    }

    .search-bar input {
        width: 100%; 
        padding: 8px; 
    }

    .nav-right .sign-in {
        padding: 8px 20px; 
        font-size: 14px; 
    }

     /* ------------------------- */
     .main-post1 {
        margin-right: 15px; 
        width: 100%; 
        height: 500px;
    }

    /* .main-post1 h1:hover {
        color: #f1f1f1; 
        transform: scale(1.05); 
    } */

    .main-post1 img {
        height: 300px; 
    }

    .content-overlay {
        padding: 20px; 
    }

    .category-tag {
        font-size: 14px; 
        padding: 6px 10px; 
    }

    .main-post1 h1 {
        font-size: 22px; 
        margin: 10px 0; 
    }

    .post-meta1 {
        font-size: 14px; 
    }
    /* ----------- */
    .sidebar {
        flex: 1;
        padding: 20px; 
    }

    .sidebar-item {
        background-color: #423e3e;
        margin-bottom: 20px;
        padding: 20px; 
        border-radius: 10px; 
        /* transition: transform 0.3s ease, background-color 0.3s ease; */
    }

    /* .sidebar-item:hover {
        background-color: #555050; 
        transform: translateY(-5px); 
    } */

    .sidebar-item h2 {
        font-size: 20px; 
        margin-bottom: 10px; 
        transition: color 0.3s ease;
    }

    .sidebar-item:hover h2 {
        color: #e5e5e5;
    }

    .post-meta span i {
        margin-left: 8px; 
        transition: transform 0.3s ease;
    }

    .post-meta span:hover i {
        transform: scale(1.2); 
    }
    /* ------------ */
    .grid-container {
        display: flex;
        flex-wrap: wrap;
        margin-top: 20px;
        gap: 15px; 
    }

    .grid-item {
        flex: 1 1 calc(50% - 15px); 
        background-color: #111;
        padding: 20px; 
        color: #e5e5e5;
        border-radius: 8px;
        /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
    }

    /* .grid-item:hover {
        transform: translateY(-5px); 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
    } */

    .grid-item h3 {
        font-size: 18px; 
        margin-bottom: 10px; 
    }

    .grid-item img {
        width: 100%;    
        height: auto;
        margin-bottom: 15px; 
        border-radius: 8px;
    }
    /* ---------- */
    .top-news-section {
        padding: 30px; 
        background-color: #343131;
        color: #fff;
    }
    
    .top-news-section h2 {
        font-size: 32px; 
        margin-bottom: 25px; 
    }
    
    .news-slider {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
        gap: 20px; 
        padding: 15px 0;
        justify-items: center; 
    }
    
    .news-card {
        display: grid;
        place-items: center;
        background-color: #000;
        border-radius: 8px;
        overflow: hidden;
        width: 100%; 
    }
    
    .news-card img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    .news-content {
        padding: 20px; 
    }
    
    .category-tag {
        background-color: #007bff;
        color: #fff;
        padding: 8px 12px; 
        font-size: 16px; 
        display: inline-block;
        margin-bottom: 15px; 
        border-radius: 4px;
    }
    
    .news-date {
        font-size: 14px; 
        color: #ccc;
        margin-bottom: 15px; 
    }
    
    .news-date i {
        margin-left: 10px; 
    }
    
    .news-card h3 {
        font-size: 20px; 
        margin-bottom: 20px; 
        height: auto; 
        overflow: visible; 
    }
    
    .read-more {
        font-size: 16px; 
        color: #767676;
        text-decoration: none;
    }
    
    /* .read-more:hover {
        color: #a4aaaa;
    } */
    
    .slider-controls {
        display: flex;
        justify-content: center; 
        margin-top: 20px; 
    }
    
    .slider-controls button {
        background-color: #007bff;
        color: #fff;
        border: none;
        padding: 12px 24px; 
        margin: 0 10px; 
        cursor: pointer;
        border-radius: 50%;
        font-size: 18px; 
    }
    /* ----------- */
    .container {
        display: flex;
        flex-wrap: wrap; /* Allow wrapping for better responsive behavior */
        padding: 20px;
    }

    .main-section {
        flex: 2;
        margin-right: 20px;
    }

    .main-section h2 {
        font-size: 26px; /* Slightly larger font size for medium screens */
        margin-bottom: 20px;
        color: white;
    }

    .main-post {
        position: relative;
        margin-bottom: 30px;
    }

    .main-post video {
        width: 100%;
        height: auto;
        display: block;
        opacity: 0.8; /* Slightly less transparent */
    }

    .post-overlay {
        position: absolute;
        bottom: 20px;
        left: 20px;
        color: #fff;
    }

    .category-tag {
        background-color: #007bff;
        color: #fff;
        padding: 6px 12px; /* Slightly larger padding */
        font-size: 16px;
        display: inline-block;
        margin-bottom: 12px;
    }

    .main-post h1 {
        font-size: 26px; /* Larger font size for headings */
        margin-bottom: 12px;
    }

    .post-meta {
        font-size: 16px; /* Larger font size for meta information */
    }

    /* Secondary Posts */
    .secondary-posts {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .secondary-post {
        flex: 1 1 calc(50% - 20px); /* Adjust width for medium screens */
        background-color: #111;
        color: #e5e5e5;
        padding: 20px; /* Increased padding for better spacing */
    }

    .secondary-post img {
        width: 100%;
        height: auto;
        margin-bottom: 12px; /* Increased bottom margin */
    }

    .secondary-post h3 {
        font-size: 18px; /* Larger font size for secondary posts */
        margin-bottom: 10px;
    }

    /* Sidebar */
    .sidebar {
        flex: 1;
    }

    .get-in-touch {
        margin-bottom: 30px;
    }

    .get-in-touch h2 {
        font-size: 20px; /* Larger font size for sidebar headings */
        margin-bottom: 20px;
        color: white;
        text-decoration: underline;
    }

    .social-stats {
        display: flex;
        justify-content: space-between;
    }

    .column {
        display: flex;
        flex-direction: column;
        gap: 8px; /* Increased gap between items */
    }

    .social-stats .stat {
        display: flex;
        align-items: center;
        background-color: #111;
        color: #e5e5e5;
        padding: 12px; /* Increased padding */
        gap: 12px;
        border-radius: 5px;
    }

    .dont-miss {
        margin-bottom: 30px;
    }

    .dont-miss h2 {
        font-size: 20px; /* Larger font size for "Don't Miss" section */
        margin-bottom: 20px;
        color: white;
        text-decoration: underline;
    }

    .miss-item {
        display: flex;
        align-items: center;
        margin-bottom: 20px; /* Increased margin-bottom for better spacing */
        color: white;
        padding: 12px; /* Increased padding */
        border-radius: 8px;
    }

    .miss-item img {
        width: 80px; /* Slightly larger image */
        height: 80px;
        margin-right: 15px; /* Increased right margin */
        border-radius: 50%;
        object-fit: cover;
    }

    .post-meta span {
        color: white;
    }

    .miss-item h3 {
        font-size: 16px; /* Larger font size for item headings */
    }

    .view-more {
        text-align: right;
    }

    .view-more a {
        color: #545556;
        text-decoration: none;
        font-size: 16px; /* Larger font size for view more link */
    }

    .ad-section {
        position: relative;
        margin-top: 20px;
        overflow: hidden;
    }

    .ad-section img {
        width: 100%;
        height: auto;
        transition: transform 0.6s ease-in-out;
    }

    .ad-overlay {
        position: absolute;
        bottom: 10px;
        left: 20px;
        color: #fff;
        transition: transform 0.6s ease-in-out;
    }

    .ad-overlay h3 {
        font-size: 22px; /* Larger font size for overlay heading */
        margin-bottom: 8px;
    }

    .ad-overlay span {
        font-size: 18px; /* Larger font size for overlay text */
        margin-bottom: 12px;
    }

    .ad-btn {
        background-color: #007bff;
        color: #fff;
        padding: 12px 24px; /* Larger padding for button */
        text-decoration: none;
        border-radius: 5px;
    }

    /* --------- */
    .content {
        display: flex;
        gap: 30px; /* Adjust gap for medium screens */
    }

    .main-content {
        flex: 2;
        color: white;
    }

    .sidebar {
        flex: 1.5;
    }

    .sidebar h2 {
        color: white;
    }

    .main-content h2, .sidebar h2 {
        font-size: 26px;
        margin-bottom: 25px; 
        text-decoration: underline;
    }

    .main-posts .post {
        display: flex;
        background-color: #111;
        color: #e5e5e5;
        margin-bottom: 25px; 
        padding: 20px; 
        gap: 20px; 
    }

    .post:hover {
        background-color: #8f8b8b; 
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); 
    }

    .post img {
        width: 200px;
        height: auto;
    }

    .post-content h3 {
        font-size: 20px;
        margin-bottom: 15px; 
    }

    .post-meta {
        font-size: 16px;
        margin-bottom: 15px; 
        color: #fffbfb;
    }

    .view-all-btn {
        background-color: #007bff;
        color: #fff;
        padding: 12px 24px; 
        border: none;
        cursor: pointer;
        display: block;
        margin: 25px auto 0;
        text-align: center;
    }

    .most-read .most-read-item {
        display: flex;
        align-items: center;
        margin-bottom: 20px; 
        gap: 20px; 
    }

    .most-read-item img {
        width: 70px; 
        height: 70px;
        border-radius: 50%;
        margin-right: 20px; 
    }

    .most-read-content h3 {
        font-size: 16px; 
        margin-bottom: 10px; 
        color: white;
    }

    .most-read-content i {
        margin-left: 12px; 
    }

    .most-read-content span {
        font-size: 14px; 
        color: #999;
    }
    /* ------ */
    .add1-content1{
        display: none;
    }
    /* ---- */
    footer {
        padding: 30px 15px; 
    }

    .footer-container {
        flex-direction: column; 
        align-items: flex-start; 
    }

    .footer-col {
        margin-right: 0; 
        margin-bottom: 20px; 
    }

    .footer-col h2, .footer-col h3 {
        font-size: 18px; 
        margin-bottom: 10px; 
    }

    .footer-col ul li {
        font-size: 14px; 
    }

    .social-icons a {
        font-size: 18px; 
    }

    .footer-bottom {
        margin-top: 20px; 
        padding-top: 10px; 
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .footer-nav a {
        font-size: 12px; 
    }

    .footer-subscribe {
        flex-direction: column; 
        align-items: stretch; 
    }

    .footer-email {
        margin-bottom: 10px; 
        font-size: 16px; 
    }

    .footer-subscribe-btn {
        font-size: 16px; 
        width: 100%; 
    }
}
