/*
Theme Name: CSDA
Theme URI: http://csdb.mouz.design/
Description: Theme for the Cuisine Solution Database
Version: 1.0
Author: Mouz design
Author URI: https://mouz.design/
*/

:root{
	--bs-primary-rgb: 238, 49, 36;
	--bs-link-color: #ee3124;
	--bs-link-color-rgb: 238, 49, 36;
	--bs-link-hover-color: #dc281e;
	--bs-link-hover-color-rgb: 220, 40, 30;
}


body{
	background: white !important;
	color: rgba(0, 0, 0, 0.75);
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1{
	color: black !important;
}

hr {
    margin: 1.5rem 0;
}

blockquote {
    font-style: italic;
    padding-left: 1rem;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1500px;
    }
}

.fw-normal {
    font-weight: 500 !important;
}

.sidebar .modal-dialog {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 31.25rem;
    bottom: 0;
    margin: 0;
}

.py-11 {
    padding-bottom: 9rem !important;
    padding-top: 9rem !important;
}

.rounded{
	overflow: hidden !important;
}

#mobileMenu {
	    border-top: 1px solid #ee3124;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    z-index: 1025;
}

.btn-dark{
	background: black !important;
}

.nav-link{
	color: inherit;
}

.nav-underline .nav-link.active, .nav-underline .show>.nav-link{
	color: #ee3124;;
}

.videoWrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}
.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bg-dark-blur{
	background: rgba(0,0,0,.5);
	-webkit-backdrop-filter: blur(.5px);
  backdrop-filter: blur(.5px);
}

.background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.overlay.dark-gradient-bottom{
	background: rgb(0,0,0);
	background: -moz-linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 30%);
	background: -webkit-linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 30%);
	background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 30%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.overflow-x-scroll::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.overflow-x-scroll {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.application-areas-list,
.product_card_list,
.recipes_list{
	list-style: none;
    overflow-x: visible;
    white-space: nowrap;
}

.application-areas-card {
    display: inline-block;
    width: 25vw;
    border: 2px solid transparent;
    transition: all 150ms ease;
}

.application-areas-card:hover,
.application-areas-card.active{
	border: 2px solid #ee3124;
}

.product_card{
	display: inline-block;
	width: 80vw;
}

.product_card_half,
.application-areas-card_img,
.product_card_img,
.recipe_card_img{
	aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
}

.application-areas-card_img{
  aspect-ratio: 2/1;
}

.home .application-areas-card_img{
  aspect-ratio: 3/2;
}

/*Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) {
	.product_card{ width: 50vw; }
	.application-areas-card{ width: 16.6vw }
}

/*Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {
	.product_card{ width: 33.3vw; }
}

/*Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {
	.product_card{ width: 25vw; }
	.application-areas-card{ width: 8.33vw }
}

/*X-Large devices (large desktops, 1200px and up)*/
/*@media (min-width: 1200px) { ... }*/

/*XX-Large devices (larger desktops, 1400px and up)*/
@media (min-width: 1400px) {
	.product_card{ width: 25vw; max-width: 400px;}
}

/*STEP*/

.step-number {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
}

.step::before {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    content: "";
    border-top: 1px solid #cfcfcf;
}

.step-number-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: inherit;
  background-color: white;
  border-radius: 50%;
  border: 1px solid #cfcfcf;
  transition: color .3s ease-in-out, background-color .3s ease-in-out;
}

/*SINGLE*/

.carousel-indicators{
    margin-bottom: 0;
    bottom: -1.75rem;
}

.carousel-indicators [data-bs-target] {
    width: 5px;
    height: 5px;
    margin-right: 5px;
    margin-left: 5px;
    border-radius: 50%;
    background-color: #ee2e25;
}



/*NEWS*/

.news-carousel {
    position: relative;
}

.news-carousel .tns-ovh {
    overflow: visible !important;
}

#tns1 > .tns-item{
    overflow: hidden;
}

.news-carousel .tns-controls {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.news-carousel .tns-controls button {
    position: relative;
    width: 5rem;
    height: 5rem;
    background: #000;
    font-size: 1.5rem;
    margin-top: -2.5rem;
    border-radius: 0;
    opacity: 1;
    color: #fff;
    border: 0;
}

.news-carousel .tns-controls button:hover {
    background-color: #ee3124 !important;
}

.news-carousel .tns-controls button[data-controls="prev"] {
    left: 0;
}

.news-carousel .tns-controls button[data-controls="next"] {
    right: 0;
}

.news_card{height: 90vw;}

@media (min-width: 576px) { .news_card{height: 60vw;}  }

@media (min-width: 992px) { .news_card{height: 30vw;}  }

@media (min-width: 1200px) { .news_card{height: 25vw;}  }

@media (min-width: 1400px) { .news_card{height: 20vw;}  }


.application-areas-card{
    border: 2px solid transparent;
}

.application-areas-card label {
    cursor: pointer;
}

.application-areas-card:hover,
.application-areas-card.active-area{
    border: 2px solid #ee3124;
}



.equal-2-1 {
    position: relative;
    display: block;
    overflow: hidden;
    height: auto !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}
.equal-2-1::before {
    display: block;
    content: "";
    width: 100%;
    padding-top: 50%;
}


.bi-bookmark:hover::before {
    content: "\f199";
}

.bi-x-square:hover::before {
    content: "\F628";
}





/*SHORTS*/

.shorts-grid {
    .short-card {
        display: block;
        text-decoration: none;
        color: inherit;
        transition: transform 0.2s ease;

        &:hover {
            transform: translateY(-5px);
        }
    }

    .card-thumbnail {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        aspect-ratio: 9/16;
        background: #000;
        
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .no-thumbnail {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            font-size: 2rem;
            background: #ddd;
        }
    }

    .short-title {
        font-weight: 700;
        font-size: 1rem;
        margin: 0.5rem 0 0.25rem;
        line-height: 1.3;
    }

    .short-views {
        font-size: 0.875rem;
        color: #666;
        margin: 0;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.5rem;
    }
    
    .shorts-grid {
        .short-title {
            font-size: 1.1rem;
        }
    }
}


/* CSS for Video Popup and Vertical Video */

.video-popup-video-container {
    aspect-ratio: 9/16; /* Vertical video aspect ratio */
    width: 100%; /* Take full width of the modal body */
    /*max-width: 400px; Optional: Limit maximum width if needed */
    margin: 0 auto; /* Center the video container within modal body */
}

.video-popup-video-container iframe {
    width: 100%;
    height: 100%;
    display: block; /* Remove iframe bottom spacing */
}

/* Optional: If you need to further style the modal itself, you can target Bootstrap modal classes.
   Example: to adjust modal backdrop color or modal content style */
/*
.modal-backdrop.fade.show {
    background-color: rgba(0, 0, 0, 0.5); !* Adjust backdrop color/opacity *!
}

.modal-content {
    border-radius: 0; !* Example: Remove modal content rounded corners *!
}
*/
