/*
 * Δήμος Χάλκης — portal v2.
 * Hero card over the video, larger service boxes and a calmer text column on
 * inner pages. Loaded by mu-plugins/chalki-portal-v2.php when chalki_v2().
 */

:root {
    --ch-navy: #1e3a63;
    --ch-blue: #2F548B;
    --ch-blue-soft: #4a6fa5;
    --ch-ink: #1d2b36;
    --ch-muted: #4a5a68;
    --ch-line: #e3e8ee;
    --ch-soft: #f3f6fa;
}

/* ------------------------------------------------------------------ Hero */

/* The video sits behind a dark wash so white text stays readable whatever
   frame is showing. */
#slider-section .front-slider-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 28, 50, .38) 0%, rgba(10, 28, 50, .52) 100%);
    pointer-events: none;
}

#slider-section .ch-hero-wrap {
    position: absolute !important;
    z-index: 3;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(760px, calc(100% - 40px)) !important;
    display: block !important;
}

.ch-hero-card {
    background: rgba(12, 40, 70, .36);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    padding: 34px 34px 30px;
    box-shadow: 0 18px 50px rgba(6, 22, 40, .28);
    text-align: center;
}

/* The theme prints the hero message in #search-title. */
#slider-section .ch-hero-card #search-title {
    display: block;
    font-family: Inter, sans-serif;
    font-size: clamp(24px, 2.6vw, 36px) !important;
    font-weight: 800 !important;
    line-height: 1.22 !important;
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
    margin: 0 0 20px !important;
    text-align: center;
}

/* Ajax Search Lite, full width inside the card. */
.ch-hero-card .asl_w_container,
.ch-hero-card div[id^="ajaxsearchlite"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* Ajax Search Lite ships a chunky red-bordered pill; make it a plain white
   field that belongs to the card. */
.ch-hero-card .probox {
    box-sizing: border-box !important;
    height: 54px !important;
    padding: 0 6px 0 20px !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 20px rgba(6, 22, 40, .18) !important;
    display: flex !important;
    align-items: center !important;
}

.ch-hero-card .probox .proinput {
    flex: 1 1 auto !important;
    height: auto !important;
    padding: 0 !important;
}

.ch-hero-card .probox .proinput form,
.ch-hero-card .probox .proinput input.orig,
.ch-hero-card .probox .proinput input.autocomplete {
    height: 40px !important;
    line-height: 40px !important;
    font-size: 16px !important;
    color: var(--ch-ink) !important;
}

.ch-hero-card .probox .promagnifier {
    flex: 0 0 auto !important;
    width: 44px !important;
    height: 44px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.ch-hero-card .probox .promagnifier .innericon svg {
    fill: var(--ch-blue) !important;
}

/* gov.gr call to action under the search. */
.ch-gov-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto 0;
    padding: 13px 26px;
    border-radius: 999px;
    background: #fff;
    color: var(--ch-navy) !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(6, 22, 40, .22);
    transition: transform .18s, box-shadow .18s, background .18s;
}

.ch-gov-cta:hover,
.ch-gov-cta:focus-visible {
    background: #fff;
    color: var(--ch-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(6, 22, 40, .3);
}

.ch-gov-cta .ch-gov-mark {
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ch-blue);
}

.ch-gov-cta > span:not(.ch-gov-mark):not(.ch-gov-arrow) {
    min-width: 0;
}

/* The theme sets hyphens:auto and word-break:break-word on hero links, which
   split "gov.gr" across two lines and hyphenated the label on phones. */
#slider-section .ch-gov-cta,
#slider-section .ch-gov-cta > span {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

#slider-section .ch-gov-cta .ch-gov-mark {
    white-space: nowrap !important;
}

.ch-gov-cta .ch-gov-arrow {
    font-weight: 700;
}

/* --------------------------------------------------- "Τι θα θέλατε..." boxes */

#need-to {
    padding: 56px 0 44px !important;
}

#need-to .boxes {
    display: flex;
    justify-content: center;
    gap: 28px !important;
}

#need-to .box {
    flex: 1 1 320px;
    max-width: 380px;
    min-height: 230px;
    padding: 28px 24px;
    border-radius: 18px;
    border: 1px solid var(--ch-line);
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 45, 80, .07);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

#need-to .box:hover {
    transform: translateY(-4px);
    border-color: #b9cde0;
    box-shadow: 0 14px 32px rgba(15, 45, 80, .13);
}

#need-to .box .image img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

#need-to .box .info .basic-info {
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ch-navy);
}

#need-to .box .info .more-info {
    font-size: 15px !important;
    line-height: 1.55;
    color: var(--ch-muted);
}

/* ----------------------------------------------------------- Inner pages */

body:not(.home) #page-body,
body:not(.home) #post-body {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    font-family: Inter, sans-serif;
    color: var(--ch-ink);
}

body:not(.home) #page-body p,
body:not(.home) #page-body li,
body:not(.home) #post-body p,
body:not(.home) #post-body li {
    font-size: 17px;
    line-height: 1.7;
}

body:not(.home) #page-body p.ch-subhead,
body:not(.home) #post-body p.ch-subhead,
body:not(.home) #page-body h2,
body:not(.home) #page-body h3,
body:not(.home) #post-body h2,
body:not(.home) #post-body h3 {
    color: var(--ch-navy);
    font-weight: 700;
    line-height: 1.3;
    margin: 1.6em 0 .5em;
}

body:not(.home) #page-body p.ch-subhead,
body:not(.home) #post-body p.ch-subhead {
    font-size: 19px;
}

body:not(.home) #page-body h2,
body:not(.home) #post-body h2 {
    font-size: 24px;
}

body:not(.home) #page-body h3,
body:not(.home) #post-body h3 {
    font-size: 20px;
}

body:not(.home) #page-body img,
body:not(.home) #post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

body:not(.home) #page-body table,
body:not(.home) #post-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

body:not(.home) #page-body th,
body:not(.home) #page-body td,
body:not(.home) #post-body th,
body:not(.home) #post-body td {
    border: 1px solid var(--ch-line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

body:not(.home) #page-body th,
body:not(.home) #post-body th {
    background: var(--ch-soft);
}

/* ---------------------------------------------------------------- Mobile */

@media screen and (max-width: 900px) {
    #need-to .boxes {
        flex-direction: column;
        align-items: center;
        gap: 18px !important;
    }

    #need-to .box {
        width: 100%;
        max-width: 520px;
        min-height: 0;
    }
}

@media screen and (max-width: 700px) {
    .ch-hero-card {
        padding: 24px 20px 22px;
        border-radius: 20px;
    }

    .ch-gov-cta {
        /* inline-flex + width:100% + padding overflows the card without this */
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        gap: 8px;
        font-size: 15px;
        padding: 12px 14px;
    }

    .ch-gov-cta .ch-gov-mark {
        font-size: 14px;
    }

    body:not(.home) #page-body p,
    body:not(.home) #page-body li,
    body:not(.home) #post-body p,
    body:not(.home) #post-body li {
        font-size: 16px;
    }
}
