.premium-subscribe-block {
    margin: 20px auto;
    padding: 25px 50px;
    background-color: #F5EBDF;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    max-width: 1170px;
}

.premium-subscribe-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.premium-logo {
    min-width: 70px;
    position: relative;
}

.k-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E0909;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 50px;
    line-height: 1;
}
.m30 {
    margin: 30px 0;
}
.k-logo-tm {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 10px;
    font-weight: 500;
    background-color: #9E0909;
    color: white;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.premium-content {
    flex: 1;
    margin: auto 30px auto 60px;
}

.premium-title {
    color: #000;
    font-family: Rubik;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%; /* 33px */
    text-transform: uppercase;
}

.premium-description {
    color: #000;
    font-family: Rubik;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    margin-bottom: 0;
}

.premium-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}
 
.premium-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 22px 30px;
    background-color: #FFFFFF;
    border: 1px solid #9E9E9E;
    border-radius: 14px;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9E0909;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.premium-button:hover {
    background-color: #9E0909;
    color: #FFFFFF;
    border-color: #9E0909;
}
.white-premium-subscribe {
    background-color: #fff;
    border-radius: 14px;
    border: 1px solid #9E0909;
    background: #FFF;
}
.wikipedia .new-title:after {
    background: #fff0;
}
.wikipedia .new-title {
    padding-bottom: 0;
}
.flex-premium-subscribe {
    display: flex;
    align-items: center;
}
.site-header .site-branding {
    height: 79px;
}
.header-row .search-block {
    width: 777px;
}

.burger-socials {
    padding: 0px 25px;
    width: 33%;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}
