/* --- Variables & Reset --- */
:root {
    --primary-yellow: #facc15; /* Το κίτρινο της εικόνας */
    --dark-bg: #111111;
    --text-light: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header & Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: #111; /* Σκούρο φόντο χωρίς διαφάνεια για καθαρότητα */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    color: var(--primary-yellow);
    font-size: 2.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-weight: 800;
    line-height: 0.9;
}

.logo-text .aek {
    color: var(--primary-yellow);
    font-size: 1.4rem;
}

.logo-text .kavalas {
    color: var(--text-light);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.nav-links a {
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-yellow);
}

.nav-links a.active {
    color: var(--primary-yellow);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-yellow);
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 1.2rem;
}

.nav-icons a:hover {
    color: var(--primary-yellow);
    transition: color 0.3s;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 75px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 75px);
    background-color: var(--dark-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: left 0.3s ease-in-out;
    z-index: 99;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu a {
    font-size: 1.3rem;
    font-weight: 700;
}

.mobile-menu a.active, .mobile-menu a:hover {
    color: var(--primary-yellow);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    margin-top: 75px; /* Ύψος του navbar */
    display: flex;
    align-items: center;
    padding: 0 5%;
    /* Gradient που είναι μαύρο αριστερά και σβήνει δεξιά, πάνω από την εικόνα */
    background: linear-gradient(90deg, rgba(17,17,17,1) 0%, rgba(17,17,17,0.85) 40%, rgba(17,17,17,0.2) 100%), 
                url('https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&q=80&w=2000') center right/cover no-repeat;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 5vw; /* Responsive μέγεθος γραμματοσειράς */
    font-weight: 900;
    color: var(--primary-yellow);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-content h2 {
    font-size: 2vw;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: #000;
    border: 2px solid var(--primary-yellow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-yellow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.5); /* Ελαφρώς διαφανές περίγραμμα */
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: #000;
}

/* --- Latest News Section --- */
.latest-news {
    padding: 3rem 5%;
    background-color: var(--dark-bg);
}

.latest-news h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.news-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    cursor: pointer;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.2rem 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}

.badge {
    display: inline-block;
    background-color: var(--primary-yellow);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.card-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-light);
}

/* --- Media Queries (Mobile Friendliness) --- */
@media (min-width: 1400px) {
    .hero-content h1 { font-size: 4.5rem; }
    .hero-content h2 { font-size: 1.8rem; }
}

@media (max-width: 992px) {
    .nav-links, .nav-icons {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero {
        background: linear-gradient(to bottom, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0.7) 100%), 
                    url('https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&q=80&w=1000') center/cover no-repeat;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 { font-size: 3rem; }
    .hero-content h2 { font-size: 1.4rem; }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content h2 { font-size: 1.1rem; }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}


/* --- Dropdown για Mobile Menu --- */
.mobile-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mobile-dropbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-dropdown-content {
    display: none; 
    flex-direction: column; /* Αυτό βάζει τα στοιχεία το ένα κάτω από το άλλο */
    align-items: center;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03); 
    padding: 10px 0;
    margin-top: 10px;
}

.mobile-dropdown-content.open {
    display: flex; 
}

.mobile-dropdown-content a {
    display: block;
    padding: 12px 15px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    border: none !important; /* Καμία απολύτως γραμμή */
}

/* =========================================
   Dropdown για το ΚΑΝΟΝΙΚΟ μενού (Desktop)
   ========================================= */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown .dropbtn {
    display: flex;
    align-items: center;
    gap: 6px; /* Απόσταση κειμένου από το βελάκι */
    cursor: pointer;
}

.dropdown-content {
    display: none; /* Κρυμμένο αρχικά, εμφανίζεται μόνο στο hover */
    position: absolute;
    top: 100%; /* Εμφανίζεται ακριβώς κάτω από το link */
    left: 0;
    background-color: #1a1a1a; /* Σκούρο φόντο για να ταιριάζει με το header */
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 100;
    border-radius: 8px;
    padding: 10px 0;
}

