/******************************************
 CUSTOM STYLESHEET
*******************************************/

/*
* You can place your custom CSS statements in this file, after this message.
* It is better to write everything custom here because this file won't be replaced during updates.
*
* Simply copy an existing style from style.css to this file, and modify it to your liking.
*/

.info,
.notice {
    background-color: #fff !important;
    color: inherit !important;
    border: 0px !important;
    font-size: 14px !important;
}
#cntctfrm_contact_form input.text,
#cntctfrm_contact_message,
#cntctfrm_contact_name,
#cntctfrm_contact_email,
#cntctfrm_contact_subject {
    border: 1px solid !important;
    height: 25px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    width: 320px !important;
    border-color: #464646 !important;
    border-radius: 3px 3px 3px 3px;
}
#cntctfrm_contact_form textarea {
    border: 1px solid !important;
    height: 100px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    width: 320px !important;
    border-color: #464646 !important;
    border-radius: 3px 3px 3px 3px;
}
.inscold {
    position: relative;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: 60px;
    border: 2px solid #38b7ee;
    border-radius: 4px 4px 4px 4px;
    background-color: #38b7ee;
    box-shadow: 0px 0px 2px 0px #333333;
}
.inscriere {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    margin: 0 0 10px;
    border: 1px solid #2a5f87;
    border-radius: 10px;
    background: linear-gradient(180deg, #4b8fbd 0%, #2f6288 100%);
    box-shadow: 0 10px 22px rgba(36, 84, 119, 0.2);
    color: #ffffff;
    font-family: Verdana, sans-serif;
    font-size: 15px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    text-shadow: none;
    box-sizing: border-box;
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        background-color 0.18s ease;
}
.inscriere:hover {
    background: linear-gradient(180deg, #5b9ccc 0%, #2f6f9e 100%);
    box-shadow: 0 14px 28px rgba(36, 84, 119, 0.26);
    transform: translateY(-1px);
    color: #ffffff;
}
.inscriere:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(36, 84, 119, 0.2);
}
.autentificare {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
    margin: 0 0 10px;
    border: 1px solid #d47a1d;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffbf47 0%, #ea8b22 100%);
    box-shadow: 0 10px 22px rgba(199, 114, 24, 0.22);
    color: #ffffff;
    font-family: Verdana, sans-serif;
    font-size: 15px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    text-shadow: none;
    box-sizing: border-box;
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        background-color 0.18s ease;
}
.autentificare:hover {
    background: linear-gradient(180deg, #ffca5c 0%, #f28b16 100%);
    box-shadow: 0 14px 28px rgba(199, 114, 24, 0.28);
    transform: translateY(-1px);
    color: #ffffff;
}
.autentificare:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(199, 114, 24, 0.22);
}

.textwidget .autentificare:last-child,
.textwidget .inscriere:last-child {
    margin-right: 0;
}

@media (max-width: 767px) {
    .inscriere,
    .autentificare {
        display: flex;
        width: 100%;
        margin-right: 0;
    }
}

/* ============================================================
   RESPONSIVE STYLES — radped Theme
   Breakpoints:
   ● max-width: 980px  →  fluid container (remove fixed 960px wrap)
   ● max-width: 767px  →  single-column, mobile navigation
   ● max-width: 480px  →  small phone adjustments
   Desktop layout (> 980px) is completely unchanged.
   ============================================================ */

/* Hide hamburger on desktop */
#mobile-menu-toggle {
    display: none;
}

/* ----------------------------------------------------------------
   Slideshow baseline
   Keep the slider fluid on desktop too, so the same rules apply
   before responsive breakpoints kick in.
   ---------------------------------------------------------------- */
#showcase {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
}

#showcase:not(.metaslider-showcase) .slides,
#showcase:not(.metaslider-showcase) .slides li {
    width: 100% !important;
    height: auto !important;
}

#showcase:not(.metaslider-showcase) .slides li img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}

.metaslider-showcase {
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 981px) {
    #showcase:not(.metaslider-showcase) .slides,
    #showcase:not(.metaslider-showcase) .slides li,
    #showcase:not(.metaslider-showcase) .slides_control {
        height: 300px !important;
        max-height: 300px;
    }

    #showcase:not(.metaslider-showcase) .slides li,
    #showcase:not(.metaslider-showcase) .slides_control {
        overflow: hidden;
    }

    #showcase:not(.metaslider-showcase) .slides li {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    #showcase:not(.metaslider-showcase) .slides li img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 300px !important;
    }

    #showcase:not(.metaslider-showcase) a.browse {
        top: 50%;
        margin-top: -20px;
    }

    #showcase:not(.metaslider-showcase) a.prev {
        left: 16px;
    }

    #showcase:not(.metaslider-showcase) a.next {
        right: 16px;
    }

}

