/* --- Global Styles & Layout --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* Αποτροπή οριζόντιας υπερχείλησης σε μικρές οθόνες */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Play', sans-serif;;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding-top: 112px; /* Καλύπτει ακριβώς το ύψος top-bar (30px) + main-nav (90px) για να μη κρύβεται η εικόνα */
}

/* Σταθερό πλάτος 1140px παντού για το περιεχόμενο */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}



/* --- Top Bar: Βαθύ Ναυτικό Μπλε σε όλο το πλάτος --- */
.top-bar {
    background: #0047ab !important;
    color: #fff;
    height: 30px;
    display: flex;
    align-items: center;
    font-size: 13px;
    width: 100%;
}

.top-bar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
}

.contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info span,
.contact-info a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-info a:hover {
    text-decoration: none;
}

/* --- Header & Fixed Setup (Λύνει οριστικά το κόλλημα στην κορυφή) --- */
.site-header {
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.main-nav {
    height: 80px;
}

.main-nav .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Λογότυπο */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 65px;
    width: auto;
}

/* Κεντρικό Μενού */
.menu-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.menu-list a {
    text-decoration: none;
    color: #000;
    font-size: 15px;
    font-weight: normal;
    text-transform: uppercase;
    transition: color 0.2s;
}

.menu-list a:hover, 
.menu-list a.active {
    color: #0047ab !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #0b2b59;
}

/* --- Main Content --- */
.site-main {
    padding: 0; 
    min-height: 50vh;
}

.content-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.content-section p {
    margin-bottom: 20px;        /* Αφήνει κενό κάτω από κάθε παράγραφο */
    text-align: justify;        /* Κάνει την στοίχιση πλήρη */
    line-height: 1.6;          /* Βελτιώνει την αναγνωσιμότητα με κατάλληλο διάκενο γραμμών */
    font-size: 14px;            /* Προαιρετικά: Ορίζει ένα καθαρό μέγεθος γραμματοσειράς */
    color: #333333;             /* Προαιρετικά: Απαλό μαύρο/σκούρο γκρι για άνετη ανάγνωση */
}

.content-section ul {
    margin-bottom: 20px;
    padding-left: 30px;         /* Δίνει τον απαραίτητο χώρο για τις βούλες */
    text-align: left;           /* Αριστερή στοίχιση για να φαίνεται καθαρά */
}

.content-section li {
    margin-bottom: 8px;         /* Απόσταση ανάμεσα στα στοιχεία της λίστας */
    line-height: 1.0;           /* Ύψος γραμμής για ευανάγνωστο κείμενο */
    color: #333333;
    font-size:14px;
}

/* --- Hero Image Section (Slider replacement: responsive max 597px -> min ~400px, κεντραρισμένη) --- */
.hero-image-section {
    padding: 0px 0 0 0; 
    background-color: #fff;
    width: 100%;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 100%;
    max-width: 1010px; 
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

.image-wrapper img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    max-height: 560px; 
    min-height: 230px; 
    object-fit: contain; 
}

.image-caption {
    font-size: 13px;
    color: #333;
    text-align: left;
    line-height: 1.5;
    padding: 15px 0 0 0;
    max-width: 1010px;
    margin: 0 auto;
}

/* --- Footer Styles (Σύμφωνα με την εικόνα) --- */
.site-footer {
    color: #fff;
    font-size: 13px;
}

/* Επάνω γκρι μέρος footer */
.footer-top-section {
    background: #555555; 
    padding: 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    font-size: 15px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: bold;
}

.footer-col p, .footer-col li {
    color: #f1f1f1;
    line-height: 1.5;
    margin-bottom: 8px;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

/* Κάτω μπλε μέρος footer */
.footer-bottom-section {
    background: #0047ab !important; 
    padding: 20px 0;
    font-size: 12px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy p, .footer-note p {
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.4;
}

.footer-note {
    max-width: 600px;
    text-align: left;
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: left;
    }
    .footer-note {
        text-align: left;
    }
}

/* --- Intro Section (Το κείμενο κάτω από την εικόνα) --- */
.intro-section {
    background-color: #0047ab !important; 
    padding: 20px 0;
    text-align: center;
    margin: 50px 0 !important;
}

.intro-box p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
    max-width: 1140px;
    margin: 0 auto;
}

.intro-box strong {
    color: #ffffff;
    font-weight: bold;
}

/* Page Header / Γκρι ζώνη τίτλου σελίδας (Διορθωμένο χωρίς sppb) */
.page-title-section {
    background-color: #ccc;
    padding: 50px 0;
    margin-bottom: 0px;
}

