/* =========================================
   SINGLE POST - WIDE ONE COLUMN LAYOUT
========================================= */

.single-news-page {
    background-color: #ffffff;
    color: #000000;
    padding-top: 140px; /* ჰედერის სივრცე */
    padding-bottom: 100px;
    min-height: 100vh;
}

.single-article-container {
    max-width: 1000px; /* გაზრდილი სიგანე ტექსტისთვის */
    margin: 0 auto;
    padding: 0 5%;
}

.article-main-content {
    width: 100%;
}

.back-btn {
    font-size: 13px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.back-btn:hover { color: #d11f26; }

.article-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: #000;
    line-height: 1.25;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

/* --- ჰორიზონტალური მეტა ბლოკი (სათაურის ქვემოთ) დესკტოპზე --- */
.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.date-block-horizontal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #555;
}

.date-block-horizontal i {
    color: #d11f26;
    font-size: 18px;
}

/* გაზიარების დახვეწილი ბლოკი */
.share-block-horizontal { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.share-label {
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-right: 5px;
}

/* დახვეწილი, მრგვალი ღილაკები ბრენდული ფერებით */
.share-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.share-icon:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(0,0,0,0.15); 
}

.share-icon.fb { background-color: #1877F2; }
.share-icon.in { background-color: #0A66C2; }
.share-icon.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

/* =========================================
   ტექსტის და ფოტოების სტილი
========================================= */
.main-article-img {
    width: 100%;
    height: auto;
    margin-bottom: 50px; 
    border-radius: 12px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
}

.article-body-text {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-body-text p { 
    margin-bottom: 28px; 
}

.article-body-text h2, 
.article-body-text h3 {
    font-size: 28px;
    font-weight: 800;
    color: #000;
    margin: 50px 0 25px; 
    line-height: 1.3;
}

/* პანელიდან ჩასმული სურათების სტილიზაცია (სრული სიგანე) */
.article-body-text img,
.article-body-text figure img, 
.article-body-text .wp-block-image img {
    width: 100% !important; 
    height: auto; 
    display: block;
    margin: 50px 0; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease; 
}

.article-body-text img:hover,
.article-body-text figure img:hover, 
.article-body-text .wp-block-image img:hover {
    transform: translateY(-3px);
}

.article-body-text figcaption {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: -30px; 
    margin-bottom: 50px;
    font-style: italic;
}

/* ციტატების სტილი */
.article-body-text blockquote {
    border-left: 5px solid #d11f26; 
    padding: 20px 30px;
    margin: 50px 0;
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    color: #222;
    background: #f9f9f9; 
    border-radius: 0 12px 12px 0;
}

/* =========================================
   ACF GALLERY STYLES (3 სვეტად)
========================================= */
.news-single-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eaeaea;
}

.gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img { transform: scale(1.08); }

/* =========================================
   MOBILE RESPONSIVE
========================================= */
@media (max-width: 768px) {
    .single-news-page { padding-top: 100px; }
    
    .article-title { font-size: 28px; margin-bottom: 20px; }
    
    /* ახალი: მობილურზე ერთ ზოლში, დახვეწილი ჩარჩოთი და გამყოფი ხაზით */
    .article-meta-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        background: #fcfcfc;
        padding: 12px 15px;
        border-radius: 8px;
        border: 1px solid #eee;
        margin-bottom: 30px;
    }

    /* თარიღი და ვერტიკალური ხაზი */
    .date-block-horizontal {
        font-size: 14px;
        padding-right: 15px;
        border-right: 1px solid #ddd; /* აქ არის ვერტიკალური გამყოფი */
        margin-right: auto;
    }

    .date-block-horizontal i { font-size: 16px; }

    /* გაზიარების აიქონების ბლოკი */
    .share-block-horizontal {
        width: auto;
        justify-content: flex-end;
        gap: 8px;
    }

    /* ვმალავთ ტექსტს (გაზიარება:) რომ ერთ ხაზზე ლამაზად ჩაეტიოს */
    .share-label { display: none; }

    /* მობილურზე ოდნავ პატარა ღილაკები */
    .share-icon { width: 32px; height: 32px; font-size: 14px; }

    .article-body-text { font-size: 16px; }
    .article-body-text blockquote { font-size: 18px; padding-left: 15px; }
    
    /* პლანშეტზე 2 სვეტი */
    .news-single-gallery { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

@media (max-width: 480px) {
    /* ძალიან პატარა ეკრანებზეც მკაცრად 2 სვეტად რჩება გალერეა */
    .news-single-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    
    /* ვამცირებთ დაშორებებს, რომ ერთ ზოლში უეჭველი დაეტიოს */
    .date-block-horizontal { padding-right: 10px; font-size: 13px; }
    .share-block-horizontal { gap: 6px; }
    .share-icon { width: 28px; height: 28px; font-size: 12px; }
}