:root {
    --green: #2c5f2d;
    --green-dark: #1e4620;
    --bg: #fafafa;
    --text: #2a2a2a;
    --border: #e5e5e5;
}

* { box-sizing: border-box; }

/* Καμία εικόνα δεν ξεπερνά ποτέ το πλάτος του γονικού της στοιχείου,
   ανεξάρτητα από το πραγματικό της μέγεθος */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: -apple-system, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.65;
}

.wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

header.site-header {
    background: #fff;
    color: var(--green-dark);
    padding: 16px 0;
    border-bottom: 3px solid var(--green);
}

.header-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
}

header.site-header .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--green-dark);
    flex: 0 0 auto;
    white-space: nowrap;
}

header.site-header .brand img {
    height: 100px;
    width: auto;
}

header.site-header .brand h1 {
    font-size: 20px;
    margin: 0;
}

header.site-header .brand p {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.header-info {
    flex: 0 0 auto;
    white-space: nowrap;
}

.header-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 11px;
    color: #444;
    line-height: 1.6;
}

.header-info ul a {
    color: var(--green-dark);
    text-decoration: none;
}

.header-weather {
    flex: 0 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 16px;
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 18px;
}

.weather-today {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.weather-icon {
    font-size: 30px;
    line-height: 1;
}

.weather-today strong {
    display: block;
    color: var(--green-dark);
    font-size: 13px;
}

.weather-temp {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.weather-forecast {
    display: flex;
    gap: 12px;
    border-left: 1px solid var(--border);
    padding-left: 14px;
}

.weather-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #555;
    line-height: 1.5;
}

.weather-day-name {
    font-weight: bold;
}

.weather-icon-small {
    font-size: 16px;
}

.weather-unavailable {
    font-size: 11px;
    color: #999;
    margin: 0;
    padding: 8px 4px;
}

.header-funding {
    flex: 0 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.header-funding img {
    max-height: 50px;
    width: auto;
}

.about-section {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 0 10px;
}

.about-images {
    flex: 1 1 380px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.about-img {
    aspect-ratio: 1 / 1;
    background-color: #e2ece2;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.about-content {
    flex: 1 1 420px;
}

.about-title {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 26px;
    color: var(--green-dark);
    border: none;
    margin: 0 0 16px;
    line-height: 1.4;
    padding-bottom: 0;
}

.about-text {
    color: #555;
    font-size: 14px;
    margin-bottom: 28px;
}

.about-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.about-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-stat-icon {
    font-size: 34px;
    line-height: 1;
}

.about-stat strong {
    display: block;
    font-size: 22px;
    color: #222;
}

.about-stat p {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: bold;
    color: var(--green);
}

.documents-section {
    text-align: center;
    padding: 40px 0 20px;
}

.documents-title {
    border: none;
    font-size: 24px;
    color: #222;
    margin: 0 0 10px;
}

.documents-divider {
    width: 90px;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 10px);
    margin: 0 auto 26px;
}

.documents-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.document-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    min-width: 220px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.document-btn .doc-icon {
    font-size: 20px;
    line-height: 1;
}

.document-btn:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .about-section {
        flex-direction: column;
    }
}
@media (max-width: 640px) {
    header.site-header .brand img {
        height: 60px;
    }
    header.site-header .brand h1 {
        font-size: 16px;
    }
    header.site-header .brand p {
        font-size: 11px;
    }
    .header-info,
    .header-weather,
    .header-funding {
        display: none;
    }
    .site-header-inner {
        justify-content: center;
    }
    .main-nav .wrap {
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }
}

.slider {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    background: #eee;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-link {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.slide-caption {
    position: absolute;
    left: 0; bottom: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
    color: #fff;
    padding: 30px 24px 18px;
}

.slide-caption h2 {
    border: none;
    color: #fff;
    margin: 0 0 4px;
    font-size: 24px;
}

.slide-caption p {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.slider-nav.prev { left: 14px; }
.slider-nav.next { right: 14px; }
.slider-nav:hover { background: rgba(0,0,0,0.6); }

.slider-dots {
    position: absolute;
    bottom: 14px;
    right: 20px;
    display: flex;
    gap: 6px;
}

.dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

.hero {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.activity-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
}

.activity-card h3 {
    margin-top: 0;
    color: var(--green-dark);
    font-size: 16px;
}

.activity-card p {
    margin-bottom: 0;
    font-size: 14px;
    color: #555;
}

header.site-header h1 {
    font-size: 20px;
    margin: 0;
}

header.site-header p {
    margin: 2px 0 0;
    font-size: 13px;
    opacity: 0.9;
}

nav.main-nav {
    background: var(--green-dark);
}

nav.main-nav .wrap {
    display: flex;
    gap: 24px;
    padding: 10px 20px;
}

nav.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
}

nav.main-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

main {
    padding: 40px 0 60px;
}

h2 {
    color: var(--green-dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 16px;
}

article.announcement-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.announcement-card-image {
    display: block;
    width: 100%;
    height: 190px;
    background: #f2f2f2;
}

.announcement-card-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.announcement-card-image-placeholder {
    width: 100%;
    height: 190px;
    background: linear-gradient(135deg, #eef3ee, #e2ece2);
}

.announcement-card-body {
    padding: 16px 18px 20px;
}

.announcement-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--green);
    margin-bottom: 12px;
    width: fit-content;
}

.announcement-card-date .dot-sep {
    color: #ccc;
    font-size: 8px;
}

article.announcement-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.4;
}

article.announcement-card h3 a {
    color: var(--green-dark);
    text-decoration: none;
}

article.announcement-card p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.announcement-detail img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--green);
    text-decoration: none;
}

footer.site-footer {
    background: var(--green-dark);
    color: #fff;
    padding: 24px 0;
    font-size: 13px;
    margin-top: 40px;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.store-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
}

.store-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #f2f2f2;
    border-radius: 6px;
    margin-bottom: 12px;
}

.store-card h3 {
    margin: 0 0 8px;
    color: var(--green-dark);
}

.store-meta {
    margin: 4px 0;
    font-size: 14px;
    color: #555;
}

.store-services {
    margin-top: 10px;
    font-size: 13px;
    color: #777;
}

/* ---- Admin ---- */
.admin-body {
    background: #f4f5f7;
    font-family: -apple-system, "Segoe UI", Arial, sans-serif;
}

.admin-header {
    background: #1e293b;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header a { color: #fff; text-decoration: none; }

.admin-wrap {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.admin-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.admin-card table {
    width: 100%;
    border-collapse: collapse;
}

.admin-card th, .admin-card td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.btn {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 9px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.btn-danger { background: #c0392b; }
.btn-secondary { background: #7f8c8d; }

.admin-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.admin-form input[type=text],
.admin-form input[type=email],
.admin-form input[type=password],
.admin-form input[type=datetime-local],
.admin-form textarea {
    width: 100%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    font-family: inherit;
}

.admin-form textarea { min-height: 160px; }

.ql-toolbar.ql-snow {
    border-radius: 6px 6px 0 0;
    border-color: #ccc;
}

.ql-container.ql-snow {
    border-radius: 0 0 6px 6px;
    border-color: #ccc;
    font-size: 14px;
}

#html-source-btn {
    padding: 3px 10px;
    margin-left: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f4f4f4;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

#html-source-btn:hover {
    background: #e8e8e8;
}

#html-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#html-modal-box {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error { background: #fdecea; color: #c0392b; }
.alert-success { background: #eafaf1; color: #1e7d43; }
