/* 
Theme Name: National Canola Marketing Program (New)
Theme URI: https://boom12.ca
Description: A child theme created for use with Hello by Elementor and custom built by Boom12. 
Author: Boom12 Communications Inc.
Author URI: https://boom12.ca
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-canola
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

:root {
  /* NCMP Global Font Variables */
  --ncmp-font-main: 'canada-type-gibson', sans-serif;
  --ncmp-font-fallback: 'sans-serif';

  /* NCMP Global Color Variables */
  --ncmp-primary: #ED2226;
  --ncmp-secondary: #FFE000;
  --ncmp-text: #202020;
  --ncmp-accent: #81EAE7;

  /* Custom Colors */
  --ncmp-yellow: #FFE000;
  --ncmp-white: #FFFFFF;
  --ncmp-industrial-blue: #003049;
  --ncmp-wellness-green: #C2F7E4;
}

/* ======= Widescreen (1920px+) ======= */
@media (min-width: 1920px) {
  .ncmp-title         { font-family: var(--ncmp-font-main); font-size: 100px; font-weight: 700; line-height: 100px; }
  .ncmp-subtitle      { font-family: var(--ncmp-font-main); font-size: 80px;  font-weight: 700; line-height: 96px; }
  .ncmp-text          { font-family: var(--ncmp-font-main); font-size: 20px;  font-weight: 300; line-height: 32px; }
  .ncmp-accent        { font-family: var(--ncmp-font-main); font-size: 20px;  font-weight: 500; line-height: 30px; }
  .ncmp-heading       { font-family: var(--ncmp-font-main); font-size: 40px;  font-weight: 600; line-height: 50px; }
  .ncmp-subheading    { font-family: var(--ncmp-font-main); font-size: 40px;  font-weight: 500; line-height: 50px; }
  .ncmp-subheading-2  { font-family: var(--ncmp-font-main); font-size: 25px;  font-weight: 500; line-height: 35px; }
  .ncmp-subheading-3  { font-family: var(--ncmp-font-main); font-size: 20px;  font-weight: 500; line-height: 30px; }
  .ncmp-accent-2      { font-family: var(--ncmp-font-main); font-size: 25px;  font-weight: 500; text-transform: uppercase; line-height: 30px;}
}

/* ======= Desktop (1025px–1919px) ======= */
@media (min-width: 1025px) and (max-width: 1919px) {
  .ncmp-title         { font-size: 80px; font-weight: 700; line-height: 92px; }
  .ncmp-subtitle      { font-size: 70px; font-weight: 700; line-height: 80px; }
  .ncmp-text          { font-size: 18px; font-weight: 300; line-height: 24px; }
  .ncmp-accent        { font-size: 18px; font-weight: 500; line-height: 30px; }
  .ncmp-heading       { font-size: 35px; font-weight: 600; line-height: 40px; }
  .ncmp-subheading    { font-size: 35px; font-weight: 500; line-height: 40px; }
  .ncmp-subheading-2  { font-size: 22px; font-weight: 500; line-height: 35px; }
  .ncmp-subheading-3  { font-size: 20px; font-weight: 500; line-height: 30px; }
  .ncmp-accent-2      { font-size: 22px; font-weight: 500; text-transform: uppercase; line-height: 20px;}
}

/* ======= Tablet (768px–1024px) ======= */
@media (min-width: 768px) and (max-width: 1024px) {
  .ncmp-title         { font-size: 70px; font-weight: 700; line-height: 80px; }
  .ncmp-subtitle      { font-size: 60px; font-weight: 700; line-height: 70px; }
  .ncmp-text          { font-size: 18px; font-weight: 300; line-height: 24px; }
  .ncmp-accent        { font-size: 18px; font-weight: 500; line-height: 30px; }
  .ncmp-heading       { font-size: 35px; font-weight: 600; line-height: 40px; }
  .ncmp-subheading    { font-size: 35px; font-weight: 500; line-height: 40px; }
  .ncmp-subheading-2  { font-size: 22px; font-weight: 500; line-height: 35px; }
  .ncmp-subheading-3  { font-size: 20px; font-weight: 500; line-height: 30px; }
  .ncmp-accent-2      { font-size: 22px; font-weight: 500; text-transform: uppercase; line-height: 20px;}
}

/* ======= Mobile (up to 767px) ======= */
@media (max-width: 767px) {
  .ncmp-title         { font-size: 50px; font-weight: 700; line-height: 55px; }
  .ncmp-subtitle      { font-size: 40px; font-weight: 700; line-height: 40px; }
  .ncmp-text          { font-size: 18px; font-weight: 300; line-height: 30px; }
  .ncmp-accent        { font-size: 18px; font-weight: 500; line-height: 30px; }
  .ncmp-heading       { font-size: 30px; font-weight: 600; line-height: 35px; }
  .ncmp-subheading    { font-size: 35px; font-weight: 500; line-height: 40px; }
  .ncmp-subheading-2  { font-size: 18px; font-weight: 500; line-height: 22px; }
  .ncmp-subheading-3  { font-size: 18px; font-weight: 500; line-height: 22px; }
  .ncmp-accent-2      { font-size: 20px; font-weight: 500; text-transform: uppercase; line-height: 20px;}
}

