/*For the side bar*/
.overlay{position: fixed; display: none; width: 100%; height: 100%; top: 0; left: 210px; right:0; bottom: 0; z-index: 1;}
#wrapper{-moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; -webkit-transition: all 0.5s ease; padding-left: 0px; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; margin-left: -10px; }

#wrapper.toggled{padding-left: 220px;}
#wrapper.toggled #sidebar-wrapper{width: 220px;}

#sidebar-wrapper{ -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; -webkit-transition: all 0.5s ease; height: 100%; left: 220px; margin-left: -220px; overflow-x: hidden; overflow-y: auto; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; width: 0; z-index: 1000;}
#sidebar-wrapper::-webkit-scrollbar{display: none;}

#page-content-wrapper{ width: 100%;}

/*vsya dlina*/
.sidebar-nav{ list-style: none; margin: 0; padding: 0; position: absolute; top: 0px; width: 230px; background: rgb(109, 70, 42); padding-bottom: 10px; padding-top: 70px; padding-right: 10px; height: 100%; }

.sidebar-nav li{display: inline-block; line-height: 18px; position: relative; width: 100%;}

.sidebar-nav li:before {-moz-transition: width 0.2s ease-in; -ms-transition: width 0.2s ease-in; -webkit-transition: width 0.2s ease-in; content: ''; height: 100%; left: -50px; position: absolute; top: 0px; -webkit-transition: width 0.2s ease-in; transition: width 0.2s ease-in; width: 5px; z-index: -1; background: rgb(109, 70, 42);}

