/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

#footer.bg-primary {
    background-color: var(--bs-primary) !important;
    border-top: none;
}

.site-footer-heading {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.35rem;
}

.site-footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.75rem;
    height: 2px;
    background-color: var(--bs-danger);
}

.site-footer-chevron {
    font-weight: 600;
    opacity: 0.95;
}

.site-footer-contact-icon {
    width: 1.25rem;
    text-align: center;
    opacity: 0.95;
}

#copyrights.border-top {
    background-color: transparent;
}

/* Header language dropdown (flag switcher) */
.header-locale-dropdown .dropdown {
    position: relative;
}

.header-locale-dropdown .header-locale-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 2.75rem;
    min-height: 2.25rem;
    padding: 0 0.15rem 0 0;
    margin: 0;
    color: var(--cnvs-header-misc-icons-color);
    box-shadow: none;
    line-height: 1;
}

.header-locale-dropdown .header-locale-toggle:hover,
.header-locale-dropdown .header-locale-toggle:focus,
.header-locale-dropdown .header-locale-toggle:focus-visible {
    color: var(--cnvs-header-misc-icons-color);
    opacity: 0.85;
}

.header-locale-dropdown .header-locale-toggle::after {
    margin-left: 0.2em;
    vertical-align: middle;
    border-width: 0.22em;
    opacity: 0.85;
}

.header-locale-dropdown .header-locale-flag.fi {
    width: 2em;
    line-height: 1;
    border-radius: 3px;
}

.header-locale-dropdown .dropdown-item .fi {
    width: 1.85em;
    flex-shrink: 0;
    border-radius: 3px;
}

.header-locale-dropdown .dropdown-item.active,
.header-locale-dropdown .dropdown-item:active {
    font-weight: 600;
}

.header-locale-dropdown .header-locale-menu {
    min-width: 11rem;
    z-index: 1005;
}

.tagcloud a.active {
    border-color: var(--cnvs-themecolor) !important;
    color: #fff !important;
    background-color: var(--cnvs-themecolor) !important;
}

/* Portfolio category page: square tiles; crop images with object-fit (overrides Canvas img height:auto) */
.portfolio-item.portfolio-category-project-card .portfolio-image {
    aspect-ratio: 1 / 1;
}

