/******************************************
 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 {
    -moz-box-shadow: inset 0px 1px 0px 0px #97c4fe;
    -webkit-box-shadow: inset 0px 1px 0px 0px #97c4fe;
    box-shadow: inset 0px 1px 0px 0px #97c4fe;
    background: -webkit-gradient(
        linear,
        left top,
        left bottom,
        color-stop(0.05, #3a678d),
        color-stop(1, #1e62d0)
    );
    background: -moz-linear-gradient(center top, #1e62d0 5%, #3a678d 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#3A678D', endColorstr='#1e62d0');
    background-color: #3a678d;
    -webkit-border-top-left-radius: 0px;
    -moz-border-radius-topleft: 0px;
    border-top-left-radius: 0px;
    -webkit-border-top-right-radius: 0px;
    -moz-border-radius-topright: 0px;
    border-top-right-radius: 0px;
    -webkit-border-bottom-right-radius: 0px;
    -moz-border-radius-bottomright: 0px;
    border-bottom-right-radius: 0px;
    -webkit-border-bottom-left-radius: 0px;
    -moz-border-radius-bottomleft: 0px;
    border-bottom-left-radius: 0px;
    text-indent: 0;
    border: 1px solid #337fed;
    display: inline-block;
    color: #ffffff;
    font-family: Verdana;
    font-size: 18px;
    font-weight: bold;
    font-style: normal;
    height: 40px;
    line-height: 40px;
    width: 200px;
    text-decoration: none;
    text-align: center;
    text-shadow: 1px 1px 0px #1570cd;
}
.inscriere:hover {
    background: -webkit-gradient(
        linear,
        left top,
        left bottom,
        color-stop(0.05, #1e62d0),
        color-stop(1, #3d94f6)
    );
    background: -moz-linear-gradient(center top, #1e62d0 5%, #3d94f6 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e62d0', endColorstr='#3d94f6');
    background-color: #1e62d0;
}
.inscriere:active {
    position: relative;
    top: 1px;
}
.autentificare {
    -moz-box-shadow: inset 0px 1px 0px 0px #fed897;
    -webkit-box-shadow: inset 0px 1px 0px 0px #fed897;
    box-shadow: inset 0px 1px 0px 0px #fed897;
    background: -webkit-gradient(
        linear,
        left top,
        left bottom,
        color-stop(0.05, #f6b33d),
        color-stop(1, #d29105)
    );
    background: -moz-linear-gradient(center top, #f6b33d 5%, #d29105 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6b33d', endColorstr='#d29105');
    background-color: #f6b33d;
    -webkit-border-top-left-radius: 0px;
    -moz-border-radius-topleft: 0px;
    border-top-left-radius: 0px;
    -webkit-border-top-right-radius: 0px;
    -moz-border-radius-topright: 0px;
    border-top-right-radius: 0px;
    -webkit-border-bottom-right-radius: 0px;
    -moz-border-radius-bottomright: 0px;
    border-bottom-right-radius: 0px;
    -webkit-border-bottom-left-radius: 0px;
    -moz-border-radius-bottomleft: 0px;
    border-bottom-left-radius: 0px;
    text-indent: 0;
    border: 1px solid #eda933;
    display: inline-block;
    color: #ffffff;
    font-family: Verdana;
    font-size: 18px;
    font-weight: bold;
    font-style: normal;
    height: 40px;
    line-height: 40px;
    width: 200px;
    text-decoration: none;
    text-align: center;
    text-shadow: 1px 1px 0px #cd8a15;
}
.autentificare:hover {
    background: -webkit-gradient(
        linear,
        left top,
        left bottom,
        color-stop(0.05, #d29105),
        color-stop(1, #ff9900)
    );
    background: -moz-linear-gradient(center top, #d29105 5%, #ff9900 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#d29105', endColorstr='#FF9900');
    background-color: #ff9900;
}
.autentificare:active {
    position: relative;
    top: 1px;
}

/* ============================================================
   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;
}

/* ----------------------------------------------------------------
   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 .slides,
    #showcase .slides li {
        width: 100% !important;
        height: auto !important;
        /* no min-height — conflicts with the plugin's autoHeight option */
    }

    #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 a.browse {
        width: 30px;
        height: 30px;
        top: 50%;
        margin-top: -15px;
    }
    #showcase a.prev {
        left: 5px;
    }
    #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;
    }
}