/* Τα links μέσα στο dropdown του υπολογιστή */
.dropdown-content a {
    color: var(--text-light);
    padding: 12px 20px;
    display: block; /* ΑΥΤΟ είναι που τα βάζει το ένα κάτω από το άλλο! */
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left; /* Στοίχιση αριστερά στο desktop */
    transition: all 0.3s ease;
}

/* Χρώμα όταν περνάει το ποντίκι (Hover) */
.dropdown-content a:hover {
    background-color: var(--primary-yellow);
    color: #000;
}

/* Εμφάνιση του μενού όταν περνάει το ποντίκι πάνω από το ΣΥΛΛΟΓΟΣ / ΔΡΑΣΤΗΡΙΟΤΗΤΕΣ */
.dropdown:hover .dropdown-content {
    display: block;
}


/* --- Hero Section (Ενοποιημένο με τα Νέα) --- */
.hero {
    min-height: 100vh;
    height: auto; /* ΑΥΤΟ ΕΙΝΑΙ ΤΟ ΜΥΣΤΙΚΟ ΠΟΥ ΛΥΝΕΙ ΤΗΝ ΕΠΙΚΑΛΥΨΗ */
    padding: 120px 5% 40px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    
    /* Το background σου μένει ακριβώς όπως το έχεις */
    background: linear-gradient(90deg, rgba(17,17,17,1) 0%, rgba(17,17,17,0.85) 40%, rgba(17,17,17,0.2) 100%), 
                url('https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&q=80&w=2000') center right/cover no-repeat;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
    margin-top: 4vh;
    text-align: left; /* Στοιχίζει το κείμενο αριστερά */
    align-self: flex-start; /* Κρατάει όλο το μπλοκ στα αριστερά της οθόνης */
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start; /* Σπρώχνει τα κουμπιά να ξεκινάνε από αριστερά */
}

.hero-content h1 {
    font-size: 5vw; 
    font-weight: 900;
    color: var(--primary-yellow);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-content h2 {
    font-size: 2vw;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.3;
}


.btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: #000;
    border: 2px solid var(--primary-yellow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-yellow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.5); 
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: #000;
}

/* --- Ενότητα Νέων μέσα στο Hero --- */
.hero-news {
    z-index: 2;
    width: 100%;
    margin-top: 50px; /* Απόσταση από τα κουμπιά αν η οθόνη είναι μικρή */
}

.hero-news h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 στήλες όπως στη φωτογραφία */
    gap: 1.2rem;
}

.news-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 180px; /* Πιο μαζεμένο ύψος για να χωράνε όμορφα μέσα στο Hero */
    cursor: pointer;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.2rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}

.badge {
    display: inline-block;
    background-color: var(--primary-yellow);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.card-content h4 {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-light);
}

/* --- Προσθήκη στα Media Queries (για να σπάει όμορφα σε tablet/κινητά) --- */
@media (max-width: 1200px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); } /* 2 στήλες στα tablets */
}

@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; } /* 1 στήλη στα κινητά */
}

/* =========================================
   NEW PREMIUM SPORTS FOOTER (AEK KAVALAS)
   ========================================= */
.main-footer {
    background-color: #0c0c0c; /* Βαθύ μαύρο για τέλεια αντίθεση */
    color: #ffffff;
    position: relative;
    width: 100%;
}

/* Ή χαρακτηριστική gradient κίτρινη γραμμή στην κορυφή */
.footer-top-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow) 0%, #eab308 100%);
    width: 100%;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 70px 5% 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    letter-spacing: 0.5px;
}

/* Κίτρινη αθλητική υπογράμμιση κάτω από τους τίτλους των στηλών */
.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 35px;
    height: 2px;
    background-color: var(--primary-yellow);
}

/* Στήλη 1: Λογότυπο, Μότο και Social */
.about-club .footer-logo {
    display: flex;
    align-items: center; /* Κεντράρει την εικόνα με το κείμενο κάθετα */
    gap: 15px; /* Απόσταση της ασπίδας από τα γράμματα */
    margin-bottom: 25px;
}

