
/* Heading chung cho H1 đến H5 */
h1, h2, h3, h4, h5 {
    margin-top: var(--heading-margin-top);
    margin-bottom: var(--heading-margin-bottom);
    line-height: var(--line-height);
  }
  
  /* Cấu hình riêng cho từng heading */
  h1 { font-size: var(--font-size-h1); }
  h2 { font-size: var(--font-size-h2); }
  h3 { font-size: var(--font-size-h3); }
  h4 { font-size: var(--font-size-h4); }
  h5 { font-size: var(--font-size-h5); }
  
  /* Title của bài viết */
  .article-title {
    font-size: var(--font-size-title);
    font-weight: 700;
    margin-bottom: var(--heading-margin-top);
    line-height: 1.2;
    color: #222;
    text-align: center;
  }

  p {
    margin-bottom: 1rem;
  }

/*--------------------------------------------------------------
# Page Title & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
    color: var(--default-color);
    background-color: var(--background-color);
  }
  
  .page-title .heading {
    padding: 80px 0;
    border-top: 1px solid rgba(var(--default-color-rgb), 0.1);
  }
  
  .page-title .heading h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--heading-color);
  }
  
  .page-title nav {
    background-color: rgba(var(--default-color-rgb), 0.05);
    padding: 20px 0;
  }
  
  .page-title nav ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
  }
  
  .page-title nav ol li+li {
    padding-left: 10px;
  }
  
  .page-title nav ol li+li::before {
    content: "/";
    display: inline-block;
    padding-right: 10px;
    color: rgba(var(--default-color-rgb), 0.3);
  }


/*--------------------------------------------------------------
# Blog Details Page
--------------------------------------------------------------*/
/* Blog-details Section - Blog Details Page
------------------------------*/
.blog-details .article {
    box-shadow: 0 4px 16px rgba(var(--default-color-rgb), 0.1);
    padding: 30px;
  }
  
  .blog-details .post-img {
    margin: -30px -30px 20px -30px;
    overflow: hidden;
  }
  
  .blog-details .title {
    color: var(--heading-color);
    font-size: 28px;
    font-weight: 700;
    padding: 0;
    margin: 30px 0;
  }
  
  .blog-details .content {
    margin-top: 20px;
  }
  
  .blog-details .content h3 {
    font-size: 22px;
    margin-top: 30px;
    font-weight: bold;
  }
  
  .blog-details .content blockquote {
    overflow: hidden;
    background-color: rgba(var(--default-color-rgb), 0.05);
    padding: 60px;
    position: relative;
    text-align: center;
    margin: 20px 0;
  }
  
  .blog-details .content blockquote p {
    color: var(--default-color);
    line-height: 1.6;
    margin-bottom: 0;
    font-style: italic;
    font-weight: 500;
    font-size: 22px;
  }
  
  .blog-details .content blockquote:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--colorPrimaryDark);
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .blog-details .meta-top {
    margin-top: 20px;
    color: rgba(var(--default-color-rgb), 0.6);
  }
  
  .blog-details .meta-top ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    align-items: center;
    padding: 0;
    margin: 0;
  }
  
  .blog-details .meta-top ul li+li {
    padding-left: 20px;
  }
  
  .blog-details .meta-top i {
    font-size: 16px;
    margin-right: 8px;
    line-height: 0;
    color: rgba(var(--default-color-rgb), 0.6);
  }
  
  .blog-details .meta-top a {
    color: rgba(var(--default-color-rgb), 0.6);
    font-size: 14px;
    display: inline-block;
    line-height: 1;
  }
  
  .blog-details .meta-bottom {
    padding-top: 10px;
    border-top: 1px solid rgba(var(--default-color-rgb), 0.1);
  }
  
  .blog-details .meta-bottom i {
    color: rgba(var(--default-color-rgb), 0.6);
    display: inline;
  }
  
  .blog-details .meta-bottom a {
    color: rgba(var(--default-color-rgb), 0.6);
    transition: 0.3s;
  }
  
  .blog-details .meta-bottom a:hover {
    color: var(--colorPrimaryDark);
  }
  
  .blog-details .meta-bottom .cats {
    list-style: none;
    display: inline;
    padding: 0 20px 0 0;
    font-size: 14px;
  }
  
  .blog-details .meta-bottom .cats li {
    display: inline-block;
  }
  
  .blog-details .meta-bottom .tags {
    list-style: none;
    display: inline;
    padding: 0;
    font-size: 14px;
  }
  
  .blog-details .meta-bottom .tags li {
    display: inline-block;
  }
  
  .blog-details .meta-bottom .tags li+li::before {
    padding-right: 6px;
    color: var(--default-color);
    content: ",";
  }
  
  .blog-details .meta-bottom .share {
    font-size: 16px;
  }
  
  .blog-details .meta-bottom .share i {
    padding-left: 5px;
  }
  
  .blog-details .sidebar {
    padding: 30px;
    box-shadow: 0 4px 16px rgba(var(--default-color-rgb), 0.1);
  }
  
  .blog-details .sidebar .sidebar-title {
    color: var(--heading-color);
    font-size: 20px;
    font-weight: 700;
    padding: 0;
    margin: 0;
  }
  
  .blog-details .sidebar .sidebar-item+.sidebar-item {
    margin-top: 40px;
  }
  
  .blog-details .sidebar .search-form form {
    background: var(--background-color);
    border: 1px solid rgba(var(--default-color-rgb), 0.3);
    padding: 3px 10px;
    position: relative;
  }
  
  .blog-details .sidebar .search-form form input[type=text] {
    border: 0;
    padding: 4px;
    border-radius: 4px;
    width: calc(100% - 40px);
    background-color: var(--background-color);
    color: var(--default-color);
  }
  
  .blog-details .sidebar .search-form form input[type=text]:focus {
    outline: none;
  }
  
  .blog-details .sidebar .search-form form button {
    background: var(--colorPrimaryDark);
    color: var(--background-color);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    border: 0;
    font-size: 16px;
    padding: 0 15px;
    margin: -1px;
    transition: 0.3s;
    border-radius: 0 4px 4px 0;
    line-height: 0;
  }
  
  .blog-details .sidebar .search-form form button i {
    line-height: 0;
  }
  
  .blog-details .sidebar .search-form form button:hover {
    background: rgba(var(--accent-color-rgb), 0.8);
  }
  
  .blog-details .sidebar .categories ul {
    list-style: none;
    padding: 0;
  }
  
  .blog-details .sidebar .categories ul li+li {
    padding-top: 10px;
  }
  
  .blog-details .sidebar .categories ul a {
    color: rgba(var(--default-color-rgb), 0.8);
    transition: 0.3s;
  }
  
  .blog-details .sidebar .categories ul a:hover {
    color: var(--colorPrimaryDark);
  }
  
  .blog-details .sidebar .categories ul a span {
    padding-left: 5px;
    color: rgba(var(--default-color-rgb), 0.5);
    font-size: 14px;
  }
  
  .blog-details .sidebar .recent-posts .post-item {
    display: flex;
    margin-top: 15px;
  }
  
  .blog-details .sidebar .recent-posts img {
    width: 80px;
    margin-right: 15px;
  }
  
  .blog-details .sidebar .recent-posts h4 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  .blog-details .sidebar .recent-posts h4 a {
    color: var(--default-color);
    transition: 0.3s;
  }
  
  .blog-details .sidebar .recent-posts h4 a:hover {
    color: var(--colorPrimaryDark);
  }
  
  .blog-details .sidebar .recent-posts time {
    display: block;
    font-style: italic;
    font-size: 14px;
    color: rgba(var(--default-color-rgb), 0.5);
  }
  
  .blog-details .sidebar .tags {
    margin-bottom: -10px;
  }
  
  .blog-details .sidebar .tags ul {
    list-style: none;
    padding: 0;
  }
  
  .blog-details .sidebar .tags ul li {
    display: inline-block;
  }
  
  .blog-details .sidebar .tags ul a {
    color: rgba(var(--default-color-rgb), 0.7);
    font-size: 14px;
    padding: 6px 14px;
    margin: 0 6px 8px 0;
    border: 1px solid rgba(var(--default-color-rgb), 0.4);
    display: inline-block;
    transition: 0.3s;
  }
  
  .blog-details .sidebar .tags ul a:hover {
    color: var(--background-color);
    border: 1px solid var(--colorPrimaryDark);
    background: var(--colorPrimaryDark);
  }
  
  .blog-details .sidebar .tags ul a span {
    padding-left: 5px;
    color: rgba(var(--default-color-rgb), 0.4);
    font-size: 14px;
  }
  
  .blog-details .blog-author {
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 4px 16px rgba(var(--default-color-rgb), 0.1);
  }
  
  .blog-details .blog-author img {
    max-width: 120px;
    margin-right: 20px;
  }
  
  .blog-details .blog-author h4 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 0px;
    padding: 0;
    color: rgba(var(--default-color-rgb), 0.8);
  }
  
  .blog-details .blog-author .social-links {
    margin: 0 10px 10px 0;
  }
  
  .blog-details .blog-author .social-links a {
    color: rgba(var(--default-color-rgb), 0.4);
    margin-right: 5px;
  }
  
  .blog-details .blog-author p {
    font-style: italic;
    color: rgba(var(--default-color-rgb), 0.7);
    margin-bottom: 0;
  }
  
  .blog-details .comments {
    margin-top: 30px;
  }
  
  .blog-details .comments .comments-count {
    font-weight: bold;
  }
  
  .blog-details .comments .comment {
    margin-top: 30px;
    position: relative;
  }
  
  .blog-details .comments .comment .comment-img {
    margin-right: 14px;
  }
  
  .blog-details .comments .comment .comment-img img {
    width: 60px;
  }
  
  .blog-details .comments .comment h5 {
    font-size: 16px;
    margin-bottom: 2px;
  }
  
  .blog-details .comments .comment h5 a {
    font-weight: bold;
    color: var(--default-color);
    transition: 0.3s;
  }
  
  .blog-details .comments .comment h5 a:hover {
    color: var(--colorPrimaryDark);
  }
  
  .blog-details .comments .comment h5 .reply {
    padding-left: 10px;
    color: rgba(var(--default-color-rgb), 0.8);
  }
  
  .blog-details .comments .comment h5 .reply i {
    font-size: 20px;
  }
  
  .blog-details .comments .comment time {
    display: block;
    font-size: 14px;
    color: rgba(var(--default-color-rgb), 0.6);
    margin-bottom: 5px;
  }
  
  .blog-details .comments .comment.comment-reply {
    padding-left: 40px;
  }
  
  .blog-details .comments .reply-form {
    margin-top: 30px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(var(--default-color-rgb), 0.1);
  }
  
  .blog-details .comments .reply-form h4 {
    font-weight: bold;
    font-size: 22px;
  }
  
  .blog-details .comments .reply-form p {
    font-size: 14px;
  }
  
  .blog-details .comments .reply-form input {
    background-color: var(--background-color);
    color: var(--default-color);
    border: 1px solid rgba(var(--default-color-rgb), 0.3);
    font-size: 14px;
    border-radius: 4px;
    padding: 10px 10px;
  }
  
  .blog-details .comments .reply-form input:focus {
    box-shadow: none;
    border-color: var(--colorPrimaryDark);
  }
  
  .blog-details .comments .reply-form textarea {
    background-color: var(--background-color);
    color: var(--default-color);
    border: 1px solid rgba(var(--default-color-rgb), 0.3);
    border-radius: 4px;
    padding: 10px 10px;
    font-size: 14px;
    height: 120px;
  }
  
  .blog-details .comments .reply-form textarea:focus {
    box-shadow: none;
    border-color: var(--colorPrimaryDark);
  }
  
  .blog-details .comments .reply-form .form-group {
    margin-bottom: 25px;
  }
  
  .blog-details .comments .reply-form .btn-primary {
    border-radius: 4px;
    padding: 10px 20px;
    border: 0;
    background-color: var(--colorPrimaryDark);
    color: var(--contrast-color);
  }
  
  .blog-details .comments .reply-form .btn-primary:hover {
    color: var(--contrast-color);
    background-color: rgba(var(--accent-color-rgb), 0.8);
  }

