/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.2
*/

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    position: relative;
}

.inside-header {
    padding: 20px 40px;
}

.main-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2em;
    word-wrap: break-word;
    font-weight: bold;
    text-transform: none;
}

.site-description {
    margin: 0;
    line-height: 1.2em;
    font-weight: bold;
    text-transform: none;
    font-size: 20px;
}

.site-logo {
    display: inline-block;
    max-width: 100%;
}

.site-header .header-image {
    vertical-align: middle;
}

.header-widget {
    float: right;
    overflow: hidden;
    max-width: 50%;
}

.header-widget .widget {
    padding: 0 0 20px;
    margin-bottom: 0;
}

.header-widget .widget:last-child {
    padding-bottom: 0;
}

.header-widget .widget-title {
    margin-bottom: 15px;
}

.nav-float-right .header-widget {
    position: relative;
    top: -10px;
}

.nav-float-right .header-widget .widget {
    padding: 0 0 10px;
}

.nav-float-left .inside-header .site-branding,
.nav-float-left .inside-header .site-logo {
    float: right;
    clear: right;
}

.nav-float-left .inside-header:after {
    clear: both;
    content: '';
    display: table;
}

.nav-float-right .inside-header .site-branding {
    display: inline-block;
}

.site-branding-container {
    display: inline-flex;
    align-items: center;
    text-align: left;
}

.site-branding-container .site-logo {
    margin-right: 1.5em;
}

.header-aligned-center .site-header {
    text-align: center;
}

.header-aligned-right .site-header {
    text-align: right;
}

.header-aligned-right .site-branding-container {
    text-align: right;
}

.header-aligned-right .site-branding-container .site-logo {
    order: 10;
    margin-right: 0;
    margin-left: 1.5em;
}

/* Εναλλακτικός τρόπος κεντραρίσματος για GeneratePress Top Bar */
@media (min-width: 769px) {
    .top-bar {
        text-align: center;
    }
    
    .top-bar .inside-top-bar {
        display: block !important;
        float: none !important;
    }

    .top-bar .widget {
        display: inline-block;
        float: none !important;
    }
}

/* --- SITEMAP GRID & CARDS LAYOUT --- */
.sitemap-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.sitemap-card {
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sitemap-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sitemap-card h2 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0056b3;
    color: #1a202c;
}

.sitemap-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.sitemap-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.sitemap-list li {
    margin-bottom: 8px;
}

.sitemap-list li a {
    text-decoration: none;
    color: #2b6cb0;
}

.sitemap-list li a:hover {
    text-decoration: underline;
    color: #2c5282;
}

.sitemap-full-width {
    grid-column: 1 / -1;
}

.sitemap-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.sitemap-cat-item {
    background: #ffffff;
    border: 1px solid #edf2f7;
    padding: 15px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .sitemap-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .sitemap-card {
        padding: 15px;
    }
}

/* --- ΓΕΝΙΚΑ & CONTENT --- */
.entry-content a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.my-breadcrumbs-wrapper {
    background-color: #fcfcfc;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    border-top: 1px solid #eee;
    margin-bottom: 25px;
}

.breadcrumb-container {
    font-size: 0.85em;
    color: #666;
    font-weight: 400;
}

.breadcrumb-container a {
    color: #005a9c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-container a:hover {
    color: #003d6a;
    text-decoration: underline;
}

.breadcrumb-container .sep {
    margin: 0 8px;
    color: #bbb;
}

.breadcrumb-container .current {
    color: #333;
    font-weight: 600;
}

