/*
Theme Name: Minute Meals
Theme URI: http://minutemeals.test/minute-meals
Author: Mohan Wickramasinghe
Author URI: http://minutemeals.test
Description: A custom WordPress theme.
Version: 1.0
*/
/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header .navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.carousel img {
    height: 400px;
    object-fit: cover;
}

/* Top Navigation Menu Styles */
.top-nav {
    background-color: #f8f9fa; /* Light background */
}

.top-menu-container {
    display: flex;
    justify-content: flex-end;
}

.top-menu .menu-item {
    display: inline-block;
    margin-right: 15px;
}

.top-menu .menu-item a {
    color: #333;
    text-decoration: none;
}

.top-menu .menu-item a:hover {
    color: #007bff;
}

/* Left-aligned navigation */
.navbar-nav.me-auto {
    margin-right: auto;
}

/* Right-aligned secondary links */
.navbar-nav.ms-auto {
    margin-left: auto;
}

/* Optional: Style secondary links */
.navbar-nav.ms-auto .nav-link {
    color: #ccc;
    font-size: 0.9rem;
}

/* Separator styling */
.nav-item.separator {
    font-size: 1rem;
    color: #ccc;
    align-items: center;
    display: none; /* Hide separator on small screens */
}

.nav-item.separator hr {
    width: 100%;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .nav-item.separator {
        display: flex !important;
    }
}

/* homepage tiles */
.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

/* front-page */
.recipe-meta {
    font-size: 12px;
    font-weight: 500;
    padding-bottom: 10px;
}

.card-title a {
 text-decoration: none;
 color: #044728;
}

/* single post */
.post-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.post-content {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

.widget {
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Single Recipe Page */
.recipe-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.main-image img {
    width: 100%;
    max-width: 600px;
    border: 2px solid #ddd;
    cursor: zoom-in;
}

.image-thumbnails img {
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.image-thumbnails img:hover {
    border-color: #333;
}

.recipe-info .badge {
    padding: 0.5em 0.8em;
}

.recipe-sidebar .youtube {
    text-align: center;
}

.recipe-sidebar h4 {
    margin-bottom: 10px;
}

/* .tag-list {
    list-style: none;
    padding: 0;
}

.tag-list li {
    display: inline-block;
    margin-right: 8px;
}

.tag-list li a {
    color: #007bff;
    text-decoration: none;
}

.tag-list li a:hover {
    text-decoration: underline;
} */

.thumbnail-carousel {
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 25px;
    background-color: #fff;
}

.thumbnails-wrapper {
    width: calc(75px * 4 + 15px); /* Adjust for the number of visible thumbnails (4 here) */
    overflow: hidden;
    flex-grow: 1;
    position: relative;
}

.thumbnails-wrapper-1 {
    display: none;
}

.thumbnails-wrapper-2 {
    width: calc(75px * 2 + 15px);
}

.thumbnails-wrapper-3 {
    width: calc(75px * 3 + 15px);
}

.thumbnails {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}

.thumbnail-img {
    width: 75px;
    height: 75px;
    margin-right: 5px;
    cursor: pointer;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid transparent;
}

.thumbnail-img:hover {
    border-color: #007bff;
}

.carousel-nav {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1;
}

.carousel-nav.left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-nav.right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
}

.main-image.zoomed img {
    transform: scale(2); /* Adjust zoom level */
    cursor: grab;
    cursor: zoom-out;
}

.main-image.zoomed {
    z-index: 10;
    position: absolute;
}

.recipe-details .ingredients {
    list-style: none;
    padding: 0px;
}

.recipe-details .ingredients li {
    padding: 0 0 5px 0;
}

.recipe-details .ingredients li i {
    padding-right: 5px;
    color: #198754;
}

.recipe-details .instruction .instruction-card .instruction-card-inner {
    border: 2px solid #d3d3d3;
    padding: 15px;
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    border-radius: 20px;
}

.recipe-details .instruction .instruction-card .instruction-card-inner .number {
    padding: 10px 15px;
    background-color: #beebcf;
    color: #077944;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    width: fit-content;
    height: fit-content;
}

.recipe-details .instruction .instruction-card .instruction-card-inner:hover {
    border-color: #077944;
    background-color: #beebcf;
}

.recipe-details .instruction .instruction-card .instruction-card-inner:hover .number {
    background-color: #fff;
}

/* footer */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    padding-bottom: 5px;
}

.footer-menu a {
    text-decoration: none;
    color: #fff;
}

.footer-menu a:hover {
    color: #beebcf;
}

/* page */
.page {
    background-color: #f8f8f8;
}

.site-main {
    background-color: #f8f8f8;
    padding: 80px !important;
    border-radius: 8px;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.entry-content {
    line-height: 1.8;
    color: #555;
}

/* ticker */
.ingredient-ticker-wrapper {
    background-color: #f8f9fa;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.ingredient-ticker-wrapper .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ingredient-ticker-container {
    overflow: hidden;
    flex-grow: 1;
    position: relative;
}

.ingredient-ticker {
    display: flex;
    gap: 20px;
    white-space: nowrap;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.ticker-item {
    display: inline-block;
    font-size: 14px;
    color: #333;
    background-color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    text-decoration: none;
}

.ticker-item:hover {
    background-color: #beebcf;  /* Background change on hover */
    font-weight: bold;  /* Bold text on hover */
}

.ticker-arrow {
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
}

.ticker-arrow:hover {
    background-color: #555;
}

.ticker-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .ticker-item {
        font-size: 12px;
    }

    .ingredient-ticker-wrapper .container {
        gap: 5px;
    }

    .ticker-arrow {
        font-size: 16px;
        padding: 4px 8px;
    }
}

/* Ingredients */
.ingredient-item {
    border: 1px solid #077944;
    background-color: #077944;
    padding: 5px 10px;
    font-size: 14px;
    color: #fff;
    display: inline-flex;
    margin-bottom: 8px;
    border-radius: 15px;
    font-weight: 700;
}

.ingredient-item:hover {
    border: 1px solid #077944;
    background-color: #beebcf;
    color: #000;
}

/* tags */
.tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.tag-item {
    margin-right: 10px;
    margin-top: 15px;
}

.tag-item a {
    border: 1px solid #077944;
    background-color: #beebcf;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.tag-item a:hover {
    border: 1px solid #077944;
    background-color: #077944;
    color: #fff;
}

/* Explore More Recipes Button */
.explore-btn {
    background-color: #077944;
    border: 1px solid #077944;
    padding: 10px 20px;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.explore-btn:hover {
    background-color: #beebcf;
    color: #000;
    border-color: #077944;
    text-decoration: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    list-style: none;
    padding: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #077944;
    border-radius: 4px;
    background-color: #beebcf;
    color: #000;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #077944;
    color: #fff;
    border-color: #077944;
}

.pagination .current {
    font-weight: bold;
    background-color: #077944;
    color: #fff;
    border-color: #077944;
}

.pagination .dots {
    background-color: transparent;
    border: none;
    color: #6c757d;
}

.pagination a.disabled,
.pagination a.disabled:hover {
    pointer-events: none;
    background-color: #e9ecef;
    color: #6c757d;
    border-color: #e9ecef;
}


/* .thumbnails {
    display: flex;
    transition: transform 0.3s ease;
} */