.page-title-section h1 {
    text-align: center;
    font-size: 28px;
    color: #0047ab;
    font-weight: normal;
    text-transform: uppercase;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    body {
        padding-top: 115px;
    }

    .top-bar {
        height: auto;
        padding: 6px 0;
    }
    
    .top-bar .container {
        flex-direction: column;
        align-items: center; 
        text-align: center;
        gap: 4px;
    }

    .contact-info {
        justify-content: center; 
        text-align: center;
        gap: 5px 20px;
    }

    .main-nav {
        height: 75px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .menu-list {
        display: none;
        position: absolute;
        top: 102%; 
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 5px 10px 5px 10px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 5px;
    }

    .menu-list.active {
        display: flex;
    }
}

/* --- Ειδικά τμήματα για τις εικόνες στα 800px (με διατήρηση του 1140px στα γενικά container) --- */
.images-block {
    max-width:800px;
    margin: 35px auto;
	text-align: center;
}

.image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.image-row-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.image-row-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.image-box {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.image-box img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    background: #fff;
    padding: 4px;
    margin-bottom: 10px;
}

/* --- Διόρθωση για να κάθονται ακριβώς και οι 4 εικόνες σε μία σειρά --- */
.image-row-4 {
    display: flex;
    flex-wrap: nowrap !important; /* Απαγορεύει αυστηρά το σπάσιμο γραμμής */
    gap: 10px;                   /* Μικρότερο κενό ανάμεσα στις εικόνες για να χωράνε */
    justify-content: space-between;
    align-items: flex-start;
}

.image-row-4 .image-box {
    flex: 1 1 0;                 /* Μοιράζει τον χώρο ισsόποια ακριβώς στις 4 */
    min-width: 0;                /* Επιτρέπει στα στοιχεία να μικρύνουν όσο χρειάζεται */
}

.image-row-4 .image-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.image-row-4 .image-box p {
    font-size: 14px;             /* Ελαφρώς πιο μικρή γραμματοσειρά λεζάντας για να ταιριάζει */
    line-height: 1.3;
    margin-top: 5px;
    text-align: left;            /* Ή center αν προτιμάς να είναι κεντραρισμένες κάτω από κάθε εικόνα */
}

/* --- Διόρθωση Οριζόντιας Μπάρας Πληροφοριών Άρθρου --- */
.article-page-container .article-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 15px 0;
    font-size: 13px;
    color: #555;
}

.article-page-container .article-info dd {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-link-wrap {
    margin-bottom: 15px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0047ab;
    font-weight: bold;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

/* --- Διόρθωση διακένου και στοίχισης για ομοιομορφία με τις άλλες σελίδες --- */
.article-body p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    color: #333333;
}

.article-body ul, 
.article-body ol {
    margin-bottom: 0px;
    padding-left: 30px;
    text-align: left;
}

.article-body li {
    margin-bottom: 10px;
    line-height: 1.6; /* Διορθώνει το σφιχτό κενό που χάλαγε τη στοίχιση */
    color: #333333;
    font-size: 14px;
}

/* Ειδικά για τη βιβλιογραφία και τις λίστες αριθμών */
.bibliography-list li, 
.article-body ol li {
    margin-bottom: 15px;
    line-height: 1.5;
}

/* --- Κατάργηση κουμπιού επιστροφής & Διάταξη εικόνας συγγραφέα αριστερά --- */
.back-link-wrap {
    display: none !important;
}

/* Container για την εικόνα και το κείμενο δίπλα της */
.article-lead {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.article-author-img {
    float: left;
    margin: 0 20px 15px 0;
    max-width: 202px; /* Ρύθμισε το μέγεθος αν θες μικρότερο/μεγαλύτερο */
    height: auto;
    border-radius: 4px;
}

.article-lead-text {
    overflow: hidden; /* Διασφαλίζει ότι το κείμενο αγκαλιάζει σωστά την εικόνα */
}

/* --- Περιθώρια 50px πάνω και κάτω για το container του άρθρου --- */
.article-page-container {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* Κανονικό link (Linkable) */
.article-page-container a,
.article-body a {
    color: #0047ab; /* Μπλε */
    text-decoration: underline;
}

/* Όταν έχει ήδη επισκεφθεί/πατηθεί (visited) */
.article-page-container a:visited,
.article-body a:visited {
    color: #0047ab; /* Παραμένει μπλε (ή όποιο άλλο χρώμα θέλετε) αντί για μωβ */
}

/* Όταν περνάει το ποντίκι από πάνω (hover) ή το κρατάς πατημένο (active) */
.article-page-container a:hover,
.article-page-container a:active,
.article-body a:hover,
.article-body a:active {
    color: #333333; /* Γίνεται #333 όπως το υπόλοιπο κείμενο */
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background-color: #0047ab;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #003380;
    color: #ffffff;
}


/* Διασφάλιση ότι όλες οι εικόνες δεν ξεπερνούν το πλάτος της οθόνης */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Προσαρμογή των σειρών εικόνων σε κινητές συσκευές */
@media (max-width: 768px) {
    .image-row, 
    .image-row-3, 
    .image-row-4 {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .image-box {
        width: 100% !important;
        margin-bottom: 10px;
    }
}