/* La Prensa Header Widget Styles */
.laprensa-header-widget * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.laprensa-header-widget body {
    font-family: 'Georgia', serif;
    background-color: #f8f9fa;
}

/* Off-Canvas Menu */
.laprensa-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.laprensa-offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.laprensa-offcanvas-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: linear-gradient(135deg, #c0392b, #a93226);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
}

.laprensa-offcanvas-menu.active {
    left: 0;
}

.laprensa-offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.laprensa-offcanvas-logo {
    color: white;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.laprensa-offcanvas-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.laprensa-offcanvas-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.laprensa-offcanvas-nav {
    list-style: none;
    padding: 10px 0;
}

.laprensa-offcanvas-nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.laprensa-offcanvas-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.laprensa-offcanvas-nav-link:hover,
.laprensa-offcanvas-nav-link.active {
    background: rgba(255,255,255,0.1);
    padding-left: 30px;
}

.laprensa-offcanvas-nav-link.active {
    border-left: 3px solid white;
}

.laprensa-offcanvas-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.laprensa-offcanvas-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.laprensa-offcanvas-social {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.laprensa-offcanvas-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.laprensa-offcanvas-social a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.laprensa-offcanvas-copyright {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    text-align: center;
}

/* Top Bar */
.laprensa-top-bar {
    background: #2c3e50;
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.laprensa-top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.laprensa-date-weather {
    display: flex;
    align-items: center;
    gap: 20px;
}

.laprensa-weather {
    display: flex;
    align-items: center;
    gap: 5px;
}

.laprensa-social-top {
    display: flex;
    gap: 15px;
    align-items: center;
}

.laprensa-social-top a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.laprensa-social-top a:hover {
    color: #3498db;
}

.laprensa-app-btn {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.laprensa-app-btn:hover {
    background: rgba(255,255,255,0.2);
}

.laprensa-lang-selector {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
}

/* Header */
.laprensa-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.laprensa-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.laprensa-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.laprensa-logo {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.laprensa-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.laprensa-tagline {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 5px;
}

.laprensa-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.laprensa-search-container {
    position: relative;
}

.laprensa-search-box {
    padding: 10px 40px 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    width: 250px;
    font-size: 14px;
    transition: all 0.3s;
}

.laprensa-search-box:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 5px rgba(192, 57, 43, 0.3);
}

.laprensa-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
}

.laprensa-subscribe-btn {
    background: #c0392b;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.laprensa-subscribe-btn:hover {
    background: #a93226;
}

.laprensa-dark-mode-toggle {
    background: none;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.laprensa-dark-mode-toggle:hover {
    border-color: #c0392b;
    color: #c0392b;
}

/* Navigation */
.laprensa-navigation {
    background: linear-gradient(135deg, #c0392b, #a93226);
    min-height: 50px; /* Consistent height with nav-container */
}

.laprensa-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    min-height: 50px; /* Reduced height */
}

.laprensa-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 10px 20px 10px 0; /* Reduced padding */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.laprensa-menu-toggle:hover {
    opacity: 0.8;
}

.laprensa-menu-toggle span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.laprensa-nav-menu {
    display: flex;
    list-style: none;
    flex: 1;
    align-items: center; /* Center menu items vertically */
    margin: 0; /* Remove default margin */
}

.laprensa-nav-item {
    position: relative;
}

.laprensa-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 20px; /* Reduced padding */
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    position: relative;
    line-height: 1.2; /* Better line height */
}

.laprensa-nav-link:hover,
.laprensa-nav-link.active {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.laprensa-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: white;
}

/* Responsive */
@media (max-width: 992px) {
    .laprensa-nav-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .laprensa-top-bar {
        display: none;
    }

    .laprensa-header-content {
        justify-content: center;
    }

    .laprensa-header-right {
        display: none;
    }

    .laprensa-logo {
        font-size: 24px;
        text-align: center;
    }

    .laprensa-logo-section {
        align-items: center;
    }

    .laprensa-tagline {
        text-align: center;
        font-size: 10px;
    }
}

/* Dark Mode */
body.laprensa-dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.laprensa-dark-mode .laprensa-header {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.laprensa-dark-mode .laprensa-logo {
    color: #e0e0e0;
}

body.laprensa-dark-mode .laprensa-search-box {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

body.laprensa-dark-mode .laprensa-tagline {
    color: #aaa;
}