.elementor-post-navigation-borders-yes .elementor-post-navigation.elementor-grid {
    color: #d5d8dc;
    border: 1px solid;
    border-right: none;
    border-left: none;
    padding-top: 10px;
    padding-bottom: 10px
}

.elementor-post-navigation-borders-yes .elementor-post-navigation__separator {
    height: 100%;
    width: 1px;
    margin: 0 auto;
    background-color: #d5d8dc
}

.elementor-post-navigation {
    overflow: hidden;
    display: flex
}

.elementor-post-navigation .post-navigation__arrow-wrapper {
    color: #d5d8dc
}

.elementor-post-navigation .post-navigation__arrow-wrapper.post-navigation__arrow-prev {
    font-size: 30px;
    padding-right: 15px
}

.elementor-post-navigation .post-navigation__arrow-wrapper.post-navigation__arrow-next {
    font-size: 30px;
    padding-left: 15px
}

.elementor-post-navigation .post-navigation__arrow-wrapper i {
    transform: translateY(-5%)
}

.elementor-post-navigation .elementor-post-navigation__link__next,.elementor-post-navigation .elementor-post-navigation__link__prev {
    overflow: hidden
}

.elementor-post-navigation .elementor-post-navigation__link a {
    display: flex;
    align-items: center;
    max-width: 100%
}

.elementor-post-navigation .post-navigation__next--label,.elementor-post-navigation .post-navigation__prev--label {
    text-transform: uppercase;
    font-size: .8em
}

.elementor-post-navigation .post-navigation__next--title,.elementor-post-navigation .post-navigation__prev--title {
    font-size: .7em
}

.elementor-post-navigation .post-navigation__next--label,.elementor-post-navigation .post-navigation__next--title,.elementor-post-navigation .post-navigation__prev--label,.elementor-post-navigation .post-navigation__prev--title {
    overflow: hidden;
    text-overflow: ellipsis
}

.elementor-post-navigation span.elementor-post-navigation__link__next {
    text-align: right
}

.elementor-post-navigation span.elementor-post-navigation__link__next,.elementor-post-navigation span.elementor-post-navigation__link__prev {
    display: flex;
    flex-direction: column
}

.elementor-post-navigation .elementor-grid {
    justify-content: space-between
}

.elementor-post-navigation .elementor-post-navigation__link {
    width: calc(50% - (1px / 2));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.elementor-post-navigation .elementor-post-navigation__separator-wrapper {
    text-align: center
}

.elementor-post-navigation .elementor-post-navigation__next {
    text-align: right
}

.elementor-post-navigation .elementor-post-navigation__next a {
    justify-content: flex-end
}

.elementor-search-form {
    display: block;
    transition: .2s
}

.elementor-search-form .e-font-icon-svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center
}

.elementor-search-form button,.elementor-search-form input[type=search] {
    margin: 0;
    border: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
    white-space: normal;
    background: none;
    line-height: 1;
    min-width: 0;
    font-size: 15px;
    -webkit-appearance: none;
    -moz-appearance: none
}

.elementor-search-form button:focus,.elementor-search-form input[type=search]:focus {
    outline: 0;
    color: inherit
}

.elementor-search-form button {
    background-color: #69727d;
    font-size: var(--e-search-form-submit-icon-size,16px);
    color: #fff;
    border-radius: 0
}

.elementor-search-form__container {
    display: flex;
    transition: .2s;
    overflow: hidden;
    border: 0 solid transparent;
    min-height: 50px
}

.elementor-search-form__container:not(.elementor-search-form--full-screen) {
    background: #f1f2f3
}

.elementor-search-form__input {
    flex-basis: 100%;
    color: #3f444b;
    transition: color .2s
}

.elementor-search-form__input::-moz-placeholder {
    color: inherit;
    font-family: inherit;
    opacity: .6
}

.elementor-search-form__input::placeholder {
    color: inherit;
    font-family: inherit;
    opacity: .6
}

.elementor-search-form__submit {
    transition: color .2s,background .2s;
    font-size: var(--e-search-form-submit-icon-size,16px)
}