/*--------------------------------------------------------------
# Recipe Page Styles
--------------------------------------------------------------*/

/* Recipe Info */
.recipe-content .recipe-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.recipe-content .recipe-info span {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}

.recipe-content .recipe-info strong {
  margin-right: 5px;
}

/* Recipe Description */
.recipe-content .recipe-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  border-radius: 5px;
}

/* Recipe Ingredients - Post-it Style */
.recipe-content .recipe-ingredients {
  background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
  padding: 35px 30px;
  border-radius: 3px;
  margin: 30px 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 10px 20px rgba(0,0,0,0.05);
  border: 1px solid #fbbf24;
  font-family: 'Comic Sans MS', 'Marker Felt', cursive;
  transform: rotate(-0.5deg);
  position: relative;
}

.recipe-content .recipe-ingredients:before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: rgba(251, 191, 36, 0.3);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recipe-content .recipe-ingredients h3 {
  color: #92400e;
  border-bottom: 2px dashed #f59e0b;
  padding-bottom: 12px;
  margin-bottom: 25px;
  font-size: 1.5rem;
  font-family: 'Comic Sans MS', 'Marker Felt', cursive;
  font-weight: 700;
  text-align: center;
  text-shadow: 1px 1px 0px rgba(255,255,255,0.5);
}

