/*
Theme Name: CreamyBite Elementor
Template: creamybite
Version: 1.0.0
Description: Native editable Elementor header and footer, with the original CreamyBite fallback.
Text Domain: creamybite-elementor-child
*/

/* Layout only: text, links, images, colours and typography remain Elementor controls. */
.cb148-header-shell.e-con { padding: 0; gap: 0; }
.cb148-header-inner.e-con { width: calc(100% - 32px); max-width: 1240px; margin: 0 auto; min-height: 80px; padding: 10px 0; flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
.cb148-header-logo { flex: 0 0 214px; width: 214px; }
.cb148-header-logo img { display: block; width: 214px; height: 60px; object-fit: contain; }
.cb148-header-nav { width: auto; flex: 0 1 auto; }
.cb148-header-nav .elementor-nav-menu--main .elementor-item { padding: 18px 0; }
.cb148-header-nav .elementor-nav-menu--main > ul > li:first-child > a { margin-left: 0; }
.cb148-header-nav .elementor-nav-menu--main > ul > li:last-child > a { margin-right: 0; }
.cb148-header-nav .sub-arrow { padding: 0 0 0 5px; }
.cb148-header-nav .sub-arrow svg { width: 10px; }
.cb148-header-nav .current-menu-item > a { color: #5C4033 !important; }
.cb148-header-nav .elementor-nav-menu--dropdown { border-radius: 0 0 8px 8px; }
.cb148-header-nav .elementor-nav-menu--dropdown a { padding: 12px 20px; }
.cb148-header-cta { flex: 0 0 auto; width: auto; }
.cb148-header-cta .elementor-button { white-space: nowrap; }
.cb148-header-shell { z-index: 990; }

.cb148-footer-shell.e-con { padding: 50px 0; gap: 0; }
.cb148-footer-inner.e-con { width: calc(100% - 8px); max-width: 1264px; margin: 0 auto; padding: 0; flex-direction: row; align-items: flex-start; gap: 0; }
.cb148-footer-col.e-con { flex: 0 0 auto; padding: 0 12px; gap: 0; }
.cb148-footer-about.e-con { width: 33.333333%; }
.cb148-footer-contact.e-con,.cb148-footer-gallery.e-con { width: 25%; }
.cb148-footer-links.e-con { width: 16.666667%; }
.cb148-footer-logo img { display: block; width: 214px; height: 60px; object-fit: contain; }
.cb148-footer-description { margin-top: 30px; }
.cb148-footer-description p { margin: 0; }
.cb148-footer-social { margin-top: 30px; }
.cb148-footer-social .elementor-social-icon { width: 45px; height: 45px; display: inline-flex; justify-content: center; align-items: center; }
.cb148-footer-social .elementor-grid { column-gap: 20px; }
.cb148-footer-heading { margin-bottom: 30px; }
.cb148-footer-contact-list .elementor-icon-list-item a { align-items: center; }
.cb148-footer-contact-list .elementor-icon-list-icon { width: 34px; flex-shrink: 0; }
.cb148-footer-contact-list .elementor-icon-list-text { padding-left: 0; }
.cb148-footer-menu .elementor-nav-menu--main .elementor-item { padding: 0; line-height: 24px; margin-bottom: 20px; }
.cb148-footer-menu .elementor-nav-menu--main li:last-child .elementor-item { margin-bottom: 0; }
.cb148-footer-menu.elementor-widget .elementor-nav-menu .elementor-item:before { content: ""; position: static; display: block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; opacity: 1 !important; transform: none; flex-shrink: 0; }
.cb148-footer-grid.e-con { padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; width: 100%; }
.cb148-footer-grid .elementor-widget-image { width: 100%; min-width: 0; }
.cb148-footer-grid .elementor-widget-image a { display: block; width: 100%; }
.cb148-footer-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

@media (min-width: 1200px) and (max-width: 1399px) {
 .cb148-header-inner.e-con { max-width: 1140px; }
 .cb148-footer-inner.e-con { max-width: 1140px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
 .cb148-header-inner.e-con { max-width: 960px; }
 .cb148-header-nav .elementor-nav-menu--main .elementor-item { margin: 0 10px; }
 .cb148-footer-inner.e-con { max-width: 960px; flex-wrap: wrap; }
 .cb148-footer-col.e-con { width: 33.333333%; }
 .cb148-footer-gallery.e-con { margin-top: 40px; }
}
@media (max-width: 1024px) {
 .cb148-header-inner.e-con { min-height: 77px; position: relative; }
 .cb148-header-logo { flex-basis: 190px; width: 190px; }
 .cb148-header-logo img { width: 190px; height: auto; }
 .cb148-header-cta { display: none; }
 .cb148-header-nav.elementor-widget { position: static; }
 .cb148-header-nav .elementor-menu-toggle { padding: 0; background: transparent; }
 .cb148-header-nav .elementor-menu-toggle svg { width: 30px; height: 30px; }
 .cb148-header-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container { position: absolute; top: 100%; left: -16px; width: calc(100% + 32px); margin-top: 0; }
}
@media (min-width: 576px) and (max-width: 991px) {
 .cb148-footer-inner.e-con { max-width: 720px; flex-wrap: wrap; }
 .cb148-footer-col.e-con { width: 50%; }
 .cb148-footer-links.e-con,.cb148-footer-gallery.e-con { margin-top: 40px; }
}
@media (max-width: 575px) {
 .cb148-footer-shell.e-con { padding: 35px 0 25px; }
 .cb148-footer-inner.e-con { flex-direction: column; }
 .cb148-footer-col.e-con { width: 100%; }
 .cb148-footer-col.e-con + .cb148-footer-col.e-con { margin-top: 25px; }
 .cb148-footer-heading .elementor-heading-title { font-size: 22px; line-height: 30px; }
}

/* Preserve the letter case entered by the author throughout the site. */
html body *,
html body *::before,
html body *::after {
 text-transform: none !important;
}

/* Space only consecutive paragraphs; retain heading, image and widget gaps. */
html body p:has(+ p) { margin-bottom: 5px !important; }
html body p + p { margin-top: 0 !important; }

/* The theme forces Quicksand on spans; retain WordPress's icon font. */
body #wpadminbar .ab-icon,
body #wpadminbar .ab-item::before,
body #wpadminbar #adminbarsearch::before,
body #wpadminbar .wp-admin-bar-arrow,
body #wpadminbar .dashicons,
body #wpadminbar .dashicons-before::before {
 font-family: dashicons !important;
}

/* Match the home hero typography in the banners of internal pages. */
body:not(.home) .breadcrumb-wrapper .page-heading h1 {
 font-family: 'Russo One', sans-serif;
 font-style: normal;
 font-weight: 400;
 color: #BB1919;
 overflow-wrap: anywhere;
}

/* Blog banner and the space before the article: 65% of the original padding. */
body.dogma-blog .breadcrumb-wrapper.section-padding {
 padding-top: 117px;
 padding-bottom: 117px;
}
body.single-post #primary.blog-content-page {
 padding-top: 65px !important;
}
@media (max-width: 1024px) {
 body.dogma-blog .breadcrumb-wrapper.section-padding {
  padding-top: 97.5px;
  padding-bottom: 97.5px;
 }
}
@media (max-width: 991px) {
 body.single-post #primary.blog-content-page { padding-top: 39px !important; }
}
@media (max-width: 767px) {
 body.dogma-blog .breadcrumb-wrapper.section-padding {
  padding-top: 58.5px;
  padding-bottom: 58.5px;
 }
}

/* The parent leaves an empty tags/share wrapper even when sharing is off. */
body.single-post .blog-details-footer { display: none; }

/* Copied articles retain their source covers without rewriting the body text. */
body.single-post .dogma-copied-post-cover { margin: 0 0 24px; }
body.single-post .dogma-copied-post-cover img { display: block; width: 100%; height: auto; }
body.single-post .dogma-copied-post-cover img,
body.single-post img.dogma-post-cover-image { border-radius: 15px; }

/* Keep blocks visible immediately, including below-the-fold Elementor content. */
body .wow,
body .animated,
body .elementor-invisible,
body [data-dogma-static] {
 animation: none !important;
 transition: none !important;
 visibility: visible !important;
 opacity: 1 !important;
}
body .wow,
body .elementor-invisible,
body [data-dogma-static] {
 transform: none !important;
}

/* Russo One is served locally; the Cyrillic and Latin subsets stay separate. */
@font-face {
 font-family: 'Russo One';
 font-style: normal;
 font-weight: 400;
 font-display: swap;
 src: url('assets/fonts/russo-one/russo-one-cyrillic-v18.woff2') format('woff2');
 unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
 font-family: 'Russo One';
 font-style: normal;
 font-weight: 400;
 font-display: swap;
 src: url('assets/fonts/russo-one/russo-one-latin-ext-v18.woff2') format('woff2');
 unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
 font-family: 'Russo One';
 font-style: normal;
 font-weight: 400;
 font-display: swap;
 src: url('assets/fonts/russo-one/russo-one-latin-v18.woff2') format('woff2');
 unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Only the main article title, not the banner, sidebar or body subheadings. */
body.single-post article.blog-single-content-wrap > h2:first-of-type {
 font-family: 'Russo One', sans-serif;
 font-style: normal;
 font-weight: 400;
 font-size: 28px;
 line-height: 1.3;
 color: #FF6FA5;
}

/* Blog listing card titles. The widget's typography control targets h3,
   but its active style renders h4, so style the actual card markup. */
body.page-id-2800 .elementor-widget-creamybite-blog-post-widget .news-content h4,
body.page-id-2800 .elementor-widget-creamybite-blog-post-widget .news-content h4 a,
body.home .elementor-widget-creamybite-blog-post-widget .news-content h4,
body.home .elementor-widget-creamybite-blog-post-widget .news-content h4 a {
 font-family: 'Russo One', sans-serif;
 font-style: normal;
 font-weight: 400;
 font-size: 24px;
 line-height: 1.3;
}

/* Complete blog covers and equal-height cards, including across grid rows.
   Keep full titles/excerpts; the tallest card defines the common row height. */
body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget .row {
 display: grid;
 grid-template-columns: repeat(3,minmax(0,1fr));
 grid-auto-rows: 1fr;
 gap: 24px;
 margin: 0;
}
body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget .row > [class*="col-"] {
 display: flex;
 width: 100%;
 max-width: 100%;
 min-width: 0;
 padding: 0;
}
/* The theme may print an empty pagination column even when all posts fit. */
body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget .row > :has(.blog-pagination):not(:has(.page-numbers)) {
 display: none;
}
body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget .row > :has(.blog-pagination) {
 grid-column: 1 / -1;
}
body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget .single-news-items-2 {
 display: flex;
 flex-direction: column;
 width: 100%;
 height: 100%;
 min-width: 0;
 margin: 0;
 padding: 0;
 gap: 0;
 border-radius: 15px;
 background: #ffc75f;
 overflow: hidden;
}
body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget .single-news-items-2 .news-image {
 flex: 0 0 auto;
 width: 100%;
 height: auto;
 aspect-ratio: 3 / 2;
 background-size: contain !important;
 background-position: center;
 background-repeat: no-repeat;
 background-color: #ffc75f;
 border-radius: 15px;
 margin: 0;
 padding: 0;
}
body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget .single-news-items-2 .dogma-list-preview {
 aspect-ratio: auto;
 background: none;
 line-height: 0;
 overflow: hidden;
}
body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget img.dogma-list-cover {
 display: block;
 width: 100%;
 height: auto;
 margin: 0;
 padding: 0;
 border-radius: 15px;
}
body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget .dogma-cover-placeholder {
 display: flex;
 align-items: center;
 justify-content: center;
 aspect-ratio: 3 / 2;
 font: 400 32px/1.3 'Russo One',sans-serif;
 color: #b72961;
}
body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget .single-news-items-2 .news-content {
 flex: 1 1 auto;
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 min-width: 0;
 margin: 0;
 border-radius: 0 0 15px 15px;
}
body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget .news-content > h4,
body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget .news-content > p {
 width: 100%;
 overflow-wrap: anywhere;
}
body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget .news-content > .link-btn {
 margin-top: auto;
 flex-shrink: 0;
}
@media (max-width: 991px) {
 body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget .row {
  grid-template-columns: repeat(2,minmax(0,1fr));
 }
}
@media (max-width: 767px) {
 body:is(.home,.page-id-2800) .elementor-widget-creamybite-blog-post-widget .row {
  grid-template-columns: minmax(0,1fr);
 }
}

/* Set only the heading face and weight, including linked and wrapped text. */
body :is(h1,h2,h3,h4,h5,h6),
body :is(h1,h2,h3,h4,h5,h6) :is(a,span,strong,b,em):not([aria-hidden="true"],.dashicons,.fa,.fas,.far,.fab,[class*="eicon-"]) {
 font-family: 'Russo One', sans-serif !important;
 font-weight: 400 !important;
}

/* Give the viewport scrollbar enough contrast without changing inner scroll areas. */
@media (any-pointer: fine) {
 html { scrollbar-width: auto; scrollbar-color: #9b3159 #f9e8df; }
 body { scrollbar-color: auto; }
 @supports not (scrollbar-color: red white) {
  html::-webkit-scrollbar, body::-webkit-scrollbar { width: 12px; }
  html::-webkit-scrollbar-track, body::-webkit-scrollbar-track { background: #f9e8df; box-shadow: none; border-radius: 0; }
  html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb { background: #9b3159; border: 2px solid #f9e8df; border-radius: 8px; }
  html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover { background: #782242; }
 }
}
