/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

.logo {
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: 20px;
    margin-bottom: 10px;
}

.logo img {
    width: 300px;
    /* Adjust width as needed */
    align-items: center;
}

.date {
    margin-left: 10px;
    font-size: 18px;
    color: blue;
}

.time {
    margin-left: 10px;
    font-size: 18px;
    color: blue;
}

#nepali-date {
    color: black;
    font-size: 16px;
}

#nepali-time {
    color: black;
    font-size: 16px;
}

.mobile-bar {
    display: none;
}

/* MENU TOGGLE BUTTON */
.menu-toggle {
    display: none;
}

/* Navbar Styles */
.navbar {
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
    padding: 10px 5px;
    flex-wrap: wrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
    font-weight: 400;
    align-items: center;
    display: block;
    padding: 5px;
    border-radius: 5px;
}

.nav-links li a:hover,
.active {
    background-color: #3498db;
    box-sizing: content-box;
    width: 100%;
}

/* Right Section */
.right-section {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
    margin-right: 20px;
}

.search-bar input {
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    width: 200px;
}

.search-bar button {
    padding: 5px 10px;
    font-size: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #2980b9;
}

.login-btn {
    background-color: #e74c3c;
    color: white;
    padding: 5px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

.login-btn:hover {
    background-color: #c0392b;
}

@media (max-width: 768px) {

    .mobile-bar {
        background-color: #2c3e50;
        color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 5px 10px;
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
        color: white;
        cursor: pointer;
    }

    .search-login-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .search-small {
        font-size: 16px;
        width: 150px;
        border-radius: 4px;
    }

    .search-small input {
        padding: 5px 10px;
        border-radius: 4px;
        border: none;
    }

    .search-login-wrapper button {
        width: 100%;
        padding: 5px 10px;
        font-size: 16px;
        background-color: #3498db;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .login-small {
        background-color: #e74c3c;
        color: white;
        padding: 5px 10px;
        text-decoration: none;
        border-radius: 4px;
        cursor: pointer;
    }

    /* Hide the big search/login section in mobile */
    .right-section {
        display: none;
    }

    .navbar {
        display: none; /* hide initialy on mobile */
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        animation: slideDown 0.3s ease forwards; /* animation when shown */
    }

    .navbar.show {
        display: flex;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links{
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-links li{
        width: 100%;
        padding: 0;
    }

    .nav-links li a{
        display: block;
        width: 100%;
        padding: 10px 15px;
        color: #fff;
        text-decoration: none;
    }

    .nav-links li a:hover {
         background-color: #3498db; 
         width: 100%;
    }
}

/* css for main container */
.main-container {
    display: flex;
    flex-wrap: wrap;
    background-color: #e9e7e8;
    margin: 30px;
    padding: 20px;
    border-radius: 5px;
}

.left-container {
    flex: 4;
    display: flex;
    flex-direction: column;
}

.right-container {
    flex: 1;
    background: #fff;
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.right-container h2 {
    color: black;
}

.right-container p {
    font-size: 16px;
    color: black;
}

.news-box {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background-color: #f4f4f4;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
}

.section-title span {
    font-size: 20px;
    font-weight: bold;
    margin-right: 10px;
}

.section-title hr {
    flex-grow: 1;
    border: none;
    height: 2px;
    background-color: blue;
}

.section-title a {
    text-decoration: none;
    color: #333;
}

.news-container {
    width: 100%;
    max-width: 290px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 5px auto; /* Center on all screens */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.news-container a {
    text-decoration: none;
    color: #111;
}

.news-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* Image fit garna */
    display: block;
}

.video-wrapper.small {
    position: relative;
    width: 300px;
    /* सानो चौडाइ */
    height: 169px;
    /* 16:9 ratio अनुसार height */
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-wrapper.small iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1);
    transform-origin: top left;
    border: 0;
}

.news-container h4 {
    padding: 10px;
    font-size: 16px;
    color: #111;
    line-height: 1.4;
}

.news-container h4:hover {
    color: #2980b9;
}

.news-container p {
    font-size: 16px;
    color: black;
}

.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 0px;
}

.footer a {
    text-decoration: none;
    color: #2980b9;
    font-weight: 600;
}

.footer .social-icons {
    margin-top: 10px;
}

.footer .social-icons a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-size: 20px;
}

@media (max-width: 900px) {
    .news-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:600px) {
    .news-box {
        grid-template-columns: repeat(1, 1fr);
    }
}