/* --- TIMELINE --- */
.timeline { position: relative; max-width: 800px; margin: 40px auto; }
.timeline::after { content: ''; position: absolute; width: 2px; background-color: #005a9c; top: 0; bottom: 0; left: 150px; }
.tl-item { position: relative; display: flex; margin-bottom: 30px; }
.tl-item::before { 
    content: ''; 
    position: absolute; 
    left: 137px; 
    top: 0; 
    width: 28px; 
    height: 28px; 
    background-color: #fff; 
    border: 2px solid #005a9c; 
    border-radius: 50%; 
    z-index: 1; 
    background-image: url('https://spkar.eu/wp-content/uploads/stethoscope128.webp');
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
}
.tl-year { width: 130px; font-weight: bold; color: #005a9c; flex-shrink: 0; }
.tl-content { margin-left: 40px; }

/* Responsive Timeline */
@media screen and (max-width: 600px) {
    .timeline::after { left: 30px; }
    .tl-item::before { left: 17px; }
    .tl-item { flex-direction: column; }
    .tl-content { margin-left: 50px; margin-top: 25px; }
    .tl-year { margin-left: 50px; }
}

/* --- PUBLICATION BOX & GRID --- */
.pub-box { 
    background-color: #f8fafc; 
    border-left: 4px solid #005a9c; 
    padding: 25px; 
    margin-bottom: 30px; 
    border-radius: 0 8px 8px 0; 
    font-size: 15px; 
    line-height: 2.0; 
}

.pub-item { 
    margin-bottom: 30px; 
    border-bottom: 1px solid #e2e8f0; 
    padding-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.pub-item:last-child { 
    margin-bottom: 0; 
    border-bottom: none; 
    padding-bottom: 0; 
}

.pub-item svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.info-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
    margin-top: 20px; 
}

.info-box { 
    padding: 20px; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    background: #fff; 
}

.info-box h3 { 
    margin-top: 0; 
    font-size: 1.1em; 
    color: #005a9c; 
    display: flex; 
    align-items: center; 
}

/* --- FOOTER PRIVACY WIDGET --- */
.footer-widgets .wp-image-1923 {
    margin-right: 15px;
    margin-bottom: 10px;
}

.footer-widgets .textwidget {
    font-size: 0.85em;
    line-height: 1.4;
}

/* --- MOBILE CTA PHONE --- */
@media screen and (min-width: 769px) {
    .mobile-cta-phone {
        display: none !important;
    }
}

.mobile-cta-phone {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: #0073aa;
    color: #ffffff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.mobile-cta-phone:active {
    transform: scale(0.90);
}

.mobile-cta-phone svg {
    fill: #ffffff;
    width: 26px;
    height: 26px;
}

/* Προσθήκη για να ανέβει το back-to-top πάνω από το CTA */
@media (max-width: 768px) {
    .generate-back-to-top {
        bottom: 90px;
    }
}

/* --- CODE CONTAINER --- */
.code-container {
 position: relative;
 display: inline-block;
 width: 100%;
 margin: 10px 0;
}

.code-container pre,
.code-container code.standalone-code {
 background: #f8fafc;
 border: 1px solid #e2e8f0;
 padding: 10px 40px 10px 15px;
 border-radius: 6px;
 overflow-x: auto;
 display: block;
}

.copy-btn {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 right: 10px;
 background: transparent;
 color: #64748b;
 border: none;
 padding: 5px;
 cursor: pointer;
 transition: color 0.2s;
 font-size: 14px;
}

.copy-btn:hover {
 color: #0f172a;
}

/* --- HEADER CONTACT ICONS (DESKTOP DEFAULT) --- */
.header-contact-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 15px;
    margin-bottom: 0;
    padding: 5px 0;
}

.header-contact-icons a {
    font-size: 18px;
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-contact-icons a:hover {
    color: #0056b3;
}

/* --- RESPONSIVE / MEDIA QUERIES --- */
@media screen and (max-width: 600px) {
    .timeline::after { left: 30px; }
    .tl-item::before { left: 21px; }
    .tl-item { flex-direction: column; }
    .tl-content { margin-left: 50px; margin-top: 25px; }
    .tl-year { margin-left: 50px; }
}

/* Tablet View */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-contact-icons {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 14px !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .header-contact-icons a {
        font-size: 17px !important;
    }
}

/* Mobile View */
@media (max-width: 768px) {
  h1 span[style*="font-size: 28px"] {
    font-size: 24px !important;
  }
  h2 span[style*="font-size: 20px"] {
    font-size: 18px !important;
  }
  h4 {
    font-size: 18px !important;
  }
  p, 
  div[style*="font-size: 15px"], 
  div[style*="font-size: 14px"],
  div[style*="font-size: 13px"] {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .header-contact-icons {
      display: flex !important;
      flex-wrap: wrap !important;
      justify-content: center !important;
      align-items: center !important;
      gap: 12px 22px !important;
      max-width: 240px !important;
      margin: 10px auto 14px auto !important;
      padding: 0 !important;
  }

  .header-contact-icons a {
      font-size: 18px !important;
  }
  
  img[src*="doctor-app"], 
  .inside-header img[src*="doctor-app"] {
      margin-top: 5px !important;
      margin-bottom: 5px !important;
  }
}

/* Υπογράμμιση για τον σύνδεσμο credits/GeneratePress στο footer */
.site-info a,
.copyright-bar a {
    text-decoration: underline !important;
}

/* Προαιρετικά: φαίνεται η υπογράμμιση ακόμα και όταν περνάει το ποντίκι από πάνω (hover) */
.site-info a:hover,
.copyright-bar a:hover {
    text-decoration: underline !important;
}