/*
Theme Name: JNews Child
Template: jnews
Version: 1.0
*/

/* delete author name on post */
span.jeg_meta_author,
div.jeg_meta_author,
.jeg_meta_author {
	display: none !important; 
}

/* Custom Navbar Styles */
.custom-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fad02c;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: transform 0.4s ease;
}

.custom-navbar.nav-up {
    transform: translateY(-100%);
}

.custom-navbar.nav-down {
    transform: translateY(0);
}

.navbar-top {
	background-color: #fff !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.custom-logo {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    margin: 0 12px 0 0;
    border: 1px solid #212121;
    border-radius: 100%;
}

.custom-navbar .logo-link {
	font-size: 18px;
    font-weight: 500;
    color: #212121
}

.navbar-actions {
    display: flex;
    align-items: center;
}

.search-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #000;
    cursor: pointer;
    transition: opacity 0.3s;
    padding: 5px 10px;
}

.search-btn:hover {
    opacity: 0.7;
}

.navbar-links {
    display: flex;
    overflow-x: auto;
    padding: 0 5%;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background: rgba(0, 0, 0, 0.05);
}

.navbar-links::-webkit-scrollbar {
    display: none;
}

.nav-item {
    flex: 0 0 auto;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 12px 15px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.3s;
    font-size: 15px;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Search modal styles */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.search-modal.active {
    display: flex;
}

.search-modal .search-modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 20px;
    padding: 80px 40px 60px 40px;
}

#search-modal form {
    display: flex;
    width: 100%;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.search-modal form input[type="text"] {
    flex-grow: 1;
    padding: 18px 25px;
    font-size: 18px;
    border: none;
    color: #000;
    background: #fff;
}

.search-modal form input[type="text"]:focus {
    outline: none;
}

.search-modal form input[type="text"]::-webkit-input-placeholder {
    color: #888;
}

.search-modal form input[type="text"]::-moz-placeholder {
    color: #888;
}

.search-modal form input[type="text"]:-ms-input-placeholder {
    color: #888;
}

.search-modal form button {
    padding: 18px 30px;
    color: #000;
    background: #fad02c;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 65px;
    min-width: 65px;
    max-width: 65px;
    text-align: center;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.search-modal form button:hover {
    background: #fad02c;
    opacity: 0.9;
}

.search-modal .search-modal-close {
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    transition: color 0.3s;
    margin-top: 30px;
    display: inline-block;
    position: absolute;
    top: -20px;
    right: 20px;
    z-index: 10000;
}

.search-modal .search-modal-close:hover {
    color: #fad02c;
}

.search-modal .recent-searches {
	display: none !important;
    color: white;
    margin-top: 30px;
}

.search-modal .recent-searches h3 {
    margin-bottom: 15px;
    font-weight: 500;
    color: white;
}

.search-modal .search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.search-modal .search-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-modal .search-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Fix for Chrome autocomplete yellow background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #000;
    -webkit-box-shadow: 0 0 0px 1000px #fff inset;
    transition: background-color 5000s ease-in-out 0s;
}

@keyframes fadeIn {
    from {
    	opacity: 0;
    }

    to {
    	opacity: 1;
    }
}

/* Responsive styles */
@media (max-width: 1024px) {
    .navbar-top {
        padding: 12px 4%;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .navbar-top {
        padding: 10px 3%;
    }
    
    .custom-logo {
        height: 35px;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .navbar-top {
        padding: 8px 2%;
    }
    
    .custom-logo {
        height: 30px;
    }
    
    .search-btn {
        font-size: 18px;
    }
    
    .nav-link {
        padding: 8px 9px;
        font-size: 12px;
    }
}