/* ==========================
   PAGE HEADER + BOXED LAYOUT
   ========================== */

/* Main wrapper for boxed layout */
.page-main {
    max-width: 1300px;       /* Boxed width */
    margin: 0 auto;          /* Center content */
    padding: 0 24px;
    background-color: #161822;
}

/* Page header section */
.page-header-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 129px;           /* Header section height */
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #2B304C 0%, #040B2D 100%);
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Page title */
.page-header .page-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

/* Content Section */
.page-content-section {
    background-color: #2B304C;
    margin: 13px 0;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Typography */
.page-content {
    font-size: 17px;
    color: #d9d9d9;
    line-height: 1.8;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    color: #ffffff;
    margin-top: 24px;
    margin-bottom: 12px;
}

.page-content a {
    color: #9377FF;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: #E685FF;
}

.page-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

/* Pagination */
.page-pagination {
    margin-top: 30px;
    text-align: center;
}

.page-pagination a {
    padding: 8px 14px;
    margin: 0 4px;
    background-color: #161822;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-pagination a:hover {
    background-color: #9377FF;
}

/* Comments area */
.comments-area {
    margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header-section {
        height: 99px;
    }
    .page-header .page-title {
        font-size: 23px;
    }
    .page-content-section {
        padding: 24px;
    }
}

/* ==========================
   SINGLE POST + SIDEBAR
========================== */

/* Container flex for post + sidebar */
.container-flex {
    display: flex;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px;
}

/* Main post area */
.vb-post-main {
    flex: 3;
}

/* =========================
   Sidebar Styling
========================= */

/* Sidebar container */
.vb-sidebar {
    margin-top:19px;
    background-color: #2B304C;
    padding: 29px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    flex: 1; /* sidebar flex for layout */
}

/* Sidebar widgets */
.vb-sidebar .widget {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #161822;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    color: #d9d9d9;
}

/* Sidebar widget h2 styling */
.vb-sidebar .widget h2 {
    font-size: 20px;
    font-weight: 700;   
    color: #ffffff;    
    margin-bottom: 16px;
}

/* Sidebar links */
.vb-sidebar a {
    color: #9377FF;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.vb-sidebar a:hover {
    color: #E685FF;
}

/* Search widget input */
.vb-sidebar .widget input[type="text"],
.vb-sidebar .widget input[type="search"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #4b4f66;
    background-color: #161822;
    color: #ffffff;
    margin-bottom: 12px;
}

.vb-sidebar .widget input:focus {
    border-color: #9377FF;
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .container-flex {
        flex-direction: column;
    }
    .vb-sidebar {
        margin-top: 30px;
    }
}

/* =========================
   Post Header Styling
========================= */
.vb-single-header {
    display: flex;
    flex-direction: column;   /* title + meta stacked vertically */
    align-items: center;      /* center horizontally */
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #2B304C 0%, #040B2D 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

/* Title Styling */
.vb-single-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

/* =========================
   Single Post Meta Styling - Stacked & Centered
========================= */
.vb-single-meta {
    display: flex;              
    flex-direction: column;      /* stacked vertically */
    align-items: center;         /* center horizontally */
    justify-content: center;     
    font-size: 14px;             
    color: #8f9bbf;             
    font-weight: 500;            
    width: 100%;                                 
}

.vb-single-meta > div {
    display: flex;              
    align-items: center;        
    justify-content: center;     /* center icon + text */
}

/* Icons Styling */
.vb-single-meta i {
    color: #9377FF;
    font-size: 14px;
}

/* Author Link Hover */
.vb-single-meta .vb-meta-author a {
    color: #9377FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vb-single-meta .vb-meta-author a:hover {
    color: #E685FF;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .vb-single-meta {
        font-size: 13px;
    }
    .vb-single-meta i {
        font-size: 13px;
    }
    .vb-single-title {
        font-size: 28px;
    }
}

/* =========================
   Featured Image & Content Styling
========================= */
.vb-single-thumb {
    margin-bottom: 30px;
}

.vb-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.page-content-section {
    background-color: #2B304C;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.vb-single-content {
    font-size: 17px;
    color: #d9d9d9;
    line-height: 1.8;
}

.vb-single-content h2,
.vb-single-content h3,
.vb-single-content h4 {
    color: #ffffff;
    margin-top: 24px;
    margin-bottom: 12px;
}

.vb-single-content a {
    color: #9377FF;
    text-decoration: underline;
}

.vb-single-content a:hover {
    color: #E685FF;
}

/* =========================
   Post Navigation Styling
========================= */
.vb-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
}

