/* ==========================================================================
   1. ΒΑΣΙΚΕΣ ΡΥΘΜΙΣΕΙΣ ΓΙΑ ΟΛΗ ΤΗ ΣΕΛΙΔΑ
   ========================================================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fdfbf7; /* Θερμό off-white φόντο */
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px; 
    padding: 20px;
    box-sizing: border-box; /* Αποτρέπει το ξεχείλισμα στα κινητά */
}

/* ==========================================================================
   2. SITE HEADER (BANNER)
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    margin: 0;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.header-content {
    max-width: 800px;
    margin: 0 auto; /* Κεντράρει το περιεχόμενο του banner */
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
}

.header-content img {
    height: 60px; 
    width: auto;  
    max-width: 100%;
}

.header-content h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.ingredient1 { color: #2a65ab; font-weight: bold; }
.ingredient { color: #333333; font-weight: bold; }
.studio { color: #777777; font-size: 0.8em; font-weight: 300; }

/* ==========================================================================
   3. 🍔 RESPONSIVE DROPDOWN & HAMBURGER ΜΕΝΟΥ (ΠΑΝΤΟΥ ΣΤΟ SITE)
   ========================================================================== */
.nav-menu {
    margin-top: 15px; 
    padding-bottom: 10px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px 20px;
    align-items: center;
    position: relative;
}

/* Στυλ για τα κλασικά links στον υπολογιστή */
.menu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    align-items: center;
    width: 100%;
}

.menu-links a {
    color: #2a65ab;
    text-decoration: none !important;
    font-weight: 600;
}

.menu-links a:hover {
    text-decoration: underline !important;
}

/* Κρύβουμε τα στοιχεία ελέγχου του Hamburger στον υπολογιστή */
#menu-toggle, .hamburger-label {
    display: none;
}

/* Το κουτί του Dropdown (Fine Art) στον υπολογιστή */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Το κρυφό μενού υποενοτήτων */
.dropdown-content {
    display: none;          /* Κρυφό από προεπιλογή */
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;       /* Πλάτος του πλωτού μενού */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 100;           /* Εμφανίζεται πάνω από το περιεχόμενο */
    margin-top: 2px;
    border: 1px solid #e2e8f0;
}

/* Καθαρισμένος και σταθερός κώδικας για τους συνδέσμους των υποενοτήτων */
.dropdown-content a {
    color: #2a65ab !important;
    padding: 10px 15px !important;
    text-decoration: none !important;
    display: block !important;       /* Αναγκάζει κάθε μάθημα να αλλάζει σειρά */
    font-size: 14px !important;
    font-weight: 500 !important;
    border-bottom: none !important;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f1f5f9;
    text-decoration: none !important;
}

/* Εμφάνιση του μενού στο Hover (υπολογιστής) */
.dropdown:hover .dropdown-content {
    display: block;
}

/* 📱 ΡΥΘΜΙΣΕΙΣ ΜΕΝΟΥ ΓΙΑ ΚΙΝΗΤΑ (Κάτω από 768px) */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    /* Εμφάνιση των 3 γραμμών */
    .hamburger-label {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px 0;
        z-index: 102;
    }

    /* Δημιουργία των 3 γραμμών */
    .hamburger-label span {
        display: block;
        width: 28px;
        height: 3px;
        background-color: #2a65ab;
        border-radius: 2px;
        transition: 0.3s ease;
    }

    /* Κρύβουμε τη λίστα των links στο κινητό */
    .menu-links {
        display: none;      /* 🚀 ΚΡΥΦΟ ΜΕΧΡΙ ΝΑ ΠΑΤΗΘΕΙ ΤΟ HAMBURGER */
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 10px;
        box-sizing: border-box;
        margin-top: 5px;
        position: absolute;
        top: 40px;
        left: 0;
        z-index: 101;
        box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
        gap: 0;
    }

    /* Τα links στη λίστα του κινητού */
    .menu-links > a, .dropdown > a {
        display: block;
        width: 100%;
        padding: 12px 10px !important;
        margin: 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        box-sizing: border-box;
    }

    /* Εξαφάνιση της γραμμής από το τελευταίο στοιχείο */
    .menu-links > a:last-child {
        border-bottom: none !important;
    }

    /* 🎯 Όταν το checkbox είναι τσεκαρισμένο, δείξε το μενού */
    #menu-toggle:checked ~ .menu-links {
        display: flex;
    }

    /* Διάταξη Dropdown στο κινητό */
    .dropdown {
        width: 100%;
    }
    .dropdown-content {
        display: block;     /* Μόνιμα ανοιχτό στο κινητό σε μορφή λίστας */
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background-color: #f8fafc;
    }
    .dropdown-content a {
        padding: 10px !important;
        border-bottom: 1px solid #edf2f7 !important;
    }
}

/* ==========================================================================
   4. ΠΙΝΑΚΑΣ ΚΑΙΡΟΥ (ΜΕΡΟΜΗΝΙΑ)
   ========================================================================== */
.weather-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    margin-bottom: 40px;
}

.weather-table .month-header td {
    background-color: #2a65ab;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 10px;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.weather-table .month-header td .sub-title {
    font-weight: normal !important;
    text-transform: none !important;
    font-size: 13px; 
    margin-left: 15px; 
}

.weather-table tr {
    border-bottom: 1px solid #ddd;
}

.weather-table td {
    padding: 15px 10px;
    vertical-align: top;
}

.date-col {
    width: 25%;
    font-weight: 600;
    color: #2a65ab;
    white-space: nowrap;
}