.elementor-search-form__submit svg {
    fill: var(--e-search-form-submit-text-color,#fff);
    width: var(--e-search-form-submit-icon-size,16px);
    height: var(--e-search-form-submit-icon-size,16px)
}

.elementor-search-form .elementor-search-form__submit,.elementor-search-form .elementor-search-form__submit:hover {
    color: var(--e-search-form-submit-text-color,#fff);
    border: none;
    border-radius: 0
}

.elementor-search-form--button-type-text .elementor-search-form__submit {
    flex-shrink: 0
}

.elementor-search-form--skin-minimal .elementor-search-form__icon {
    opacity: .6;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #3f444b;
    fill: #3f444b;
    font-size: var(--e-search-form-icon-size-minimal,15px)
}

.elementor-search-form--skin-minimal .elementor-search-form__icon svg {
    width: var(--e-search-form-icon-size-minimal,15px);
    height: var(--e-search-form-icon-size-minimal,15px)
}

.elementor-search-form--skin-minimal:focus-within {
    outline-width: 2px;
    outline-style: solid
}

.elementor-search-form--skin-full_screen .elementor-search-form input[type=search].elementor-search-form__input {
    font-size: 50px;
    text-align: center;
    border: solid #fff;
    border-width: 0 0 1px;
    line-height: 1.5;
    color: #fff
}

.elementor-search-form--skin-full_screen .elementor-search-form__toggle {
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
    color: var(--e-search-form-toggle-color,#33373d);
    font-size: var(--e-search-form-toggle-size,33px)
}

.elementor-search-form--skin-full_screen .elementor-search-form__toggle .e-font-icon-svg-container,.elementor-search-form--skin-full_screen .elementor-search-form__toggle i {
    position: relative;
    display: block;
    transition: .2s;
    width: var(--e-search-form-toggle-size,33px);
    height: var(--e-search-form-toggle-size,33px);
    background-color: var(--e-search-form-toggle-background-color,rgba(0,0,0,.05));
    border: var(--e-search-form-toggle-border-width,0) solid var(--e-search-form-toggle-color,#33373d);
    border-radius: var(--e-search-form-toggle-border-radius,3px)
}

.elementor-search-form--skin-full_screen .elementor-search-form__toggle .e-font-icon-svg-container:before,.elementor-search-form--skin-full_screen .elementor-search-form__toggle .e-font-icon-svg-container svg,.elementor-search-form--skin-full_screen .elementor-search-form__toggle i:before,.elementor-search-form--skin-full_screen .elementor-search-form__toggle i svg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%)
}

.elementor-search-form--skin-full_screen .elementor-search-form__toggle .e-font-icon-svg-container:before,.elementor-search-form--skin-full_screen .elementor-search-form__toggle i:before {
    font-size: var(--e-search-form-toggle-icon-size,.55em)
}

.elementor-search-form--skin-full_screen .elementor-search-form__toggle .e-font-icon-svg-container svg,.elementor-search-form--skin-full_screen .elementor-search-form__toggle i svg {
    fill: var(--e-search-form-toggle-color,#33373d);
    width: var(--e-search-form-toggle-icon-size,.55em);
    height: var(--e-search-form-toggle-icon-size,.55em)
}

.elementor-search-form--skin-full_screen .elementor-search-form__container {
    transition: .3s;
    align-items: center;
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    padding: 0 15%;
    background-color: rgba(0,0,0,.8)
}

.elementor-search-form--skin-full_screen .elementor-search-form__container:not(.elementor-search-form--full-screen) {
    overflow: hidden;
    opacity: 0;
    transform: scale(0)
}

.elementor-search-form--skin-full_screen .elementor-search-form__container:not(.elementor-search-form--full-screen) .dialog-lightbox-close-button {
    display: none
}

.elementor-author-box {
    display: flex;
    align-items: center
}

.elementor-author-box__avatar {
    flex-shrink: 0;
    margin-right: 25px
}

.elementor-author-box__avatar img {
    width: 100px;
    border-radius: 500px;
    -o-object-fit: cover;
    object-fit: cover
}

.elementor-author-box__text {
    flex-grow: 1;
    font-size: 17px
}

.elementor-author-box__name {
    font-size: 24px;
    margin-bottom: 5px
}

.elementor-author-box__bio,.elementor-author-box__bio p {
    margin-bottom: .8em
}

.elementor-author-box__bio p:last-of-type {
    margin-bottom: 0
}

.elementor-author-box--layout-image-left .elementor-author-box {
    flex-direction: row
}

.elementor-author-box--layout-image-left .elementor-author-box__avatar {
    margin-left: 0;
    margin-right: 25px
}

.elementor-author-box--layout-image-right .elementor-author-box {
    flex-direction: row-reverse
}

.elementor-author-box--layout-image-right .elementor-author-box__avatar {
    margin-right: 0;
    margin-left: 25px
}

.elementor-author-box--layout-image-above .elementor-author-box {
    display: block
}

.elementor-author-box--layout-image-above .elementor-author-box__avatar {
    margin: 0 auto 15px;
    display: inline-block
}

.elementor-author-box--layout-image-above.elementor-author-box--align-left .elementor-author-box__avatar {
    margin-left: 0
}

.elementor-author-box--layout-image-above.elementor-author-box--align-right .elementor-author-box__avatar {
    margin-right: 0
}

.elementor-author-box--align-left .elementor-author-box {
    text-align: left
}

.elementor-author-box--align-right .elementor-author-box {
    text-align: right
}

.elementor-author-box--align-center .elementor-author-box {
    text-align: center
}

.elementor-button.elementor-author-box__button {
    border: 2px solid #3f444b;
    font-size: 15px;
    font-weight: 100;
    padding: 10px 18px
}

.elementor-button.elementor-author-box__button,.elementor-button.elementor-author-box__button:hover {
    background: transparent;
    color: #3f444b
}

.elementor-widget-author-box:not(.elementor-author-box--layout-image-above).elementor-author-box--image-valign-top .elementor-author-box__avatar,.elementor-widget-author-box:not(.elementor-author-box--layout-image-above) .elementor-author-box__avatar {
    align-self: flex-start
}

.elementor-widget-author-box:not(.elementor-author-box--layout-image-above).elementor-author-box--image-valign-middle .elementor-author-box__avatar {
    align-self: center
}

.elementor-post-info__terms-list {
    display: inline-block
}

.elementor-post-info .elementor-icon-list-icon .elementor-avatar {
    border-radius: 100%
}

.elementor-widget-post-info.elementor-align-center .elementor-icon-list-item:after {
    margin: initial
}

.elementor-icon-list-items .elementor-icon-list-item .elementor-icon-list-text {
    display: inline-block
}

.elementor-icon-list-items .elementor-icon-list-item .elementor-icon-list-text a,.elementor-icon-list-items .elementor-icon-list-item .elementor-icon-list-text span {
    display: inline
}

.elementor-widget-breadcrumbs {
    font-size: .85em
}

.elementor-widget-breadcrumbs p {
    margin-bottom: 0
}

.elementor-sitemap-wrap {
    display: flex;
    flex-flow: row wrap
}


/* EC ADDED */

/* ─────────────────────────────────────────────
   Responsive Grid Pages (Impact, Canola In Our Lives)
   NCMP Global Styles
───────────────────────────────────────────── */

/* --- FILTER DROPDOWN --- */
label[for="tg-subcat"] {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-family: var(--ncmp-font-main, 'canada-type-gibson', sans-serif);
  font-size: 1rem;
  color: var(--ncmp-text, #202020);
  letter-spacing: 0.02em;
}
#tg-subcat {
  display: block;
  max-width: 300px;
  width: 100%;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  border: 1px solid var(--ncmp-accent, #ccc);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--ncmp-font-main, 'canada-type-gibson', sans-serif);
  color: var(--ncmp-text, #202020);
  background: #fff;
  transition: border-color 0.2s;
}
#tg-subcat:focus {
  border-color: var(--ncmp-primary, #ED2226);
  outline: none;
}

/* --- GRID LAYOUT --- */
#tg-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4.9vw 79px;
  padding: 0;
}
@media (min-width: 1920px) {
  #tg-container,
  .tg-content-box {
    max-width: 1640px;
  }
}
@media (max-width: 1024px) {
  #tg-container {
    column-gap: 32px;
    row-gap: 48px;
  }
}
@media (max-width: 767px) {
  #tg-container {
    grid-template-columns: 1fr;
    padding: 0 36px;
    row-gap: 32px;
  }
}

/* --- FILTER CONTAINER BOX (matches grid) --- */
.tg-content-box {
  max-width: 1200px;
  margin: 64px auto;
  padding: 0;
  background: none;
}
@media (min-width: 1920px) {
  .tg-content-box {
    max-width: 1640px;
  }
}
@media (max-width: 1024px) {
  .tg-content-box {
	margin: 40px auto;  
    padding-left: 36px;
    padding-right: 36px;
  }
}

/* --- FILTER PILL ALIGNMENT --- */
.filter-align-right {
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 767px) {
  .filter-align-right {
    justify-content: center;
  }
}

/* --- FILTER PILL CONTAINER --- */
.filter-pill {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 460px;
  border: 2px solid var(--ncmp-text, #202020);
  border-radius: 999px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.03);
  transition: border-color 0.2s;
}
@media (max-width: 767px) {
  .filter-pill {
    width: 100%;
    max-width: 100%;
  }
}

/* --- FILTER PILL LABEL ("Topic") --- */
.filter-label {
  background-color: var(--ncmp-text, #202020);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  padding: 12px 40px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 100%;
  font-family: var(--ncmp-font-main, 'canada-type-gibson', sans-serif);
  letter-spacing: 0.03em;
}

/* --- FILTER PILL DROPDOWN --- */
.filter-pill > select#tg-subcat {
  all: unset;
  flex: 1;
  display: flex; /* Use flex to help vertical align */
  align-items: center;
  font-size: 16px;
  font-weight: 300;
  padding: 12px 32px;
  height: 100%;
  background-color: #fff;
  color: var(--ncmp-text, #202020);
  font-family: var(--ncmp-font-main, 'canada-type-gibson', sans-serif);
  border-left: 1px solid var(--ncmp-text, #202020);
  cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  line-height: normal; /* Reset weird line height issues */
}
@media (max-width: 767px) {
  .filter-pill > select#tg-subcat {
    background-image: none !important;
    padding-right: 16px; /* Optional: adjust padding if needed */
  }
}


/* --- GRID ITEM CARD BASE --- */
.tg-grid-item,
.tg-secondary-item {
  background: none;
  border: none;
  overflow: hidden;
  font-family: var(--ncmp-font-main, 'canada-type-gibson', sans-serif);
}

/* IMAGE */
.tg-grid-item .tg-grid-image img {
  width: 100%;
  height: 360px; /* Default for desktop (1025px–1919px) */
  border-radius: 40px;
  object-fit: cover;
  display: block;
}
@media (min-width: 1920px) {
  .tg-grid-item .tg-grid-image img {
    height: 420px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .tg-grid-item .tg-grid-image img {
    height: 300px;
  }
}
@media (max-width: 767px) {
  .tg-grid-item .tg-grid-image img {
    height: 230px;
  }
}

.tg-grid-item a {
  text-decoration: none !important;
  border-bottom: none !important;
}
/* LABEL */
.tg-grid-term {
  font-family: "canada-type-gibson", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  color: #ED2226;
  display: block;
  margin: 1rem 0 1rem 0;
}
@media (max-width: 1024px) {
  .tg-grid-term {
    margin: 32px 0 0 0;
  }
}
/* TITLE */
h2.tg-grid-title {
  font-family: var(--ncmp-font-main, 'canada-type-gibson', sans-serif);
  font-weight: 600 !important;
  color: var(--ncmp-text, #202020);
  margin: 0;
}
@media (min-width: 1920px) {
  h2.tg-grid-title {
    font-size: 40px;
    line-height: 50px;
  }
}
@media (min-width: 1025px) and (max-width: 1919px) {
  h2.tg-grid-title {
    font-size: 35px;
    line-height: 45px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  h2.tg-grid-title {
    font-size: 30px;
    line-height: 40px;
  }
}
@media (max-width: 767px) {
  h2.tg-grid-title {
    font-size: 26px;
    line-height: 32px;
	padding: 0px 0px 32px 0px;
  }
}
/* EXCERPT */
.tg-grid-excerpt {
  font-size: 20px!important;
  font-weight: 300;
  line-height: 32px;
  color: #000!important;
}
/* DYK CARD */
.tg-secondary-item {
  width: 100%;              /* Make sure it fills the grid cell */
  height: 100%;             /* Optional: if you want equal heights */
  background-color: #81EAE7;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* REMOVE or REDUCE any padding/margin here if set elsewhere */
}

.tg-secondary-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-top: 78px;
  padding-bottom: 46px;
  padding-left: 68px;
  padding-right: 68px;
}

@media (max-width: 767px) {
  .tg-secondary-inner {
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 35px;
    padding-right: 35px;
  }
}

/* DYK Heading – inherits global Title style at all breakpoints */
h2.tg-secondary-heading {
  font-family: var(--ncmp-font-main), 'canada-type-gibson', sans-serif !important;
  font-size: 40px !important;
  font-weight: 700 !important;
  line-height: 40px !important;
  color: #003049 !important;
  margin: 0 0 1rem;
}

@media (min-width: 768px) and (max-width: 1024px) {
  h2.tg-secondary-heading {
    font-size: 70px !important;
    line-height: 80px !important;
  }
}
@media (min-width: 1025px) and (max-width: 1919px) {
  h2.tg-secondary-heading {
    font-size: 80px !important;
    line-height: 92px !important;
  }
}
@media (min-width: 1920px) {
  h2.tg-secondary-heading {
    font-size: 100px !important;
    line-height: 100px !important;
  }
}

.tg-secondary-content,
.tg-secondary-link {
  font-family: var(--ncmp-font-main, 'canada-type-gibson', sans-serif) !important;
  font-weight: 500 !important;
  color: var(--ncmp-blue, #003049) !important;
  margin: 0;
}
@media (min-width: 1920px) {
  .tg-secondary-content,
  .tg-secondary-link {
    font-size: 40px !important;
    line-height: 50px !important;
  }
}
@media (min-width: 1025px) and (max-width: 1919px) {
  .tg-secondary-content,
  .tg-secondary-link {
    font-size: 35px !important;
    line-height: 40px !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .tg-secondary-content,
  .tg-secondary-link {
    font-size: 35px !important;
    line-height: 40px !important;
  }
}
@media (max-width: 767px) {
  .tg-secondary-content,
  .tg-secondary-link {
    font-size: 30px !important;
    line-height: 35px !important;
  }
}

.dyk-header-row {
  display: flex;
  align-items: flex-start;      /* Align items to the top (start of cross axis) */
  justify-content: flex-start;  /* Items start from the left */
  width: 100%;
  gap: 24px; /* (Optional) space between heading and icon */
}
.dyk-header-row > * {
  margin: 0;
}
.tg-secondary-heading {
  margin: 0;
  font-size: 70px !important;
  font-weight: 700;
  line-height: 80px;
  color: rgb(0, 48, 73) !important;
}

.dyk-icon {
  display: block;
  object-fit: contain;
}
@media (min-width: 1920px) {
  .dyk-icon {
    width: 140px;
    height: 140px;
  }
}
@media (min-width: 1025px) and (max-width: 1919px) {
  .dyk-icon {
    width: 100px;
    height: 100px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .dyk-icon {
    width: 90px;
    height: 90px;
  }
}
@media (max-width: 767px) {
  .dyk-icon {
    width: 75px;
    height: 75px;
  }
}


.tg-secondary-content {
  font-size: 35px !important;
  font-weight: 500;
  line-height: 40px;
  color: rgb(0, 48, 73) !important;
  margin: 0;
}
/* LOAD MORE */
#tg-load-more {
  display: block;
  margin: 3rem auto 2rem;
  padding: 0.75rem 1.75rem;
  font-family: 'canada-type-gibson', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #ED2226;
  background: none;
  border: none;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

/* Hover effect */
#tg-load-more:hover {
  color: #ED2226;
  background-color: #fff;
}

/* ──────────────────────────────────────────────────────────────────────────
   Learning Centre Page
────────────────────────────────────────────────────────────────────────── */
/* Contain filter bar to grid width, center on page */
.lc-content-box {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 0;
}

@media (min-width: 1920px) {
  .lc-content-box {
    max-width: 1640px;
  }
}

/* FILTER BAR: Pill-style, right-aligned */
.lc-filter-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 4rem 0 3rem 0;
  width: 100%;
}
@media (max-width: 1024px) {
  .lc-filter-wrapper {
    padding-left: 36px;
    padding-right: 36px;
  }
}
@media (max-width: 767px) {
  .lc-filter-wrapper {
    justify-content: flex-start !important;
  }
}

/* LABEL ("Type" on the left) */
.lc-filter-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: #202020;
  border-radius: 32px 0 0 32px;
  padding: 12px 32px;
  height: 48px;
  display: flex;
  align-items: center;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .lc-filter-label {
    height: 56px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
  }
}

/* FILTER BAR (ul): pill shape, border, white bg */
.lc-filter {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 2px solid #202020;
  border-radius: 0 32px 32px 0;
  overflow: hidden;
  background: #fff;
  height: 48px;
}

/* INDIVIDUAL FILTER BUTTONS */
.lc-filter li {
  cursor: pointer;
  user-select: none;
  font-size: 1.05rem;
  font-weight: 300;
  color: #202020;
  padding: 0 32px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  height: 100%;
  transition: background 0.2s, color 0.2s;
}

@media (max-width: 767px) {
  .lc-filter {
    height: 56px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .lc-filter li {
    padding: 0 14px !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
  }
}



/* Active or Hover: filled pill */
.lc-filter li.is-active,
.lc-filter li:hover {
  background: #202020;
  color: #fff;
  text-decoration: none;
  outline: none;
}
@media (max-width: 1024px) {
  .lc-filter li.is-active,
  .lc-filter li:hover {
    background: none !important;
    color: inherit !important;
  }
}


/* Rounded right edge for the last filter */
.lc-filter li:last-child {
  border-radius: 0 32px 32px 0;
}

/* Responsive: smaller pill and padding on mobile */
@media (max-width: 700px) {
  .lc-filter-label,
  .lc-filter {
    padding: 8px 16px;
    height: 40px;
    font-size: 1rem;
  }
  .lc-filter li {
    padding: 0 16px;
    font-size: 1rem;
  }
}


/* LEARNING CENTRE GRID CONTAINER */
#lc-container {
  max-width: 1200px;
  margin: 0 auto 64px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 79px;
  row-gap: 96px;
  padding: 0;
}
@media (min-width: 1920px) {
  #lc-container {
    max-width: 1640px;
  }
}
@media (max-width: 1024px) {
  #lc-container {
    padding-left: 36px;
    padding-right: 36px;
  }
}
@media (max-width: 767px) {
  #lc-container {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
}
/* LEARNING CENTRE GRID ITEM */
.lc-card {
  display: grid;
  grid-template-columns: 220px 1fr;  /* First column is image, fixed at 220px */
  align-items: center;
  gap: 2rem;                         /* Space between image and text */
  background: #fff;
  border-radius: 24px;
  overflow: visible;
  min-height: 220px;                 /* Prevent card from shrinking too much */
}
@media (max-width: 1024px) {
  .lc-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 1rem;
  }
}
@media (max-width: 767px) {
  .lc-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: unset;
  }
}

/* Image column */
.lc-card-image {
  width: 220px;
  height: 220px;
  background: #f0f0f0; /* fallback */
  border-radius: 40px;
}
.lc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 40px;
}
@media (max-width: 767px) {
  .lc-card-image {
    width: 173px;
    height: 173px;
	margin-bottom: 24px;
  }
}
/* Body column */
.lc-card-body {
  padding: 0rem;
}
.lc-card-title {
  margin: 0 0 24px 0;
  font-size: 1.25rem;
  text-decoration: none !important;    /* Remove underline */
  border-bottom: none !important;      /* Remove border underline if used */
  font-weight: 500 !important;
}
.page-id-45 a,
.page-id-45 .lc-card-title,
.page-id-45 .lc-card-title a {
  text-decoration: none !important;
  border-bottom: none !important;
}


