/* ==========================================================================
   1. ΓΕΝΙΚΕΣ ΡΥΘΜΙΣΕΙΣ & ΒΑΣΙΚΟ layout
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f9f9f9;
}

.text-center {
    text-align: center;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   2. ΜΕΝΟΥ ΠΛΟΗΓΗΣΗΣ (NAVIGATION BAR)
   ========================================================================== */
header {
    background-color: #111;
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Ανοιχτό μπλε στο Logo */
.logo span {
    color: #63b3ed; 
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s;
}

/* Ανοιχτό μπλε στο Hover των συνδέσμων */
.nav-links a:hover {
    color: #63b3ed;
}

/* Burger Menu για κινητά */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   3. ΚΕΝΤΡΙΚΗ ΕΙΚΟΝΑ (HERO SECTION - ΑΠΟΛΥΤΑ ΣΤΑΤΙΚΗ)
   ========================================================================== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../img/back.png') no-repeat center center/cover;
    background-attachment: fixed; /* Κλειδώνει την εικόνα στο υπόβαθρο κατά το scroll */
    height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    padding-top: 70px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    font-weight: 300;
}

/* Ανοιχτό μπλε κουμπί */
.btn {
    display: inline-block;
    background-color: #63b3ed;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #4299e1;
    transform: translateY(-2px);
}

/* ==========================================================================
   4. ΤΙΤΛΟΙ ΕΝΟΤΗΤΩΝ & ΚΕΙΜΕΝΑ
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

/* Ανοιχτό μπλε διακοσμητική γραμμή τίτλων */
.section-title h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #63b3ed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    color: #555;
}

/* ==========================================================================
   5. ΕΝΟΤΗΤΑ ΛΕΥΚΑΔΙΟΣ ΧΕΡΝ (ΤΙΤΛΟΣ ΠΑΝΩ, ΚΕΙΜΕΝΟ ΑΡΙΣΤΕΡΑ, ΕΙΚΟΝΑ ΔΕΞΙΑ)
   ========================================================================== */
.hearn-vertical-container {
    display: flex;
    align-items: center;    /* Κεντράρει καθ' ύψος το κείμενο με την εικόνα */
    justify-content: space-between; /* Μοιράζει σωστά τον χώρο στα άκρα */
    gap: 50px;              /* Απόσταση ανάμεσα σε κείμενο και εικόνα */
    margin-top: 30px;
    width: 100%;
}

.hearn-vertical-content {
    flex: 1.2;              /* Δίνει σωστό, φυσιολογικό πλάτος στο κείμενο */
    text-align: left;
}

.hearn-vertical-content h2 {
    font-size: 32px;        /* Καθαρό και έντονο μέγεθος τίτλου */
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.hearn-vertical-content p {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.7;       /* Ιδανική απόσταση γραμμών για εύκολη ανάγνωση */
}

.hearn-vertical-image {
    flex: 0.8;              /* Μαζεύει τον χώρο της εικόνας για να μην είναι τεράστια */
    max-width: 420px;       /* Κανονικό (normal) μέγεθος εικόνας όπως στο screenshot */
    width: 100%;
}

.hearn-vertical-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Απαλή, επαγγελματική σκιά */
}
/* ==========================================================================
   6. ΧΡΟΝΟΔΙΑΓΡΑΜΜΑ (TIMELINE STYLE)
   ========================================================================== */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-left: 2px solid #ddd;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

/* Ανοιχτό μπλε στις τελείες του άξονα */
.timeline-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #63b3ed;
    border-radius: 50%;
    left: -37px;
    top: 6px;
}