.nav-box {
    flex: 1;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.prev-box {
    background-color: #2B304C;
    color: #4EB9FF;
}

.prev-box:hover {
    background-color: #4EB9FF;
    color: #161822;
}

.next-box {
    background-color: #2B304C;
    color: #FFB74E;
}

.next-box:hover {
    background-color: #FFB74E;
    color: #161822;
}

/* Pagination inside post */
.vb-page-links {
    margin-top: 30px;
    text-align: center;
}

.vb-page-links a {
    padding: 8px 14px;
    margin: 0 4px;
    background-color: #161822;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vb-page-links a:hover {
    background-color: #9377FF;
}

/* =========================
   Comment Section Styling
========================= */

.comment-respond,
.comments-area {
    margin-top: 50px;
    background-color: #2B304C;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    color: #d9d9d9;
    font-family: "Poppins", sans-serif;
}

/* Comment title */
.comment-respond h3.comment-reply-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

/* Comment notes */
.comment-notes {
    font-size: 14px;
    color: #8f9bbf;
    margin-bottom: 20px;
}

/* Comment textarea */
.comment-form-comment textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: #161822;
    color: #ffffff;
    border: 1px solid #4b4f66;
    border-radius: 10px;
    resize: vertical;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.comment-form-comment textarea:focus {
    border-color: #9377FF;
    outline: none;
}

/* Comment input fields */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    background-color: #161822;
    color: #ffffff;
    border: 1px solid #4b4f66;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.comment-form input:focus {
    border-color: #9377FF;
    outline: none;
}

/* Checkbox */
.comment-form-cookies-consent {
    font-size: 14px;
    color: #d9d9d9;
    margin-bottom: 20px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-right: 8px;
}

/* Submit button */
.comment-form .submit {
    background-color: #9377FF;
    color: #161822;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background-color: #E685FF;
    color: #ffffff;
}

/* Existing comments list */
.comment-list {
    margin-top: 40px;
    list-style: none;
    padding-left: 0;
}

.comment-list li {
    background-color: #161822;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.comment-list li .comment-author {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.comment-list li .comment-metadata {
    font-size: 13px;
    color: #8f9bbf;
    margin-bottom: 12px;
}

.comment-list li .comment-content {
    font-size: 16px;
    color: #d9d9d9;
    line-height: 1.8;
}

/* Reply link */
.comment-reply-link {
    font-size: 14px;
    color: #4EB9FF;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    color: #E685FF;
}

/* Nested replies */
.children {
    margin-left: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comment-respond,
    .comments-area {
        padding: 20px;
    }

    .comment-form .submit {
        width: 100%;
        padding: 12px;
    }
}

/* ==========================
   Archive / Category Page
   ========================== */

/* Main wrapper */
.archive-content-section {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0;
}

/* Archive Header */
.archive-header-section.page-header-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 129px;
    background: linear-gradient(135deg, #2B304C 0%, #040B2D 100%);
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.archive-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.archive-description {
    margin-top: 12px;
    font-size: 12px;
    color: #b0b0b0;
}

/* Post Cards */
.archive-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.archive-post-card {
    background-color: #2B304C;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.5);
}

.archive-post-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.archive-post-content {
    padding: 16px;
}

.archive-post-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.archive-post-title a {
    color: #ffffff;
    text-decoration: none;
}

.archive-post-title a:hover {
    color: #9377FF;
}

.archive-post-meta {
    font-size: 13px;
    color: #8f9bbf;
    margin-bottom: 12px;
}

.archive-meta-sep {
    margin: 0 6px;
}

.archive-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #d2d7e8;
}

/* Pagination */
.archive-pagination {
    margin-top: 40px;
    text-align: center;
}

.archive-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background-color: #161822;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
    background-color: #9377FF;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .archive-header-section {
        height: 200px;
    }
    .archive-title {
        font-size: 28px;
    }
}