.lc-card-link {
  font-size: 1rem;
  font-weight: 300;
  text-decoration: none;
  color: #202020;
  display: inline-flex;
  align-items: center;
}

/* Icon before link */
.lc-card-link::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 0.5rem;
  background-size: contain;
  background-repeat: no-repeat;
}
/* Replace these URLs with your actual icon paths */
.lc-pdf   .lc-card-link::before { background-image: url('https://sandbox.hellocanola.ca/wp-content/uploads/2023/10/HelloCanola-Learning-Centre-Icon-Download.svg'); }
.lc-doc   .lc-card-link::before { background-image: url('https://sandbox.hellocanola.ca/wp-content/uploads/2023/10/HelloCanola-Learning-Centre-Icon-Download.svg'); } /* Update if different */
.lc-video .lc-card-link::before { background-image: url('https://sandbox.hellocanola.ca/wp-content/uploads/2023/10/HelloCanola-Learning-Centre-Icon-Video.svg'); }
.lc-link  .lc-card-link::before { background-image: url('https://sandbox.hellocanola.ca/wp-content/uploads/2023/10/HelloCanola-Learning-Centre-Icon-Arrow.svg'); }
.lc-image .lc-card-link::before { background-image: url('https://sandbox.hellocanola.ca/wp-content/uploads/2023/10/HelloCanola-Learning-Centre-Icon-Arrow.svg'); } /* Update if different */