/* Ανοιχτό μπλε στα έτη */
.timeline-date {
    font-weight: 700;
    color: #63b3ed;
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* ==========================================================================
   7. ΚΑΡΤΕΣ & ΜΕΘΟΔΟΙ (GRIDLAYOUT)
   ========================================================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.card p {
    color: #666;
    font-size: 15px;
}

/* ==========================================================================
   8. ΥΠΟΣΕΛΙΔΟ (FOOTER) & ΕΠΙΠΛΕΟΝ ΣΥΝΔΕΣΜΟΙ
   ========================================================================== */
footer {
    background-color: #111;
    color: #888;
    padding: 30px 0;
    font-size: 14px;
}

/* Ανοιχτό μπλε στους συνδέσμους λεπτομερειών */
.details-link {
    display: inline-block;
    margin-top: 15px;
    color: #63b3ed;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.details-link:hover {
    color: #111;
}

.highlight-link {
    border: 1px solid #63b3ed;
    padding: 5px 12px;
    border-radius: 4px;
    background-color: rgba(99, 179, 237, 0.1);
}

blockquote {
    background: #f9f9f9;
    border-left: 4px solid #63b3ed;
    padding: 15px;
    margin: 20px 0;
    font-style: italic;
}

/* ==========================================================================
   9. RESPONSIVE ΣΧΕΔΙΑΣΗ (ΚΙΝΗΤΑ ΣΥΣΚΕΥΕΣ)
   ========================================================================== */
@media (max-width: 768px) {
    /* --- Ρυθμίσεις Μενού για Κινητά --- */
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 70px;
        background-color: #111;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        margin: 30px 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    /* --- Ρυθμίσεις Hero Section για Κινητά --- */
    .hero-content h1 {
        font-size: 32px;
    }

    /* --- Ρυθμίσεις Ενότητας Λευκάδιος Χερν για Κινητά --- */
    .hearn-vertical-container {
        flex-direction: column; /* Μετατρέπει τη διάταξη σε μία κάθετη στήλη */
        gap: 30px;              /* Ομοιόμορφη απόσταση μεταξύ κειμένου και εικόνας */
        text-align: center;     /* Κεντράρισμα των στοιχείων στα κινητά */
    }

    .hearn-vertical-content {
        text-align: center;     /* Κεντράρισμα του τίτλου και του κειμένου */
    }

    .hearn-vertical-image {
        max-width: 100%;        /* Η εικόνα προσαρμόζεται στο πλάτος της οθόνης */
        padding: 0 10px;        /* Μικρά περιθώρια δεξιά και αριστερά */
    }
}

/* ==========================================================================
   10. ΑΥΤΟΜΑΤΟ IMAGE SLIDER (FADE EFFECT)
   ========================================================================== */
.image-slider-container {
    width: 100%;
    max-width: 800px; /* Ιδανικό πλάτος για να κάθεται όμορφα στη σελίδα */
    height: 450px;    /* Σταθερό ύψος για να είναι ομοιόμορφες οι εικόνες */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Κόβει την εικόνα σωστά ώστε να γεμίζει το πλαίσιο χωρίς να παραμορφώνεται */
    opacity: 0;
    animation: fadeSlider 12s infinite ease-in-out;
}

/* Χρονισμός για 3 εικόνες (Συνολικός κύκλος 12 δευτερόλεπτα) */
.slide-img:nth-child(1) {
    animation-delay: 0s;
}

.slide-img:nth-child(2) {
    animation-delay: 4s;
}

.slide-img:nth-child(3) {
    animation-delay: 8s;
}

/* Το Animation που κάνει τις εικόνες να εμφανίζονται και να εξαφανίζονται ομαλά */
@keyframes fadeSlider {
    0% {
        opacity: 0;
    }
    8% {
        opacity: 1; /* Εμφάνιση */
    }
    33% {
        opacity: 1; /* Παραμονή στην οθόνη */
    }
    41% {
        opacity: 0; /* Εξαφάνιση */
    }
    100% {
        opacity: 0;
    }
}

/* Προσαρμογή ύψους για κινητά */
@media (max-width: 768px) {
    .image-slider-container {
        height: 250px;
    }
}

.image-slider-container {
    width: 100%;
    max-width: 800px; /* Ιδανικό πλάτος για να κάθεται όμορφα στη σελίδα */
    height: 450px;    /* Σταθερό ύψος για να είναι ομοιόμορφες οι εικόνες */
    margin: 0 auto;
    margin-bottom: 50px; /* ΑΛΛΑΓΗ: Προσθέτει όμορφο χώρο αμέσως μετά τις εικόνες 1, 2, 3 */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   11. ACCORDION (ΣΥΠΤΥΣΣΟΜΕΝΕΣ ΕΝΟΤΗΤΕΣ ΕΡΕΥΝΑΣ)
   ========================================================================== */
.accordion {
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 20px; /* Ίδιο μέγεθος με τους κανονικούς h3 τίτλους */
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

/* Ανοιχτό μπλε χρώμα όταν περνάει το ποντίκι από πάνω */
.accordion-header:hover {
    color: #63b3ed; 
}

.accordion-content {
    display: none;
    padding-bottom: 20px;
    color: #4a4a4a;
}

/* Εμφάνιση του κειμένου με ομαλό animation */
.accordion.active .accordion-content {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

/* Το βελάκι στα δεξιά */
.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 14px;
}

/* Περιστροφή του βέλους όταν είναι ανοιχτό */
.accordion.active .arrow {
    transform: rotate(180deg);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}