/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
/* Decorative line before section label */
.phoenix-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phoenix-eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    flex: 0 0 32px;
    background: currentColor;
    opacity: 0.7;
}

/* Contact button details */
.phoenix-button-accent .wp-block-button__link {
    display: inline-flex;
    min-width: 270px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.phoenix-button-accent .wp-block-button__link::after {
    content: "↗︎";
    margin-left: 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.phoenix-button-accent .wp-block-button__link:hover {
    background-color: #102F3C;
    color: #FFFFFF;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .phoenix-contact-actions,
    .phoenix-contact-actions .wp-block-buttons,
    .phoenix-contact-actions .wp-block-button,
    .phoenix-contact-actions .wp-block-button__link {
        width: 100%;
    }
}

::-webkit-scrollbar-thumb {
    background-color: var(--theme-palette-color-6);
    border-radius: 20px;
}

html {
    scrollbar-color: var(--theme-palette-color-6) #164154;
}

.phoenix-project-table {
    width: 100%;
    margin: 0;
    overflow-x: auto;
    border: 1px solid #d5e3e8;
    border-radius: 6px;
    background-color: #f7fafc;
}

.phoenix-project-table table {
    width: 100%;
    min-width: 680px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Rows */
.phoenix-project-table tbody tr {
    border-bottom: 1px solid #d5e3e8;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.phoenix-project-table tbody tr:last-child {
    border-bottom: 0;
}

.phoenix-project-table tbody tr:nth-child(odd) {
    background-color: #f7fafc !important;
}

.phoenix-project-table tbody tr:nth-child(even) {
    background-color: #e0fcf3 !important;
}

/* Hover */
.phoenix-project-table tbody tr:hover {
    background-color: #d2f7ea !important;
    box-shadow: inset 4px 0 0 #10b981;
}

/* Cells */
.phoenix-project-table td {
    padding: 22px 24px;
    border: 0;
    color: #405866 !important;
    line-height: 1.55;
    vertical-align: top;
}

/* Labels */
.phoenix-project-table td:first-child {
    width: 25%;
    color: #102f3c !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Values */
.phoenix-project-table td:nth-child(2) {
    width: 75%;
    color: #405866 !important;
}

/* Links inside table */
.phoenix-project-table a {
    color: #117fa6;
    text-decoration-color: rgba(17, 127, 166, 0.35);
    text-underline-offset: 3px;
}

.phoenix-project-table a:hover {
    color: #0b7652;
}

/* Mobile */
@media (max-width: 767px) {
    .phoenix-project-table {
        overflow: visible;
        border-radius: 4px;
    }

    .phoenix-project-table table {
        min-width: 0;
        table-layout: auto;
    }

    .phoenix-project-table table,
    .phoenix-project-table tbody,
    .phoenix-project-table tr,
    .phoenix-project-table td {
        display: block;
        width: 100%;
    }

    .phoenix-project-table tr {
        padding: 20px;
    }

    .phoenix-project-table td {
        padding: 0;
    }

    .phoenix-project-table td:first-child {
        width: 100%;
        margin-bottom: 8px;
        color: #10b981 !important;
        font-size: 0.78rem;
    }

    .phoenix-project-table td:nth-child(2) {
        width: 100%;
    }
}

/* =======================================================
   PHOENIX — Partner cards
======================================================= */
.phoenix-partner-grid {
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 24px;
    align-items: stretch;
}

.phoenix-partner-grid > .phoenix-partner-card {
    display: flex;
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    flex-direction: column;
    align-self: stretch;
    justify-self: stretch;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.phoenix-partner-card:hover {
    background-color: #4194b8d4 !important;
    transform: translateY(-4px);
}

/* Ίδια περιοχή λογοτύπου σε όλες τις κάρτες */
.phoenix-partner-logo-frame {
    display: flex;
    width: 100%;
    min-height: 190px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #ffffff !important;
}

.phoenix-partner-logo-frame > .wp-block-image {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    align-items: center;
    justify-content: center;
}

.phoenix-partner-logo-frame img {
    display: block;
    width: auto;
    max-width: 78%;
    height: auto;
    max-height: 120px;
    margin: auto;
    object-fit: contain;
}

/* Το κάτω metadata μένει ευθυγραμμισμένο στον πάτο */
.phoenix-partner-meta {
    margin-top: auto !important;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

@media (max-width: 1024px) {
    .phoenix-partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .phoenix-partner-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
        gap: 20px;
    }

    .phoenix-partner-grid > .phoenix-partner-card {
        width: 100% !important;
        padding: 22px !important;
    }

    .phoenix-partner-logo-frame {
        min-height: 160px;
    }
}