.sidebar-nav li a{background-color: rgba(109, 70, 42, 0.79); color: #ffffff;}

/*vipolzauzie dropdown links*/
.sidebar-nav li:hover:before {-webkit-transition: width 0.2s ease-in; transition: width 0.5s ease-in; width: 100%;}

/*for the font*/
.sidebar-nav li a{color: #ffffff; text-shadow: 2px 1px 0.1px #000000; display: block; padding: 10px 15px 10px 30px; text-decoration: none; font-size: 18px; margin-left: -50px; padding-left: 80px;}

.sidebar-nav li.open:hover before{-webkit-transition: width 0.2s ease-in; transition: width 0.2s ease-in; width: 100%;}

/*For the drop menu text*/
.sidebar-nav  .menu2-drop a{font-size: 15px; width: 180px; padding-left: 20px; background: rgba(62, 23, 8, 0.83);}
/*for links when changed*/
.sidebar-nav li a:hover, .sidebar-nav li a:active, .sidebar-nav li a:focus, .sidebar-nav li.open a:hover, .sidebar-nav li.open a:active, .sidebar-nav li.open a:focus {background-color: transparent; color: #faaf7c; text-decoration: none;}

.hamburger{background: transparent; border: none; display: block; height: 35px; margin-left: 30px; position: fixed; top: 5px; width: 32px; z-index: 999;}

.hamburger.is-closed:hover before{-webkit-transform: translate3d(-100px,0,0); -webkit-transition: all 0.35s ease-in-out; display: block; opacity: 1;}
.hamburger.is-closed:hover .hamb-top{-webkit-transition:all 0.35s ease-in-out; top: 0;}
.hamburger.is-closed:hover .hamb-bottom{-webkit-transition:all 0.35s ease-in-out; bottom: 0;}
.hamburger.is-closed .hamb-top{-webkit-transition: all 0.35s ease-in-out; background-color: #5d2b09; top: 5px; box-shadow: 2px 2px 3px #000;}
.hamburger.is-closed .hamb-middle{background-color: #5d2b09; margin-top: -2px; top: 50%; box-shadow: 2px 2px 3px #000;}
.hamburger.is-closed .hamb-bottom{-webkit-transition: all 0.35s ease-in-out; background-color: #5d2b09; bottom: 5px; box-shadow: 2px 2px 3px #000;}
.hamburger.is-closed .hamb-top, .hamburger.is-closed .hamb-middle, .hamburger.is-closed .hamb-bottom, .hamburger.is-open .hamb-top, .hamburger.is-open .hamb-middle, .hamburger.is-open .hamb-bottom {height: 4px; left: 0; position: absolute; width: 100%; box-shadow: 2px 2px 3px #000;}

.hamburger.is-open .hamb-top{-webkit-transform: rotate(45deg); -webkit-transition: -webkit-transform 0.1s cubic-bezier(0.73,1,0.28,0.08); background-color: #ffffff; margin-top: -2px; top: 50%;}
.hamburger.is-open .hamb-middle{background-color: #ffffff; display: none;}
.hamburger.is-open .hamb-bottom{-webkit-transform: rotate(-45deg); -webkit-transition: -webkit-transform 0.1s cubic-bezier(0.73,1,0.28,0.08); background-color: #ffffff; margin-top: -2px; top: 50%;}
.hamburger.is-open:hover before{-webkit-transform: translate3d(-100px,0,0); -webkit-transition: all 0.35s ease-in-out; display: block; opacity: 1;}

.menu2-drop{position: absolute; width: 100%; left: 100%; top: -9999em; opacity: 0; border-left: 60px solid transparent; transition: 0.5s opacity;}
.menu2-list:hover .menu2-drop{opacity: 2; top: 0;}
.menu2-list::after{content: " "; position: absolute; border: 5px solid; border-color: transparent transparent transparent #241003; top: 1em; right: 0.7em; transition: 0.5s;}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5d2b09;
    --secondary-color: rgb(178, 100, 43);
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --max-width: 1200px;
    --content-width: 800px;
}

body {font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;line-height: 1.7; color: black;}

/* Header Navigation */
.header {background-color: #d8bea9; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); position: sticky; top: 0; left: 0; right: 0; width: 100%; z-index: 100;}
.main-nav { max-width: var(--max-width); margin: 0 auto;  display: flex; justify-content: space-between; align-items: center;}
.logo-name {font-size: 1.5rem; font-weight: 700; color: var(--primary-color); text-decoration: none; margin: 0; padding: 0; float: left; width: auto; margin-left: -450px;}
.logo-name:hover { color: var(--secondary-color);}
.logo{width: 30px; margin: 0; padding: 0; margin-left: 80px; margin-right: 20px;}
.nav-links {display: flex; list-style: none; gap: 2rem; margin-right: 20px;}
.nav-links a { color: var(--text-color); text-decoration: none; font-weight: 500; transition: color 0.3s ease;}
.nav-links a:hover { color: var(--secondary-color);}

/* CSS for breadcrumbs */
.breadcrumb-nav {padding: 0; margin: 0; padding-bottom: 3px; justify-content: center; display: flex; background-color: #6d3812; font-size: 13px; line-height: 1.2;}
.breadcrumb { display: flex; flex-wrap: wrap; list-style: none; border-radius: 4px; font-size: 14px;}
.breadcrumb-item { display: flex; align-items: center;}
.breadcrumb-item + .breadcrumb-item::before { content: ">"; padding: 0px 20px; color: rgb(183, 135, 100);}
.breadcrumb-item a { color: rgb(183, 135, 100); text-decoration: none;}
.breadcrumb-item a:hover { color: var(--secondary-color);}
.breadcrumb-item.active { color: #ff8e41;}

/* Main Content */
main {max-width: var(--content-width); margin: 0 auto; padding: 2rem; margin-top: -20px;}

/* Article Header */
.article-header { margin-bottom: 1rem; text-align: center;}
.article-header h1 {font-size: 2.5rem; line-height: 1.2; color: var(--primary-color); margin-bottom: 1rem;}
.article-meta {display: flex; gap: 1.5rem; font-size: 0.9rem; color: var(--text-color); flex-wrap: wrap; justify-content: center;}
.article-meta time,
.article-meta .reading-time,
.article-meta .category { display: flex; align-items: center;}
.category { background-color: var(--secondary-color); color: var(--white); padding: 0.25rem 0.75rem; border-radius: 4px; font-weight: 500;}

/* Featured Image */
.featured-image { margin-bottom: 3rem;}
.featured-image img {width: 100%; height: auto; border-radius: 8px; display: block;}
.featured-image figcaption {margin-top: 0.75rem; font-size: 0.9rem; color: var(--text-light); font-style: italic; text-align: center;}

/* Article Content */
.article-content {font-size: 1.1rem; line-height: 1.5;}
.article-content .lead {font-size: 1.2rem; line-height: 1.6; color: var(--text-color); margin-bottom: 1rem; margin-top: 0; font-weight: 400;}
.article-content h2 {font-size: 1.7rem; color: var(--primary-color); line-height: 1.3; text-align: center;}
.article-content h3 {font-size: 1.2rem; color: var(--primary-color);}
.article-content p {margin-bottom: 1rem;}
.article-content a {color: var(--secondary-color); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.3s ease;}
.article-content a:hover {border-bottom-color: var(--secondary-color);}

/* Inline Images */
.inline-image {margin: 1rem 0;}
.inline-image img {width: 100%; height: auto; border-radius: 8px; display: block;}
.inline-image figcaption { margin-top: 0.75rem; font-size: 0.95rem; color: var(--text-light); font-style: italic; text-align: center;}

/* Author Bio */
.author-bio { margin-top: 2rem; padding: 2rem; background-color: var(--background-light); border-radius: 8px; display: flex; gap: 1.5rem; align-items: flex-start;}
.author-avatar {width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;}
.author-info h3 {font-size: 1.25rem; color: var(--primary-color);}
.author-info p {font-size: 1rem; color: var(--text-color); line-height: 1.6;}

/* Related Posts */
.related-grid {display: grid;  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));  gap: 2rem; max-width: 1200px; /* Limits the total grid width */ margin: 0 auto; /* Centers the grid */}
.related-grid{margin-top: -30px;}
.related-card {background-color: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);transition: transform 0.3s ease, box-shadow 0.3s ease; }
/* When there's only one card, limit its size */
.related-card:only-child { max-width: 400px; margin: 0 auto; margin-bottom: 50px;}
.related-card:hover {transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);}
.related-card img {width: 100%; height: auto; object-fit: cover; display: block;}
.related-card h3 {padding: 1.25rem 1.25rem 0.5rem; font-size: 1.25rem; line-height: 1.3;}
.related-card h3 a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease;}
.related-card h3 a:hover {color: var(--secondary-color);}
.related-card p {padding: 0 1.25rem 1.25rem; color: var(--text-light); font-size: 0.95rem; line-height: 1.6;}

.related-posts{margin-top: 100px;}
.related-posts h2{width: 100%; text-align: center; position: absolute;  margin-top: -60px;}


/* Call to Action */
.cta-section {padding: 1rem; background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)); border-radius: 12px; text-align: center; color: var(--white);}
.cta-section h2 {font-size: 2rem; margin-bottom: 1rem; color: var(--white);}
.cta-section p {font-size: 1.125rem; margin-bottom: 1rem; opacity: 0.95;}
.cta-buttons {display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;}
.btn-primary,
.btn-secondary {padding: 0.875rem 2rem; border-radius: 6px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; display: inline-block; font-size: 1rem;}
.btn-primary {background-color: var(--white); color: var(--secondary-color);}
.btn-primary:hover {background-color: var(--background-light); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);}
.btn-secondary {background-color: transparent; color: var(--white); border: 2px solid var(--white);}
.btn-secondary:hover {background-color: var(--white); color: var(--secondary-color); transform: translateY(-2px);}

/* Footer */
footer {background-color: var(--primary-color); color: var(--white); padding: 1rem 2rem 1rem;}
.footer-content {max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 1rem;}
.footer-section h4 {font-size: 1.25rem; text-align: center;}
.footer-section ul {list-style: none;}
.footer-section li {text-align: center;}
.footer-section a {color: var(--white); text-decoration: none; opacity: 0.9; transition: opacity 0.3s ease;}
.footer-section a:hover {opacity: 1; text-decoration: underline;}

/*  for social media icons */
div.media{position: fixed; left: 21px;  top: 15%; width: 30px;}
.facebook, .linktree, .instagram, .twitter, tiktok{background: none;  border: none; margin-right: 5px;}
.facebook img, .linktree img, .instagram img, .twitter img, .tiktok img{width: 25px;}
.facebook img:hover, .linktree img:hover, .instagram img:hover, .twitter img:hover, .tiktok img:hover{width: 20px; transition: 0.5s;}

/* Back to Top Button */
#backToTop {display: none; position: fixed; bottom: 20px; right: 20px; z-index: 99; background-color: var(--secondary-color); color: white; border: none; outline: none; cursor: pointer; padding: 12px; border-radius: 50%; width: 45px; height: 45px; box-shadow: 2px 2px 10px rgba(0,0,0,0.3); font-size: 18px; transition: 0.3s;}
#backToTop:hover {background-color: var(--primary-color); transform: scale(1.1);}

@media (max-width: 768px) {
#backToTop {bottom: 15px; right: 15px; width: 40px; height: 40px; font-size: 16px; opacity: 0.8;}
}

/* Blog Hub Styles */
.blog-hub {max-width: var(--max-width); margin: 0 auto; padding: 1rem 2rem;}
.hub-header {text-align: center; margin-bottom: 4rem;}
.hub-header h1 {font-size: 2.5rem; line-height: 1.2; color: var(--primary-color);}
.hub-header p {font-size: 1.2rem; color: var(--text-light); }

.card-content {padding: 1.5rem;}
.card-content .category {font-size: 0.8rem; margin-bottom: 0.5rem; display: inline-block;}
.card-content h3 {padding: 0; margin-bottom: 1rem; font-size: 1.4rem; line-height: 1.3;}
.card-content p {padding: 0; margin-bottom: 0; font-size: 1rem; color: var(--text-color); line-height: 1.2;}
.card-content time {font-size: 0.85rem; color: var(--text-light); font-style: italic;}

/* Placeholder Styles */
.placeholder {opacity: 0.7; filter: grayscale(50%);}
.placeholder-img {width: 100%; height: 200px; background: #ddd; display: flex; align-items: center; justify-content: center; color: #888; font-weight: bold; text-transform: uppercase;}

/* Table of Contents Styles */
html {scroll-padding-top: 100px; /* adjust to your header height for scrolling over ancors */}

.table-of-contents {max-width: 800px;  margin: 0 auto 30px auto;}
.toc-title {font-size: 1.3rem; color: #1f2937; }
.toc-list {list-style: none;}
.toc-item {margin: 0; padding: 0;}
.toc-link {display: block; color: #374151; text-decoration: none; font-weight: 500; font-size: 1rem; border-radius: 6px; transition: all 0.3s ease; position: relative;}
.toc-link:hover {background-color: #f3f4f6; color: rgb(132, 74, 31); padding-left: 1.05rem;}
.toc-link.active {background-color: #eef2ff; color: rgb(132, 74, 31); border-left: 3px solid #6366f1; padding-left: 1rem;}
.toc-sublist { list-style: none; padding-left: 1rem; border-left: 2px solid #e5e7eb;}
.toc-sublink { display: block; color: #6b7280; text-decoration: none; font-size: 0.95rem; transition: all 0.3s ease;}
.toc-sublink:hover {background-color: #f9fafb; color: rgb(132, 74, 31); padding-left: 1rem;}
.toc-sublink.active {background-color: #f0f9ff; color: rgb(132, 74, 31); font-weight: 500;}
/* Responsive Design  for table of content*/
@media (max-width: 340px) {
	.table-of-contents {margin: -20px auto 30px auto;}
    .toc-title {font-size: 1rem;}
    .toc-link {font-size: 0.7rem;}
    .toc-sublist {margin-left: 1rem; padding-left: 0.75rem;}
    .toc-sublink {font-size: 0.7rem;}
}
/* share buttons for social media*/
.share-container {text-align: center; margin: 0; padding: 0; border-top: 1px solid #eee;}
.share-container p {font-size: 1.1rem; font-weight: bold; margin-bottom: 15px; color: #333;}
.share-btn {display: inline-block; padding: 10px 20px; margin: 5px; border-radius: 5px; color: #fff; text-decoration: none; font-family: sans-serif; transition: opacity 0.3s;}
.share-container .twitter { background-color: #1DA1F2; }
.share-container .facebook { background-color: #4267B2; }
.linkedin { background-color: #0077b5; }
.whatsapp { background-color: #25D366; }
.share-btn:hover { opacity: 0.8; }
/* Responsive Design for share buttons*/
@media (max-width: 516px) {
	.share-container p {font-size: 1rem; margin-bottom: 5px; margin-top: 10px;}
	.share-btn {padding: 5px 10px; font-size: 0.9rem;}
}
@media (max-width: 407px) {
	.share-container p {font-size: 1rem; margin-top: 15px;}
	.share-btn {padding: 1px 5px; font-size: 0.8rem; margin: 0;}
}

/* Responsive Design */
@media (max-width: 1200px) {
    .logo-name {margin-left: 150px; position: absolute;}
    .logo {margin-left: 100px;}
    .main-nav{padding: 10px 20px;}
	.media{margin-top: 30px;}
}

@media (max-width: 1024px) {
    .logo-name {margin-left: 0px; position: absolute; left: 140px;}
    .logo {margin-left: 70px;}
    .nav-links {gap: 1rem; margin-right: 20px;}
}

@media (max-width: 768px) {
    .header {position: relative;}
    .main-nav {flex-direction: column; padding: 10px 0;}
    .logo-name {position: static;}
    .logo {margin-left: 0; display: none;}
    .nav-links {gap: 1rem; font-size: 0.9rem; padding: 0; margin: -4px 10px;}
    main {padding: 1rem; margin-top: 0;}
    .article-header h1 {font-size: 1.8rem;}
    .article-content {font-size: 1rem;}
    .author-bio {flex-direction: column; align-items: center; text-align: center;}
    .related-grid {grid-template-columns: 1fr;}
	.related-card img {width: 100%; height: auto; object-fit: initial;}
    div.media {position: static; width: 100%; display: flex; justify-content: center; gap: 15px; margin-top: 20px; padding-bottom: 20px;}
	.hamburger{margin-top: 15px;}
}

@media (max-width: 480px) {
    .article-header h1 {font-size: 1.3rem;}
	.article-content h2{font-size: 1.2rem;}
	.article-content h3{font-size: 1rem;}
	.hub-header h1{font-size: 1.5rem;}
	.hub-header p{font-size: 1rem; line-height: 1;}
	.card-content h3{font-size: 1.2rem;}
	.card-content{padding: 5px;}
    .cta-buttons {flex-direction: column; width: 100%;}
	.cta-buttons a{padding: 3px;}
	.cta-section h2{font-size: 20px;}
	.cta-section p{font-size: 15px; line-height: 1.5;}
    .btn-primary, .btn-secondary {width: 100%;}
    .footer-content {grid-template-columns: 1fr;}
    .sidebar-nav {width: 200px;}
    .hamburger {margin-left: 15px;}
	.breadcrumb-item + .breadcrumb-item::before {padding: 0px 10px;}
}
@media (max-width: 410px) {
	.breadcrumb-item + .breadcrumb-item::before {padding: 0px 5px;}
	.breadcrumb-nav{padding-left: 5px; padding-right: 5px; font-size: 12px;}
	.logo-name{margin-top: 10px;}
	.author-info h3{font-size: 17px; line-height: 1.3;}
	.author-info p{line-height: 1.5;}
}
@media (max-width: 362px) {
	.cta-section h2{line-height: 1.3;}
	.breadcrumb-nav{line-height: 1.1; text-align: center; padding: 5px;}
	.logo-name{margin-top: 10px; margin-bottom: 30px;}
	.nav-links{font-size: 12px; margin-left: 40px; margin-bottom: 30px; margin-top: -90px; padding-bottom: 0px;}
	.main-nav{line-height: 1.5; padding-top: 30px; padding-bottom: 30px;}
	p{font-size: 14px;}
	.article-content .lead{font-size: 15px;}
	.author-bio{padding: 30px 0px 30px 0px; margin-bottom: 20px;}
	.footer-section h4{font-size: 15px;}
	.footer-section ul{font-size: 12px;}
}
@media (max-width: 320px) {
	.logo-name{font-size: 18px;}
	.hamburger {margin-top: 30px;}
	.nav-links{margin-left: 5px;}
	.nav-links a{margin-right: -8px;}
	.blog-hub{padding: 20px 10px;}
}
@media (max-width: 270px) {
	.hub-header h1{font-size: 19px; margin-bottom: 5px;}
	.hub-header{margin-bottom: 60px;}
	.card-content{padding: 5px;}
	.card-content h3{font-size: 17px;}
}