/* Background behind the image per type */
.lc-pdf   .lc-card-image { background: #FFEDED; }
.lc-doc   .lc-card-image { background: #E8F0FE; }
.lc-video .lc-card-image { background: #E8F7FE; }
.lc-image .lc-card-image { background: #F3E8FE; }
.lc-link  .lc-card-image { background: #E8FEE8; }

/* ──────────────────────────────────────────────────────────────────────────
   Recipes Page
────────────────────────────────────────────────────────────────────────── */
/* TITLE, SEARCH and FILTER */
.recipes-page-title-search-bar {
	/* style the bar that holds "All Recipes" and the search form */	
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 36px;
}
@media (min-width: 1025px) {
  .recipes-page-title-search-bar {
	margin: 0 0 40px 0;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (min-width: 1920px) {
  .recipes-page-title-search-bar {
    max-width: 1640px !important;
  }
}
.recipes-page-title-search-bar h3 {
	/* style "All Recipes" */
	padding-top: 128px;
}
@media (max-width: 1024px) {
  .recipes-page-title-search-bar h3 {
    padding-top: 40px;
  }
}
.recipes-page-title-search-bar form {
	/* use the form tag to position it on the right */
}
.recipes-page-title-search-bar form div.form_wrapper {
	/* div for drawing the pill outline around the form - not for positioning */
	border: 1px solid #202020;
	border-radius: 100px;
	padding: 6px;
}
input.recipe-search-form-input {
	/* search input field */	
}
button.recipe-search-form-submit {
	/* search submit button */	
}
div.recipe-category-select-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
}
div.recipe-category-select-wrapper label {
	background: #000;
	color: #FFF;
}
div.recipe-category-select-wrapper select {
	
}
div.recipe-category-select-wrapper select option {
	
}

/* Container for the filter bar */
.recipes-filter-bar {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

/* Responsive for extra-large screens */
@media (min-width: 1920px) {
  .recipes-filter-bar {
    max-width: 1640px;
  }
}

/* The left black pill label */
.recipes-filter-label {
  background: #202020;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  padding: 12px 40px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 48px;
  border-radius: 32px 0 0 32px;
  margin: 0;
}

/* Pill container for the select */
.recipes-filter-pill {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #202020;
  border-radius: 0 32px 32px 0;
  overflow: hidden;
  height: 48px;
  padding: 0;
}

/* The dropdown itself styled as part of the pill */
.recipes-filter-pill select#recipe-subcat {
  all: unset;
  display: block;
  width: 260px;
  padding: 12px 32px;
  font-size: 16px;
  background: #fff;
  color: #333;
  border-left: 0px solid #202020;
  border-radius: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px;
  height: 48px;
  box-sizing: border-box;
  margin: 0;
}

/* Responsive: stack and shrink pill on mobile */
@media (max-width: 700px) {
  .recipes-filter-bar {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 2rem;
  }
  .recipes-filter-label,
  .recipes-filter-pill,
  .recipes-filter-pill select#recipe-subcat {
    padding: 8px 16px;
    height: 40px;
    font-size: 1rem;
  }
  .recipes-filter-pill select#recipe-subcat {
    width: 100%;
    min-width: 0;
  }
}
.recipes-page-title-search-bar {
  max-width: 1200px;
  margin: 0 auto 2.5rem auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}

.recipes-page-title-search-bar h3 {
  font-size: 4rem;
  font-weight: 700;
  color: #202020;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0px;
}

.recipe-search-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-radius: 999px;
}

.form_wrapper {
  display: flex;
  width: 100%;
  border: 2px solid #222;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  padding: 60px;
  height: 64px;
}

.recipe-search-form-input {
  border: none !important;      /* ensures no border in any state */
  outline: none;
  flex: 1 1 0%;
  font-size: 1.1rem;
  padding: 0 32px;
  background: transparent;
  color: #222;
  height: 100%;
  border-radius: 0;
}

.recipe-search-form-input::placeholder {
  color: #999;
  opacity: 1;
  font-weight: 400;
}

.recipe-search-form-submit {
  background: #222;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0 40px;
  border: none;
  outline: none;
  height: 100%;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
}

.recipe-search-form-submit:hover,
.recipe-search-form-submit:focus {
  background: #111;
}

@media (max-width: 900px) {
  .recipes-page-title-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .form_wrapper,
  .recipe-search-form {
    max-width: 100%;
  }
  .recipes-page-title-search-bar h3 {
    font-size: 2.4rem;
  }
}

/* RECIPES GRID LAYOUT (3 → 2 → 1 columns) */
#recipe-container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 79px;
	row-gap: 96px;
	padding: 0;
}
@media (min-width: 1920px) {
	#recipe-container {
		max-width: 1640px;
	}
}
@media (max-width: 1024px) {
	#recipe-container {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 767px) {
	#recipe-container {
		grid-template-columns: 1fr;
		padding: 0 36px;
	}
}
/* RECIPE CARD STYLING */
article.recipe-grid-item { /* recipe holder */
	background: #fff;
	overflow: hidden;
}
a.recipe-grid-link { /* link wraps the entire contents of the card */
	display: flex;
	flex-direction: column;
	text-decoration: none;
}
div.recipe-grid-image img {
  width: 100%;
  max-width: 100%;
  border-radius: 40px;
  object-fit: cover;
  display: block;
  margin: 0 0 32px;
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
  div.recipe-grid-image img {
    height: 230px;
  }
}

