/*
 Theme Name: academica-child
 Template: academica
 Author: Vivi
 Description: A child theme for Academica
 Version: 1.0
*/

/* Header bar */

.home .entry-content > p:first-of-type {
    color: #00A7A7;
    font-size: 2.6rem;
    line-height: 1.5;
    font-weight: 500;
}

#top-header {
    background: #0A5794;
}

/* Logo + menu στην ίδια γραμμή */

#top-header > .inner-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

/* Μεγαλύτερο συνολικό πλάτος site */

.inner-wrap {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: auto;
}

#wrap {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: auto;
}


/* Προεπιλογή: full width */
.column-title{
    width: 100%;
    float: none;   
}


.column-title,
.column-content.single {
    clear: both;
}

.column-narrow,
.column-narrow.column-last {
    display: none;
}

.column-content.single {
    width: 100%;
    float: none;
}

/* Σελίδες με sidebar */

.page-id-6 .column-narrow,
.page-id-6 .column-narrow.column-last,
.page-id-102 .column-narrow,
.page-id-102 .column-narrow.column-last,
.page-id-106 .column-narrow,
.page-id-106 .column-narrow.column-last {
    display: block;
    width: 25%;
    float: right;
}

.page-id-6 .column-content.single,
.page-id-102 .column-content.single,
.page-id-106 .column-content.single {
    width: 72%;
    float: left;
}

.column {
    box-sizing: border-box;
}

/* Αφαίρεση του κενού κάτω από το logo */

#logo {
    float: none !important;
    margin: 0;
    padding: 10px 0;
}

/* Μέγεθος λογοτύπου */

#logo img {
    max-height: 40px;
    width: auto;
}

/* Navigation */

#main-nav {
    background: #0A5794;
    margin: 0;
}

/* Banner */

#conference-banner img {
    display: block;
    width: 100%;
    height: auto;
}

#navbar-main .menu > li > a,
#navbar-main .nav > li > a {
    padding: 10px 16px;
}

/* Hover στα βασικά στοιχεία του μενού */

#main-nav ul li a:hover,
#main-nav ul li.current-menu-item a,
#main-nav ul li.current_page_item a {
    background-color: #00A7A7;
    color: #ffffff;
}

/* Τίτλος sidebar */

#recent-posts-2 > .widget-title {
    display: none;
}

.column-narrow .widget h2.wp-block-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0F4C81;
    margin-bottom: 4px;
}

/* Recent posts */

/* Recent Posts widget */

.widget_recent_entries ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_recent_entries li {
    display: block;
    margin: 0 !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

.widget_recent_entries > ul > li > a {
    display: block;
    color: #0F4C81;
    font-weight: 600;
    text-decoration: none;
}

.widget_recent_entries > ul > li > a:hover {
    color: #00A7A7;
}

.widget_recent_entries li:hover{
    background:#f8fcfc;
}

.widget_recent_entries .widget-title{
    margin-bottom:8px;
}

.widget_recent_entries ul{
    margin-top:0;
}

/* Περιγραφή */

.column-narrow .wp-block-paragraph {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 4px;
}

/* Ενότητες (γκρι κουτιά όπως στο παράδειγμα) */

.column-narrow h3.wp-block-heading {
    background: #f2f2f2;
    padding: 4px 6px;
    margin: 7px 0 5px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    border-left: 4px solid #00A7A7;
}

/* Λίστα ημερομηνιών */

.column-narrow .wp-block-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Κάθε προθεσμία */

.column-narrow .wp-block-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    padding: 2px 0 3px 6px;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #333;
}

/* Ημερομηνία */

.column-narrow .wp-block-list li strong {
    display: inline-block;
    min-width: 110px;
    color: #0F4C81;
    font-weight: 700;
}

/* Hover */

.column-narrow .wp-block-list li:hover {
    background: #f9fdfd;
}

/* Τελευταίο στοιχείο χωρίς γραμμή */

.column-narrow .wp-block-list li:last-child {
    border-bottom: none;
}

.widget {
    margin: 0 0 10px;
}


/* Πίνακες προθεσμιών */

.column-narrow .wp-block-table {
    margin: 0 0 10px 0;
}

.column-narrow .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    line-height: 1.3;
}

.column-narrow .wp-block-table td {
    padding: 4px 6px;
    border: none;
    border-bottom: 1px solid #ececec;
    vertical-align: top;
}

/* Στήλη ημερομηνίας */

.column-narrow .wp-block-table td:first-child {
    width: 90px;
    white-space: nowrap;
    color: #0F4C81;
    font-weight: 700;
    padding-left: 0;
}

/* Στήλη περιγραφής */

.column-narrow .wp-block-table td:last-child {
    color: #444;
    padding-right: 0;
}

/* Αφαίρεση τελευταίας γραμμής */

