/* ----------------------------------------------
   STYLING ΓΙΑ ΤΗ ΣΕΛΙΔΑ Δ.Σ. (v1.4 - Full Aesthetic Polish)
   ---------------------------------------------- */

/* 1. Γενικές Επικεφαλίδες Ενότητας - ΠΙΟ ΑΕΡΙΝΕΣ */
.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #022336;
    margin-bottom: 40px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* 2. Grid για το Τρέχον ΔΣ */
.current-ds-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Η κάρτα του κάθε μέλους - ΜΕ ΧΡΩΜΑΤΙΣΤΗ ΓΡΑΜΜΗ */
.ds-member-card {
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #e74c3c;
}
.ds-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* Η φωτογραφία */
.ds-member-photo img {
    width: 100%;
    height: auto; 
    display: block;
}

/* Οι πληροφορίες κάτω από τη φωτογραφία */
.ds-member-info {
    padding: 15px 10px;
}

/* Το όνομα */
.ds-member-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

/* Το αξίωμα */
.ds-member-position {
    font-size: 0.7rem;
    color: #e74c3c;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 5px;
    font-weight: 500;
}

/* --- RESPONSIVE ΔΙΟΡΘΩΣΕΙΣ --- */
@media (max-width: 1200px) {
    .current-ds-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 991px) {
    .current-ds-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .current-ds-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .current-ds-grid {
        grid-template-columns: 1fr;
    }
}

.ds-member-info {
    padding: 15px 6px;
}

.ds-member-name {
    font-size: 0.76rem;
    line-height: 1.2;
}

/* ----------------------------------------------
   3. ΑΚΟΡΝΤΕΟΝ ΙΣΤΟΡΙΚΟΥ - ΠΙΟ ΕΝΤΟΝΟ
   ---------------------------------------------- */

.ds-history-accordion .accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 15px;
    background-color: #fff;
}

.ds-history-accordion .accordion-header {
    width: 100%;
    background-color: #022336;
    padding: 10px 20px;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 5px;
}
.ds-history-accordion .accordion-item.active .accordion-header,
.ds-history-accordion .accordion-header:hover {
    background-color: #34495e;
}

.ds-history-accordion .accordion-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
}

.ds-history-accordion .accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #ffffff;
    transition: transform 0.3s ease;
}
.ds-history-accordion .accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.ds-history-accordion .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.history-member-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}
.history-member-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.history-member-list li:last-child {
    border-bottom: none;
}

.history-member-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.history-member-position {
    font-weight: 600;
    color: #333;
}

.history-member-name {
    color: #555;
}

.note-ref {
    color: #e74c3c;
    font-weight: bold;
}

.history-notes-section {
    margin: 0 20px 20px 20px;
    padding: 15px;
    background-color: #f1f3f5;
    border-radius: 4px;
    font-size: 0.85rem;
}
.history-notes-section ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 0;
}
.history-notes-section li {
    padding: 2px 0;
    border: none;
}

/* ----------------------------------------------
   4. SIDEBAR ΕΝΕΡΓΩΝ ΜΕΛΩΝ (LIST VIEW)
   ---------------------------------------------- */
.active-members-list {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #022336;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.active-members-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.active-members-list li {
    margin-bottom: 2px;
}
.active-members-list li:last-child {
    margin-bottom: 0;
}

.member-list-item {
    display: flex; /* <<<< Η ΜΑΓΕΙΑ ΕΙΝΑΙ ΕΔΩ */
    align-items: center; /* Κεντράρει κάθετα τη φωτογραφία με το όνομα */
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
.member-list-item:hover {
    background-color: #e9ecef; /* Ένα απαλό hover effect */
}

/* Η στρογγυλή, μικρή φωτογραφία */
.member-list-item img {
    width: 45px; /* <<<< ΠΟΛΥ ΜΙΚΡΟΤΕΡΗ ΔΙΑΣΤΑΣΗ */
    height: 45px;
    border-radius: 50%; /* <<<< ΤΗΝ ΚΑΝΕΙ ΣΤΡΟΓΓΥΛΗ */
    object-fit: cover;
    margin-right: 12px; /* Απόσταση από το όνομα */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Δεν την αφήνει να "στριμωχτεί" */
}

/* Το όνομα */
.member-list-name {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* ----------------------------------------------
   5. BOX ΜΕ ΣΧΕΤΙΚΑ LINKS
   ---------------------------------------------- */
.related-links-box {
    margin-top: 30px; /* Απόσταση από το ακορντεόν */
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}
.related-links-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #022336;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.related-links-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.related-links-box li a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.related-links-box li a:hover {
    color: #e74c3c;
}

/* Στυλ για το σύμβολο αποβίωσης */
.deceased-symbol {
    color: #555; /* Ένα διακριτικό, σκούρο γκρι */
    font-weight: normal;
    margin-left: 4px; /* Λίγος χώρος από το όνομα */
    font-size: 1.1em; /* Λίγο μεγαλύτερο για να είναι ευδιάκριτο */
}