/* 
Theme Name: I.Terpo Theme
Text Domain: I.Terpo Theme
Version: 1.9.9
Description: Standard Theme - Prework
Tags: Responsive, Dynamic
Author: I.Terpo
Author URI: https://iterpo.gr
*/

body {
    background-color: #fff;
}

/* ----------------------------- NAV / HEADER (Bootstrap-friendly) ------------------------------------------- */

/* Header */
#primary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: transparent;
    border-radius: 10px;
    outline: 1px solid #000000; 
    outline-offset: -5px;
    margin-bottom: 30px !important;
}

/* Logo */
#logo-primary {
    width: 300px;
    height: auto;
    max-width: 100%;
}

/* Top-level nav alignment (Bootstrap provides most of the work) */
.navbar {
    padding: 0.6rem 0;
}

/* Navbar items gap */
.navbar-nav {
    gap: 1.25rem; /* use reasonable gap; override based on project design */
}

/* Nav links */
.navbar-nav .nav-link,
.menu-the-main-menu-container a {
    display: block;
    padding: .35rem .5rem;
    white-space: nowrap;
    font-size: 20px;
    color: inherit;
    text-decoration: none;
}

.dropdown {
    display: flex;
}

/* Utility colors for top-level items (keep if used) */
.redm a{ color: #be2639!important; }
.bluem a{ color: #004aad!important; }
.lgreenm a{ color: #9aca56!important; }
.bgreenm a{ color: #40775f!important; }

/* Dropdowns (bootstrap-compatible) */
.dropdown-menu {
    display: none;
    position: absolute;     /* absolute for desktop hover */
    top: 100%;
    left: 0;
    min-width: 12rem;
    background: #fff;
    border: 1px solid #c7c8c9;
    padding: .25rem 0;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    z-index: 9999;
    transition: opacity .18s ease, visibility .18s ease;
    opacity: 0;
    visibility: hidden;
}

/* Show on hover for desktop (keeps click for mobile/offcanvas) */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu,
    .dropdown:focus-within > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}

/* Nested submenus to the right */
.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: .5rem;
}

/* Dropdown item styles */
.dropdown-item {
    display: block;
    width: 100%;
    padding: .5rem 1rem;
    color: #242424 !important;
    text-decoration: none;
    background: transparent;
    white-space: nowrap;
}

.dropdown-item:hover {
    color: #000a59 !important;
    background: rgba(0,0,0,0.02);
}

.dropdown-menu .menu-item {
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

/* Mobile / offcanvas: dropdowns should be static and rely on Bootstrap JS toggles */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: static !important;
        display: none; /* will open with the collapse/offcanvas toggle classes */
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 1rem;
    }

    /* When WP/JS toggles add class like .show or parent .open */
    .dropdown.show > .dropdown-menu,
    .dropdown.open > .dropdown-menu,
    .navbar-nav .show > .dropdown-menu {
        display: block;
    }
}

/* Ensure WP sub-menu fallback (if walker leaves .sub-menu) */
.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sub-menu li { display: block; }

/* Emphasized button (last item) */
.menu-the-main-menu-container .emphasized-button {
    background-color: #B56DA9;
    border-radius: 50px;
    padding: 0 10px;
}

.emphasized-button a {
    color: #ffffff !important;
    text-decoration: none;
}

/* Responsiveness: header stacks on small screens */
@media (max-width: 1110px) {
    #primary-header { flex-direction: column; text-align: center; }
    #logo-primary { max-width: 300px; }
}

/* Small screens */
@media (max-width: 450px) {
    #logo-primary { width: 50%; }
}

/* ----------------------------- End NAV ------------------------------------------- */



/* Scroll bar */

body::-webkit-scrollbar {
    width: .5em;
    background-color: #ca9298;

}

body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);

}

body::-webkit-scrollbar-thumb {
    background-color: #be2639;
    border-radius: 50px;

}

/* Scroll bar */



/* etc */

/* posts button */
.vc_btn3.vc_btn3-color-juicy-pink, .vc_btn3.vc_btn3-color-juicy-pink.vc_btn3-style-flat {
    background-color: #be2639 !important;
}