/*
Theme Name: Period Child
Theme URI: https://www.competethemes.com/period/
Author: vivi
Template: period
Version: 1.0
Text Domain: period-child
Requires PHP: 5.4
Tested up to: 6.7
*/

/* ==========================================================
   GLOBAL
========================================================== */

body{
    background:#F3F4F6;
}

.post-content{
    line-height:1.8;
}

.post-content p{
    margin-bottom:1.5em;
}

input[type="text"]{
    font-size:1em;
}

.more-link{
    font-weight:700;
}

/* ==========================================================
   HEADER
========================================================== */

.site-header{
    background:#1F3A5F;
}

.tagline{
    font-size:1.3em;
    font-weight:700;
}

.menu-primary li{
    margin-right:6px;
}

.current-menu-item a,
.current_page_item a{
    border-bottom:3px solid #fff;
    background:rgba(255,255,255,.15);
    border-radius:3px;
}

/* ==========================================================
   POSTS
========================================================== */

.post-title,
h1{
    font-size:1.2em;
    line-height:1.333;
    padding-top:5px;
}

.category-prosklisi-symmetechonton .post-header{
    border-top:6px solid #557A5A;
}

.category-prosklisi-ethelonton .post-header{
    border-top:6px solid #3E6EA5;
}

.category-seminars .post-header{
    border-top:6px solid #8B6B3F;
}

.category-prosklisi-symmetechonton .post-title::before,
.category-prosklisi-ethelonton .post-title::before,
.category-seminars .post-title::before{
    display:inline-block;
    margin-right:8px;
    margin-bottom:10px;
    padding:4px 8px;

    color:#fff;
    font-size:11px;
    font-weight:700;

    border-radius:4px;
}

.category-prosklisi-symmetechonton .post-title::before{
    content:"ΣΥΜΜΕΤΕΧΟΝΤΕΣ";
    background:#557A5A;
}

.category-prosklisi-ethelonton .post-title::before{
    content:"ΕΘΕΛΟΝΤΕΣ";
    background:#3E6EA5;
}

.category-seminars .post-title::before{
    content:"SEMINAR";
    background:#8B6B3F;
}

/* ==========================================================
   FEATURED IMAGE
========================================================== */

.featured-image{
    padding-bottom:12.4%;
}

.home .featured-image{
    padding-bottom:34%;
}

/* ==========================================================
   FOOTER
========================================================== */

.site-footer{
    margin-top:.75em;
}

/* ==========================================================
   SIDEBAR / WIDGETS
========================================================== */

.widget img.avatar,
.widget.login .avatar{
    display:none;
}

.widget.login{
    background:#fafafa;
    padding-bottom:15px;
}

.widget.login input[type="text"],
.widget.login input[type="password"]{
    width:100%;
    box-sizing:border-box;
}

.sidebar .widget-title{
    margin-bottom:15px;
    padding-bottom:8px;

    color:#4B5563;
    border-bottom:3px solid #4B5563;
}

.widget-title{
    color:#4B5563;
    letter-spacing:.3px;
}

/* ==========================================================
   RECENT POSTS
========================================================== */

.widget_recent_entries ul{
    margin:0;
    padding:0;
}

.widget_recent_entries li{
    list-style:none;
    margin-bottom:10px;
    padding-left:12px;
    border-left:1px solid #999;
}

.widget_recent_entries a{
    text-decoration:none;
}

.widget_recent_entries a:hover{
    text-decoration:underline;
}

.wp-block-latest-posts__post-date{
    display:block;
    font-size:.85em;
    opacity:.7;
}

/* ==========================================================
   LISTS
========================================================== */

.wp-block-list{
    margin-left:0;
    padding-left:0;
}

.wp-block-list li{
    list-style:none;

    margin-bottom:12px;
    padding:14px 18px;

    background:#f7f7f7;
    color:#4B5563;

    border-left:4px solid #666;
    border-radius:3px;
}

/* ==========================================================
   BREADCRUMBS
========================================================== */

.wp-block-breadcrumbs{
    font-size:.9em;
}

/* ==========================================================
   BLOCK SPACING
========================================================== */

#block-7{
    padding:10px 0;
}

/* ==========================================================
   MEMBER PANEL
========================================================== */

.eeeyt-member-panel a{
    text-decoration:none;
}

