/**
 * Obiectiv SM - Mega Menu & Design Overrides
 */

/* =====================================================
   MEGA MENU PANELS - Normal flow, below nav
   ===================================================== */

/* Panel - overlay, fixed position below nav */
.osm-mega-panel {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-bottom: 3px solid var(--ow-primary, #0066cc);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    padding: 20px 0;
    z-index: 9990;
}
.osm-mega-panel.osm-mega-open {
    display: block;
}

/* Grid: 4 articles in a row */
.osm-mega-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card */
.osm-mega-card {
    text-decoration: none;
    color: #1a1a1a;
    display: block;
}
.osm-mega-card:hover h4 {
    color: var(--ow-primary, #0066cc);
}

/* Card image */
.osm-mega-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f5f5f5;
}
.osm-mega-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.osm-mega-card:hover .osm-mega-img img {
    transform: scale(1.05);
}
.osm-mega-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 28px;
    background: #f0f0f0;
}

/* Card title */
.osm-mega-card h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
    font-family: var(--ow-font-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

/* Card time */
.osm-mega-time {
    font-size: 12px;
    color: #999;
    font-family: var(--ow-font-ui);
}

/* Mobile: hide completely */
@media (max-width: 767px) {
    .osm-mega-panel {
        display: none !important;
    }
}

/* =====================================================
   TYPOGRAPHY OVERRIDES
   ===================================================== */

body {
    font-family: var(--ow-font-primary);
    color: #36393d;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ow-font-heading);
    color: #000;
}

.osm-cat-small {
    border-left: 3px solid currentColor;
    padding-left: 6px;
}

.osm-section-title {
    font-family: var(--ow-font-heading);
    font-weight: 800;
    color: #000;
}

.ow-article-content {
    font-family: var(--ow-font-primary);
    font-size: 18px;
    line-height: 1.7;
    color: #36393d;
}
.ow-article-content h2,
.ow-article-content h3,
.ow-article-content h4 {
    font-family: var(--ow-font-heading);
    font-weight: 700;
    color: #000;
}

.osm-newsletter-banner-btn {
    white-space: nowrap;
}
