.blog-hero {
	border: var(--color-border) solid;
    border-width: 0 0 3px 0;
	background-color: white;
	    background-image: linear-gradient(62deg, rgba(30, 33, 33, 0.82) 1%, rgb(32 32 32 / 0%) 98%), url(https://svrepetitor.ru/wp-content/themes/svrepetitor/assets/img/books-cut.webp);
    background-size: cover;
}

.blog-hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
    margin-inline: auto;
	padding: 6rem 0;
}

.blog-hero-wrapper .section-label {
	margin-bottom: 0;
}

.blog-hero-wrapper h1 {
	    font-size: 3rem;
    line-height: 0.95;
    margin: 20px 0 30px;
    text-align: center;
	
}
.blog-hero-wrapper h1, .blog-hero-wrapper p {
	text-shadow: 0px 0px 15px black;
	padding: 4px 12px;
	border-radius: 4px;
	color: white;
}

.blog-hero-wrapper p {
	    font-size: 15px;
    //color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    display: block;
    text-align: center;
}

.blog-featured, .blog-latest {
	    padding: 120px 0;
}

.blog-content .container {
	background-color: white;
	padding-left: 2rem;
    padding-right: 2rem;
    max-width: 56rem;
	padding-top: 3rem;
    padding-bottom: 3rem;
}

.blog-content .wp-block-paragraph {
	font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: #334155;
}

.blog-content h2 {
	font-size: 1.75rem;
    font-weight: 700;
	color: var(--accent-hover);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-border);
    display: inline-block;
}

