/* ============================================================
   BLOG-NEWS.CSS – Modern News Portal Styles
   ============================================================ */

/* ---- PAGE HEADER ---- */
.news-page-header {
    background: linear-gradient(135deg, #0A1A18 0%, #0c1f1d 60%, #0A1A18 100%);
    padding: 160px 0 60px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}
.news-page-header::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    width: 600px; height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(var(--accent-rgb, 233,129,0), 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.news-header-content { text-align: center; }
.news-header-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent, #2DD4A8);
    background: rgba(45, 212, 168, 0.12);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.news-header-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 16px;
}
.news-header-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ---- MAIN AREA ---- */
.news-main {
    background: #f6f7f9;
    min-height: 80vh;
    padding: 48px 0 80px;
}

/* ---- FILTER BAR ---- */
.news-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}
.news-filter-btn {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid #d8dce2;
    background: #fff;
    color: #4a5568;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.news-filter-btn:hover,
.news-filter-btn.active {
    background: var(--accent, #2DD4A8);
    border-color: var(--accent, #2DD4A8);
    color: #fff;
}

/* ---- IMAGE PLACEHOLDER ---- */
.news-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.3);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.news-img-placeholder svg {
    width: 48px; height: 48px;
    opacity: 0.4;
}
.news-img-placeholder--sm {
    font-size: 0.72rem;
}
.news-img-placeholder--sm svg {
    width: 32px; height: 32px;
}

/* ---- FEATURED CARD ---- */
.news-featured-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    text-decoration: none;
    position: relative;
    height: 440px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 56px rgba(0,0,0,0.2);
}
.news-featured-img {
    position: absolute;
    inset: 0;
}
.news-featured-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(10,15,25,0.97) 0%, rgba(10,15,25,0.8) 50%, transparent 100%);
    padding: 48px 40px 36px;
}
.news-featured-title {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin: 12px 0 16px;
    line-height: 1.25;
}

