* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.lightning-bolt {
    width: 200px;
    height: 200px;
    position: relative;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px #f86505);
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 40px #f86505) drop-shadow(0 0 60px #1b8563);
    }
}

.lightning-bolt svg {
    width: 100%;
    height: 100%;
    animation: flicker 2s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    75% {
        opacity: 1;
    }
    80% {
        opacity: 0.9;
    }
    85% {
        opacity: 1;
    }
}

.lightning-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(248, 101, 5, 0.3), rgba(27, 133, 99, 0.2), transparent);
    border-radius: 50%;
    animation: glowPulse 1.5s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #f86505, #1b8563) 1;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f86505, #1b8563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.logo img {
    height: 60px; 
    width: auto;
    vertical-align: middle; 
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f86505, #1b8563);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5%;
    position: relative;
    overflow: hidden;

    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #f86505, transparent);
    top: -300px;
    right: -200px;
}

.orb2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #1b8563, transparent);
    bottom: -250px;
    left: -150px;
    animation-delay: -10s;
}

.orb3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #f86505, transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
    position: relative;
}

h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    margin-bottom: 2rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #f86505 50%, #1b8563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 3rem;
    color: #ffffff;
    font-weight: 300;
    text-shadow: 0 0 20px rgba(248, 101, 5, 0.3);
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #f86505, #ff9040);
    color: #000000;
    box-shadow: 0 10px 40px rgba(248, 101, 5, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(248, 101, 5, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #1b8563, #26a677);
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(27, 133, 99, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(27, 133, 99, 0.6);
}

section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 800;
    background: linear-gradient(135deg, #f86505, #1b8563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1100px; 
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(248, 101, 5, 0.1), rgba(27, 133, 99, 0.1));
    border: 2px solid transparent;
    border-radius: 20px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #f86505, #1b8563);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(248, 101, 5, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f86505, #1b8563);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(248, 101, 5, 0.4);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-weight: 700;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.mission-content {
    text-align: center;
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(248, 101, 5, 0.15), rgba(27, 133, 99, 0.15));
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    line-height: 1.8;
}

.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px; 
    margin-left: auto;
    margin-right: auto;
}

.announcement-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.announcement-card .date {
    color: #f86505;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.announcement-card p {
    flex-grow: 1; 
}
/* Το κουτί του άρθρου */
.announcement-post-container {
    max-width: 800px; /* Το μικραίνουμε λίγο για να είναι πιο ευανάγνωστο */
    margin: 0 auto;
    padding: 3rem; /* Μειωμένο padding */
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95)); /* Πιο σκούρο φόντο για να διαβάζεται */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 50vh;
}

/* Ο Τίτλος του άρθρου */
.post-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: left; 
    background: linear-gradient(135deg, #ffffff 0%, #f86505 50%, #1b8563 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
}
.post-meta { color: #ccc; font-style: italic; margin-bottom: 2rem; border-bottom: 1px solid #555; padding-bottom: 1rem;}

/* Το κυρίως κείμενο */
.post-content p { 
    font-size: 1.1rem !important; 
    margin-bottom: 1.2rem;
    color: #e0e0e0;
    text-align: justify !important; 
}

.call-to-action {
            margin-top: 3rem;
            padding: 2rem;
            background: rgba(27, 133, 99, 0.2);
            border-left: 5px solid #1b8563;
            border-radius: 10px;
        }
        .back-link { display: inline-block; margin-top: 2rem; margin-bottom: 2rem; color: #1b8563; text-decoration: none; font-weight: bold; }
        .back-link:hover { color: #f86505; 
}

.btn-secondary-small {
    background: linear-gradient(135deg, #1b8563, #26a677);
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    margin-top: 1.5rem;
    align-self: flex-start;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-secondary-small:hover {
    box-shadow: 0 5px 20px rgba(27, 133, 99, 0.8);
    transform: translateY(-2px);
}

.contact-form-container {
    max-width: 100%; 
    margin: 0;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(248, 101, 5, 0.15), rgba(27, 133, 99, 0.15));
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.contact-form-container h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #f86505;
    font-weight: 700;
    text-align: center;
}

.contact-form-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffffff;
    font-size: 1.1rem;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid #1b8563;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-container input[type="text"]:focus,
.contact-form-container input[type="email"]:focus,
.contact-form-container textarea:focus {
    border-color: #f86505;
    box-shadow: 0 0 10px rgba(248, 101, 5, 0.5);
    outline: none;
}

.contact-form-container textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 350px; 
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.contact-info-container {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(27, 133, 99, 0.15), rgba(248, 101, 5, 0.15));
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.contact-info-container h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #f86505;
    font-weight: 700;
    text-align: center;
}

.info-item {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.info-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    background: rgba(27, 133, 99, 0.4); 
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(27, 133, 99, 0.4);
    flex-shrink: 0;
}

.info-text h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: inherit;
}

.info-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.info-icon > * {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.social-links {
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.social-links h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #f86505;
}

.social-icon {
    font-size: 2rem;
    margin: 0 10px;
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #1b8563;
    transform: scale(1.2);
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr; 
        gap: 2rem;
    }

    .contact-info-container {
        order: -1; 
    }
}

footer {
    text-align: center;
    padding: 3rem 5%;
    background: linear-gradient(90deg, rgba(248, 101, 5, 0.1), rgba(27, 133, 99, 0.1));
    color: #ffffff;
    margin-top: 4rem;
}

.carousel-container {
    max-width: 750px; 
    margin: 4rem auto 2rem auto;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #101010;
    max-height: 938px;
}

.carousel-container h3 {
    text-align: center;
    color: #f86505;
    font-size: 1.8rem;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%; 
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    height: 750px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;  
    display: block;
    border-radius: 20px 20px 0 0;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    /* ΔΙΟΡΘΩΣΗ: Τύλιγμα κειμένου για μεγάλες λεζάντες */
    word-wrap: break-word;
    word-break: break-word;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(27, 133, 99, 0.8);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 50;
    font-size: 1.5rem;
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.3s, background-color 0.3s;
}

.carousel-btn:hover {
    opacity: 1;
    background: #f86505;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    padding: 10px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #f86505;
}

/* Αρχικά κρύβουμε το hamburger στο Desktop */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #fff; /* Λευκές γραμμές */
    transition: all 0.3s ease;
}

