/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/

/* ==========================================================================
   PIERIA KLIK - ΕΝΙΑΙΟ & ΔΙΟΡΘΩΜΕΝΟ CSS HEADER & NAVIGATION
   ========================================================================== */

/* 1. ΣΥΜΜΕΤΡΙΑ & ΕΥΘΥΓΡΑΜΜΙΣΗ (1100px) */
.pk-top-bar-container,
.pk-header-container {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* TOP BAR DESIGN & ΚΕΝΤΡΑΡΙΣΜΑ ΗΜΕΡΟΛΟΓΙΟΥ */
.pk-top-bar {
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    padding: 14px 0 !important; /* Μεγαλύτερο εσωτερικό πάντινγκ πάνω-κάτω για να ψηλώσει η μπάρα ομοιόμορφα */
    border-bottom: 1px solid #333;
    width: 100% !important;
    box-sizing: border-box !important;
}

.pk-top-bar-container {
    max-width: 1100px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
}

.pk-top-bar-left span {
    color: #aaa;
}

/* Απόλυτο κεντράρισμα για το κουμπί του ημερολογίου σε Desktop */
@media (min-width: 769px) {
    .pk-top-bar-left {
        flex: 0 0 auto;
    }
    .pk-top-calendar-btn {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .pk-top-bar-right {
        flex: 0 0 auto;
        margin-left: auto;
    }
}

.pk-top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pk-top-calendar-btn {
    background: #b8860b;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pk-top-calendar-btn:hover {
    background: #996f08;
    color: #fff;
}

.pk-top-user-link {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
}
.pk-top-user-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* HEADER & LOGO */
.pk-custom-header {
    background: #fff;
    border-bottom: 1px solid #e1e4e8;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    width: 100% !important;
    box-sizing: border-box !important;
}

.pk-header-container {
    max-width: 1100px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.pk-header-left { display: flex; align-items: center; gap: 15px; }

.pk-site-title { font-size: 1.8rem; font-weight: 900; color: #327396; text-transform: uppercase; text-decoration: none; }
.pk-site-title-link { text-decoration: none; }

/* NAVIGATION & DESKTOP DROPDOWNS */
.pk-main-navigation { position: relative; }
.pk-main-navigation ul { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; align-items: center; }
.pk-main-navigation li { position: relative; }

.pk-main-navigation a { 
    text-decoration: none; 
    color: #222; 
    font-weight: bold; 
    font-size: 14px; 
    padding: 10px 0;
    display: block;
    transition: color 0.2s; 
}
.pk-main-navigation a:hover { color: #327396; }

.pk-main-navigation ul.sub-menu,
.pk-main-navigation ul.children {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    flex-direction: column;
    padding: 10px 0;
    z-index: 9999;
}

.pk-main-navigation li:hover > ul.sub-menu,
.pk-main-navigation li.focus > ul.sub-menu {
    display: flex;
}

.pk-main-navigation ul.sub-menu li { width: 100%; }
.pk-main-navigation ul.sub-menu a { padding: 8px 20px; color: #444; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pk-main-navigation ul.sub-menu a:hover { background: #f8f9fa; color: #327396; }
.pk-main-navigation ul.sub-menu ul.sub-menu { top: 0; left: 100%; }

.pk-menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* FOOTER */
.pk-custom-footer { background: #222; color: #fff; padding: 40px 20px 20px 20px; margin-top: 50px; font-family: sans-serif; }
.pk-footer-container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.pk-footer-col h3 { color: #ffcc00; font-size: 16px; margin-bottom: 15px; border-bottom: 1px solid #444; padding-bottom: 8px; }
.pk-footer-col p, .pk-footer-col a { color: #bbb; font-size: 14px; text-decoration: none; }
.pk-footer-col ul { list-style: none; padding: 0; margin: 0; }
.pk-footer-col ul li { margin-bottom: 8px; }
.pk-footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 15px; font-size: 13px; color: #888; }

/* ΑΦΑΙΡΕΣΗ ΤΙΤΛΟΥ & ΚΕΝΟ ΑΕΡΑ */
.page .entry-title,
.site-content h1.entry-title,
.page-header { display: none !important; }

.site-content { padding-top: 30px !important; }
.pk-proto-container, .pk-single-wrap { margin-top: 10px !important; }

/* RESPONSIVE ΓΙΑ ΚΙΝΗΤΑ */
@media (max-width: 992px) {
    .pk-main-navigation { display: none; width: 100%; order: 3; margin-top: 15px; border-top: 1px solid #eee; padding-top: 15px; }
    .pk-main-navigation.toggled { display: block; }
    .pk-main-navigation ul { flex-direction: column; align-items: flex-start; gap: 5px; width: 100%; }
    .pk-main-navigation li { width: 100%; }
    
    .pk-main-navigation .menu-item-has-children > a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .pk-main-navigation .menu-item-has-children > a::after {
        content: "▼";
        font-size: 10px;
        margin-left: 8px;
        transition: transform 0.3s;
    }
    .pk-main-navigation .menu-item-has-children.open > a::after {
        transform: rotate(180deg);
    }
    .pk-main-navigation ul.sub-menu {
        position: static !important;
        display: none !important;
        box-shadow: none !important;
        border: none !important;
        background: #f1f3f5 !important;
        padding-left: 15px !important;
        border-radius: 6px;
        margin-top: 5px;
        min-width: 100% !important;
    }
    .pk-main-navigation li.open > ul.sub-menu {
        display: flex !important;
        flex-direction: column !important;
    }
    .pk-menu-toggle { display: block; }
    .pk-footer-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .pk-top-bar-container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .pk-top-bar-left { display: none; }
    .pk-top-calendar-btn {
        position: static !important;
        transform: none !important;
        margin: 0 auto;
    }
    .pk-top-bar-right {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}
/* Αφαίρεση υπογράμμισης από όλα τα links παγκόσμια */
a, a:hover, a:focus, a:active {
    text-decoration: none !important;
}
/* =========================================================================
   ΚΕΝΤΡΙΚΟ ΣΤΥΛ ΓΙΑ GOOGLE RECAPTCHA (Child Theme)
   ======================================================================== */
.pk-recaptcha-wrapper, 
.pk-recaptcha-wrap {
    width: 100%;
    margin: 20px 0;
    text-align: center; /* Διασφαλίζει κεντράρισμα παντού */
}

.pk-recaptcha-wrapper .g-recaptcha, 
.pk-recaptcha-wrap .g-recaptcha {
    display: inline-block; /* Επιτρέπει το κεντράρισμα με το text-align */
    max-width: 100%;
}

/* Προσαρμογή για πολύ μικρές οθόνες κινητών αν το κουτί είναι στενό */
@media screen and (max-width: 360px) {
    .pk-recaptcha-wrapper .g-recaptcha, 
    .pk-recaptcha-wrap .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 50% 50%;
    }
}