.eeeyt-member-fields{
    margin:20px 0;
    padding:15px 20px;

    background:#f5f5f5;
    color:#333;

    border-left:4px solid #666;
}

.eeeyt-member-fields h4{
    margin-top:0;
}

.eeeyt-logout-button{
    display:inline-block;

    padding:6px 12px;

    font-size:1em;
    font-weight:600;

    border:1px solid #333;
}

.eeeyt-logout-button a{
    color:#333;
    text-decoration:none;
}

.eeeyt-logout-button:hover{
    background:#4B5563;
}

.eeeyt-logout-button:hover a{
    color:#fff;
}

/* ==========================================================
   FULL WIDTH PAGES
========================================================== */

body:not(.home) #secondary,
body:not(.home) .sidebar,
body:not(.home):not(.blog) #sidebar-primary{
    display:none;
}

body:not(.home) #primary,
body:not(.home) .content-area,
body:not(.home):not(.blog) #main,
body:not(.home):not(.blog) .loop-container,
body:not(.home):not(.blog) article,
body:not(.home):not(.blog) .post-container,
body:not(.home):not(.blog) .post-content{
    width:100%;
    max-width:100%;
}

body:not(.home):not(.blog) .max-width{
    width:95%;
    max-width:1200px;
}

/* ==========================================================
   REGISTRATION FORM
========================================================== */

.frontend-form{
    max-width:1100px;
    margin:40px auto;
}

/* ==========================================================
   FORM GRID
========================================================== */

.frontend-form .acf-form-fields{
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    gap:8px;
}

.frontend-form .acf-form-fields > .acf-field{
    grid-column:1 / -1;
    width:100%;
}

/* ==========================================================
   SECTION HEADERS (Message Fields)
========================================================== */

.acf-field[data-type="message"]{
    margin:8px 0 12px;
}

.acf-field-message .acf-message{
    padding:20px 24px;
    background:#173b6c;
    border-radius:12px;
    color:#fff;
}

.acf-field-message .acf-message h2 {
    margin:0 0 5px;
    font-size:18px;
    font-weight:700;
}

.acf-message:has(> h2) {
    background: #eee !important;
    color: #173b6c;
}

.acf-message:has(> h2) h2 {
    background: #eee;
    color: #173b6c;
}

.acf-field-message .acf-message p{
    margin:0;

    color:rgba(255,255,255,.88);
    line-height:1.7;
}

/* ==========================================================
   FIELD SPACING
========================================================== */

.frontend-form .acf-field{
    margin-bottom:6px;
    padding-bottom:0;
}

.frontend-form .acf-label{
    margin-bottom:6px;
}

.frontend-form .acf-label label{
    margin:0;

    color:#173b6c;
    font-size:15px;
    font-weight:600;
}

/* ==========================================================
   INPUTS
========================================================== */

.frontend-form .acf-input,
.frontend-form .acf-input input,
.frontend-form .acf-input textarea,
.frontend-form .acf-input select{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
}

.frontend-form .acf-input input[type="text"],
.frontend-form .acf-input input[type="email"],
.frontend-form .acf-input input[type="password"],
.frontend-form .acf-input input[type="url"],
.frontend-form .acf-input input[type="number"],
.frontend-form .acf-input input[type="date"],
.frontend-form .acf-input textarea,
.frontend-form .acf-input select{

    min-height:48px;

    padding:14px 16px;

    border:1px solid #d7dde8;
    border-radius:8px;

    background:#fff;

    font-size:15px;

    transition:border-color .2s,
               box-shadow .2s;
}

.frontend-form textarea{
    min-height:140px;
    resize:vertical;
}

/* ==========================================================
   INPUT FOCUS
========================================================== */

.frontend-form input:focus,
.frontend-form textarea:focus,
.frontend-form select:focus{

    outline:none;

    border-color:#173b6c;

    box-shadow:0 0 0 3px rgba(23,59,108,.12);
}

/* ==========================================================
   RADIOS / CHECKBOXES
========================================================== */

.frontend-form input[type="radio"],
.frontend-form input[type="checkbox"]{

    width:18px;
    height:18px;

    min-height:0;

    margin:0;

    vertical-align:middle;
}

/* ==========================================================
   GRID LAYOUT
========================================================== */

/* Name */