.burger-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.burger-socials a svg, .search-submit svg, .search-arrow svg {
    transition: all 0.3s ease;
}
.burger-socials a svg:hover, .search-submit svg:hover, .search-arrow svg:hover {
    transition: all 0.3s ease;
    transform: scale(1.4);
}
.burger-separator {
    border-bottom: 1px solid #BABABA;
    margin: 0 -20px 30px -20px;
    padding: 0 25px 30px !important;
}
@media (max-width: 767px) {
    .home #primary > .container > .row > .col-12{
        padding-left: 0;
        padding-right: 0;
    }
    .menu-block {
        display: none;
    }
    .premium-subscribe-block {
        padding: 15px;
        margin: 20px 15px;
    }
    
    .premium-subscribe-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .premium-logo {
        margin-bottom: 10px;
        max-width: 70px;
    }
    
    .premium-content {
        width: 100%;
    }
    
    .premium-title {
        font-size: 14px;
    }
    
    .premium-description {
        font-size: 16px;
    }
    
    .premium-button-wrapper {
        width: 100%;
        justify-content: center;
    }
    
    .premium-button {
        display: flex;
        padding: 13px 27px;
        justify-content: center;
        align-items: center;
        gap: 27px;
        flex-shrink: 0;
        border-radius: 14px;
        border: 1px solid #BABABA;
        background: #FFF;
        color: #9E0909;
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px;
        letter-spacing: 1.4px;
        text-transform: uppercase;
    }
    .recipe-category a {
        font-size: 12px;
        line-height: 32px;
    }
    .recipe-category {
        font-size: 12px;
    }
    .featured-image-wrapper {
        margin-bottom: 0;
        aspect-ratio: 10 / 7;
    }
    .recipe-title, .card-title {
        font-size: 18px;
        font-weight: 400;
    }
    .flex-premium-subscribe {
        display: flex;
    }
    .flex-premium-subscribe .premium-content {
        flex: 1;
        margin: auto 15px auto 24px;
    }
    .special-projects {
        margin-bottom: 0;
    }
    .more-button-g, .more-button-w {
        padding: 13px 48px;
    }
    .m30 {
        margin: 0;
    }
    .white-premium-subscribe .premium-button {
        background-color: #F5EBDF;
        color: #9E0909;
        border: none;
    }
    .white-premium-subscribe .premium-button:hover {
        background-color: #9E0909;
        color: #FFFFFF;
    }
    section.news-section {
        background: #fff !important;
    }
    .mt-5, .my-5 {
        margin-top: 0 !important;
    }
    .dishes-of-month {
        margin: 0 auto 30px;
    }
    .dishes-of-month .mt-5 {
        margin-top: 20px !important;
    }
    .new-title:after {
        height: 1px;
        top: 30px;
    }
    .g-4 {
        gap: 0 !important;
    }
    .g-4 .col-6 {
        padding-left: 4px;
        padding-right: 4px;
    }
    .ingredients-month .row.g-4 {
        padding: 0 11px;
    }
    .time-filters {
        column-gap: 20px;
        margin-bottom: 30px;
    }
    
    /* Показуємо тільки 2 картки */
    .time-recipes-container {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Відкидаємо фіксовані розміри для контейнера */
    .time-recipes-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: auto !important; 
        max-width: none !important;
        overflow-x: scroll;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    /* Приховуємо скролбар */
    .time-recipes-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    .time-recipes-grid {
        min-height: auto;
    }
    /* Змінюємо розміри карток для мобільних */
    .mobile-time-card {
        width: 45% !important;
        min-width: 45% !important;
        max-width: 45% !important;
        flex: 0 0 45% !important;
        margin-right: 0 !important;
        padding: 0px 0px 0 15px !important;
    }
    
    /* Стилі для карток */
    .mobile-time-card .recipe-image-wrapper {
        aspect-ratio: 10 / 7;
        overflow: hidden;
        margin-bottom: 8px;
    }
    
    .mobile-time-card .recipe-title {
        font-size: 16px;
        line-height: 1.3;
        margin-top: 5px;
        margin-bottom: 10px;
        font-weight: 400;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .mobile-time-card .recipe-category {
        font-size: 12px;
        line-height: 1.2;
    }
    
    /* Додаємо додатковий відступ для останньої картки */
    .time-recipes-grid .mobile-time-card:last-child {
        margin-right: 40px !important;
    }
    
    /* Забираємо маску-градієнт, якщо вона була */
    .time-recipes-container:after {
        display: none;
    }
    
    /* Індикатор скролу */
    .time-scroll-indicator {
        display: flex;
        justify-content: center;
    }
    
    .time-scroll-indicator .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #ccc;
        margin: 0 4px;
    }
    
    .time-scroll-indicator .dot.active {
        background-color: #9E0909;
    }
    
    /* Кнопка "Більше" внизу блоку */
    .time-recipes .more-button-g {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .time-recipes .recipe-card {
        margin-bottom: 0;
    }
    .world-cuisines .g-4 .col-6 {
        padding-left: 8px;
        padding-right: 8px;
    }
    .world-cuisines .g-4 {
        row-gap: 16px !important;
        padding: 0 8px 30px;
    }
    .monthly-purchases {
        margin: 10px 0 30px;
    }
    .course-content {
        padding: 0px 25px;
    }
    .modules-info {
        align-items: center;
    }
    .wikipedia .new-title:after {
        background: #9E0909 !important;
    }
    .wikipedia, .wikipedia .new-title {
        margin-bottom: 30px;
    }
    .masthead-container {
        background-color: #f5ebdf;
        padding: 15px 0;
    }

    .site-logo {
        width: auto;
    }

    .mobile-logo {
        height: 30px;
        width: auto;
    }

    .mobile-header-elements {
        display: flex;
        align-items: center;
    }

    .mobile-search-icon {
        cursor: pointer;
        padding: 25px 16px;
        border-left: 1px solid #BABABA;
    }

    .mobile-search-icon img {
        width: 20px;
        height: 20px;
        max-width: 20px;
    }

    .mobile-login-button {
        color: #0C0C0C !important;
        font-size: 10px;
        font-weight: 400;
        letter-spacing: 1px;
        text-transform: uppercase;
        padding: 24px 13px;
        border-left: 1px solid #BABABA;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        padding: 27px 16px;
        border-left: 1px solid #BABABA;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: #000;
        transition: all 0.3s ease;
    }

    .mobile-search-form {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 15px;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .mobile-search-form.active {
        display: block;
    }

    .mobile-search-form form {
        display: flex;
        gap: 10px;
    }

    .mobile-search-form input {
        flex: 1;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    /* Hide desktop elements on mobile */
    .top-menu-mobile:not(.mobile-header-elements),
    .top-right-header,
    .masthead-bottom {
        display: none;
    }

    .row.gutters-60 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Стилі для відображення/приховування меню */
    #burger-menu {
        display: none;
        position: fixed;
        top: 121px;
        left: 0;
        width: 100%;
        height: calc(100vh - 71px);
        background: #FAF6F3;
        z-index: 1000;
        overflow-y: auto;
        padding: 20px;
    }

    #burger-menu.active {
        display: block;
    }

    .mobile-menu-container {
        display: none;
        position: absolute;
        top: 73px;
        /* Висота хедера */
        left: 0;
        width: 100%;
        height: calc(100vh - 71px);
        background: #f5ebdf;
        z-index: 1000;
        overflow-y: scroll;
        scrollbar-width: thin;
    }

    .mobile-menu-container a {
        color: #000000 !important;
        font-size: 12px;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.5px
    }

    .mobile-menu-container .sub-menu a {
        color: #fff;
        font-size: 12px;
        text-transform: uppercase;
        font-weight: 500;
    }

    .mobile-menu-container.active {
        display: block;
    }

    /* Стилі для форми пошуку */
    .mobile-search-form {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        z-index: 1000;
        display: none;
    }

    .mobile-search-form.active {
        display: block;
    }
    .header-row .search-block {
        display: none;
    }
    .site-header .site-branding {
        height: 72px;
    }
    .mobile-menu-toggle.active {
        background: #9E0909;
    }
    .mobile-menu-toggle.active span {
        background: #fff;
    }
    .mobile-menu .navbar-nav li {
        padding: 5px 0;
    }
    .mobile-menu .menu-item-has-children.active > a {
        width: 100vw;
        display: flex;
        background: #9e0909;
        color: #fff !important;
        padding: 13px 25px;
        margin: -5px -15px;
    }
    .mobile-menu .sub-menu li {
        padding: 0;
        line-height: 1.5;
    }
    header .header-controll .header-row {
        justify-content: space-between;
    }
    .burger-socials {
        padding: 20px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .submenu-toggle::before,
    .submenu-toggle::after {
        display: none;
    }
    
    .submenu-toggle {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10' fill='none'%3E%3Cg clip-path='url(%23clip0_1105_431)'%3E%3Cpath d='M7.96999 2.82958C8.60999 2.82958 9.20999 3.69958 9.65999 4.14958L14.24 8.77958C14.62 9.17958 15.25 9.18958 15.65 8.79958C16.05 8.40958 16.06 7.76958 15.67 7.36958L15.65 7.34958L8.66999 0.28958C8.27999 -0.10042 7.64999 -0.10042 7.25999 0.28958L0.279989 7.35958C-0.100011 7.75958 -0.0900113 8.39958 0.299989 8.77958C0.689989 9.15958 1.29999 9.15958 1.68999 8.77958L6.25999 4.14958C6.70999 3.69958 7.32999 2.82958 7.96999 2.82958Z' fill='%236D6666'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_1105_431'%3E%3Crect width='9.09' height='15.95' fill='white' transform='translate(0 9.08984) rotate(-90)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 16px 10px;
        transform: rotate(180deg);
        top: 10px;
    }
    
    .mobile-menu-container .menu-item-has-children.active > .submenu-toggle {
        transform: rotate(0deg);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10' fill='none'%3E%3Cg clip-path='url(%23clip0_1105_431)'%3E%3Cpath d='M7.96999 2.82958C8.60999 2.82958 9.20999 3.69958 9.65999 4.14958L14.24 8.77958C14.62 9.17958 15.25 9.18958 15.65 8.79958C16.05 8.40958 16.06 7.76958 15.67 7.36958L15.65 7.34958L8.66999 0.28958C8.27999 -0.10042 7.64999 -0.10042 7.25999 0.28958L0.279989 7.35958C-0.100011 7.75958 -0.0900113 8.39958 0.299989 8.77958C0.689989 9.15958 1.29999 9.15958 1.68999 8.77958L6.25999 4.14958C6.70999 3.69958 7.32999 2.82958 7.96999 2.82958Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_1105_431'%3E%3Crect width='9.09' height='15.95' fill='white' transform='translate(0 9.08984) rotate(-90)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    }
}

.navbar-nav > .menu-item-has-children:nth-child(1) .sub-menu {
    top: 0;
}
.navbar-nav > .menu-item-has-children:nth-child(2) .sub-menu {
    top: -50px;
}
.navbar-nav > .menu-item-has-children:nth-child(3) .sub-menu {
    top: -100px;
}
.navbar-nav > .menu-item-has-children:nth-child(4) .sub-menu {
    top: -150px;
}
.navbar-nav > .menu-item-has-children:nth-child(5) .sub-menu {
    top: -200px;
}
.navbar-nav > .menu-item-has-children:nth-child(6) .sub-menu {
    top: -250px;
}
.navbar-nav > .menu-item-has-children:nth-child(7) .sub-menu {
    top: -300px;
}
.navbar-nav > .menu-item-has-children:nth-child(8) .sub-menu {
    top: -350px;
}
.navbar-nav > .menu-item-has-children:nth-child(9) .sub-menu {
    top: -400px;
}
.navbar-nav > .menu-item-has-children:nth-child(10) .sub-menu {
    top: -450px;
}
.navbar-nav > .menu-item-has-children:nth-child(11) .sub-menu {
    top: -500px;
}
.navbar-nav > .menu-item-has-children:nth-child(12) .sub-menu {
    top: -550px;
}

/* Fix to position all submenus consistently at top of the container if needed */
.burger-menu-desktop .menu-item-has-children.active > .sub-menu {
    position: absolute;
    left: 115%;
    top: 0 !important; /* Override top positioning when menu is active, uncomment if needed */
}

/* Handle overflow for submenus at the bottom of the container */
.navbar-nav > .menu-item-has-children:last-child > .sub-menu,
.navbar-nav > .menu-item-has-children:nth-last-child(2) > .sub-menu {
    bottom: 0;
    top: auto !important;
}