/* ----------------------------------------------------------------
   1. FLUID CONTAINER  (≤ 980px)
   Remove the hard 960px width and switch to a fluid max-width box.
   Scale fixed-pixel column widths to percentage equivalents of the
   original 960px grid so proportions are preserved on mid screens:
     narrow  200px / 960px = 20.833%
     content 500px / 960px = 52.083%
     double  730px / 960px = 76.042%
     margin   30px / 960px =  3.125%
   ---------------------------------------------------------------- */
@media (max-width: 980px) {
    #wrap div.wrap {
        width: auto !important;
        max-width: 960px;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    /* Proportional column widths */
    #content div.column {
        margin-right: 3.125%;
    }
    #content div.column-last {
        margin-right: 0;
    }
    #content div.column-narrow {
        width: 20.833%;
    }
    #content div.column-content {
        width: 52.083%;
    }
    #content div.column-double {
        width: 76.042%;
    }
    #content div.column-full {
        width: 100%;
    }

    /* All content images respect their containers */
    #content div.column-content img,
    #content div.column-double img,
    #content div.column-full img {
        max-width: 100%;
        height: auto;
    }

    /* Fluid slideshow — edge-to-edge, no side padding */
    #homeGallery div.wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }
    #homeGallery {
        overflow: hidden;
    }
    #showcase {
        width: 100%;
        overflow: hidden;
    }
    #showcase:not(.metaslider-showcase) .slides,
    #showcase:not(.metaslider-showcase) .slides li {
        width: 100% !important;
        height: auto !important;
        /* no min-height — conflicts with the plugin's autoHeight option */
    }

    #showcase:not(.metaslider-showcase) .slides li img {
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        display: block;
    }
    /* Navigation arrows: smaller and better positioned on narrow screens */
    #showcase:not(.metaslider-showcase) a.browse {
        width: 30px;
        height: 30px;
        top: 50%;
        margin-top: -15px;
    }
    #showcase:not(.metaslider-showcase) a.prev {
        left: 5px;
    }
    #showcase:not(.metaslider-showcase) a.next {
        right: 5px;
    }

    /* Logo shrinks gracefully */
    #logo {
        width: 65%;
    }
}

