/* MAIN BLOG WRAPPER */
.blog-main {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
}

/* HEADER */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 1s ease;
}

.blog-header h1 {
    font-size: 38px;
    margin-bottom: 10px;
    font-weight: bold;
}

.blog-header p {
    font-size: 18px;
    color: #444;
    max-width: 700px;
    margin: 0 auto;
}

/* GRID */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* BLOG CARD */
.blog-card {
    background: #fafafa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.8s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 10px 25px rgba(0,0,0,0.12);
}

.blog-card img {
    width: 100%;
    display: block;
}

/* CONTENT */
.blog-content {
    padding: 20px;
}

.blog-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.blog-content p {
    color: #555;
    margin-bottom: 15px;
}

/* READ MORE */
.read-more {
    font-weight: bold;
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ff6600;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    animation: fadeIn 1s ease;
    flex-wrap: wrap;
}

.pagination a {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: #333;
    background: #f2f2f2;
    transition: 0.3s ease;
    border: 1px solid #ddd;
}

.pagination a:hover {
    background: #e5e5e5;
    transform: translateY(-3px);
}

.pagination .active {
    background: #0056b3;
    color: #fff !important;
    border-color: #0056b3;
}

.page-btn {
    font-size: 14px;
}

.prev, .next {
    background: #fafafa;
}
/* Related Lessons section */
.related-lessons {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
}

.related-lessons h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.related-lessons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lesson-link-item {
    margin-bottom: 12px;
}
/* ===========================
   Blog Article Typography
=========================== */

.blog-single h1{
    font-size:42px;
    font-weight:700;
    line-height:1.2;
    margin-bottom:25px;
}

.blog-content h2{
    font-size:32px;
    font-weight:700;
    line-height:1.3;
    
}

.blog-content h3{
    font-size:26px;
    font-weight:700;
    line-height:1.35;
}

.blog-content h4{
    font-size:22px;
    font-weight:700;
}
.blog-content table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
    margin:35px 0;
    border-radius:10px;
    overflow:hidden;
}

.blog-content th{
    background:#f3f6fb;
    font-weight:700;
    padding:6px 14px;
}

.blog-content td{
    padding:6px 14px;
    border-top:1px solid #ececec;
}

.blog-content th:nth-child(1),
.blog-content td:nth-child(1){ width:25%; }

.blog-content th:nth-child(2),
.blog-content td:nth-child(2){ width:30%; }

.blog-content th:nth-child(3),
.blog-content td:nth-child(3){
    width:45%;
    padding-left:34px;
}
.blog-content .hermetic-decan-table th:nth-child(1),
.blog-content .hermetic-decan-table td:nth-child(1){ width:25%; }

.blog-content .hermetic-decan-table th:nth-child(2),
.blog-content .hermetic-decan-table td:nth-child(2){ width:25%; }

.blog-content .hermetic-decan-table th:nth-child(3),
.blog-content .hermetic-decan-table td:nth-child(3){ width:25%; }

.blog-content .hermetic-decan-table th:nth-child(4),
.blog-content .hermetic-decan-table td:nth-child(4){ width:25%; }

.article-media-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    margin: 25px 0;
}

.article-youtube {
    flex: 1 1 auto;
    width: 100%;
    max-width: 620px;
}

.youtube-responsive {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.youtube-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-media-row .adsterra-ad {
    flex: 0 0 300px;
    width: 300px;
    height: 250px;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .article-media-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .article-youtube {
        width: 100%;
        max-width: 100%;
    }

    .article-media-row .adsterra-ad {
        margin: 0 auto !important;
    }
}
.youtube-intro {
    margin: 0 0 12px 0;
    font-size: 16px;
    line-height: 1.6;
}
/* Featured image on individual blog articles */
@media (min-width: 769px) {
    .blog-featured-image {
        display: block;
        width: 100%;
        max-height: 320px;
        object-fit: contain;
        object-position: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Desktop: baner — featured image — baner */
@media (min-width: 1100px) {
    .blog-article-title {
        text-align: center;
    }

    .blog-featured-layout {
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr) 300px;
        gap: 20px;
        align-items: start;
        width: 100%;
        margin-bottom: 24px;
    }

    .blog-featured-center {
        min-width: 0;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .blog-featured-center picture {
        display: block;
        width: 100%;
    }

    .blog-featured-image {
        display: block;
        width: 100%;
        height: 320px;
        max-height: 320px;
        object-fit: contain;
        object-position: center;
        margin-left: auto;
        margin-right: auto;
    }

    .blog-side-ad {
        width: 300px;
        min-height: 250px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        overflow: visible;
    }
}

/* Na manjim ekranima nema bočnih banera */
@media (max-width: 1099px) {
    .blog-side-ad {
        display: none;
    }
}
.blog-article-title,
.blog-publish-date {
    text-align: center;
}


/* Centriranje Adsterra oglasa unutar teksta članka */
.blog-content .adsterra-ad.adsterra-300x250 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 24px auto;
    text-align: center;
}

/* Centriranje iframe-a koji Adsterra ubacuje */
.blog-content .adsterra-ad.adsterra-300x250 iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Mobilni uređaji */
@media (max-width: 768px) {
    .blog-content .adsterra-ad.adsterra-300x250 {
        width: 100%;
        margin: 20px auto;
        overflow: visible;
    }
}

/* Default: mobile banner */
.adsterra-responsive-placement .adsterra-desktop-ad {
    display: none;
}

.adsterra-responsive-placement .adsterra-mobile-ad {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px auto;
}

/* Desktop: horizontal 728 x 90 banner */
@media (min-width: 1100px) {
    .adsterra-responsive-placement .adsterra-desktop-ad {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 24px auto;
    }

    .adsterra-responsive-placement .adsterra-mobile-ad {
        display: none;
    }
}



