/*
 Theme Name:   Lycka Child
 Theme URI:    http://lycka.bold-themes.com
 Description:  Lycka child theme
 Author:       BoldThemes
 Author URI:   http://bold-themes.com
 Template:     lycka
 Version:      1.0.0
 Tags:         one-column, right-sidebar, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  lycka-child
*/

@font-face {
    font-family: "AstyCFStd";
    src: url("./fonts/AstyCFStd/AstyCFStd-Thin.woff2") format("woff2"),;
    font-weight:200;
    font-style:normal;
    font-display:swap;
}
@font-face {
    font-family: "AstyCFStd";
    src: url("./fonts/AstyCFStd/AstyCFStd-Medium.woff2" )format("woff2");
    font-weight:400;
    font-style:normal;
    font-display:swap;
}
@font-face {
    font-family: "AstyCFStd";
    src: url("./fonts/AstyCFStd/AstyCFStd-Bold.woff2") format("woff2");
    font-weight:700;
    font-style:normal;
    font-display:swap;
}
@font-face {
    font-family: "AstyCFStd";
    src: url("./fonts/AstyCFStd/AstyCFStd-ExtraBold.woff2") format("woff2");
    font-weight:800;
    font-style:normal;
    font-display:swap;
}

/* Theme customization starts here
-------------------------------------------------------------- */

pre {
    font-family: "Inter", Arial, Helvetica, sans-serif;
}

.bt-content-holder pre {
    margin: 0 0 30px;
    white-space: pre-wrap;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, .1);
    font-family: "Inter", Arial, Helvetica, sans-serif;
}

/* Header
-------------------------------------------------------------- */
.btMenuHorizontal .mainHeader .bt-logo-area .port {
    padding-top: 10px;
}

/* Home page
-------------------------------------------------------------- */
.bt_bb_inner_step.tt_home_step .bt_bb_headline .bt_bb_headline_content {
    color: var(--accent-color, #ff9245);
}


.bt_bb_service.tt_home_info_card_heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 90px;
    margin-bottom: 8px;
    flex-direction: row;
    flex-wrap: nowrap !important;
}

.bt_bb_service.tt_home_info_card_heading .bt_bb_service_content {
    flex-grow: 0;
}

.bt_bb_image.tt_badge_wrapper_100 img {
    max-height: 96px;
    width: auto;
    max-width: 100%;
}

.tt_has_icon_list .bt_bb_icon .bt_bb_icon_holder {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}


.bt_bb_button.tt_has_text_white,
.bt_bb_button.tt_has_text_white a{
    color: #ffffff;
}

@media (max-width: 768px) {
    .ct_home_3col_top_row  .ct_home_3col_top_col .bt_bb_column_inner_content {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .ct_home_3col_top_row  .ct_home_3col_top_col .bt_bb_service.tt_home_info_card_heading {
        flex-direction: column;
        gap: 6px;
        min-height: auto;
        margin-bottom: 12px;
    }
    
    .ct_home_3col_top_row  .bt_bb_service .bt_bb_service_content .bt_bb_service_content_title {
        font-weight: 700;
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .bt_bb_size_normal.bt_bb_headline h1, .bt_bb_size_normal.bt_bb_headline h2, .bt_bb_size_normal.bt_bb_headline h3, .bt_bb_size_normal.bt_bb_headline h4, .bt_bb_size_normal.bt_bb_headline h5, .bt_bb_size_normal.bt_bb_headline h6 {
        font-size: 2.6875rem;
        font-size: clamp(20px, 10vw, 2.6875rem);
    }
    
    .bt_bb_size_small.bt_bb_headline h1, .bt_bb_size_small.bt_bb_headline h2, .bt_bb_size_small.bt_bb_headline h3, .bt_bb_size_small.bt_bb_headline h4, .bt_bb_size_small.bt_bb_headline h5, .bt_bb_size_small.bt_bb_headline h6 {
        font-size: 1.875rem;
        font-size: clamp(20px, 8vw, 1.875rem);
        line-height: 1.2;
    }
}

/* Ekpaidefsi page
-------------------------------------------------------------- */

.bt_bb_text.tt-training-intro-text {
    font-size: 1.075rem;
}

/* Responsive table container - mimics Bootstrap */
#tt_timetable.table_responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  margin-bottom: 1rem;
}

/* Optional: Add shadow scroll indication */
#tt_timetable.table_responsive::-webkit-scrollbar {
  -webkit-appearance: none;
  height: 8px;
}

#tt_timetable.table_responsive::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,.2);
  border-radius: 4px;
}

/* Basic table styling */
#tt_timetable.table_responsive table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

/* Zebra striping for better readability */
#tt_timetable.table_responsive tbody tr:nth-of-type(odd) {
  background-color: rgba(0,0,0,.02);
}

/* Hover effect */
#tt_timetable.table_responsive tbody tr:hover {
  background-color: rgba(0,0,0,.03);
}

/* Cell padding */
#tt_timetable.table_responsive th,
#tt_timetable.table_responsive .th,
#tt_timetable.table_responsive td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
  text-align: left;
}

/* Header styling */
#tt_timetable.table_responsive .th,
#tt_timetable.table_responsive thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
  background-color: #f8f9fa;
  font-weight: 600;
}