/* ----------------------------------------------------------------
   2. TABLET / MOBILE  (≤ 767px)  — single-column stacked layout
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    /* Prevent any element from causing horizontal overflow */
    #wrap {
        overflow-x: hidden;
    }

    /* -- Header ---------------------------------------------------- */
    #header {
        padding: 10px 0 15px;
    }

    #logo {
        width: 100% !important;
        float: none;
        font-size: 11px;
        text-align: center;
    }

    /* Logo image: override inline style="float:left;padding-right:15px"
       so the image stacks vertically above the site title on mobile.   */
    #logo img {
        float: none !important;
        padding-right: 0 !important;
        display: block;
        max-height: 65px;
        width: auto;
        max-width: 100%;
        margin: 0 auto 6px;
    }
    /* Make the anchor a block so the image sits on its own line, centered */
    #logo a {
        display: block;
        text-align: center;
    }

    #logo h1 {
        font-size: 26px;
    }
    #tagline {
        margin-top: 0; /* reset the -6px pull from style.css */
        padding-left: 0; /* reset the 132px desktop indent */
    }
    #logo #tagline {
        font-size: clamp(
            10px,
            3.5vw,
            18px
        ); /* fluid: 18px@514px → 11px@320px */
        padding-left: 0;
        margin-top: 2px;
        line-height: 1.35;
        letter-spacing: 0.04em;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .org-tagline {
        font-size: clamp(8px, 2.2vw, 10px);
        line-height: 1.4;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    #search {
        float: none;
        clear: both;
        height: auto;
        width: 100%;
        margin: 8px 0 4px;
        position: static;
    }
    #search #s {
        width: 75%;
    }

    #social {
        float: none;
        clear: both;
        display: block;
        margin: 4px 0 6px;
    }
    #social li {
        float: left;
    }

    /* -- Mobile navigation hamburger ------------------------------ */
    #mobile-menu-toggle {
        display: block;
        background-color: #3a678d;
        color: #fff;
        border: none;
        padding: 0 15px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        width: 100%;
        height: 42px;
        line-height: 42px;
        text-align: left;
        letter-spacing: 0.04em;
        box-sizing: border-box;
    }
    #mobile-menu-toggle:hover,
    #mobile-menu-toggle:focus {
        background-color: #2e5270;
        outline: none;
    }

    /* Top-level menu: hidden by default, shown when .menu-open toggled */
    ul#menuhead {
        display: none !important;
        height: auto;
        line-height: normal;
        position: static;
        background-color: #3a678d;
    }
    ul#menuhead.menu-open {
        display: block !important;
    }

    /* All top-level items stacked */
    ul#menuhead > li {
        float: none;
        display: block;
        border-right: none;
        border-bottom: solid 1px rgba(255, 255, 255, 0.15);
        line-height: 42px;
    }

    /* Sub-menus: always visible inline on mobile, indented */
    ul#menuhead ul {
        position: static !important;
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        top: auto;
        left: auto;
        background-color: #2e5270;
    }
    ul#menuhead ul li {
        float: none;
        display: block;
        line-height: 38px;
        border-bottom: solid 1px rgba(255, 255, 255, 0.1);
    }
    ul#menuhead ul a {
        display: block;
        float: none;
        width: 100%;
        padding-left: 30px;
        box-sizing: border-box;
        border: none;
        border-bottom: none;
        background-color: #2e5270;
    }
    ul#menuhead ul a:hover {
        background-color: #e98a2a;
    }
    ul#menuhead li ul ul {
        left: 0 !important;
        margin: 0;
        background-color: #264459;
        padding-left: 15px;
    }

    /* -- Columns: fully stacked ----------------------------------- */
    #content div.column,
    #content div.column-content,
    #content div.column-double,
    #content div.column-full,
    #content div.column-narrow {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
        display: block;
        box-sizing: border-box;
    }

    /* Hide purely decorative spacer narrow divs (aria-hidden="true") */
    #content div.column-narrow[aria-hidden="true"] {
        display: none !important;
    }

    /* Hide left sidebar on mobile:
       - NOT the spacer (aria-hidden="true")
       - NOT the right sidebar (column-last)
       Only the real left sidebar narrow column is targeted. */
    #content div.column-narrow:not([aria-hidden="true"]):not(.column-last) {
        display: none !important;
    }

    /* Right sidebar narrow div: add separator when stacked below content */
    #content div.column-narrow.column-last {
        border-top: solid 1px #ebebeb;
        padding-top: 15px;
        margin-top: 10px;
    }

    /* Headings scale for narrower containers */
    div.column-content h1 {
        font-size: 30px;
        line-height: 36px;
    }
    div.column-content h2 {
        font-size: 22px;
        line-height: 28px;
    }
    div.column-content h3 {
        font-size: 20px;
        line-height: 26px;
    }

    /* -- Post list thumbnails ------------------------------------- */
    .posts .post div.thumb {
        float: none;
        margin: 0 0 10px;
    }

    /* -- Footer --------------------------------------------------- */
    #footerColumn {
        float: none !important;
        width: 100% !important;
        margin: 0 0 12px;
        padding-bottom: 12px;
        border-bottom: solid 1px #f0f0f0;
    }

    /* Footer widget title */
    #footerColumn p.heading,
    #footerColumn h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }

    /* Footer navigation: 2-column grid — halves vertical space */
    ul#menufooter {
        column-count: 2;
        column-gap: 20px;
        margin-bottom: 12px;
        padding: 0;
    }
    ul#menufooter > li {
        display: block !important;
        margin-right: 0;
        margin-bottom: 6px;
        line-height: 1.5;
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
    }
    ul#menufooter > li a {
        font-size: 12px;
    }

    /* Copyright text: allow natural wrapping, smaller font */
    #footer p.copy {
        font-size: 10px;
        line-height: 1.6;
        margin-top: 8px;
    }

    /* -- Misc ----------------------------------------------------- */
    #crumbs {
        margin: 8px 0;
    }

    /* Comment form inputs full-width */
    #commentform input {
        width: 100%;
        box-sizing: border-box;
    }

    /* Search form in searchform.php */
    #searchform input#s {
        width: calc(100% - 70px);
    }

    /* Breadcrumb area padding */
    #crumbs div.wrap {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    /* -- WooCommerce 2-column grid on tablet ---------------------- */
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: 47% !important;
        margin-right: 4% !important;
    }
    .woocommerce ul.products li.product:nth-child(2n),
    .woocommerce-page ul.products li.product:nth-child(2n) {
        margin-right: 0 !important;
    }
}

/* ----------------------------------------------------------------
   3. SMALL PHONE  (≤ 480px)
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
    #header {
        padding: 8px 0 10px;
    }

    #logo h1 {
        font-size: 20px;
    }
    /* #logo #tagline font-size handled by clamp() in the 767px block above */

    div.column-content h1 {
        font-size: 24px;
        line-height: 30px;
    }
    div.column-content h2 {
        font-size: 18px;
        line-height: 24px;
    }
    div.column-content h3 {
        font-size: 16px;
        line-height: 22px;
    }

    #search #s {
        width: 68%;
    }

    /* Footer navigation: stack links vertically */
    #footer ul li {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
    }
    #footer div.wrap {
        padding: 12px 15px 8px;
    }

    /* Gallery widget: 2 per row on small phones */
    .widget ul.gallery li {
        width: calc(50% - 10px);
    }

    /* WooCommerce: single column on small phones */
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: 100% !important;
        margin-right: 0 !important;
        float: none !important;
    }

    /* WooCommerce single product summary */
    .woocommerce div.product div.summary,
    .woocommerce div.product div.images {
        width: 100% !important;
        float: none !important;
    }
}
