/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* hide the news logo block images if none there - stop the js jumping the empty block */
.logoblock {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
	background-color:#fff;
}

ul.wp-block-list li {
    margin-bottom: 10px;
}

.stk-button:before {
    /*border-radius: 8px !important;*/
}

.logoblock img {
    visibility: hidden;
    opacity: 0;
}

/* Remove default bottom margin from resources list */
li.type-resource.status-publish.hentry {
    margin-bottom: 10px;
}

.wp-block-group.is-layout-grid.wp-container-core-group-is-layout-ac25bc9e.wp-block-group-is-layout-grid .wp-block-stackable-image {
    border: 1px solid #efefef;
}

/* set height of map on desktop to height of left column */
.stk-block-map iframe, .wp-block-stackable-map.stk-block-map.stk-block.stk-eaa8473, .stk-block-content.stk-inner-blocks.stk-0f91ba4-inner-blocks {
    height: 100% !important;
	min-height:400px;
}

/* aign and size news logos */
.stk-37474bd figure span img.stk-img {
    width: auto !important;
    margin
}

h1.cookie-policy-h1 {
    font-size: 44px;
}

.cookie-policy-date-container p {
    margin-bottom: 5px;
    color: #666666;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner {
    border-radius: 28px;
    padding: 8px 28px 4px;
	color:#000000;
}
input.wpcf7-form-control.wpcf7-submit.has-spinner:hover {
	color:#ffffff;
	border: none;
}
input.wpcf7-form-control.wpcf7-text, textarea.wpcf7-form-control.wpcf7-textarea {
    background: #ffffff;
}
form.wpcf7-form.init p {
    margin-bottom: 10px;
}

input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required, input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required, input.wpcf7-form-control.wpcf7-text, textarea.wpcf7-form-control.wpcf7-textarea {
    border: none;
} 

li.menu-item a.ct-menu-link {
    padding-top: 28px !important;
}
/* search icon padding and positioning */
li#menu-item-7274 {
    padding: 0px 20px 7px 20px !important;
}

li#menu-item-6844 a {
    padding-right: 20px;
}
/* Normal header */
.ct-header .ct-header-socials {
    transform: translateY(1px);
}

/* Sticky header */
.ct-header.ct-sticky .ct-header-socials {
    transform: translateY(-4px);
}

/* prevent sponsor logo flashes on team individual pages */
.sponsor1:has(img[src=""]),
.sponsor2:has(img[src=""]),
.sponsor3:has(img[src=""]) {
    display: none !important;
}

button.ct-header-search.ct-toggle {
    background-color: #fff !important;
    padding: 19px 10px 1px 10px !important;
}

.ct-header-search[data-id="search"] {
    display: none !important;
}



nav#header-menu-1 {
    background-color: #ffffff;
}

button.ct-header-search.ct-toggle {
    background-color: #ffffff;
    height: 100%;
    margin: 0;
    top: 0;
}


/* News post listing read more links on homepage */
a.stk-block-posts__readmore.has-text-color {
    width: fit-content;
    padding: 8px 28px 4px 28px;
    border-radius: 28px;
    background-color: #F2C318;
}

a.stk-block-posts__readmore.has-text-color:hover {
    background-color: #d5a700;
}

/* Mailchimp signup form styling */
/* Wrap both fields on one line */
.mc4wp-form-fields p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* Email field */
.signupfield {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc !important;
    border-radius: 30px 0 0 30px;
    font-size: 14px;
    outline: none;
}

/* Submit button */
.signupsubmit {
    padding: 8px 28px 4px 28px !important;
    background: #f6bd14;
    color: #000 !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 30px 30px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    outline: none;
}

.signupsubmit:hover {
    color: #F2C317 !important;
}

/* Match heights perfectly */
.signupfield {
    height: 46px; /* adjust if needed */
}

/* Remove button focus outline (optional) */
.signupsubmit:focus {
    outline: none;
}

.mc4wp-alert.mc4wp-success p {
    font-size: 14px;
    margin: 10px;
}

.wp-block-group.is-nowrap.is-layout-flex p:empty {
    display: none !important;
}


/* ============================================================
   TEAM ARCHIVE — FULL + FINAL CSS
   Matching your bottom-row screenshot (wide image + 4 columns)
=============================================================== */


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

.tcb-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
}

@media (max-width: 1024px) {
    .tcb-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .tcb-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .tcb-team-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================
   CARD BASE
============================ */

.tcb-team-card {
    display: flex;
    flex-direction: column;
    border: none;
}

.tcb-team-card.is-hidden {
    display: none !important;
}

/* Text turns black when hovering the card */
.tcb-team-card:hover .tcb-team-card__text,
.tcb-team-card:hover .tcb-team-card__name,
.tcb-team-card:hover .tcb-team-card__position {
    color: #000 !important;
    text-shadow: none !important;
}

/* ============================
   IMAGE SECTION
   -> Landscape ratio matching your screenshot
============================ */

.tcb-team-card__media {
    position: relative;
    width: 100%;
    padding-top: 60%;  /* WIDE 16:9-like look */
    overflow: hidden;
}

.tcb-team-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* allows small top/bottom cropping */
    transition: filter 0.25s ease;
}

