/* Jaya Press Header Footer Styles */
.jaya-press-header {
    font-family: Arial, sans-serif;
}

/* DESKTOP HEADER */
.jp-header-desktop {
    max-width: 1200px;
    margin: 0 auto;
}

/* First Row */
.jp-first-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #eee;
}

.jp-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.jp-logo-section img {
    max-height: 60px;
    width: auto;
}

.jp-search-section {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.jp-search-form {
    display: flex;
    width: 100%;
}

.jp-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #007cba;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.jp-search-btn {
    padding: 12px 25px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.jp-user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.jp-login-btn {
    padding: 12px 25px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.jp-cart-btn {
    padding: 12px 15px;
    background: #ff6b00;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
}

/* Second Row - Banner */
.jp-second-row {
    background: #f0f0f0;
    padding: 10px 0;
}

.jp-header-banner {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
}

/* Third Row - Navigation (FIXED) */
.jp-third-row-fullwidth {
    background: #004494;
    width: 100%;
}

.jp-navigation-container {
    max-width: 1200px;
    margin: 0 auto;
}

.jp-navigation {
    display: flex;
    justify-content: center;
}

.jp-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.jp-menu-item {
    margin: 0 5px;
}

.jp-menu-link {
    display: block;
    padding: 16px 25px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    background: transparent;
    transition: background 0.3s;
}

.jp-menu-active .jp-menu-link {
    background: #002b63 !important;
    position: relative;
}

.jp-menu-active .jp-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ffd700;
}

.jp-menu-link:hover {
    background: #003d82 !important;
}

/* MOBILE HEADER (FIXED) */
.jp-header-mobile {
    display: none;
    background: white;
    border-bottom: 1px solid #ddd;
}

.jp-mobile-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-bottom: 1px solid #eee;
}

.jp-mobile-menu-toggle {
    padding: 10px 15px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.jp-mobile-user-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jp-mobile-login {
    padding: 8px 15px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.jp-mobile-cart {
    padding: 8px 12px;
    background: #ff6b00;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
}

.jp-mobile-search-row {
    padding: 12px 15px;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.jp-mobile-search-form {
    display: flex;
    width: 100%;
}

.jp-mobile-search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.jp-mobile-search-btn {
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

/* Mobile Navigation */
.jp-mobile-nav-container {
    display: none;
    background: #2c3e50;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
}

.jp-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jp-mobile-menu-item {
    border-bottom: 1px solid #34495e;
}

.jp-mobile-menu-link {
    display: block;
    padding: 15px 20px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    background: transparent;
}

.jp-mobile-menu-active .jp-mobile-menu-link {
    background: #34495e !important;
    border-left: 4px solid #007cba;
}

.jp-mobile-menu-link:hover {
    background: #34495e !important;
}

.jp-mobile-nav-container.active {
    display: block;
}

/* FOOTER */
.jaya-press-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.jp-query-section, .jp-contact-section {
    flex: 1;
    min-width: 300px;
    margin: 0 20px 20px;
}

.jp-query-section h3, .jp-contact-section h3 {
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#jaya-press-query-form input,
#jaya-press-query-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #34495e;
    border-radius: 4px;
    background: #34495e;
    color: white;
    box-sizing: border-box;
}

#jaya-press-query-form button {
    width: 100%;
    padding: 12px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#jp-form-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

#jp-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#jp-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* WhatsApp Button (FIXED) */
.jp-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10000;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .jp-header-desktop {
        display: none;
    }
    
    .jp-header-mobile {
        display: block;
        position: relative;
    }
    
    .jaya-press-footer {
        flex-direction: column;
        padding: 30px 15px;
    }
    
    .jp-whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}