.column-narrow .wp-block-table tr:last-child td {
    border-bottom: none;
}

/* Hover */

.column-narrow .wp-block-table tr:hover {
    background: #f8fcfc;
}


.fees-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.fees-table th {
    background: #f8f9fa;
    color: #333;
    padding: 12px;
    text-align: left;
    text-transform: none;
}

.fees-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e5e5;
}

.fees-table td:hover {
    background: #00A7A7;
    color: white;
    font-weight: 700;
}

/* Αριστερό κελί της γραμμής */

.fees-table tbody td:first-child {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.fees-table tbody tr:hover td:first-child {
    background: #333;
    color: white;
    font-weight: 600;
}


/* Κανονικό τέλος */

.fees-table table:has(td:nth-child(2):hover) th:nth-child(2) {
    background: #333;
    color: white;
}

/* Μειωμένο τέλος */

.fees-table table:has(td:nth-child(3):hover) th:nth-child(3) {
    background: #333;
    color: white;
}

/* Υπερμειωμένο τέλος */

.fees-table table:has(td:nth-child(4):hover) th:nth-child(4) {
    background: #333;
    color: white;
}

/* Παρακολούθηση */

.fees-table table:has(td:nth-child(5):hover) th:nth-child(5) {
    background: #333;
    color: white;
}

.fees-table th,
.fees-table td {
    transition: background-color .2s ease;
}
/*************/

.conference-timeline{
    position:relative;
    margin:30px 0;
    padding-left:40px;
}

.conference-timeline:before{
    content:"";
    position:absolute;
    left:10px;
    top:0;
    bottom:0;
    width:3px;
    background:#00A7A7;
}

.timeline-card{
    position:relative;
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:8px;
    padding:15px 20px;
    margin-bottom:15px;
    box-shadow:0 2px 6px rgba(0,0,0,.05);
    transition:.2s;
}

.timeline-card:hover{
    transform:translateX(4px);
    border-color:#00A7A7;
}

.timeline-card:before{
    content:"";
    position:absolute;
    left:-36px;
    top:22px;
    width:14px;
    height:14px;
    border-radius:50%;
    background:#00A7A7;
    border:3px solid #fff;
    box-shadow:0 0 0 2px #00A7A7;
}

.timeline-date{
    color:#0A5794;
    font-weight:700;
    font-size:1rem;
    margin-bottom:4px;
}

.timeline-text{
    color:#444;
    font-size:.95rem;
}

.wp-block-heading .elementor-heading-title {
    color: #333 !important;
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #00A7A7;
}

.section-nav {
    background: #f8f9fa;
    border-left: 4px solid #00A7A7;
    padding: 10px 0;
    margin: 20px 0;
}

.section-nav ul{
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.section-nav li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.section-nav a {
    display: block;
    padding: 12px 18px;
    color: #0F4C81;
    text-decoration: none;
    font-weight: 600;
    transition: all .2s ease;
}

.section-nav a:hover {
    background: #ffffff;
    color: #00A7A7;
    padding-left: 24px;
}

.section-nav a::before {
    content: "▸";
    color: #00A7A7;
    margin-right: 10px;
}

.committee-card{
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    text-align:center;
    transition:.2s ease;
}

/*.committee-card:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 18px rgba(0,0,0,.12);
}*/

.committee-card .elementor-image-box-img{
    width: 140px !important;
    height: 140px !important;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 1px solid #333;
}

.committee-card .elementor-image-box-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.committee-card .elementor-image-box-title{
    color:#333;
    font-size:1.1rem;
    margin-top:12px;
}

.committee-card .elementor-image-box-description{
    font-size:.9rem;
    color:#666;
    line-height:1.4;
}
/*
.committee-card{
    transition: all .25s ease;
}

.committee-card:hover{
    transform: translateY(-4px);
}
*/
.elementor-widget-image-box .elementor-image-box-title {
    color: #333 !important;
}

.committee-card .institution{
    color:#666;
    font-size:.9rem;
    margin-bottom:8px;
}

.committee-card .roles{
    color:#888;
    font-size:.85rem;
    font-style:italic;
    line-height:1.4;
}

.elementor-widget-text-editor {
    font: inherit;
    color: #333 !important;
}

.entry-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Ανακοινώσεις widget */

.widget_recent_entries {
    margin-bottom: 20px;
}

.widget_recent_entries .widget-title {
    background: #f2f2f2;
    border-left: 4px solid #00A7A7;
    padding: 6px 8px;
    margin: 0 0 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #222;
}

.widget_recent_entries ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_recent_entries li {
    padding: 8px 0;
    border-bottom: 1px solid #ececec;
}

.widget_recent_entries li:last-child {
    border-bottom: none;
}

.widget_recent_entries a {
    color: #0A5794;
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: color .2s ease;
}

.widget_recent_entries a:hover {
    color: #00A7A7;
}