/* Βασικές ρυθμίσεις */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Κεφαλίδα (Header) */
header {
    background: #0056b3;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title h1 {
    margin: 0;
    font-size: 1.8rem;
}

.site-title p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    padding-bottom: 5px; /* Προσθήκη padding για την υπογράμμιση */
}

nav ul li a:hover {
    color: #a0c3ff;
}

/* Στυλ για την ενεργή σελίδα στο μενού */
nav ul li.active a {
    color: #a0c3ff;
    border-bottom: 2px solid #a0c3ff;
}


/* Κύριο Περιεχόμενο (Main) */
main section {
    padding: 60px 0;
    text-align: center;
}

/* Ενότητα Καλωσορίσματος (Hero) - Μόνο στην index.html */
.hero {
    background: #e9ecef;
    color: #333;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0056b3;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons .button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.cta-buttons .button:hover {
    background: #0056b3;
}

.cta-buttons .button.secondary {
    background: #6c757d;
}

.cta-buttons .button.secondary:hover {
    background: #5a6268;
}


/* Ενότητες Περιεχομένου (Content Overview) - Μόνο στην index.html */
.content-overview {
    background: #fff;
}

.content-overview h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #0056b3;
}

.content-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.content-box {
    background: #e9ecef;
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.content-box:hover {
    transform: translateY(-5px);
}

.content-box h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #0056b3;
}

.content-box p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.content-box .link-button {
    display: inline-block;
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.content-box .link-button:hover {
    color: #003f80;
    text-decoration: underline;
}


/* Ενότητα Σχετικά με εμένα (About Me) - Μπορεί να είναι και σε ξεχωριστή σελίδα */
.about-me {
    background: #d4e6f1;
}

.about-me h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0056b3;
}

.about-me p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Στυλ για σελίδες περιεχομένου (π.χ. tests.html, exercises.html κλπ) */
.page-title {
    background: #d4e6f1; /* Ίδιο φόντο με το about-me για ομοιομορφία */
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.page-title p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.tests-list,
.exercises-list, /* Προσθέστε κλάσεις για άλλες σελίδες περιεχομένου */
.projects-list,
.teachers-material-list {
    background: #fff;
    padding: 20px 0 60px 0;
}

.grade-level {
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 5px solid #007bff;
    border-radius: 5px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.grade-level h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #0056b3;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.grade-level ul {
    list-style: none;
    padding: 0;
}

.grade-level li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}

.grade-level li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.grade-level li a {
    font-size: 1.1rem;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.grade-level li a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.grade-level li span {
    font-size: 0.9rem;
    color: #666;
    margin-left: 10px;
}


/* Υποσέλιδο (Footer) */
footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer p {
    margin-bottom: 15px;
}

.footer-links a {
    color: #a0c3ff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}


/* Media Queries για Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    .site-title {
        margin-bottom: 15px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    nav ul li a {
         padding-bottom: 2px; /* Μικρότερο padding σε μικρές οθόνες */
    }

    nav ul li.active a {
        border-bottom-width: 1px; /* Λεπτότερη υπογράμμιση */
    }


    .hero h2, .page-title h1 {
        font-size: 2rem;
    }

    .hero p, .page-title p {
        font-size: 1rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .button {
        width: 80%;
        max-width: 300px;
    }

    .content-overview h2,
    .about-me h2 {
        font-size: 1.8rem;
    }

    .content-box {
        padding: 20px;
    }

    .content-box h3 {
        font-size: 1.3rem;
    }

    .content-box p {
        font-size: 0.95rem;
    }

    .grade-level h2 {
        font-size: 1.6rem;
    }
    .grade-level li a {
        font-size: 1rem;
    }
    .grade-level li span {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }


    footer .container {
        flex-direction: column;
    }

    .footer-links {
        margin-top: 15px;
    }

    .footer-links a {
        margin: 5px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    main section {
        padding: 40px 0;
    }

    .hero h2, .page-title h1 {
        font-size: 1.8rem;
    }

    .content-overview h2,
    .about-me h2 {
        font-size: 1.6rem;
    }

    .content-box {
        padding: 15px;
    }

    .content-box h3 {
        font-size: 1.2rem;
    }

    .content-box p {
        font-size: 0.9rem;
    }

     .grade-level h2 {
        font-size: 1.4rem;
    }
    .grade-level li a {
        font-size: 0.95rem;
    }
}