.frontend-form .acf-field[data-name="fea_first_name"],
.frontend-form .acf-field[data-name="fea_last_name"],
.frontend-form .acf-field[data-name="father"]{
    grid-column:span 4;
}

/* Login */

.frontend-form .acf-field[data-name="email"],
.frontend-form .acf-field[data-name="fea_username"]{
    grid-column:span 6;
}

.frontend-form .acf-field[data-name="fea_user_password"]{
    grid-column:1 / -1;
}

/* Professional */

.frontend-form .acf-field[data-name="occupation"],
.frontend-form .acf-field[data-name="position"]{
    grid-column:span 6;
}

.frontend-form .acf-field[data-name="organization"]{
    grid-column:1 / -1;
}

/* Phones */

.frontend-form .acf-field[data-name="phone"],
.frontend-form .acf-field[data-name="mobile"]{
    grid-column:span 6;
}

/* Websites */

.frontend-form .acf-field[data-name="website_1"],
.frontend-form .acf-field[data-name="website_2"],
.frontend-form .acf-field[data-name="website_3"]{
    grid-column:span 4;
}

/* Identity */

.frontend-form .acf-field[data-name="id"],
.frontend-form .acf-field[data-name="id_date"]{
    grid-column:span 6;
}

/* Address */

.frontend-form .acf-field[data-name="street"]{
    grid-column:span 5;
}

.frontend-form .acf-field[data-name="street_number"]{
    grid-column:span 2;
}

.frontend-form .acf-field[data-name="zip_code"]{
    grid-column:span 2;
}

.frontend-form .acf-field[data-name="city"]{
    grid-column:span 3;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:900px){

    .frontend-form .acf-form-fields{
        grid-template-columns:1fr;
    }

    .frontend-form .acf-form-fields > .acf-field{
        grid-column:1;
    }

}

/* ==========================================================
   UPLOAD FIELDS
========================================================== */

/* Upload fields occupy the full row */

.frontend-form .acf-field[data-name="colored_photo"],
.frontend-form .acf-field[data-name="id_photo"],
.frontend-form .acf-field[data-name="cv"],
.frontend-form .acf-field[data-name="academic_qualifications"]{
    grid-column:1 / -1;
    margin:0 0 36px;
}

/* ==========================================================
   UPLOAD BOXES
========================================================== */

.frontend-form .acf-file-uploader,
.frontend-form .acf-image-uploader{

    position:relative;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    width:100%;
    min-height:230px;

    padding:30px;

    text-align:center;
    box-sizing:border-box;

    background:#f8fafc;

    border:2px dashed #173b6c;
    border-radius:12px;
}

/* Center default ACF content */

.frontend-form .acf-file-uploader .hide-if-value,
.frontend-form .acf-image-uploader .hide-if-value{

    display:flex;
    flex:1;
    width:100%;

    justify-content:center;
    align-items:center;
}

.frontend-form .acf-file-uploader .hide-if-value p,
.frontend-form .acf-image-uploader .hide-if-value p{
    margin:0;
}

/* Uploaded file preview */

.frontend-form .acf-file-uploader .show-if-value,
.frontend-form .acf-image-uploader .show-if-value{
    width:100%;
}

/* ==========================================================
   UPLOAD BUTTONS
========================================================== */

.frontend-form .acf-file-uploader .button,
.frontend-form .acf-image-uploader .acf-button, 
.frontend-form .upload-files{

    display:inline-flex;
    justify-content:center;
    align-items:center;

    min-width:220px;
    min-height:52px;

    padding:0 28px;

    background:#173b6c !important;
    color:#fff !important;

    border:none;
    border-radius:8px;

    font-size:15px;
    font-weight:600;
    text-decoration:none;

    transition:.2s ease;
}

.frontend-form .acf-file-uploader .button:hover,
.frontend-form .acf-image-uploader .acf-button:hover,
.frontend-form .upload-files:hover{

    background:#214d8c !important;
    transform:translateY(-1px);
}


/* ==========================================================
   FILE TYPE / SIZE
========================================================== */

.frontend-form .acf-file-uploader::after,
.frontend-form .acf-image-uploader::after{

    display:block;

    margin-top:18px;

    color:#666;

    font-size:14px;
    line-height:1.6;

    text-align:center;
}

/* Passport Photo */

.frontend-form .acf-field[data-name="colored_photo"] .acf-image-uploader::after{
    content:"Μόνο JPG ή PNG • Μέγιστο μέγεθος 2 MB";
}