.about-club .footer-logo i {
    color: var(--primary-yellow);
    font-size: 2.2rem;
}

.about-club .footer-logo span {
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.club-motto {
    color: #aaaaaa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Μοντέρνα Τετράγωνα Social Κουμπιά με Εφέ */
.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #1a1a1a;
    color: #ffffff;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-socials a:hover {
    background-color: var(--primary-yellow);
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

/* Λίστες Συνδέσμων με Slide Hover Εφέ */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #cccccc;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.23s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--primary-yellow);
    transform: translateX(5px); /* Μικρό γλίστρημα προς τα δεξιά στο hover */
}

/* Στήλη 4: Στοιχεία Επικοινωνίας */
.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-info p i {
    color: var(--primary-yellow);
    font-size: 1rem;
    width: 15px; /* Σταθερό πλάτος για τέλεια στοίχιση */
}

/* Κάτω Μπάρα Copyright */
.footer-bottom {
    background-color: #060606;
    padding: 20px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #666666;
    font-size: 0.8rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #666666;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-yellow);
}

/* --- Κουμπί Responsive για Κινητά --- */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 50px 5% 40px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

.logo-img {
    height: 50px; /* Ρυθμίζεις το ύψος ανάλογα με το πόσο μεγάλο θέλεις το λογότυπο */
    width: auto;  /* Διατηρεί αυτόματα τις σωστές αναλογίες της εικόνας για να μην παραμορφωθεί */
    object-fit: contain;
    display: block;
}

.about-club .footer-logo i {
    color: var(--primary-yellow);
    font-size: 2.2rem;
}



/* Στήλη 1: Λογότυπο, Μότο και Social */
.about-club .footer-logo {
    display: flex;
    align-items: center; /* Κεντράρει την εικόνα με το κείμενο κάθετα */
    gap: 15px; /* Απόσταση της ασπίδας από τα γράμματα */
    margin-bottom: 25px;
}

/* Αυστηρό όριο στο μέγεθος της εικόνας */
.footer-logo-img {
    width: 65px; /* Κρατάει την εικόνα μαζεμένη και κομψή */
    height: auto;
    display: block;
}

/* Στοίχιση των γραμμάτων του Λογοτύπου */
.footer-logo-text {
    display: flex;
    flex-direction: column; /* Βάζει το ΑΕΚ πάνω από το ΚΑΒΑΛΑΣ */
    justify-content: center;
}

.footer-logo-text .title-top {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--primary-yellow); /* Κίτρινο το πάνω μέρος για αντίθεση */
    line-height: 1;
    letter-spacing: 1px;
}

.footer-logo-text .title-bottom {
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: 2px;
}

/* Styling για το link του δημιουργού */
.footer-bottom p .dev-link {
    color: #666666; /* Ίδιο γκρι χρώμα με το υπόλοιπο κείμενο */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

/* Όταν περνάει το ποντίκι από πάνω, γίνεται κίτρινο */
.footer-bottom p .dev-link:hover {
    color: var(--primary-yellow);
}

/* Διακριτικό διαχωριστικό ανάμεσα στα κείμενα */
.footer-bottom p .footer-separator {
    margin: 0 8px;
    color: #333333;
}

@media (max-width: 768px) {
    /* Τέλειο οριζόντιο Slider - Μία κάρτα τη φορά */
    .news-grid { 
        display: flex;
        flex-wrap: nowrap; 
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px; /* Το κενό παραμένει για να μην κολλάνε οι κάρτες στο swipe */
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; 
    }
    
    .news-grid::-webkit-scrollbar {
        display: none;
    }

    .news-card {
        flex: 0 0 100%; /* ΑΛΛΑΓΗ ΕΔΩ: Πιάνει ακριβώς το 100% της οθόνης */
        scroll-snap-align: center; /* ΑΛΛΑΓΗ ΕΔΩ: Κεντράρει την κάρτα απόλυτα στην οθόνη */
        height: 200px; 
    }
}