/* Main Recipe Card Container */
.dr-recipe-card {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin: 2em 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Header Section */
.dr-recipe-card .dr-header {
	padding: 20px;
	background-color: #f9f9f9;
	border-bottom: 1px solid #e0e0e0;
	text-align: center;
}
.dr-recipe-card .dr-title {
	margin: 0 0 15px;
	font-size: 28px;
	font-weight: 700;
}
.dr-recipe-card .dr-image {
	margin-bottom: 20px;
}
.dr-recipe-card .dr-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	max-width: 600px;
	margin: 0 auto;
	display: block;
}

/* Action Buttons (Jump to, Print) */
.dr-card-actions {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 20px;
}
.dr-card-actions a {
	background-color: #f0f0f0;
	color: #333;
	padding: 10px 20px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.3s;
}
.dr-card-actions a:hover {
	background-color: #e0e0e0;
}
.dr-card-actions .dr-pinterest-btn {
	background-color: #c8232c;
	color: white;
}
.dr-card-actions .dr-pinterest-btn:hover {
	background-color: #a01c23;
}

/* Meta Bar (Prep Time, etc.) */
.dr-meta-bar {
	display: flex;
	justify-content: space-around;
	text-align: center;
	padding: 15px 0;
	background-color: #ffffff;
	border-bottom: 1px solid #e0e0e0;
}
.dr-meta-bar div {
	padding: 0 10px;
}
.dr-meta-bar div span {
	display: block;
}

/* Content Section (Ingredients/Instructions) */
.dr-content {
	padding: 25px;
}
.dr-content h3 {
	font-size: 22px;
	margin-top: 0;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 8px;
	margin-bottom: 15px;
}
.dr-ingredients-list, .dr-instructions-list {
	padding-left: 20px;
}
.dr-ingredients-list li, .dr-instructions-list li {
	margin-bottom: 12px;
	line-height: 1.6;
}
.dr-instructions-list li {
	/* UPDATE: This line forces the list item to behave as a proper container */
	display: block; 
	margin-bottom: 2em;
	padding-bottom: 1.5em;
	border-bottom: 1px solid #eee;
}
.dr-instructions-list li:last-child {
	border-bottom: none;
}
.dr-instructions-list p {
	margin: 0.5em 0 0;
}

/* Styling for Instruction Step Images */
.dr-step-image {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
	display: flex;
	justify-content: center;
}

.dr-step-image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


/* Nutrition Section */
.dr-nutrition-section {
	margin-top: 30px;
	background-color: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
}
.dr-nutrition-list {
	list-style: none;
	padding: 0;
	margin: 0;
	column-count: 2;
}
.dr-nutrition-list li {
	margin-bottom: 8px;
}