.text-col {
    width: 75%;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

@media (max-width: 600px) {
    .weather-table, 
    .weather-table tbody, 
    .weather-table tr, 
    .weather-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    .date-col {
        padding-top: 15px;
        padding-bottom: 4px;
        font-size: 15px;
    }
    .text-col {
        padding-top: 0;
        padding-bottom: 15px;
        font-size: 15px;
    }
}

/* ==========================================================================
   5. HERO SECTION (ΑΡΧΙΚΗ ΣΕΛΙΔΑ)
   ========================================================================== */
.hero-section {
    padding: 30px 20px;
    background-color: #ffffff; 
    border-bottom: 1px solid #ddd;
    margin-bottom: 0px;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto; 
}

.hero-section h1 {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 16px;
    color: #555; 
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.cta-button {
    display: inline-block;
    background-color: #2a65ab;
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background-color: #1a4d85;
}

@media (max-width: 600px) {
    .hero-section h1 {
        font-size: 26px;
    }
}

/* ==========================================================================
   6. ΑΒΑΤΑΡ & ΠΡΟΦΙΛ ΧΡΗΣΤΗ
   ========================================================================== */
.profile-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    justify-content: center !important;
    margin: 20px auto !important;
}

.profile-container {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 1px solid #000 !important;
    flex-shrink: 0 !important;
}

.profile-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.profile-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.profile-name {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-transform: capitalize !important;
    color: #333 !important;
}

.profile-title {
    margin: 0 !important;
    font-size: 13px !important;
    color: #666 !important;
}

/* ==========================================================================
   7. ΒΕΛΑΚΙ ΕΠΙΣΤΡΟΦΗΣ ΣΤΗΝ ΑΡΧΗ (BACK TO TOP)
   ========================================================================== */
.back-to-top {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background-color: #2a65ab !important;
    color: #ffffff !important;
    width: 45px !important;
    height: 45px !important;
    
    /* ΑΛΛΑΓΗ: Από 50% το κάναμε 8px για απαλές τετράγωνες γωνίες */
    border-radius: 8px !important; 
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2) !important;
    z-index: 9999 !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
}

.back-to-top:hover {
    background-color: #1a4d85 !important;
    transform: translateY(-3px) !important;
}
/* ==========================================================================
   8. ΕΦΕ ΟΜΑΛΗΣ ΜΕΓΕΘΥΝΣΗΣ ΣΤΙΣ ΦΩΤΟΓΡΑΦΙΕΣ (HOVER EFFECT)
   ========================================================================== */

/* ==========================================================================
   8. ΕΦΕ ΟΜΑΛΗΣ ΜΕΓΕΘΥΝΣΗΣ ΣΤΙΣ ΦΩΤΟΓΡΑΦΙΕΣ (HOVER EFFECT)
   ========================================================================== */

/* Α) Για τις μεγάλες εικόνες (στα Ταξίδια και στα Μαθήματα) */
.trip-image-full img {
    transition: transform 0.4s ease !important; /* Κάνει την κίνηση ομαλή όταν μπαίνει και όταν βγαίνει το ποντίκι */
}

.trip-image-full:hover img {
    transform: scale(1.03) !important; /* Μεγαλώνει την εικόνα κατά 3% */
    cursor: pointer;
}

/* Β) Για τις εικόνες του πλέγματος (στη σελίδα Fine Art) */
.fineart-image-box img {
    transition: transform 0.4s ease !important;
}

.fineart-image-box:hover img {
    transform: scale(1.04) !important; /* Μεγαλώνει τις μικρότερες εικόνες κατά 4% για να φαίνεται πιο έντονα */
    cursor: pointer;
}
/* ==========================================================================
   9. ΣΥΜΜΕΤΡΙΚΟ ΠΛΕΓΜΑ 6 ΦΩΤΟΓΡΑΦΙΩΝ (INDEX SQUARES GRID)
   ========================================================================== */
.index-main-block {
    margin-top: 40px;
    margin-bottom: 50px;
}

.index-welcome-text {
    margin-bottom: 35px;
    text-align: center; /* Κρατάμε το κείμενο κεντραρισμένο για ισορροπία */
}

.welcome-title {
    font-size: 30px !important;
    line-height: 1.3;
    color: #2a65ab;
    margin-bottom: 15px;
    font-weight: 700;
}

.welcome-desc {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    max-width: 750px;
    margin: 0 auto;
}

/* Το πλέγμα: 3 στήλες στον υπολογιστή */
.index-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 ίσες στήλες */
    gap: 20px; /* Απόσταση ανάμεσα στα τετράγωνα */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Το τέλειο τετράγωνο κουτί της φωτογραφίας */
.grid-square-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Αναγκάζει το κουτί να είναι ΠΑΝΤΑ τέλειο τετράγωνο */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

.grid-square-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Γεμίζει το τετράγωνο χωρίς να παραμορφώνεται η εικόνα */
    display: block;
    transition: transform 0.4s ease;
}

/* Το εφέ ομαλής μεγέθυνσης στο hover */
.grid-square-box a:hover img {
    transform: scale(1.05); /* Μεγαλώνει κατά 5% */
}

/* Κομψή μίνιμαλ ετικέτα πάνω στην εικόνα */
.grid-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #2a65ab;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* 📱 Ρυθμίσεις για τάμπλετ και κινητά */
@media (max-width: 768px) {
    .index-photo-grid {
        grid-template-columns: repeat(2, 1fr); /* Ανά 2 φωτογραφίες στα τάμπλετ */
        gap: 15px;
    }
    .welcome-title { font-size: 25px !important; }
}

@media (max-width: 480px) {
    .index-photo-grid {
        grid-template-columns: repeat(1, 1fr); /* Ανά 1 φωτογραφία στα μικρά κινητά */
    }
}