/* Tablet (768px–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  div.recipe-grid-image img {
    height: 300px;
  }
}

/* Widescreen (1920px and up) */
@media (min-width: 1920px) {
  div.recipe-grid-image img {
    height: 420px;
  }
}

/* Default / Desktop (1025px–1919px) */
@media (min-width: 1025px) and (max-width: 1919px) {
  div.recipe-grid-image img {
    height: 360px; /* If you want to keep the original height as the default */
  }
}

span.recipe-grid-term {
	display: block;
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
	color: #ED2226;
	text-decoration: none;
	margin: 0 0 8px;
}
h2.recipe-grid-title {
	font-size: 35px;
	font-weight: 600;
	line-height: 40px;
	color: #202020;
	margin: 0 0 32px;
}
div.recipe-grid-excerpt {
	margin: 0;
	font-size: 18px;
	line-height: 24px;
	font-weight: 300px;
	color: #202020;
}
/* SECONDARY CALLOUT CARD */
article.recipe-secondary-item {
	grid-column: span 1;
	background: #FFE000;
	border-radius: 40px;
	overflow: hidden;
}
a.recipe-secondary-link { /* link wraps the entire contents of the card */
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none!important;
	color: #ED2226!important;
	padding: 50px;
}
div.recipe-secondary-image {
	width: 200px;
	height: 200px;
	margin: 0 auto 32px;   /* center + spacing below */
	overflow: hidden;
	border-radius: 50%;
	border: 3px solid #ED2226;
}
div.recipe-secondary-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
@media (max-width: 767px) {
  div.recipe-secondary-image {
    display: none;
  }
}
h5.recipe-secondary-category {
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
	padding-bottom: 16px;
	color: #ED2226;
}
@media (max-width: 767px) {
  h5.recipe-secondary-category {
    padding-bottom: 0;
  }
}
h3.recipe-secondary-content {
  font-size: 35px;
  font-weight: 600;
  line-height: 40px;
  color: #ED2226;
}
@media (min-width: 1920px) {
  h3.recipe-secondary-content {
    font-size: 40px;
    line-height: 50px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  h3.recipe-secondary-content {
    font-size: 30px;
    line-height: 35px;
  }
}
@media (max-width: 767px) {
  h3.recipe-secondary-content {
    font-size: 30px;
    line-height: 35px;
  }
}
span.recipe-secondary-button {
	display: inline-block;
	font-size: 22pxt;
	font-weight: 500;
	color: #ED2226;
	border: 3px solid #ED2226;
	border-radius: 60px;
	padding: 12px 32px;
}
/* LOAD MORE BUTTON */
#recipe-load-more {
	display: block;
	margin: 3rem auto 2rem;
	padding: 0.75rem 1.75rem;
	font-family: 'canada-type-gibson', sans-serif;
	font-size: 1.1rem;
	font-weight: 500;
	color: #ED2226;
	background: none;
	border: none;
	border-radius: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: all 0.3s ease-in-out;
}
#recipe-load-more:hover {
	color: #ED2226;
	background-color: #fff;
}

@media (max-width: 767px) {
  .recipes-filter-bar {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0px;
    padding: 0px 36px;
  }

  .recipes-filter-label {
    font-size: 16px;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
  }

  .recipes-filter-pill {
    flex-grow: 1;
  }

  .recipes-filter-pill select {
    width: 100%;
    height: 40px;
    font-size: 16px;
    padding: 12px 32px 12px 12px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23000" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    appearance: none;
    border: 1px solid #ccc;
    border-radius: 100px;
    background-color: #fff;
  }
}

/* END EC ADDED*/