/* ============================================================
   EstateNews Paraguay — Custom Stylesheet
   www.estatenews.com.py
   ============================================================ */

:root {
    --en-primary: #1a3c5e;
    --en-primary-light: #245580;
    --en-secondary: #b8860b;
    --en-accent: #28a745;
    --en-bg: #f8f9fa;
    --en-text: #212529;
    --en-muted: #6c757d;
    --en-border: #dee2e6;
    --en-font-heading: 'Oswald', sans-serif;
    --en-font-body: 'Nunito', sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */
body {
    font-family: var(--en-font-body);
    color: var(--en-text);
    background-color: var(--en-bg);
    font-size: 1rem;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.section-title, .sidebar-title, .footer-title {
    font-family: var(--en-font-heading);
    font-weight: 600;
}

a {
    color: var(--en-primary);
    transition: color 0.2s;
}
a:hover {
    color: var(--en-primary-light);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    font-size: 0.8rem;
}

/* ============================================================
   HEADER / LOGO
   ============================================================ */
.site-header {
    background: #fff;
    z-index: 1030;
}

.site-logo {
    font-family: var(--en-font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.logo-estate {
    color: var(--en-primary);
}
.logo-news {
    color: var(--en-secondary);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.bg-primary-dark {
    background-color: var(--en-primary) !important;
}

.navbar-dark .nav-link {
    font-family: var(--en-font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.6rem 0.7rem;
    color: rgba(255,255,255,0.85);
    transition: color 0.2s, background 0.2s;
}
.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--en-secondary);
    display: inline-block;
}

.sidebar-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--en-secondary);
    margin-bottom: 0.8rem;
}

.footer-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============================================================
   HERO CARD
   ============================================================ */
.card-hero {
    border-radius: 0.5rem;
    min-height: 350px;
    overflow: hidden;
}
.card-hero .card-img {
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    transition: transform 0.4s;
}
.card-hero:hover .card-img {
    transform: scale(1.03);
}
.hero-overlay {
    background: linear-gradient(transparent 30%, rgba(0,0,0,0.85));
    padding: 1.5rem;
}
.card-hero .card-title {
    font-family: var(--en-font-heading);
    font-size: 1.6rem;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .card-hero {
        min-height: 250px;
    }
    .card-hero .card-img {
        min-height: 250px;
    }
    .card-hero .card-title {
        font-size: 1.2rem;
    }
}

/* ============================================================
   NEWS CARDS
   ============================================================ */
.card-noticia {
    border-radius: 0.4rem;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
}
.card-noticia:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}
.card-noticia .card-img-top {
    height: 180px;
    object-fit: cover;
}
.card-noticia .card-title {
    font-family: var(--en-font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}
.card-noticia .card-title a:hover {
    color: var(--en-primary-light) !important;
}

/* Patrocinadas */
.card-patrocinada {
    position: relative;
}
.card-patrocinada .card-img-top {
    height: 150px;
}

/* ============================================================
   THUMBNAILS
   ============================================================ */
.thumb-sm {
    width: 80px;
    height: 50px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-block {
    background: #fff;
    border-radius: 0.4rem;
    padding: 1rem;
}

.mas-leida-num {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-cat {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ============================================================
   BANNERS
   ============================================================ */
.banner-slot {
    display: inline-block;
    line-height: 0;
}
.banner-slot .banner-img {
    max-width: 100%;
    height: auto;
}

.mobile-sticky-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    text-align: center;
    background: rgba(255,255,255,0.95);
    padding: 4px 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
}
.article-content p {
    margin-bottom: 1.2rem;
}
.article-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--en-primary);
}
.article-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.3rem;
}
.article-content blockquote {
    border-left: 4px solid var(--en-secondary);
    padding: 0.8rem 1.2rem;
    background: #f8f9fa;
    margin: 1.2rem 0;
    font-style: italic;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--en-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-dark {
    background-color: var(--en-primary);
    border-color: var(--en-primary);
    color: #fff;
}
.btn-primary-dark:hover {
    background-color: var(--en-primary-light);
    border-color: var(--en-primary-light);
    color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    font-size: 0.9rem;
}
.site-footer a:hover {
    color: var(--en-secondary) !important;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}
.breadcrumb-item a {
    color: var(--en-muted);
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: var(--en-primary);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 991px) {
    .section-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .card-noticia .card-img-top {
        height: 150px;
    }
    .site-logo {
        font-size: 1.5rem;
    }
}

/* ============================================================
   LOADING PLACEHOLDER
   ============================================================ */
.placeholder-news {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}
@keyframes loading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .topbar, .site-header, .site-footer, .sidebar,
    .banner-slot, .mobile-sticky-banner, .breadcrumb { display: none !important; }
    .article-content { font-size: 12pt; }
}
