/*
Theme Name:   CINIK Theme
Theme URI:    https://jurakot.com/
Description:  WordPress theme for CINIK by Jurak Studio.
Author:       Jurak Studio
Author URI:   https://jurakot.com/
Template:     kahlo
Version:      1.0.0
*/

/* ==========================================================================
   1. GLOBAL / HEADER & LANGUAGE SWITCHER
   ========================================================================== */

.qodef-header-navigation {
    width:100%;
}

/* Remove dynamic page titles globally */
.qodef-page-title {
    display: none !important;
}

/* Remove Elementor boxed section max-width constraint */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: unset !important;
}

/* Custom animated link underline */
.cinik-underline {
    position: relative;
    display: inline-block;
}

.cinik-underline::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    height: 1px;
    background-color: currentColor;
    transition: width .4s cubic-bezier(.51, .5, .07, .99);
    width: 0;
}

.cinik-underline:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

/* Language Switcher (MK / EN) */
.lang-item-mk,
.lang-item-en {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  margin: 0;
  padding: 0;
}

/* Push language switcher to the right of the header */
header .lang-item-mk {
  margin-left: auto !important;
  margin-right: 0 !important;
}

header .lang-item-en {
  margin-left: 0 !important;
}

/* Vertical line separator before Macedonian item */
header .lang-item-mk::before {
  content: "";
  margin-right: 18px;
  margin-left: 6px;
  border-left: 1px solid black;
  height:15px;
  width:1px;
}



/* Slash separator before English item */
header .lang-item-en::before {
  content: "/";
  margin-right: 6px;
  margin-left: 6px;
}

/* Mobile language switcher adjustments */
@media screen and (max-width: 1024px) {
  .header .lang-item-mk::before,
  .header .lang-item-en::before,
  header .lang-item-mk::before,
  header .lang-item-en::before {
    content: none !important;
    margin: 0 !important;
  }
}

@media screen and (max-width: 1024px) {
    .lang-item-mk {
    margin-top: 25px !important;
    padding-top: 25px !important;
    border-top: 1px solid black !important;
    }
}

/* Header Dropdown Submenu: Yellow bg on desktop, white bg under 1024px, always black text */
.qodef-drop-down-second .qodef-drop-down-second-inner,
.qodef-drop-down-second .sub-menu {
    background-color: #F4CC5D !important;
}

.qodef-drop-down-second .sub-menu li a,
.qodef-drop-down-second .sub-menu li a .qodef-menu-item-text,
#qodef-page-mobile-header .sub-menu li a,
#qodef-page-mobile-header .sub-menu li a .qodef-menu-item-text {
    color: #000000 !important;
}

@media screen and (max-width: 1024px) {
    .qodef-drop-down-second .qodef-drop-down-second-inner,
    .qodef-drop-down-second .sub-menu,
    #qodef-page-mobile-header .sub-menu {
        background-color: #ffffff !important;
    }
}

/* Events Accordion Arrow Color */
.qodef-events-accordion .qodef-accordion-mark svg {
    color: #F4CC5D !important;
}

.qodef-events-accordion .qodef-accordion-mark svg path:not([fill="none"]) {
    fill: #F4CC5D !important;
}

.qodef-events-accordion .qodef-accordion-mark svg path[stroke] {
    stroke: #F4CC5D !important;
}

/* Newsletter Subscribe Submit Button */
#qodef-content-bottom .qodef-content-bottom-subscribe .wpcf7-submit.qodef-button {
    background-color: #F4CC5D !important;
    border-left: none !important;
    color: #000000 !important;
}

@media (max-width: 680px) {
    #qodef-content-bottom .qodef-content-bottom-subscribe .wpcf7-submit.qodef-button {
    border-left: 1px solid black !important;
}
}

#qodef-content-bottom .qodef-content-bottom-subscribe .wpcf7-submit.qodef-button:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.qodef-button.qodef-layout--textual-circle {
    background: #F4CC5D !important;
    height: 180px !important;
    width: 180px !important;
}

.projects-hero-custom .qodef-button.qodef-layout--textual-circle {
    margin-top: 30px !important;
}

/* ==========================================================================
   2. GLOBAL SWIPER SLIDER CONTROLS & IMAGE HELPERS
   ========================================================================== */