/* ID */

.frontend-form .acf-field[data-name="id_photo"] .acf-file-uploader::after{
    content:"Μόνο PDF • Μέγιστο μέγεθος 2 MB";
}

/* CV */

.frontend-form .acf-field[data-name="cv"] .acf-file-uploader::after{
    content:"Μόνο PDF • Μέγιστο μέγεθος 5 MB";
}

/* Degrees */

.frontend-form .acf-field[data-name="academic_qualifications"] .acf-file-uploader::after{
    content:"Μόνο ZIP ή PDF • Μέγιστο μέγεθος 5 MB";
}

/* ==========================================================
   EXAMPLE IMAGES
========================================================== */

.frontend-form .acf-field[data-name="colored_photo"] .acf-input,
.frontend-form .acf-field[data-name="id_photo"] .acf-input,
.frontend-form .acf-field[data-name="cv"] .acf-input,
.frontend-form .acf-field[data-name="academic_qualifications"] .acf-input{

    position:relative;
    padding-right:220px;
}

/* Example title */

.frontend-form .acf-field[data-name="colored_photo"] .acf-input::before,
.frontend-form .acf-field[data-name="id_photo"] .acf-input::before,
.frontend-form .acf-field[data-name="cv"] .acf-input::before,
.frontend-form .acf-field[data-name="academic_qualifications"] .acf-input::before{

    content:"Παράδειγμα";

    position:absolute;
    top:-24px;
    right:0;

    width:180px;

    text-align:center;

    color:#666;
    font-weight:600;
}

/* Example frame */

.frontend-form .acf-field[data-name="colored_photo"] .acf-input::after,
.frontend-form .acf-field[data-name="id_photo"] .acf-input::after,
.frontend-form .acf-field[data-name="cv"] .acf-input::after,
.frontend-form .acf-field[data-name="academic_qualifications"] .acf-input::after{

    content:"";

    position:absolute;

    top:0;
    right:0;

    width:180px;
    height:220px;

    background:#fff center center / contain no-repeat;

    border:2px solid #4a90e2;
    border-radius:8px;
}

.frontend-form .acf-field[data-name="colored_photo"] .acf-input::after{
    background-image:url("/wp-content/uploads/2026/08/photo.png");
}

.frontend-form .acf-field[data-name="id_photo"] .acf-input::after{
    background-image:url("/wp-content/uploads/2026/08/id.png");
}

.frontend-form .acf-field[data-name="cv"] .acf-input::after{
    background-image:url("/wp-content/uploads/2026/08/cv.png");
}

.frontend-form .acf-field[data-name="academic_qualifications"] .acf-input::after{
    background-image:url("/wp-content/uploads/2026/08/degrees.png");
}

/* ==========================================================
   MEMBER TYPE
========================================================== */

.frontend-form .acf-field[data-name="member_type"] .acf-radio-list{

    display:flex;
    flex-wrap:wrap;

    gap:18px 36px;

    margin:10px 0 0;
}

.frontend-form .acf-field[data-name="member_type"] .acf-radio-list li{
    margin:0;
    list-style:none;
}

.frontend-form .acf-field[data-name="member_type"] .acf-radio-list label{

    display:flex;
    align-items:flex-start;

    gap:10px;

    cursor:pointer;

    font-size:15px;
    line-height:1.6;
}

.frontend-form .acf-field[data-name="member_type"] input[type="radio"]{

    width:18px;
    height:18px;

    margin-top:2px;

    flex:0 0 18px;
}

/* ==========================================================
   GDPR
========================================================== */

.frontend-form .acf-field[data-name="gdpr_consent"]{

    margin:40px 0;

    padding:22px 22px 25px;

    background:#f7f9fc;

    border:1px solid #d9e2ef;
    border-radius:12px;
}

.frontend-form .acf-field[data-name="gdpr_consent"] .acf-label label{

    color:#173b6c;

    font-size:18px;
    font-weight:700;
}

.frontend-form .acf-field[data-name="gdpr_consent"] .description{

    display:block;

    margin:0;

    color:#4b5563;

    line-height:1.8;
}

.frontend-form .acf-field[data-name="gdpr_consent"] .acf-input{
    display:block;
}

