/* ===============================*/
/* Blog CSS - Update: 2025-07-05  */
/* ================== ===== ======*/

/* ===== BLOG LAYOUT & STRUCTURE ===== */

.blog-article {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
}

.blog-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.blog-section {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    border-top: 5px solid rgba(255, 255, 255, 0.1);
    padding: 1.7rem 1.5rem 1rem 1.6rem;
    margin: 2.5rem 0 1rem 1.5rem;
    box-shadow: var(--box-shadow);
}

/* ===== BLOG CONTENT ELEMENTS ===== */

.blog-title {
    font-size: 1.8rem;
    color: var(--light-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
}

.blog-content {
    line-height: 1.7;    
    color: var(--text-color);
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content p strong {
    color: var(--text-color) !important;
    
}

.blog-content em {
    color: var(--secondary-color);
    font-style: italic;
}

.blog-section-title {
    font-size: 1.4rem;
    color: var(--light-color);
    margin: 0 0 1.5rem 0;
    font-weight: 600;
    padding-bottom: 0.5rem;
    display: block;
}

.blog-section-title:not(:first-of-type) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2.2rem;
    margin-top: 3.5rem;
}

/* ===== BLOG META INFORMATION ===== */

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
}

.meta-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.blog-meta time {
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.8;
}

.blog-category {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: auto;
}

.blog-author {
    color: var(--text-color);
    font-weight: 500;
    opacity: 0.8;
}

.blog-author::before {
    content: none;
}

/* ===== BLOG BOX COMPONENTS ===== */

.blog-solution-box,
.blog-tip-box,
.blog-deny-box,
.blog-highlight-box {
    background: var(--card-bg-color);
    padding: 1rem 1.2rem 0rem 2.1rem;
    margin: 1.2rem 0;
    position: relative;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
}

.blog-highlight-box{
    max-width: 45em;
    border: 0 !important;
    background: var(--card-bg-color);
    padding-left: 0;
}

.blog-solution-box::before, .blog-tip-box::before, .blog-deny-box::before {
    font-family: Arial, sans-serif;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 1.3em;
    height: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 1.1em;
    font-size: 1em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.blog-solution-box::before {
    content: '✓';
    color: var(--accent-color);
}

.blog-tip-box::before {
    content: 'i';
    color: var(--secondary-color);
}

.blog-deny-box::before {
    content: '\2212'; /* Unicode minteken: − */
    color: #e53935;
}

.blog-highlight-box h4,
.blog-solution-box h4,
.blog-deny-box h4,
.blog-tip-box h4 {
    color: var(--light-color);
    margin-top: -0.3rem;
    margin-bottom: 0.6rem;
    font-size: 1.08rem;
    font-weight: 600;
}

.blog-highlight-box h4{
    margin-bottom: 1.2em;
}

/* ===== BLOG LISTS ===== */

.blog-list {
    list-style: none;
    padding-left: 1.5em;
}

.blog-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.blog-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.blog-highlight-box > ul.blog-list,
.blog-highlight-box > h4 + ul.blog-list {
    margin-left: 0;
    position: relative;
}

.blog-highlight-box .blog-list li {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem 1.2rem 1rem 1.5rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.blog-highlight-box .blog-list li::before {
    display: none;
}

.blog-highlight-box > ul.blog-list::before,
.blog-highlight-box > h4 + ul.blog-list::before {
    display: none;
}

/* ===== KLIKBARE BLOG LIST ITEMS ===== */
.blog-highlight-box .blog-list li.clickable-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.blog-highlight-box .blog-list li.clickable-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-highlight-box .blog-list li.clickable-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.blog-highlight-box .blog-list li.clickable-item .item-link {
    color: inherit;
    text-decoration: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.blog-highlight-box .blog-list li.clickable-item .item-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.blog-highlight-box .blog-list li.clickable-item .item-content strong {
    color: var(--primary-color) !important;
    transition: color 0.2s ease;
}

.blog-highlight-box .blog-list li.clickable-item:hover .item-content strong {
    color: var(--secondary-color) !important;
}

/* ===== BLOG HERO SECTION ===== */

.blog-hero .hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.blog-hero .hero-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* ===== NAVIGATION OVERRIDES ===== */

nav ul li:last-child a {    
    color: inherit !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5em 1em !important;
    margin-right: 8em !important;
    display: inline !important;
    font-size: 1.0625em !important;
    align-items: unset !important;
    justify-content: unset !important;
}

nav ul li:last-child a.active {
    position: relative;
}

nav ul li:last-child a.active::after {
    content: '';
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -2px !important;
    height: 2px !important;
    background: var(--secondary-color) !important;
    border-radius: 2px !important;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {


    .blog-article {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .blog-title {
        font-size: 1.5rem;
    }

    .blog-section {
        margin-left: 0!important;
        margin-right: 0;
    }
    
    .blog-section-title {
        font-size: 1.2rem;
        margin: 1rem 0 1rem 0;
    }
    
    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-meta {
        flex-direction: row !important;
        gap: 0.5rem;
        align-items: center;
    }
    
    .blog-category {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .meta-left {
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    

   .blog-highlight-box, .blog-list {
        margin-left: 0!important;
        padding-left: 0!important;        
      }    

    
    .blog-hero .hero-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .blog-article {
        padding: 1rem;
    }
    
    .blog-title {
        font-size: 1.3rem;
    }
    
    .blog-section-title {
        font-size: 1.1rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .blog-meta {
        gap: 0.3rem;
        flex-wrap: nowrap;
    }
    
    .blog-category {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
        letter-spacing: 0.3px;
    }
    
    .meta-left {
        font-size: 0.85rem;
        gap: 0.3rem;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .blog-meta time,
    .blog-author {
        font-size: 0.85rem;
    }    

    .blog-solution-box,
    .blog-tip-box,
    .blog-deny-box {
        padding: 1rem;
        padding-left: 2rem;
    }
    
    .blog-solution-box::before,
    .blog-tip-box::before,
    .blog-deny-box::before {
        left: 0em;
        top: 1.1em;
    }
    
    .blog-solution-box h4,
    .blog-tip-box h4,
    .blog-deny-box h4 {
        margin-top: -0.3rem;
        padding-left: 0;
    }
    
    .blog-hero .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .blog-hero .hero-content p {
        font-size: 1rem;
    }
}

/* ===== ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BLOG QUOTE ===== */
.blog-quote {
    position: relative;
    background: rgba(255,255,255,0.03);
    margin: 1em 0;
    padding: 2em 1.5em 2em 3rem;
    font-style: italic;
    color: var(--text-color);
    font-size: 1.08em;
}
.blog-quote::before {
    content: '“';
    position: absolute;
    top: 0.1em;
    left: 0.5em;
    font-size: 2.5em;
    color: var(--secondary-color);
    line-height: 1;
    font-family: serif;
    opacity: 0.25;
    pointer-events: none;
}
.blog-quote::after {
    content: '”';
    position: absolute;
    bottom: 0.1em;
    right: 0.25em;
    font-size: 2.5em;
    color: var(--secondary-color);
    line-height: 1;
    font-family: serif;
    opacity: 0.25;
    pointer-events: none;
}
.blog-quote .quote-source {
    font-style: normal;
    font-size: 1em;
    margin-top: 0.8em;
    color: #b0b8c9;
    padding: 0;
    background: none;
    border: none;
    display: block;
}
.blog-quote .quote-source a {
    color: #b0b8c9;
    text-decoration: underline;
    font-weight: normal;
}