/* Custom white square Swiper navigation arrows */
.swiper-button-prev,
.swiper-button-next {
    width: 50px !important;
    height: 50px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.swiper-button-prev {
    left: 20px !important;
}

.swiper-button-next {
    right: 20px !important;
}

.swiper-button-prev svg,
.swiper-button-next svg {
    height: 14px !important;
    width: auto !important;
    display: block !important;
    stroke: #000000 !important;
    stroke-width: 6px !important;
}

/* Add spacing above Swiper pagination bullets */
.swiper-container-horizontal>.swiper-pagination-bullets, .swiper-horizontal>.swiper-pagination-bullets {
    margin-top:50px;
}

/* Image cover sizing utility */
.img-size-fix img{
    width: 100% !important;
    /* height: 800px !important; */
    object-fit: cover !important;
}

/* 
@media only screen and (max-width: 991px) {
   .img-size-fix img{
       height: 500px !important;
   }
}
 */

/* ==========================================================================
   3. HOME PAGE
   ========================================================================== */

/* Fix spacing on widget titles */
.qodef-widget-title {
    margin-top: 0 !important;
}

/* Hero Slider: Remove top padding and hide event category tags */
.qodef-events-fullscreen-slider.qodef-item-layout--info-above.qodef-full-height-slider--yes .qodef-m-item .qodef-e-content-inner {
  padding-top: 0 !important;
}

.qodef-e-info-holder .qodef-e-event-types {
    display: none !important;
}

/* Events Accordion: Fix overflow, hide date/separator/categories, and style bottom border */
.elementor-widget.elementor-widget-kahlo_core_events_accordion {
    overflow: hidden !important;
}

.qodef-e-info > .qodef-e-date-info {
    display: none !important;
}

.qodef-e-info > .qodef-e-location::before {
    display: none !important;
}

.qodef-accordion-content-inner > .qodef-info--event-types {
    display: none !important;
}

.qodef-events-accordion > .qodef-accordion-title:nth-last-of-type(2) {
    border-bottom: 2px solid #000000 !important;
}

/* Home News Slider: Grab cursor and mobile pagination centering */
.news-home {
    cursor: grab;
}

@media (max-width: 767px) {
    .home-news-slider .swiper-pagination-bullets {
        left: calc(-3.5% - 2px);
    }
}

/* Home News Slider: Fixed image height */
.home-news-slider .qodef-e-media-image img {
    height: 400px !important;
    width: 100% !important;
    object-fit: cover !important;
}

@media (max-width: 991px) {
    .home-news-slider .qodef-e-media-image img {
        height: 300px !important;
    }
}


/* Custom Drag / View Cursor */
.qodef-m-custom-cursor svg circle {
    fill: #ffffff !important;;
}

/* ==========================================================================
   4. EVENTS (LISTS & SINGLE EVENT PAGES)
   ========================================================================== */

/* Apply top margin to single event content grid */
.single-event-item .qodef-content-grid,
.type-event-item .qodef-content-grid {
    margin-top: 9.1% !important;
}

/* Remove comma after event date */
.qodef-events .qodef-event-item .qodef-e-inner .qodef-e-content .qodef-e-info .qodef-e-date-info::after {
    content: "" !important;
}

/* Hide event location, working hours, tickets button, and category tags */
.qodef-e-info-item.qodef-info--location {
    display: none !important;
}

.qodef-e-info-item.qodef-e-tickets-link {
    display: none !important;
}

.qodef-events .qodef-event-item .qodef-info--event-types {
    display: none !important;
}

.qodef-events-list.qodef-item-layout--info-below .qodef-info--event-types {
    display: none !important;
}

/* Full-width media images in event lists */
.qodef-events-list.qodef-item-layout--info-below .qodef-e-media-image img {
    width: 100% !important;
}

/* Hide event sidebar info and expand main content to 100% width */
.qodef-e-inner>.qodef-e-info {
    display: none !important;
}

.qodef-events .qodef-event-item .qodef-e-inner .qodef-e-content {
    width: 100% !important;
    padding: 0 !important;
}

/* ==========================================================================
   5. PORTFOLIO / PUBLICATIONS (PUBLIKACII)
   ========================================================================== */

/* Top spacing for publications filter bar */
.qodef-m-filter {
    margin-top: 107px !important;
}

@media only screen and (max-width: 1440px) {
  .qodef-m-filter {
    margin-top: 60px !important;
  }
}

/* Single portfolio title spacing */
.qodef-portfolio-title {
    margin-bottom: 30px !important;
}

/* Hide date and tag metadata in portfolio info */
.qodef-info--date,.qodef-info--tag {
    display: none !important;
}

/* Hide center back-link icon and prev/next text labels in single navigation */
.qodef-m-nav.qodef--back-link {
    display: none !important;
}

#qodef-single-portfolio-navigation .qodef--prev .qodef-m-nav-label,
#qodef-single-portfolio-navigation .qodef--next .qodef-m-nav-label {
    display: none !important;
}