.blog-content h3 {
	font-size: 1.35rem;
    font-weight: 600;
    color: var(--accent-hover);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.blog-content strong, .blog-content b {
	color: var(--text-muted);
    font-weight: normal;
}

.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content li {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: #334155;
    padding-left: 0.25rem;
}

.blog-content blockquote {
    border-left: 4px solid #d97706;
    background: linear-gradient(to right, #fffbeb, #ffffff);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #475569;
    font-size: 1.15rem;
    line-height: 1.7;
    position: relative;
}

.blog-content blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 0.75rem;
    font-size: 3rem;
    color: #d97706;
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.4;
}

.blog-content blockquote p {
    margin-bottom: 0.5rem;
}

.blog-content .remark {
    background-color: var(--bg-dark);
    border-left: 4px solid var(--color-border);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.blog-content .remark .remark-title {
    font-family: 'Montserrat', sans-serif, 'Inter';
    font-weight: 700;
    color: #92400e;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-content .remark p {
    margin-bottom: 0 !important;
    font-size: 1rem !important;
    color: #78350f !important;
}

.blog-content svg {
	width: 1.25rem;
	height: 1.25rem;
}

.blog-content .info-block {
    background-color: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.blog-content .info-block .info-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1e3a8a;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-article-hero {
	border: var(--color-border) solid;
    border-width: 0 0 3px 0;
	background-color: var(--color-border);
}

.blog-article-hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 60%;
    margin-inline: auto;
	padding-top: 4rem;
    padding-bottom: 4rem;
}

.blog-article-hero h1 {
	font-size: 3rem;
    line-height: 1;
	margin-bottom: 1.5rem;
}

.article-meta {
	font-size: 0.875rem;
    line-height: 1.25rem;
	display: flex;
		gap: 1rem;
    align-items: center;
	color: var(--text-muted);
}

.author-name {
	color: black;
}

.blog-article-hero .post-categories {
		display: flex;
	gap: 1rem;
}

.blog-article-hero li {
	background: var(--accent);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 4px;
}

.blog-article-hero li:nth-of-type(n+2){
	    background: var(--accent-hover);
}

.tags {
    border-top: 3px solid var(--color-border);
    padding-top: 10px;
}

.tags .hashtag {
    color: var(--text-muted);
}

/* ============================================
   COMMENTS AREA
   ============================================ */

.comments-area {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* ============================================
   COMMENT FORM
   ============================================ */

.comment-respond {
    background-color: #f0f4f8;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
}

.comment-respond .comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 24px 0;
}

.comment-respond .comment-reply-title small {
    font-size: 14px;
    font-weight: 400;
    margin-left: 12px;
}

.comment-respond .comment-reply-title small a {
    color: #c0392b;
    text-decoration: none;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-form-row {
    display: flex;
    gap: 20px;
}

.comment-form-author,
.comment-form-email {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.comment-form-comment {
    display: flex;
    flex-direction: column;
}

.comment-form label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.comment-form label .required {
    color: #c0392b;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #2b5ea7;
    box-shadow: 0 0 0 3px rgba(43, 94, 167, 0.12);
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #a0aab4;
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-notes {
    font-size: 13px;
    color: #777;
    margin: 0;
}

.comment-form .form-submit {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.comment-form .form-submit .comment-notes {
    flex: 1;
}

.submit-btn {
    background-color: #c47a1a;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-family: inherit;
}

.submit-btn:hover {
    background-color: #a86510;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* ============================================
   COMMENT LIST
   ============================================ */

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment-item {
    margin-bottom: 20px;
}

.comment-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s ease;
}

.comment-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ============================================
   COMMENT HEADER
   ============================================ */

.comment-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.comment-author-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.comment-date {
    font-size: 13px;
    color: #8899a6;
}

/* ============================================
   BADGES
   ============================================ */

.comment-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.badge-student {
    background-color: #e8f5e9;
    color: #2d8a5e;
}

.badge-author {
    background-color: transparent;
    color: #2b5ea7;
    font-weight: 600;
    padding: 3px 4px;
}

.badge-parent {
    background-color: #e8f0fe;
    color: #2b5ea7;
}

/* ============================================
   COMMENT CONTENT
   ============================================ */

.comment-content {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 14px;
    padding-left: 58px;
}

.comment-content p {
    margin: 0 0 10px 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   COMMENT ACTIONS
   ============================================ */

.comment-actions {
    padding-left: 58px;
}

.comment-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #c47a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.comment-actions a:hover {
    color: #a86510;
    text-decoration: underline;
}

.comment-actions a svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   REPLIED-TO COMMENT (nested)
   ============================================ */

.children {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 40px;
}

.children .comment-card {
    border-left: 3px solid #e2e8f0;
}

/* =========================================
   Архивы
   ========================================= */
.blog-archive-posts {
	margin-top: 30px;
}

.blog-archive-post {
    margin-bottom: 30px;
    gap: 2rem;
    justify-content: center;
    min-height: max-content;
	flex-direction: row;
}

.blog-archive-image img {
	max-height: 200px;
    max-width: 200px;
	object-fit: cover;
	border-radius: 8px;
    border: 1px solid var(--text-muted);
}

.blog-archive-post-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: 10px;
}

/* =========================================
   Меню
   ========================================= */
.blog-hero-menu {
    /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;*/
    font-size: 16px;
    line-height: 1.5;
	display: flex;
    justify-content: space-around;
    width: 100%;
	background-color: white;
}

.blog-nav-list {
    list-style: none;
    margin: 0;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /*background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
}

.blog-nav-list > .menu-item {
    position: relative;
}

.blog-nav-list > .menu-item > a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-nav-list > .menu-item > a:hover,
.blog-nav-list > .menu-item.current-menu-item > a {
    background-color: #f0f4f8;
    color: var(--text-muted);;
}

.menu-item-has-children > a::after {
    content: ' \25BE';
    font-size: 12px;
    margin-left: 6px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%; /* Positions it directly below the parent */
    left: 0;
    min-width: 220px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 1000;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu .menu-item a {
    display: block;
    padding: 10px 20px;
    color: #555555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.sub-menu .menu-item a:hover {
    background-color: #f8f9fa;
    color: var(--text-muted);
    padding-left: 25px;
}

/* ============================================
   Ajax посты
   ============================================ */

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .posts-grid { grid-template-columns: 1fr; }
}

/* Post Card */
.post-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.post-card-image {
    position: relative;
    overflow: hidden;
}
.post-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 3px;
    text-transform: uppercase;
}

.post-card-content {
    padding: 20px 20px 10px;
}
.post-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.3;
}
.post-card-title a {
    color: #222;
    text-decoration: none;
}
.post-card-title a:hover {
    color: #555;
}
.post-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #f0f0f0;
}
.post-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.post-card-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.author-name {
    font-size: 13px;
    color: #555;
}
.post-card-date {
    font-size: 13px;
    color: #999;
}

/* Pagination */

.ajax-pagination {
  display: inline-flex;
  align-items: center;
  border: 2px solid #3a9e6f;
  border-radius: 50px;
  overflow: hidden;
  background: transparent;
  font-family: inherit;
}

.ajax-pagination .pagination-btn {
  background: transparent;
  border: none;
  color: #3a9e6f;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  line-height: unset;
}

.ajax-pagination .pagination-btn:hover:not(:disabled) {
  background-color: #3a9e6f;
  color: #fff;
}

.ajax-pagination .pagination-btn:disabled {
  color: #a0c4b0;
  cursor: default;
  opacity: 0.6;
}

.ajax-pagination .pagination-btn:disabled:hover {
  background-color: transparent;
  color: #a0c4b0;
}

/* Vertical divider between arrows and page counter 
.ajax-pagination .prev-btn {
  border-right: 2px solid #3a9e6f;
}

.ajax-pagination .next-btn {
  border-left: 2px solid #3a9e6f;
}*/

.ajax-pagination .pagination-info {
  color: #3a9e6f;
  font-size: 14px;
  padding: 10px 16px;
  white-space: nowrap;
  user-select: none;
}

.ajax-pagination .pagination-info strong {
  font-weight: 700;
}

/* Pagination 
.ajax-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0 40px;
}
.pagination-btn {
    background: #fff;
    border: 1px solid #ddd;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination-btn:hover:not(:disabled) {
    background: #333;
    color: #fff;
    border-color: #333;
}
.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination-info {
    font-size: 14px;
    color: #555;
} */

/* Loading state */
#ajax-posts-wrapper.loading .posts-grid {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .comment-respond {
        padding: 20px;
    }
	
	.blog-hero-wrapper {
		width: 95vw;
	}
	
	.blog-hero-wrapper h1 {
		font-size: 2em;
	}

    .comment-form-row {
        flex-direction: column;
        gap: 16px;
    }

    .comment-form .form-submit {
        flex-direction: column;
        align-items: stretch;
    }

    .comment-form .form-submit .comment-notes {
        text-align: center;
    }

    .submit-btn {
        width: 100%;
        text-align: center;
    }

    .comment-header {
        flex-wrap: wrap;
    }

    .comment-meta {
        width: 100%;
    }

    .comment-content,
    .comment-actions {
        padding-left: 0;
    }

    .children {
        margin-left: 16px;
    }
	
	.blog-nav-list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: auto;
		grid-auto-rows: auto;
		gap: 5px;
		text-align: center;
	}
	
	.sub-menu {
		opacity: 1;
    	visibility: visible;
		position: static;
        box-shadow: none;
        border: none;
        min-width: 100%;
        transform: none;
	}
	
	.blog-nav-list li:first-child, .blog-nav-list li:nth-child(2) {
		grid-column: span 2 / span 2;
	}
	
	.blog-archive-post {
		flex-direction: column;
    	align-items: center;
	}
	
	.blog-archive-image img {
		max-height: 150px;
		width: auto;
	}
	
	.blog-article-hero-wrapper {
		width: 85vw;
	}
}