.recipe-content .recipe-ingredients ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recipe-content .recipe-ingredients li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #451a03;
  font-weight: 500;
}

.recipe-content .recipe-ingredients li:before {
  content: "☐";
  position: absolute;
  left: 0;
  color: #92400e;
  font-size: 1.3rem;
  font-weight: bold;
}

/* Recipe Instructions */
.recipe-content .recipe-instructions {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.recipe-content .recipe-instructions h3 {
  color: #764ba2;
  border-bottom: 3px solid #764ba2;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.recipe-content .instruction-step {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.recipe-content .instruction-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recipe-content .step-number {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.recipe-content .step-content {
  flex: 1;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #333;
  padding-top: 5px;
}

.recipe-content .step-content.full-width {
  flex: auto;
  width: 100%;
}

.recipe-content .instruction-step.single-step {
  display: block;
}

/* Recipe Notes */
.recipe-content .recipe-notes {
  background: #fffbf0;
  border: 2px dashed #ffc107;
  padding: 20px;
  border-radius: 10px;
  margin: 30px 0;
}

.recipe-content .recipe-notes h3 {
  color: #f57c00;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.recipe-content .recipe-notes p {
  color: #666;
  line-height: 1.8;
}

/* Recipe Images */
.recipe-content .recipe-images {
  margin: 30px 0;
}

.recipe-content .recipe-images h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.recipe-content .recipe-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.recipe-content .recipe-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.recipe-content .recipe-image:hover {
  transform: scale(1.05);
}

/* Recipe Shopping List Button */
.recipe-ingredients .save-shopping-list-btn {
  width: 100%;
  margin-top: 20px;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  color: white;
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.recipe-ingredients .save-shopping-list-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.recipe-ingredients .save-shopping-list-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(118, 75, 162, 0.3);
}

.recipe-ingredients .save-shopping-list-btn i {
  font-size: 1.3rem;
}

/* Magnific Popup Custom Styles */
.mfp-recipe-popup {
  position: relative;
  background: #fff;
  padding: 40px;
  width: auto;
  max-width: 600px;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.mfp-recipe-popup .app-header .app-icon {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin: 0 auto;
  display: block;
}

.mfp-recipe-popup .app-header .app-name {
  color: #333;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}

.mfp-recipe-popup .app-header .app-title {
  color: #555;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
  font-family: 'Open Sans', sans-serif;
}

.mfp-recipe-popup .app-header .app-subtitle {
  color: #888;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0;
}

.mfp-recipe-popup h3 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

.mfp-recipe-popup p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.mfp-recipe-popup .app-download-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
}

.mfp-recipe-popup .btn-download {
  display: inline-block;
  transition: transform 0.2s ease;
}

.mfp-recipe-popup .btn-download:hover {
  transform: scale(1.05);
}

.mfp-recipe-popup .btn-download img {
  height: 60px;
  width: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .mfp-recipe-popup {
    padding: 25px;
    margin: 10px;
  }
  
  .mfp-recipe-popup .app-header .app-icon {
    width: 80px;
    height: 80px;
  }
  
  .mfp-recipe-popup .app-header .app-name {
    font-size: 1.5rem;
  }
  
  .mfp-recipe-popup .app-header .app-title {
    font-size: 1.1rem;
  }
  
  .mfp-recipe-popup .app-header .app-subtitle {
    font-size: 0.9rem;
  }
  
  .mfp-recipe-popup h3 {
    font-size: 1.5rem;
  }
  
  .recipe-ingredients .save-shopping-list-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }
}