/* ==========================================================================
   6. BLOG / NEWS (LISTS & SINGLE POSTS)
   ========================================================================== */

/* News list featured image sizing and date badge width */
.qodef-blog.qodef--list article .qodef-e-media-image {
    width: 100% !important;
}

/* Hide post category on item */
.qodef-e-post-categories {
    display: none !important;
}

.qodef-blog.qodef--list article .qodef-e-media-image img {
    height: 450px !important;
    object-fit: cover !important;
}

.qodef-blog article .qodef-e-info-custom-date .qodef-short-date {
    width: 64px !important;
}

/* Hide blog author name */
.qodef-e-info-author {
    display: none !important;
}

/* Fixed height for image gallery slider on single posts */
body.single-post .qodef-image-gallery .qodef-image-wrapper img {
    height: 400px !important;
    width: 100% !important;
    object-fit: cover !important;
}

@media (max-width: 991px) {
    body.single-post .qodef-image-gallery .qodef-image-wrapper img {
        height: 300px !important;
    }
}

/* Hide prev/next text labels in single post navigation (keep arrows) */
#qodef-single-post-navigation .qodef-m-nav-label {
    display: none !important;
}

/* ==========================================================================
   7. ABOUT US PAGE - TEAM
   ========================================================================== */

.type-team .qodef-e-media-image img {
    width: 100% !important;
    height: 60vh !important;
    object-fit: cover !important;
    /*filter: grayscale(100%) !important;
    transition: filter 0.3s ease;*/
    margin-bottom: 13px !important
}

.qodef-e-role {
    margin-top: 15px !important;
}

/*

.type-team .qodef-e-media-image:hover img {
    filter: grayscale(0%) !important;
}

*/

/* ==========================================================================
   8. CONTACT PAGE
   ========================================================================== */

/* Remove list margins on mobile (social links in contact) */
@media(max-width: 991px) {
        ol:not(.wp-block), ul:not(.wp-block) {
        margin: 0 !important;
    }
}

/* ==========================================================================
   9. FOOTER & SPONSORS
   ========================================================================== */

/* Center sponsor logos in Gutenberg footer section */
.qodef-gutenberg-section .qodef-gutenberg-row {
    align-items: center !important;
}

.qodef-gutenberg-section .qodef-gutenberg-row img{
  height: 50px;
  width: auto;
}

.qodef-gutenberg-section>.qodef-gutenberg-row>.qodef-gutenberg-column {
  width: max-content;
}

/* Footer widget spacing & social links */
.widget_block,.widget ul {
    margin: 0 !important;
}

.custom-footer-social li{
    margin-right: 79px !important;
    margin-bottom: 0 !important;
    height: 74px !important;
}

.custom-footer-social li a{
    line-height: 74px !important;
}

/* Footer top area grid padding */
#qodef-page-footer-top-area-inner .qodef-grid .qodef-grid-item {
    padding: 5.5% 2.2% !important;
    padding-bottom: 2.2% !important;
}

@media screen and (max-width: 991px) {
    #qodef-page-footer-top-area-inner .qodef-grid .qodef-grid-item {
        padding: 5.5% !important;
    }
}

@media only screen and (max-width: 680px) {
    #qodef-page-footer-top-area .qodef-content-full-width .qodef-grid {
        padding: 100px 0;
        padding-bottom: 5.5% !important;
    }
    #qodef-page-footer-top-area-inner .qodef-grid .qodef-grid-item {
        padding: 0 5.5% !important;
    }
}

/* Footer column titles */
#kahlo_core_title_widget-14 h6,
#kahlo_core_title_widget-15 h6 {
    font-size: 16px;
    font-family: Roboto, sans-serif;
    font-weight: 400;
    margin-top: 50px !important;
}

#block-23 h5 {
    margin-bottom: 45px !important;
}

/* Footer signature link styling (remove arrow & default theme underline) */
.footer-signature .qodef-btn-arrow {
    display: none !important;
}

.footer-signature .qodef-btn-text:first-child {
    font-size: 14px;
    font-family: Roboto, sans-serif;
    font-weight: 400;
}

.footer-signature .qodef-btn-arrow {
    display: none !important;
}

.footer-signature.qodef-button .qodef-btn-text {
    display: inline !important;
    position: static !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-size: 0 0 !important;
    --qodef-underline-height: 0 !important;
    backface-visibility: visible !important;
}