.frontend-form .acf-field[data-name="gdpr_consent"] .acf-true-false{

    margin-top:20px;

    padding-top:18px;

    border-top:1px solid #dbe3ef;
}

.frontend-form .acf-field[data-name="gdpr_consent"] .acf-true-false label{

    display:flex;
    align-items:flex-start;

    gap:16px;

    margin:0;

    cursor:pointer;
}

.frontend-form .acf-field[data-name="gdpr_consent"] input[type="checkbox"]{

    width:20px;
    height:20px;

    margin-top:2px;

    flex:0 0 20px;
}

.frontend-form .acf-field[data-name="gdpr_consent"] .message{

    flex:1;

    color:#333;

    font-size:16px;
    line-height:1.6;
}

/* ==========================================================
   SUBMIT BUTTON
========================================================== */

.frontend-form .acf-field-submit-button{
    grid-column:1 / -1;
    margin-top:45px;
}

.frontend-form .acf-field-submit-button .acf-input{
    text-align:center;
}

.frontend-form .fea-submit-button,
.frontend-form input[type="submit"],
.frontend-form button[type="submit"]{

    display:inline-flex;
    justify-content:center;
    align-items:center;

    min-width:280px;
    min-height:56px;

    padding:16px 50px;

    background:#173b6c !important;
    color:#fff !important;

    border:none;
    border-radius:10px;

    font-size:17px;
    font-weight:700;

    cursor:pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;

    box-shadow:0 6px 18px rgba(0,0,0,.15);
}

.frontend-form .fea-submit-button:hover,
.frontend-form input[type="submit"]:hover,
.frontend-form button[type="submit"]:hover{

    background:#214d8c !important;

    transform:translateY(-2px);

    box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.frontend-form .fea-submit-button:active,
.frontend-form input[type="submit"]:active,
.frontend-form button[type="submit"]:active{

    transform:translateY(0);

    box-shadow:0 4px 10px rgba(0,0,0,.12);
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:1024px){

    .frontend-form{
        max-width:95%;
    }

    .frontend-form .acf-field[data-name="colored_photo"] .acf-input,
    .frontend-form .acf-field[data-name="id_photo"] .acf-input,
    .frontend-form .acf-field[data-name="cv"] .acf-input,
    .frontend-form .acf-field[data-name="academic_qualifications"] .acf-input{

        padding-right:0;
    }

    .frontend-form .acf-field[data-name="colored_photo"] .acf-input::before,
    .frontend-form .acf-field[data-name="id_photo"] .acf-input::before,
    .frontend-form .acf-field[data-name="cv"] .acf-input::before,
    .frontend-form .acf-field[data-name="academic_qualifications"] .acf-input::before,

    .frontend-form .acf-field[data-name="colored_photo"] .acf-input::after,
    .frontend-form .acf-field[data-name="id_photo"] .acf-input::after,
    .frontend-form .acf-field[data-name="cv"] .acf-input::after,
    .frontend-form .acf-field[data-name="academic_qualifications"] .acf-input::after{

        display:none;
    }
}

@media (max-width:768px){

    .frontend-form{
        margin:25px auto;
    }

    .frontend-form .acf-form-fields{
        grid-template-columns:1fr;
        gap:8px;
    }

    .frontend-form .acf-form-fields > .acf-field{
        grid-column:1 !important;
    }

    .frontend-form .acf-file-uploader,
    .frontend-form .acf-image-uploader{

        min-height:180px;

        padding:24px;
    }

    .frontend-form .acf-file-uploader .button,
    .frontend-form .acf-image-uploader .acf-button{

        width:100%;
        min-width:0;
    }

    .frontend-form .acf-field[data-name="member_type"] .acf-radio-list{

        flex-direction:column;
        gap:12px;
    }

    .frontend-form .acf-field[data-name="gdpr_consent"]{

        padding:18px;
    }

    .frontend-form .fea-submit-button,
    .frontend-form input[type="submit"],
    .frontend-form button[type="submit"]{

        width:100%;
        min-width:0;
    }
}

/* ==========================================================
   PRINT
========================================================== */

@media print{

    .frontend-form .acf-file-uploader,
    .frontend-form .acf-image-uploader{

        border:1px solid #999;
        background:#fff;
    }

    .frontend-form .fea-submit-button,
    .frontend-form input[type="submit"],
    .frontend-form button[type="submit"]{

        display:none;
    }
}



