/*
Theme Name: Blog
Theme URI: https://roshkart.com
Author: Roshkart
Author URI: https://roshkart.com
Description: This is superfast lightweight theme made by roshkart team.
Version: 1.0
*/

/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, sans-serif;
    overflow-x: hidden;
    background: #FFFFFF;
}

a {
  text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: #111111;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    padding: 0.5rem 0;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    padding: 0.375rem 0;
}

h3 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    padding: 0.375rem 0;
}

h4 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    padding: 0.25rem 0;
}

h5 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    padding: 0.1875rem 0;
}

h6 {
    font-size: clamp(1rem, 2.25vw, 1.25rem);
    padding: 0.1875rem 0;
}

.post-content p {
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}



/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    color: #111111;
    font-size: 1.25rem;
    font-weight: 600;
}

.site-title {
    line-height: 1;
}


.site-logo img {
    max-height: 60px;
}

.main-menu,
.main-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* DESKTOP MENU */
.main-menu {
    display: flex;
    gap: 1.25rem;
}

.main-menu a {
    color: #333333;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.main-menu a:hover,
.main-menu a:focus {
    color: #0073aa;
}

.main-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #0073aa;
    transition: width 0.2s ease;
}

.main-menu a:hover::after,
.main-menu a:focus::after {
    width: 100%;
}

/* MOBILE HAMBURGER */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 100%;
    height: 3px;
    background: #1a1a1a;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin: 1px 0;
}

/* MOBILE NAV */
.main-navigation {
    position: fixed;
    inset: 60px 0 0 0;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 999;
}

/* NAV OPEN */
body.nav-open .main-navigation {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

body.nav-open .main-navigation .main-menu {
    flex-direction: column !important;
    padding: 1rem;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* OVERLAY */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 998;
}

body.nav-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* CLOSE BUTTON */
.menu-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}

.menu-close-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(45deg);
}

.menu-close-bar:nth-child(2) {
    transform: translateY(-50%) rotate(-45deg);
}

/* ========================================
   MAIN LAYOUT & POST
   ======================================== */
.main-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 1rem;
}

.post-content a {
    text-decoration: underline;
    text-decoration-color: rgba(229, 57, 53, 0.6);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.post-content a:hover {
    color: #c62828;
    text-decoration-color: #c62828;
}


.content-area {
    max-width: 100%;
    width: 100%;

}

.post-article {
    padding: 1rem;
}

.post-meta b {
    font-weight: 500;
}


.post-meta,
.post-meta a {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.5rem;
}

.post-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
}

.post-content img,
.post-content iframe,
.post-content table,
.post-content pre {
    max-width: 100%;
    overflow-x: auto;
}

.post-category {
    margin-bottom: 0;
}

.post-category a {
    display: inline-block;
    background: #e53935;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.post-category a:hover {
    background: #c62828;
}

.post-tags a {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 0.4rem 0.8rem;
    margin: 0.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.sidebar {
    max-width: 100%;
    overflow-x: hidden;
}

.sidebar * {
    max-width: 100%;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: #121212;
    color: #ffffff;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
    font-weight: 500;
}

.footer-menu a {
    color: #cccccc;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all 0.25s ease;
    border-radius: 4px;
}

.footer-menu a:hover,
.footer-menu a:focus {
    color: #0073aa;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    opacity: 0.8;
}

.site-footer p,
.site-footer a {
    margin: 0;
    font-size: 14px;
}

.footer-bottom a {
    font-weight: bold;
    color: yellow;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */
@media (min-width: 768px) {
    .header-inner {
        padding: 0.75rem 1rem;
    }

    .nav-toggle {
        display: none;
    }

    .main-navigation {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto;
        border-top: none;
        background: transparent;
        z-index: auto;
    }
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        order: 2;
    }
}

@media (max-width: 767px) {
    .header-inner {
        padding: 0.5rem 1rem;
    }

    body.nav-open .menu-close {
        display: block;
    }

    .main-layout {
        padding: 1rem 0.5rem;
    }

    .post-article {
        padding: 0.75rem;
    }

    .post-thumbnail img {
        height: auto;
        object-fit: contain;
    }

    .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }
}


/* Related Posts Grid */
.related-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.related-item {
    overflow: hidden;
    background: #fff;
    padding: 1px;
}

.related-item img {
    width: 100%;
    border-radius: 8px;
}

.related-item h4 {
    font-size: 16px;
    margin-bottom: 0%;
}

.related-item .author {
    font-size: 13px;
    color: #666;
}

.related-posts h3 {
    margin-bottom: 0;
    padding-left: 10px;
}