/* Ορίζουμε μια νέα κλάση για το βασικό κενό των σελίδων */
.page-header-section {
    padding-top: 10rem; /* Το μεγάλο κενό για Laptop/Desktop */
}
/* Στυλ για το ξεχωριστό κουμπί στο μενού */
.nav-links .nav-btn-special {
    background: linear-gradient(135deg, #f86505, #1b8563); /* Τα χρώματα της ΠΑΣΠ */
    padding: 10px 20px;
    border-radius: 25px;
    color: #ffffff !important; /* Λευκά γράμματα */
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(248, 101, 5, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Αφαιρούμε την κάτω γραμμή (underline effect) που έχουν τα άλλα links */
.nav-links .nav-btn-special::after {
    display: none;
}

/* Hover εφέ */
.nav-links .nav-btn-special:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(27, 133, 99, 0.5);
    background: linear-gradient(135deg, #ff7b29, #26a677);
}

/* Ρυθμίσεις για κινητά και tablets */
@media (max-width: 768px) {
	.announcement-grid {
        grid-template-columns: 1fr;
    }
	.nav-links {
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 320px;
    }

    .features {
        grid-template-columns: 1fr;
    }
    /* Εμφάνιση του Hamburger */
    .hamburger {
        display: flex;
        z-index: 2000; /* Να είναι πάνω από το μενού */
    }

    /* Αλλαγή της λίστας σε πλήρη οθόνη (Overlay) */
    .nav-links {
        position: fixed;
        background: rgba(0, 0, 0, 0.95); /* Πολύ σκούρο φόντο */
        height: 100vh;
        width: 100%;
        top: 0;
        right: -100%; /* Κρυμμένο δεξιά αρχικά */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease-in-out; /* Εφέ κίνησης */
        z-index: 1500;
        gap: 3rem; /* Κενό ανάμεσα στα links */
    }

    /* Όταν η κλάση 'active' προστεθεί μέσω JS, το μενού εμφανίζεται */
    .nav-links.active {
        right: 0;
    }

    /* Μεγαλύτερα γράμματα για το κινητό */
    .nav-links a {
        font-size: 1.5rem;
    }

    /* Animation για το hamburger όταν γίνεται X */
    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Μείωση του κενού στην κορυφή για κινητά */
    section {
        padding: 4rem 5% !important; /* Το !important για να παρακάμψει το inline style */
    }

    /* Ειδικά για τα τμήματα που έχουν inline style padding-top: 10rem */
    #academics, #mission, #contact, #about, #schools, #announcements, #announcement-detail {
        padding-top: 6rem !important; /* Μικρότερο κενό ώστε να φαίνεται ο τίτλος */
    }

    /* Μείωση μεγέθους γραμματοσειράς τίτλων */
    h1 {
        font-size: 2.5rem; /* Πιο μικρό από το desktop */
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Το λογότυπο να μικραίνει λίγο για να χωράει το hamburger */
    .logo img {
        height: 50px; /* Από 80px που είναι τώρα */
    }

    .page-header-section {
        padding-top: 4rem; /* Μικρότερο κενό για κινητά ώστε να φαίνεται ωραίο */
    }

    .nav-links .nav-btn-special {
        display: inline-block;
        margin-top: 1rem; /* Λίγο κενό από τα πάνω */
        padding: 15px 30px;
        font-size: 1.2rem;
        width: auto;
    }

    .announcement-post-container {
        padding: 1.5rem !important; /* Πολύ μικρότερο padding */
        width: 95%; /* Να αφήνει λίγο κενό δεξιά-αριστερά */
    }

    /* Μικραίνουμε τον τίτλο στο κινητό */
    .post-header h1 {
        font-size: 1.8rem !important;
    }

    /* Μικραίνουμε κι άλλο το κείμενο στο κινητό */
    .post-content p {
        font-size: 1rem !important;
    }
}