/* ---- NEWS GRID ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-featured-card { height: 320px; }
    .news-featured-overlay { padding: 24px 20px 20px; }
}

/* ---- NEWS CARD ---- */
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #e8ecf0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--accent, #2DD4A8);
}
.news-card-img {
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}
.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: #1a202c;
    margin: 10px 0 10px;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-excerpt {
    font-size: 0.82rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- TAG ---- */
.news-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(45, 212, 168, 0.12);
    color: var(--accent, #2DD4A8);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-radius: 50px;
    white-space: nowrap;
}

/* ---- META ---- */
.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.news-date { font-size: 0.75rem; color: #a0aec0; font-weight: 500; }
.news-read-time {
    font-size: 0.72rem;
    color: #a0aec0;
    background: #f1f3f7;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ============================================================
   ARTICLE DETAIL STYLES
   ============================================================ */

/* ---- HERO ---- */
.article-hero {
    position: relative;
    height: 500px;
    min-height: 380px;
    overflow: hidden;
    margin-top: 80px; /* navbar height */
}
.article-hero-img-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0A1A18 0%, #0c1f1d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(255,255,255,0.2);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.article-hero-img-placeholder svg {
    width: 80px; height: 80px;
    opacity: 0.25;
}
.article-hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(5,10,20,0.98) 0%, rgba(5,10,20,0.7) 55%, transparent 100%);
    padding: 60px 0 36px;
}
.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.article-breadcrumb {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.article-breadcrumb:hover { color: var(--accent, #2DD4A8); }
.article-hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.2;
    max-width: 840px;
}
.article-hero-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}
.article-dot { opacity: 0.4; }

/* ---- LAYOUT ---- */
.article-layout {
    background: #f6f7f9;
    padding: 52px 0 80px;
}
.article-columns {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 960px) {
    .article-columns { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}

/* ---- MAIN CONTENT ---- */
.article-main-col { min-width: 0; }
.article-body {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 28px;
}
.article-body h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent, #2DD4A8);
    margin: 28px 0 10px;
}
.article-body p { margin-bottom: 14px; }
.article-body ul {
    list-style: none;
    margin: 12px 0 18px 0;
    padding-left: 0;
}
.article-body li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: #4a5568;
}
.article-body li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--accent, #2DD4A8);
    font-weight: bold;
    font-size: 1.4em;
    line-height: 1.2;
}
.article-body strong { color: #1a202c; }

/* ---- CALCULATOR IN ARTICLE ---- */
.article-calculator-section {
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    margin-bottom: 28px;
}

/* TMAVÁ KALKULAČKA V ČLÁNKU (LADÍ S POZADÍM STRÁNKY) */
.article-calculator-section .form-section {
    background: #0A1A18 !important; /* Rovnaká farba ako hlavné pozadie stránky */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    padding: 32px !important;
    border-radius: 12px !important;
}

.article-calculator-section .form-section-title {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-size: 1.1rem !important;
}

.article-calculator-section .slider-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

.article-calculator-section .slider-label .slider-value {
    color: #2DD4A8 !important; /* Tyrkysová pre hodnoty */
}

.article-calculator-section .slider {
    background: rgba(255, 255, 255, 0.1) !important;
}

.article-calculator-section .slider-range span {
    color: rgba(255, 255, 255, 0.3) !important;
}

.article-calculator-section .result-box {
    background: #112F2A !important; /* Jemne svetlejšia tmavozelená pre výsledok */
    border: 1px solid rgba(45, 212, 168, 0.2) !important;
    box-shadow: none !important;
    margin-top: 20px !important;
}

.article-calculator-section .result-prefix {
    color: rgba(255, 255, 255, 0.6) !important;
}

.article-calculator-section .result-number {
    color: #2DD4A8 !important;
}

.article-calculator-section .result-suffix {
    color: rgba(255, 255, 255, 0.5) !important;
}

.article-calculator-section .rate-badge {
    background: rgba(45, 212, 168, 0.1) !important;
    border-color: rgba(45, 212, 168, 0.2) !important;
    color: #2DD4A8 !important;
}

.article-calculator-section .btn-calculate {
    background: #2DD4A8 !important;
    color: #0A1A18 !important;
    margin-top: 20px !important;
    font-weight: 800 !important;
}

.article-calculator-section .btn-calculate:hover {
    background: #26C49B !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 212, 168, 0.3);
}

.article-section-heading {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 8px;
}
.calc-wrapper-article {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .calc-wrapper-article { grid-template-columns: 1fr; }
    .article-body { padding: 24px; }
    .article-calculator-section { padding: 24px; }
}
.calc-group { display: flex; flex-direction: column; gap: 6px; }
.calc-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4a5568;
    letter-spacing: 0.03em;
}
.calc-input {
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a202c;
    background: #f9fafb;
    transition: border-color 0.2s;
    outline: none;
}
.calc-input:focus { border-color: var(--accent, #2DD4A8); background: #fff; }
.calc-btn-article {
    grid-column: 1 / -1;
    padding: 14px;
    background: var(--accent, #2DD4A8);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.1s;
}
.calc-btn-article:hover { background: #26C49B; transform: translateY(-1px); }
.calc-result-article {
    grid-column: 1 / -1;
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #374151;
}
.calc-result-row strong { font-size: 1rem; font-weight: 800; }

/* ---- SHARE ---- */
.article-share-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px 32px;
    border: 1px solid #e8ecf0;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.article-share-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a5568;
    white-space: nowrap;
}
.article-share-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.share-fb { color: #1877f2; border-color: #1877f2; }
.share-fb:hover { background: #1877f2; color: #fff; }
.share-li { color: #0a66c2; border-color: #0a66c2; }
.share-li:hover { background: #0a66c2; color: #fff; }
.share-copy { color: #4a5568; }
.share-copy:hover { background: #f1f3f7; }
.share-native { color: var(--accent, #2DD4A8); border-color: var(--accent, #2DD4A8); }
.share-native:hover { background: var(--accent, #2DD4A8); color: #fff; }

/* ---- CTA BANNER ---- */
.article-cta-banner {
    background: linear-gradient(135deg, #0A1A18 0%, #0c1f1d 100%);
    border-radius: 20px;
    padding: 32px 40px;
    display: flex;
    flex-direction: column; /* Stack vertically to allow expansion */
    gap: 0;
    border: 1px solid rgba(45, 212, 168, 0.3);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-cta-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    width: 100%;
}
.article-cta-banner::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(45, 212, 168, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.article-cta-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}
.article-cta-text {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin: 0;
    max-width: 460px;
}
.article-cta-btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--accent, #2DD4A8);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
    font-family: inherit;
}
.article-cta-btn:hover { background: #26C49B; transform: translateY(-2px); }

/* REVEAL SECTION STYLES */
.article-cta-reveal {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-reveal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cta-reveal-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cta-reveal-icon {
    width: 44px;
    height: 44px;
    background: rgba(45, 212, 168, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent, #2DD4A8);
    flex-shrink: 0;
}
.cta-reveal-icon svg {
    width: 22px;
    height: 22px;
}
.cta-reveal-info {
    display: flex;
    flex-direction: column;
}
.cta-reveal-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
}
.cta-reveal-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.cta-reveal-link:hover {
    color: var(--accent, #2DD4A8);
}

/* ---- SIDEBAR ---- */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-widget {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.sidebar-widget-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent, #2DD4A8);
}
.sidebar-articles { display: flex; flex-direction: column; gap: 0; }
.sidebar-article-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f2f5;
    text-decoration: none;
    transition: opacity 0.2s;
}
.sidebar-article-item:last-child { border-bottom: none; }
.sidebar-article-item:hover { opacity: 0.75; }
.sidebar-article-thumb {
    width: 60px; height: 50px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-article-thumb svg { width: 22px; height: 22px; color: rgba(255,255,255,0.25); stroke: currentColor; }
.sidebar-article-info { flex: 1; min-width: 0; }
.sidebar-article-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent, #2DD4A8);
}
.sidebar-article-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.35;
    margin: 4px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-article-date { font-size: 0.7rem; color: #a0aec0; }

.sidebar-cta-box {
    background: linear-gradient(135deg, #2DD4A8 0%, #26C49B 100%);
    border-radius: 14px;
    padding: 24px;
    color: #fff;
}
.sidebar-cta-box h5 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 8px;
}
.sidebar-cta-box p {
    font-size: 0.82rem;
    opacity: 0.88;
    line-height: 1.55;
    margin: 0 0 18px;
}
.sidebar-cta-link {
    display: inline-block;
    padding: 10px 22px;
    background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.sidebar-cta-link:hover { background: rgba(255,255,255,0.35); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .article-hero { height: 380px; margin-top: 70px; }
    .article-hero-title { font-size: 1.5rem; }
    .article-cta-banner { padding: 28px 24px; flex-direction: column; }
    .article-cta-btn { width: 100%; text-align: center; }
    .news-page-header { padding: 120px 0 48px; }
    .article-sidebar { position: static; margin-top: 40px; }
}