.related-posts img {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .related-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-wrapper {
        grid-template-columns: 1fr;
    }

    .related-item h4 {
        font-size: 15px;
    }
}

/* Author Profile - Lightweight Responsive */
.author-box {
    display: flex;
    align-items: center;
    background: #ADD8E6;
    padding: 20px;
    border-radius: 12px;
    color: black;
    margin: 15px 0 10px 0;
    gap: 15px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name,
.author-name a {
    color: #e50f7a;
    font-size: 20px;
    margin: 0;
}

.author-description {
    font-size: 14px;
    margin: 0;
}

.author-info.author {
    align-items: center;
}

/* Mobile Only */
@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        gap: 0px;

    }

    .author-avatar img {
        width: 60px;
        height: 60px;
    }

    .author-name {
        font-size: 18px;
    }
}

/* Related Posts Grid */

.related-posts {
    padding: 1rem;

}

.related-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.related-item {
    overflow: hidden;
    background: #fff;
}

.related-item img {
    width: 100%;
    border-radius: 8px;
}

.related-item h4 {
    font-size: 16px;
}

.related-posts h2 {
    font-size: 20px;
}

.related-item .author {
    font-size: 13px;
    color: #666;
}

.related-posts img {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .related-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-wrapper {
        grid-template-columns: 1fr;
    }

    .related-item h4 {
        font-size: 15px;
    }
}

/* Comment Form */
.comment-respond {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.comment-respond input[type="submit"] {
    background-color: #0073aa;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comment-respond input[type="submit"]:hover {
    background-color: #005a8b;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

#comments {
    padding: 0 1rem;
    font-size: 1.5rem;
}

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

.commentlist > li {
  margin-bottom: 15px;
}

.comment-body {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 4px;
}

/* avatar + author line */
.comment-author img {
  border-radius: 50%;
  margin-right: 5px;
}

.comment-author.vcard {
  display: flex;
  font-weight: 600;
  font-size: 13px;
}

/* date */
.comment-meta {
  font-size: 12px;
  color: #777;
  margin: 3px 0;
}

/* comment text */
.comment-body p {
  margin: 5px 0;
  font-size: 14px;
}

/* reply link */
.reply a {
  font-size: 12px;
  color: #0073aa;
}

/* nested replies */
.commentlist .children {
  list-style: none;
  margin: 10px 0 0 20px;
  padding: 0;
}


/* Related Articles */
.related-articles ul { list-style: none; padding: 0; }
.related-articles li { margin: 8px 0; font-size: 18px; font-weight: 400; line-height: 28px; }

.related-number {
    background: #0073e6;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 8px;
}

.related-articles h3 {
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0;
}

.related-articles h3::before,
.related-articles h3::after {
    content: "";
    flex: 1;
    border-bottom: 2px solid #ccc;
    margin: 0 10px;
}


/* Category archive wrapper */
.all-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px 48px;
}

/* Page title */
.all-archive .page-title {
    font-size: 28px;
    margin: 0 0 24px;
}

/* Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* Card */
.posts-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
}

/* Hover */
.posts-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}

/* Thumbnail */
.posts-card .card-thumbnail img,
.posts-card .card-thumb-placeholder {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.posts-card .card-thumb-placeholder {
    background: #f2f4f7;
}

/* Content */
.posts-card .card-content {
    padding: 16px 18px 18px;
}

/* Title */
.posts-card .card-title {
    font-size: 17px;
    line-height: 1.4;
    margin: 0 0 10px;
}

.posts-card .card-title a {
    color: #111827;
}

.posts-card .card-title a:hover {
    text-decoration: underline;
}

/* Meta */
.posts-card .card-meta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

/* Pagination */
.archive-pagination {
    margin-top: 32px;
    text-align: center;
}

.archive-pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 999px;
    color: #374151;
    background: #f3f4f6;
}

.archive-pagination .page-numbers.current {
    background: #111827;
    color: #ffffff;
}

/* Page wrapper */
.page-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

/* Article card */
.page-entry {
    background: #ffffff;
    border-radius: 18px;
    padding: 10px 24px 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* Title */
.page-entry .page-title {
    font-size: 28px;
    margin: 0 0 16px;
}

/* Content */
.page-entry .page-content {
    font-size: 16px;
    line-height: 1.7;
}

.page-entry .page-links {
    margin-top: 24px;
    font-size: 14px;
}

/* 404 Page*/

.simple-404 {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 20px;
}

.simple-404 h1 {
    font-size: 28px;
    margin: 0;
}

.simple-404 p {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 15px;
}

.simple-404 a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.simple-404 a:hover {
    text-decoration: underline;
}

.post-thumbnail,
.content-image {
    text-align: center;
}

.featured-image-caption,
.content-image-caption {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}