.portfolio-item.portfolio-category-project-card .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product gallery: 5 visible scrollable thumbnails */
.fslider.flex-thumb-scroll.grid-5 .flex-control-nav.flex-control-thumbs {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    margin: var(--cnvs-fslider-thumbs-gutters) 0 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fslider.flex-thumb-scroll.grid-5
    .flex-control-nav.flex-control-thumbs::-webkit-scrollbar {
    display: none;
}

.fslider.flex-thumb-scroll.grid-5 .flex-control-nav.flex-control-thumbs li {
    flex: 0 0 20%;
    width: 20% !important;
    max-width: 20%;
    margin: 0 var(--cnvs-fslider-thumbs-gutters) 0 0;
}

.fslider.flex-thumb-scroll.grid-5 .flex-control-nav.flex-control-thumbs li,
.fslider.flex-thumb-scroll.grid-5 .flex-control-nav.flex-control-thumbs li img {
    width: 100% !important;
    height: auto !important;
}

.product-gallery-thumbs-nav {
    position: relative;
    margin-top: var(--cnvs-fslider-thumbs-gutters);
}

.product-gallery-thumbs-nav .flex-control-nav.flex-control-thumbs {
    margin-top: 0;
}

.product-gallery-thumbs-btn {
    position: absolute;
    top: 50%;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.product-gallery-thumbs-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.product-gallery-thumbs-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.product-gallery-thumbs-prev {
    left: 0.25rem;
}

.product-gallery-thumbs-next {
    right: 0.25rem;
}

.product-single-nav {
    position: relative;
    z-index: 5;
}

.product-single-nav-link,
.product-single-nav-link:hover,
.product-single-nav-link:focus,
.product-single-nav-link *,
.product-single-nav-link:hover * {
    cursor: pointer;
}

/* ==========================================================================
   Header Contrast & Visibility Fix
   ========================================================================== */

/* Fix menu link hover color specifically when the header is transparent over a dark background */
/* Targeting .menu-item:hover ensures the text stays white even when cursor moves down into the sub-menu dropdown */
#header.transparent-header.dark .primary-menu .menu-item:hover > .menu-link,
#header.transparent-header.dark .primary-menu .menu-item.current > .menu-link,
#header.transparent-header.dark
    .primary-menu
    .menu-item:hover
    > .menu-link
    > div,
#header.transparent-header.dark
    .primary-menu
    .menu-item.current
    > .menu-link
    > div {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); /* Subtle shadow for extra crispness against images */
}

/* Ensure the header locale toggle flag is also visible on hover */
#header.transparent-header.dark
    .header-locale-dropdown
    .header-locale-toggle:hover,
#header.transparent-header.dark
    .header-locale-dropdown
    .header-locale-toggle:focus {
    color: #ffffff !important;
}

/* Add underline to ALL top-level menu items when hovered or active (Default / Solid State) */
#header .primary-menu > .menu-container > .menu-item > .menu-link:hover > div,
#header
    .primary-menu
    > .menu-container
    > .menu-item.current
    > .menu-link
    > div {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    text-decoration-color: currentColor;
}

/* Specific underline styling for transparent dark headers */
#header.transparent-header.dark
    .primary-menu
    > .menu-container
    > .menu-item
    > .menu-link:hover
    > div,
#header.transparent-header.dark
    .primary-menu
    > .menu-container
    > .menu-item.current
    > .menu-link
    > div {
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

#header .primary-menu > .menu-container > .menu-item > .menu-link > div,
#header
    .primary-menu
    > .menu-container
    > .menu-item.current
    > .menu-link
    > div {
    /* text-transform: uppercase; */
    font-weight: 400;
}

/* ==========================================================================
   Footer Utilities
   ========================================================================== */
/* .footer-hover-link {
    opacity: 0.75;
    transition: opacity 0.25s ease-in-out;
}
.footer-hover-link:hover,
.footer-hover-link:focus {
    opacity: 1 !important;
} */

/* ==========================================================================
   Standardized Heading Block (Canvas Template Native)
   ========================================================================== */
.custom-heading-block {
    margin-bottom: 50px;
}
.custom-heading-block h1,
.custom-heading-block h2,
.custom-heading-block h3,
.custom-heading-block h4 {
    /* font-family: "Open Sans", sans-serif; */
    /* font-weight: 300 !important; */
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0;
    color: var(--cnvs-heading-color);
}
.custom-heading-block h2 {
    font-size: 2.125rem; /* 34px */
}
.custom-heading-block h3 {
    font-size: 1.875rem; /* 30px */
}
.custom-heading-block > span:not(.before-heading) {
    display: block;
    margin-top: 0.5rem;
    font-weight: 300;
    font-size: 18px;
    color: var(--cnvs-contrast-600);
}

@media (min-width: 768px) {
    .custom-footer .custom-footer-grid-1 {
        padding-right: 5rem;
    }
}
@media (max-width: 767px) {
    .custom-footer .custom-footer-grid-1 {
        margin-bottom: 2rem;
    }

    .custom-footer .custom-footer-grid-2 {
        margin-bottom: 2rem;
    }
}

/* Products section full-width CTA */
.button.products-section-cta {
    background-color: #fff;
    color: var(--cnvs-btn-color);
}

.button.products-section-cta:hover {
    background-color: #fff;
    color: rgba(0, 0, 0, 0.4);
}

/* Portfolio categories reference CTA */
.button.portfolio-categories-cta {
    background-color: var(--cnvs-btn-color);
    color: #fff;
    border-color: transparent;
}

.button.portfolio-categories-cta:hover {
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-color: transparent;
}

/* Bikin aturan khusus yang mematikan ::after */
.hide-after::after {
    display: none !important;
}

/* Instagram brand gradient (official icon colors: yellow → orange → pink → magenta → purple) */
.social-icon.bg-instagram,
.bg-instagram,
.h-bg-instagram:hover {
    background:
        radial-gradient(circle at 100% 100%, #fc01d8 0%, transparent 55%),
        radial-gradient(circle at 0% 100%, #fc0 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, #780cff 0%, transparent 50%),
        radial-gradient(circle at 20% 10%, #ff0f3f 0%, transparent 45%),
        linear-gradient(135deg, #fc0 0%, #fe4a05 30%, #ff0f3f 50%, #ff005f 70%, #780cff 100%) !important;
    background-color: transparent !important;
}