/* Star Rating Display */
.dr-rating-display {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 15px;
}
.dr-stars {
	--star-size: 24px;
	--star-color: #ccc;
	--star-background: #ffc107;
	--percent: calc(var(--rating) / 5 * 100%);
	display: inline-block;
	font-size: var(--star-size);
	font-family: Times;
	line-height: 1;
}
.dr-stars::before {
	content: '★★★★★';
	letter-spacing: 3px;
	background: linear-gradient(90deg, var(--star-background) var(--percent), var(--star-color) var(--percent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Visitor Rating Section */
.dr-visitor-rating {
	padding: 20px;
	background-color: #f5f5f5;
	text-align: center;
	border-top: 1px solid #e0e0e0;
}
.dr-visitor-rating h4 {
	margin: 0 0 10px;
}
.dr-rating-stars .star {
	font-size: 28px;
	color: #ddd;
	cursor: pointer;
	transition: color 0.2s;
}
.dr-rating-stars.rated .star {
	cursor: default;
	pointer-events: none;
}
.dr-rating-stars:not(.rated):hover .star {
	color: #ffc107;
}
.dr-rating-stars .star:hover ~ .star {
	color: #ddd;
}

.dr-rating-feedback {
	margin-top: 10px;
	font-weight: bold;
	min-height: 1.2em;
}

/* --- SLEEK & MODERN ACCORDION FAQ SECTION --- */
.dr-faq-section {
	padding: 30px 25px;
	background-color: #f9fafb;
	border-top: 1px solid #e0e0e0;
}
.dr-faq-section h3 {
	font-size: 24px;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 25px;
	text-align: center;
	color: #111827;
}
.dr-faq-accordion {
	max-width: 750px;
	margin: 0 auto;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}
.dr-faq-item {
	border-bottom: 1px solid #e5e7eb;
}
.dr-faq-item:last-child {
	border-bottom: none;
}
.dr-faq-question {
	width: 100%;
	background: #ffffff;
	border: none;
	text-align: left;
	padding: 18px 20px;
	font-size: 1.1em;
	font-weight: 600;
	color: #374151;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background-color 0.2s ease;
}
.dr-faq-question:hover {
	background-color: #f9fafb;
}
.dr-faq-question .faq-icon {
	font-size: 1.4em;
	font-weight: 400;
	color: #6b7280;
	transition: transform 0.3s ease;
}
.dr-faq-question.active .faq-icon {
	transform: rotate(180deg);
}
.dr-faq-answer {
	display: none;
	background: #ffffff;
	padding: 0px 20px 20px 20px;
}
.dr-faq-answer p {
	margin: 0;
	line-height: 1.7;
	color: #4b5563;
	border-left: 3px solid #3b82f6;
	padding-left: 15px;
}

/* --- SLEEK & MODERN RECIPE VIDEO SECTION --- */
.dr-video-section {
	padding: 30px 25px;
	background-color: #ffffff;
	border-top: 1px solid #e0e0e0;
}
.dr-video-section h3 {
	font-size: 24px;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 20px;
	text-align: center;
	color: #111827;
}
.dr-video-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
	background: #000;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.dr-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* --- SLEEK & MODERN SOCIAL SHARING SECTION --- */
.dr-sharing-section {
	padding: 30px 25px;
	background-color: #ffffff;
	border-top: 1px solid #e0e0e0;
	text-align: center;
}
.dr-sharing-section h3 {
	font-size: 22px;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 20px;
	color: #111827;
}
.dr-share-buttons {
	display: flex;
	justify-content: center;
	gap: 12px;
}
.dr-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: #f3f4f6;
	color: #4b5563;
	text-decoration: none;
	transition: all 0.3s ease;
}
.dr-share-btn svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}
.dr-share-btn:hover {
	color: #ffffff;
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.dr-share-btn.facebook:hover {
	background-color: #1877F2;
}
.dr-share-btn.twitter:hover {
	background-color: #1DA1F2;
}
.dr-share-btn.whatsapp:hover {
	background-color: #25D366;
}
.dr-share-btn.telegram:hover {
	background-color: #26A5E4;
}
/*
==============================================
DR Shortcode Styles (Grid, Related, Sidebar)
==============================================
*/

/* --- General Shortcode Wrapper --- */
.dr-shortcode-wrapper {
    margin: 3em 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- MODIFIED: Shortcode Title ("You May Also Like") --- */
.dr-shortcode-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 2em;
    color: #555;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.dr-shortcode-title::before,
.dr-shortcode-title::after {
    content: '';
    display: inline-block;
    width: 100%;
    height: 1px;
    background-color: #ddd;
}

.dr-shortcode-title::before {
    margin-right: 1.5em;
}

.dr-shortcode-title::after {
    margin-left: 1.5em;
}


/* --- MODIFIED: Core Recipe Item Card for Grids --- */
.dr-recipe-item-card {
    background-color: #fff;
    text-align: center;
}

.dr-recipe-item-card:hover img {
    opacity: 0.9;
}

.dr-card-image-link {
    display: block;
    margin-bottom: 1em;
}

.dr-recipe-item-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.dr-card-content {
    padding: 0 10px;
}

.dr-card-title {
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 8px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dr-card-title a {
    color: #333;
    text-decoration: none;
}

.dr-card-title a:hover {
    color: #000;
}

.dr-card-date {
    font-size: 12px;
    color: #888;
}

/* --- MODIFIED: Homepage/Related Grid Layout --- */
.dr-latest-recipes-grid .dr-grid-inner,
.dr-related-recipes .dr-grid-inner {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 30px;
}


/* --- MODIFIED: Sidebar Widget --- */
.dr-sidebar-recipes-widget {
    margin-bottom: 2.5em;
}

.dr-sidebar-recipes-widget .dr-shortcode-title {
    font-size: 18px;
    text-align: left;
    color: #000;
    text-transform: none;
    letter-spacing: normal;
    padding-bottom: 0.75em;
    border-bottom: 2px solid #eee;
    margin-bottom: 0;
    /* Remove lines for sidebar title */
    display: block;
}
.dr-sidebar-recipes-widget .dr-shortcode-title::before,
.dr-sidebar-recipes-widget .dr-shortcode-title::after {
    display: none;
}

.dr-sidebar-recipes-inner {
    display: flex;
    flex-direction: column;
}

.dr-sidebar-recipes-inner a {
    text-decoration: none;
    color: #333;
    padding: 12px 5px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    transition: color 0.2s ease;
}

.dr-sidebar-recipes-inner a:hover {
    color: #000;
}

.dr-sidebar-recipes-inner a:last-child {
    border-bottom: none;
}

/* NOTE: The main recipe card styles from your original file should be kept below this line. */