/* --- BLOG SPECIFIC STYLES --- */
        
/* --- BLOG SPECIFIC STYLES (FIXED HERO) --- */
       
/* 1. FEATURED HERO ARTICLE */
.blog-hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    
    /* ΑΛΛΑΓΗ 1: Κεντράρισμα κάθετα (αντί για flex-end) */
    align-items: center; 
    justify-content: center; /* Κεντράρισμα οριζόντια */
    
    background-color: #111;
    overflow: hidden;
    margin-top: -80px;
}

.blog-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transition: transform 10s ease;
}

.blog-hero:hover .blog-hero-bg {
    transform: scale(1.05);
}


/* --- FIX: ΚΑΝΟΥΜΕ ΤΟ HERO 100% ΤΗΣ ΟΘΟΝΗΣ --- */
.blog-hero.full-screen-hero {
    min-height: 100vh !important;
    height: 100vh !important;
    
    /* Τραβάμε την εικόνα πίσω από το header */
    margin-top: -85px !important; 
    
    /* ΑΛΛΑΓΗ 2: Δίνουμε ΠΟΛΥ αέρα από πάνω (ήταν 85px, το πήγαμε 150px) 
       για να μην κρύβονται τα γράμματα πίσω από το λογότυπο */
    padding-top: 150px !important; 
}




/* ΚΟΥΜΠΙ HERO - ΚΑΘΑΡΟΣ ΚΩΔΙΚΑΣ */
.btn-hero-blog {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    
    /* Χρώμα από τη μεταβλητή (ΙΔΙΟ με το Featured Story) */
    background-color: var(--ergo-red);
    
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-hero-blog:hover {
    /* Σκούρο κόκκινο στο Hover */
    background-color: #a80014;
    transform: translateY(-2px);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.hero-category {
    background-color: var(--ergo-red);
    color: #fff;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
}

.blog-hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}			

.blog-hero-meta {
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 2. BLOG GRID SECTION */
.blog-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 0;
    width: 60px; height: 3px;
    background-color: var(--ergo-red);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* 3. CARD DESIGN (Magazine Style) */
.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ergo-red);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.read-more-btn {
    color: #111;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
}

.read-more-btn:hover {
    gap: 10px;
    color: var(--ergo-red);
}




/* =========================================
   BLOG EXCLUSIVE: FINAL SCREEN WRAPPER & CTA
   ========================================= */

/* 1. ΤΟ WRAPPER (ΤΟ ΦΟΝΤΟ ΠΙΣΩ ΑΠΟ ΤΟ CTA) */
.final-screen-wrapper {
    display: block;
    
    /* Η ΔΙΟΡΘΩΣΗ ΓΙΑ ΤΟ BLOG: 
       Βάζουμε το γκρι (#f9f9f9) ίδιο με το grid των άρθρων. */
    background-color: #f9f9f9; 
}

/* --- Η ΝΕΑ ΠΡΟΣΘΗΚΗ: "ΛΕΥΚΗ ΕΚΔΟΣΗ" ΓΙΑ ΤΑ ΑΡΘΡΑ --- */
/* Όταν βάλουμε και την κλάση .white-mode, τότε γίνεται λευκό */
.final-screen-wrapper.white-mode {
    background-color: #ffffff !important;
}

/* Sticky Footer Logic (Μόνο για Desktop) */
@media (min-width: 1024px) {
    .final-screen-wrapper {
        min-height: calc(100vh - 85px); /* Header height fix */
        display: flex;
        flex-direction: column;
    }
    
    /* Το Footer σπρώχνεται τέρμα κάτω */
    .final-screen-wrapper .main-footer {
        margin-top: auto;
    }
}


/* 2. ΤΟ ΣΤΥΛ ΤΟΥ ΜΠΑΝΕΡ (CTA SECTION) */
/* Προσοχή: Χρησιμοποιούμε το .final-screen-wrapper μπροστά για να είμαστε σίγουροι */
.final-screen-wrapper .cta-section {
    /* Το Gradient της ERGO */
    background: linear-gradient(90deg, #7B0A28 0%, #220305 100%) !important;
    
    /* Γεμίζει τον κενό χώρο */
    flex-grow: 1; 
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    padding: 60px 20px;
    
    color: #ffffff;
    position: relative;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    z-index: 10;
}

/* 3. ΔΙΑΜΟΡΦΩΣΗ ΠΕΡΙΕΧΟΜΕΝΟΥ */
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2); 
    margin-bottom: 20px;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
}