.tcb-team-card:hover .tcb-team-card__img {
    filter: brightness(0.75);
}


/* ============================
   QUOTE OVERLAY ON HOVER
============================ */

.tcb-team-card__quote {
    position: absolute;
    inset: 0;
    background: #f1c536;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.tcb-team-card:hover .tcb-team-card__quote {
    opacity: 1;
}

.tcb-team-card__quote-text {
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.2;
    padding-bottom: 30px;
    margin: 0;
}


/* ============================
   NAME + POSITION TEXT
============================ */

.tcb-team-card__text {
    position: absolute;
    left: 1.25rem;
    bottom: 1.15rem;
    z-index: 3;
    color: #fff;
}

.tcb-team-card__name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

h3.tcb-team-card__name {
    margin: 0;
}

.tcb-team-card__position {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
}


/* ============================
   OVERLAY LINK (clickable area)
============================ */

.tcb-team-card__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 4;
    text-indent: -9999px;
}


/* ============================
   BUTTON ROW (under the image)
============================ */

.tcb-team-card__buttons {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0.25rem 0;
    align-items: center;
    flex-wrap: nowrap;
}


/* ============================
   BASE BUTTON
============================ */

.tcb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.55rem 1.1rem 0.35rem 1.1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}


/* ============================
   PLAY VIDEO BUTTON (primary)
============================ */

.tcb-btn--primary {
    background: #111;
    color: #fff;
}

.tcb-team-card:hover .tcb-btn--primary {
    background: #F4C83E;
    color: #111;
}


/* ============================
   VCARD BUTTON (ghost)
============================ */

.tcb-btn--ghost {
    background: none;
    color: #111;
	border:1px solid #bbb;
}

.tcb-btn--ghost:hover {
    background: #111;
    color: #fff;
}


/* ============================
   LINKEDIN BUTTON (icon)
============================ */

.tcb-btn--icon {
    width: 30px;
    height: 30px;
    padding: 0;
    background: #fff;
}

.tcb-btn--icon:hover {
    background: #aaa;
}

.tcb-btn--icon:hover .tcb-icon {
    fill: #fff;
}

.tcb-icon {
    width: 18px;
    height: 18px;
    fill: #111;
    pointer-events: none;
}


/* ============================
   FILTER BUTTONS
============================ */

.tcb-team-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tcb-team-filter-button {
    border: 1px solid #111;
    border-radius: 25px;
    padding: 6px 1.25rem 4px;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
color: #000;
	background-color: #F1F1F1;
}

.tcb-team-filter-button:hover,
.tcb-team-filter-button.is-active {
    background: #111;
    color: #F2C317;
    border-radius: 25px;
}


.tcb-video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999; /* very high */
}

.tcb-video-overlay.is-visible {
    display: flex;
}

/* Ensure full-size responsive video */
.tcb-video-modal {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.tcb-video-frame-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.tcb-video-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Close button */
.tcb-video-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 999999999;
}

/* FRONTEND divider - orange */
.stk-block.stk-block-divider hr.stk-block-divider__hr {
    width: 40px !important;
    height: 6px !important;
    max-width: none !important;

    background-color: #F2C317;
    border: none !important;

}

/* Outer wrapper */
.agathos-related-news {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 15px;
    row-gap: 15px;

    justify-items: center; /* critical */
}

/* Individual grid item */
.agathos-related-news__item {
    width: 100%;
    max-width: 418px;
	margin-bottom: 20px;
}

/* Make sure article itself doesn’t stretch */
.agathos-related-news__article {
    width: 100%;
}

/* Date / time colour */
.agathos-related-news__meta,
.agathos-related-news__meta time {
    color: #bbbbbb;
}

/* Read more button colour */
.agathos-related-news__readmore {
    color: #333333;
}

/* Title hover state */
.agathos-related-news__title a:hover {
    color: #ffffff;
}

.agathos-related-news__title {
    margin-bottom: 8px !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .agathos-related-news {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 689px) {
    .agathos-related-news {
        grid-template-columns: 1fr;
    }
	
nav[class*=menu] .ct-menu-link {
    color: #ffffff ;
    --theme-icon-color: #ffffff !important;
}
	
}

/* thicker menu bottom border */
.ct-header {
  --menu-indicator-height: 6px;
}

/* remove gap below search icon */
li#menu-item-7274 {
    padding-bottom: 0 !important;
	    margin-top: -8px;
}

/*fix header social icon */
[data-icons-type*=outline] .ct-icon-container {
    border: 1px solid var(--background-color);
    border-radius: 10px !important;
}

footer a:hover {
    color: #ffffff !important;
}

a.next.page-numbers, a.prev.page-numbers {
    border: 1px solid #000;
    border-radius: 25px;
    padding: 6px 28px 4px 28px;
}

a.next.page-numbers:hover, a.prev.page-numbers:hover {
color: #bbbbbb;
    background-color: #000;
}