/* td:nth-child(-n+3) targets first 3 td's
#tt_timetable.table_responsive td:nth-child(1),
#tt_timetable.table_responsive td:nth-child(2),
#tt_timetable.table_responsive td:nth-child(3) 
*/
#tt_timetable.table_responsive td:nth-child(-n+3) {
    white-space: nowrap;
}

/* Responsive breakpoint - stack cells under 768px */
@media (max-width: 767.98px) {
    .tt_base_theory_wrap.tt_base_theory_wrap_right {
        margin: 10px 20px;
    }
    
  #tt_timetable.table_responsive table {
    display: block;
  }
  
  #tt_timetable.table_responsive thead,
  #tt_timetable.table_responsive tbody,
  #tt_timetable.table_responsive th,
  #tt_timetable.table_responsive td,
  #tt_timetable.table_responsive tr {
    display: block;
  }
  
  #tt_timetable.table_responsive thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  #tt_timetable.table_responsive tr {
    border-bottom: 2px solid #dee2e6;
  }
  
  #tt_timetable.table_responsive td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
    white-space: normal !important;
    text-align: left;
  }
  
  #tt_timetable.table_responsive td:before {
    content: attr(data-title);
    position: absolute;
    left: 0.75rem;
    width: 45%;
    padding-right: 10px;
    white-space: normal;
    text-align: left;
    font-weight: bold;
  }
}

/* Seminars page
-------------------------------------------------------------- */

/* Parent container - enables flex layout */
.tt_seminars_wrapper .bt_bb_row_holder {
  display: flex;
  flex-wrap: wrap;
}

/* Columns - stretch to equal height */
.tt_seminars_wrapper .bt_bb_row_holder .bt_bb_column {
  display: flex !important;
  flex-direction: column;
}

.tt_seminars_wrapper .bt_bb_row_holder .bt_bb_column .bt_bb_column_content {
  display: flex !important; 
  flex-direction: column;
  flex: 1; 
}

/* Inner content - fills remaining space */
.tt_seminars_wrapper .bt_bb_row_holder .bt_bb_column .bt_bb_column_content_inner {
  flex: 1; /* Expands to fill column height */
  display: flex;
  flex-direction: column;
}

/* Push the button to the bottom */
.tt_seminars_wrapper .bt_bb_row_holder .bt_bb_column .bt_bb_button {
  margin-top: auto;
}

/* Single Seminar/Portfolio page
-------------------------------------------------------------- */

.btPortfolioSingle .btArticleSuperMeta dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem; /* vertical & horizontal gap */
  max-width: 800px; /* adjust as needed */
  margin: 0 auto 2em; /* center the list */
}

.btPortfolioSingle .btArticleSuperMeta dt {
  flex: 0 0 40%; /* fixed width for terms (left column) */
  min-width: 40%;
  font-weight: bold; /* optional: bold for terms */
  text-align: right; /* align text to the right */
  padding-right: 1rem; /* spacing between columns */
  box-sizing: border-box;
  display: block;
}

.btPortfolioSingle .btArticleSuperMeta dd {
  flex: 1; /* takes remaining space (right column) */
  flex-basis: calc(60% - 1rem);
  margin: 0; /* remove default margin */
  padding-left: 0; /* reset padding */
  display: block;
  text-align: left;
}

/* Mobile: Stack dt & dd vertically */
@media (max-width: 620px) {
    .btPortfolioSingle .btArticleContent {
        display: flex !important;
        flex-direction: column-reverse;
    }

    .btPortfolioSingle .btArticleContent .btArticleSuperMeta {
        margin-bottom: 2em;
    }
    
    .btPortfolioSingle .btArticleSuperMeta dt {
        flex: 0 0 100%; /* Full width */
        text-align: left; /* Align left for better readability */
        padding-right: 0;
        margin-top: 0.5rem; /* Space between stacked items */
        background: #f5f5f5;
    }
    
    .btPortfolioSingle .btArticleSuperMeta dd {
        flex: 0 0 100%; /* Full width */
        padding-left: 0;
        margin-bottom: 0.5rem; /* Space between stacked items */
    }
}

/* Epikoinwnia
-------------------------------------------------------------- */
.cct-map-wrapper {
  position: relative;
  width: 500px;   /* same as iframe */
  height: 500px;  /* same as iframe */
  overflow: hidden;
}

.cct-map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cct-map-wrapper .cct-map-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* allow clicks to pass through to the map */
}


.btContact .btContactAccept .wpcf7-list-item-label:before {
    border: 2px solid #aca3a6;
}

.bt_bb_contact_form_7.bt_bb_input_colors_dark input:not([type='checkbox']):not([type='radio']):not([type='submit']), 
.bt_bb_contact_form_7.bt_bb_input_colors_dark textarea, 
.bt_bb_contact_form_7.bt_bb_input_colors_dark .fancy-select .trigger, 
.bt_bb_contact_form_7.bt_bb_input_colors_dark select {
    border: 1px solid !important;
    border-color: #aca3a6 !important;
}

.fancy-select ul.options li {
    margin: 0 0 .5em 0;
}