.cta-content p {
    font-size: 1.15rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 35px auto;
    color: #f0f0f0;
    line-height: 1.6;
}

/* 4. ΚΟΥΜΠΙΑ */
.cta-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-cta-offer {
    display: inline-block;
    background-color: #ffffff !important;
    color: #7B0A28 !important; 
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-cta-offer:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    background-color: #f2f2f2 !important;
}

.btn-cta-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-call:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* 5. RESPONSIVE */
@media (max-width: 768px) {
    .cta-buttons-wrapper {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .btn-cta-call, .btn-cta-offer {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .cta-content h2 {
        font-size: 1.8rem;
    }
}


/* --- SINGLE POST STYLES (ΠΡΟΣΘΗΚΗ) --- */

.post-header-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    color: #fff;
    text-align: center;
    /* Η ΔΙΟΡΘΩΣΗ: */
    margin-top: -85px;  /* Τραβάει το φόντο πίσω από το μενού */
    padding-top: 100px; /* Σπρώχνει τα γράμματα κάτω για να φαίνονται! */
}


.post-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.post-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.post-header-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.post-meta-data {
    font-size: 1rem;
    opacity: 0.8;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Κυρίως Κείμενο (Typography) */
.post-container {
    max-width: 750px; /* Ιδανικό πλάτος για διάβασμα */
    margin: 0 auto;
    padding: 60px 20px;
    font-size: 1.15rem; /* Μεγάλα, ξεκούραστα γράμματα */
    line-height: 1.8;
    color: #333;
}

.post-body p {
    margin-bottom: 25px;
}

.post-body h2 {
    font-size: 1.8rem;
    color: #111;
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 700;
    border-left: 4px solid var(--ergo-red);
    padding-left: 15px;
}

.post-body ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.post-body li {
    margin-bottom: 10px;
    list-style-type: square;
}

/* Quote Box */
.highlight-box {
    background-color: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
    font-style: italic;
    font-weight: 500;
    border-left: 4px solid #111;
    margin: 40px 0;
    color: #555;
}

/* Author Box στο τέλος */
.author-box {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-img {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 { margin: 0; font-size: 1.2rem; }
.author-info span { font-size: 0.9rem; color: #666; }

/* Share Buttons */
.share-bar {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}
.share-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex; justify-content: center; align-items: center;
    color: #333; text-decoration: none;
    transition: 0.3s;
}
.share-btn:hover { background: var(--ergo-red); color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .post-header-content h1 { font-size: 2rem; }
    .post-container { font-size: 1rem; padding: 40px 20px; }
}







/* =========================================
   PREMIUM REVEAL ANIMATIONS
   ========================================= */

/* 1. Αρχική Κατάσταση: Κρυμμένα και λίγο πιο κάτω */
.blog-hero-content, 
.section-title, 
.article-card {
    opacity: 0; /* Αόρατα στην αρχή */
    transform: translateY(40px); /* 40px πιο κάτω */
    
    /* Premium Easing: Γρήγορη αρχή, απαλό τέλος */
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
    
    /* Για να μην "αναβοσβήνουν" στο φόρτωμα */
    will-change: transform, opacity;
}

/* 2. Τελική Κατάσταση: Εμφανή και στη θέση τους */
.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 3. Καθυστέρηση για κάθε κάρτα (θα οριστεί ακριβώς από το JS, αλλά εδώ βάζουμε μια βάση) */
.article-card {
    transition-delay: 0.1s; 
}










/* =========================================
   RESPONSIVE HERO SCALING (IPAD vs MOBILE)
   ========================================= */

/* 1. ΡΥΘΜΙΣΗ ΓΙΑ TABLET & IPAD (768px - 1180px) */
/* Εδώ μεγαλώνουμε τα πάντα για να "γεμίσουν" την οθόνη */
@media (min-width: 769px) and (max-width: 1180px) {
    
    .blog-hero.full-screen-hero {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 140px !important;
        padding-bottom: 140px !important;
        height: auto !important;
        min-height: 80vh !important;
    }

    /* ΤΟ ΣΗΜΑΝΤΙΚΟ: Μεγάλο πλάτος και μεγάλα γράμματα */
    .blog-hero-content {
        width: 90% !important;
        max-width: 900px !important; /* Απλώνει περισσότερο */
    }

    .blog-hero-content h1 {
        font-size: 3.5rem !important; /* ΠΟΛΥ ΜΕΓΑΛΟ (Σχεδόν Desktop) */
        line-height: 1.1 !important;
        margin-bottom: 25px !important;
    }

    .hero-category {
        font-size: 1rem !important; /* Μεγαλύτερο ταμπελάκι */
        padding: 8px 18px !important;
    }

    .blog-hero-meta {
        font-size: 1.1rem !important; /* Ευανάγνωστα στοιχεία */
        gap: 30px !important;
    }
    
    .btn-hero-blog {
        font-size: 1.1rem !important; /* Μεγαλύτερο κουμπί */
        padding: 15px 40px !important;
    }
}


/* 2. ΡΥΘΜΙΣΗ ΓΙΑ ΚΙΝΗΤΑ (Κάτω από 768px) */
/* Εδώ κρατάμε τα πιο μαζεμένα μεγέθη για να μην σπάνε */
@media (max-width: 768px) {
    
    .blog-hero.full-screen-hero {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        /* Λιγότερο padding στο κινητό */
        padding-top: 110px !important; 
        padding-bottom: 110px !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    .blog-hero-content {
        width: 100%;
        padding: 0 20px;
    }

    .blog-hero-content h1 {
        font-size: 2.1rem !important; /* Ιδανικό για κινητό */
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    .hero-category {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }
    
    .blog-hero-meta {
        flex-direction: column;
        gap: 10px !important;
        font-size: 0.9rem !important;
    }
}











/* =========================================
   FIX: ΒΕΛΑΚΙ ΜΕΣΑ ΣΤΟ HEADER (RIGHT ALIGN)
   ========================================= */

@media (max-width: 1180px) {

    /* 1. Εξαφάνιση του Hamburger (γραμμές) */
    body.single-post-page .mobile-menu-icon {
        display: none !important;
    }

    /* 2. Σιγουριά ότι το Container του Header είναι Flex */
    /* Αυτό κρατάει το Logo αριστερά και το Menu δεξιά */
    body.single-post-page .main-header .nav-flex {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* 3. Το Κουτί του Μενού (NAV) */
    /* Το κάνουμε STATIC. Αυτό είναι το μυστικό για να μπει ΜΕΣΑ στο header */
    body.single-post-page #navbar {
        display: block !important;       
        position: static !important;   /* Κάθεται στη φυσική του θέση */
        width: auto !important;          
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    /* 4. Η Λίστα (UL) */
    body.single-post-page #navbar ul {
        display: flex !important;
        flex-direction: row !important;  
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        position: static !important;
        box-shadow: none !important;
    }

    body.single-post-page #navbar li {
        margin: 0 !important;
        border: none !important;
        padding: 0 !important;
        width: auto !important;
    }

    /* 5. Το Link (TABLET - Φαίνονται όλα) */
    body.single-post-page #navbar a {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        color: var(--ergo-red) !important;
        background: transparent !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        gap: 6px; 
    }
}

/* 6. MOBILE (Κινητά - Μόνο βελάκι για να χωράει) */
@media (max-width: 500px) {
    
    /* Κρύβουμε τα γράμματα */
    body.single-post-page #navbar a {
        font-size: 0 !important; 
    }

    /* Μεγαλώνουμε το βελάκι */
    body.single-post-page #navbar a i {
        font-size: 1.6rem !important; /* Μεγάλο βελάκι */
        display: block !important;
        color: var(--ergo-red) !important;
    }
}