/*============================================*/
/* Blog: [peptix_blog_archive], [peptix_post_hero], [peptix_post_content]
   (cards: .peptix-blog-card in peptix-shortcode.css) */

/* Archive toolbar */
.peptix-blog-archive {
    width: 100%;
    font-family: "Outfit", sans-serif;
}

.peptix-blog-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
}

.peptix-blog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.peptix-blog-archive .peptix-blog-chip {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #FFFFFF;
    font-size: 18px ;
    line-height: 1.3;
    color: #0F172A !important;
    text-decoration: none !important;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.peptix-blog-archive .peptix-blog-chip:hover {
    border-color: #3B82F6;
    font-size: 18px !important;
}

.peptix-blog-archive .peptix-blog-chip.active {
    border-color: #3B82F6;
    background: #3B82F6;
    color: #FFFFFF !important;
}

.peptix-blog-tools {
    display: flex;
    flex: 0 0 auto;
    gap: 16px;
}

.peptix-blog-archive .peptix-blog-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.peptix-blog-archive .peptix-blog-tool:hover,
.peptix-blog-archive .peptix-blog-tool.active,
.peptix-blog-archive .peptix-blog-tool[aria-expanded="true"] {
    background: #3B82F6;
    color: #FFFFFF;
    border-radius: 6px !important;
}

/* Search / sort panels */
.peptix-blog-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: -26px 0 40px;
}

.peptix-blog-panel[hidden] {
    display: none;
}

.peptix-blog-archive .peptix-blog-panel input[type="search"] {
    flex: 1 1 280px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 17px;
    color: #0F172A;
}

.peptix-blog-archive .peptix-blog-panel input[type="search"]:focus {
    border-color: #3B82F6;
    outline: none;
}

.peptix-blog-archive .peptix-blog-panel button[type="submit"] {
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 6px;
    background: #3B82F6;
    font-family: inherit;
    font-weight: 400;
    font-size: 17px;
    color: #FFFFFF;
    cursor: pointer;
}

.peptix-blog-clear,
.peptix-blog-sort > span {
    font-size: 16px;
    color: #757575 !important;
}

/* AJAX loading */
.peptix-blog-archive.is-loading .peptix-blog-grid,
.peptix-blog-archive.is-loading .peptix-blog-pagination,
.peptix-blog-archive.is-loading .peptix-blog-empty {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Grid */
.peptix-blog-grid {
    row-gap: 50px;
}

.peptix-blog-empty {
    margin: 0;
    padding: 60px 0;
    font-size: 18px;
    text-align: center;
    color: #757575;
}

/* Pagination: light blue boxes, current page navy, plain arrows and dots. */
.peptix-blog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.peptix-blog-archive .peptix-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.05);
    font-family: "Outfit", sans-serif;
    font-size: 18px;
    line-height: 1;
    color: #0F172A !important;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.peptix-blog-archive .peptix-blog-pagination a.page-numbers:hover {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.12);
}

.peptix-blog-archive .peptix-blog-pagination .page-numbers.current {
    border-color: #0F172A;
    background: #0F172A;
    color: #FFFFFF !important;
}

.peptix-blog-archive .peptix-blog-pagination .page-numbers.dots,
.peptix-blog-archive .peptix-blog-pagination .prev,
.peptix-blog-archive .peptix-blog-pagination .next {
    min-width: 24px;
    padding: 0;
    border-color: transparent;
    background: transparent;
}

.peptix-blog-archive .peptix-blog-pagination .prev:hover,
.peptix-blog-archive .peptix-blog-pagination .next:hover {
    border-color: transparent;
    background: transparent;
    color: #3B82F6 !important;
}

.peptix-blog-archive .peptix-blog-pagination .is-disabled {
    opacity: 0.35;
    cursor: default;
}

.peptix-blog-pagination .prev svg,
.peptix-blog-pagination .next svg {
    width: 22px;
    height: 22px;
}

/* Post hero */
.peptix-post-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 40px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #0F172A;
    background-position: center;
    background-size: cover;
    text-align: center;
}

.peptix-post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.peptix-post-hero .peptix-post-hero-title {
    position: relative;
    max-width: 900px;
    margin: 0;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 72px;
    line-height: 1.1;
    color: #FFFFFF;
}

/* Post content */
.peptix-post {
    max-width: 1214px;
    margin: 0 auto;
    font-family: "Outfit", sans-serif;
}

.peptix-post .peptix-post-title {
    margin: 0 0 24px;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 1.2;
    color: #0F172A;
}

/* Date / category / share pills. */
.peptix-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 30px;
}

.peptix-post .peptix-post-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 12px 24px;
    border-radius: 8px;
    background: #EFF6FF;
    font-size: 20px;
    line-height: 1.3;
    color: #0F172A !important;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.peptix-post a.peptix-post-pill:hover {
    background: #DBEAFE;
    font-size: 20px;
    line-height: 1.3;
}

.peptix-post .peptix-post-share {
    gap: 0;
    padding-right: 16px;
}

.peptix-post .peptix-post-share > span {
    margin-right: 6px;
}

/* Icons with thin dividers between them. */
.peptix-post-share a,
.peptix-post .peptix-post-share button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    margin: 0 2px;
    padding: 0;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    color: #3B82F6 !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

.peptix-post-share a + a::before,
.peptix-post-share a + button::before,
.peptix-post-share button + button::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: -3px;
    width: 1px;
    background: rgba(59, 130, 246, 0.2);
}

.peptix-post-share a:hover,
.peptix-post .peptix-post-share button:hover {
    background: rgba(59, 130, 246, 0.12);
}

.peptix-post-share svg {
    width: 22px;
    height: 22px;
}

.peptix-post .peptix-share-copy.copied {
    width: auto;
    padding: 0 8px;
    font-family: inherit;
    font-size: 14px;
}

.peptix-post .peptix-post-featured {
    margin: 0 0 30px !important; /* Theme / Elementor reset figure margins. */
}

/* Featured image: landscape crop, like the design. */
.peptix-post .peptix-post-featured img {
    display: block;
    width: 100%;
    height: 530px;
    object-fit: cover;
    border-radius: 20px;
}

@media (max-width: 991px) {
    .peptix-post .peptix-post-featured img { height: 400px; }
}

@media (max-width: 767px) {
    .peptix-post .peptix-post-featured img { height: 240px; border-radius: 16px; }
    .peptix-blog-archive .peptix-blog-chip:hover{
        font-size: 16px !important;
    }


.peptix-post .peptix-post-content {
    font-size: 18px;
    line-height: 28px;
    color: #757575;
}


.peptix-post .peptix-post-content::after {
    content: "";
    display: table;
    clear: both;
}

.peptix-post .peptix-post-content > *:first-child {
    margin-top: 0;
}

.peptix-post .peptix-post-content p {
    margin: 0 0 20px;
}

.peptix-post .peptix-post-content h2,
.peptix-post .peptix-post-content h3,
.peptix-post .peptix-post-content h4 {
    margin: 36px 0 20px;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    line-height: 1.25;
    color: #0F172A;
}

.peptix-post .peptix-post-content h2 { font-size: 36px; }
.peptix-post .peptix-post-content h3 { font-size: 32px; }
.peptix-post .peptix-post-content h4 { font-size: 26px; }

.peptix-post .peptix-post-content a {
    color: #3B82F6;
}

.peptix-post .peptix-post-content ul,
.peptix-post .peptix-post-content ol {
    margin: 0 0 20px;
    padding-left: 22px;
}

.peptix-post .peptix-post-content li {
    margin-bottom: 8px;
}

.peptix-post .peptix-post-content strong {
    color: #0F172A;
}

.peptix-post .peptix-post-content figure {
    margin: 0 0 30px;
}

.peptix-post .peptix-post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Full-width images: landscape crop, like the design. */
.peptix-post .peptix-post-content .wp-block-image.size-full img,
.peptix-post .peptix-post-content .wp-block-image.alignwide img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.peptix-post .peptix-post-content .alignright {
    float: right;
    width: 37.5%;
    margin: 6px 0 20px 40px;
}

.peptix-post .peptix-post-content .alignleft {
    float: left;
    width: 37.5%;
    margin: 6px 40px 20px 0;
}

.peptix-post .peptix-post-content .alignright img,
.peptix-post .peptix-post-content .alignleft img {
    width: 100%;
}

.peptix-post .peptix-post-content .has-text-align-justify {
    text-align: justify;
}

.peptix-post .peptix-post-content blockquote {
    margin: 30px 0;
    padding: 4px 0 4px 24px;
    border-left: 3px solid #3B82F6;
    font-style: italic;
    color: #0F172A;
}
}
/*==============================================*/
@media (max-width: 1199px) {
    .peptix-blog-chips { gap: 10px; }
    .peptix-blog-archive .peptix-blog-chip { font-size: 16px; min-height: 44px; }
    .peptix-post-hero { min-height: 400px; }
    .peptix-post-hero .peptix-post-hero-title { font-size: 56px; }
}

@media (max-width: 991px) {
    .peptix-blog-toolbar { flex-direction: column; align-items: stretch; margin-bottom: 36px; }
    .peptix-blog-tools { justify-content: center; }
    .peptix-blog-grid { row-gap: 40px; }
    .peptix-post .peptix-post-title { font-size: 40px; }
    .peptix-post .peptix-post-content h2 { font-size: 32px; }
    .peptix-post .peptix-post-content h3 { font-size: 28px; }
}

@media (max-width: 767px) {
    .peptix-blog-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
    .peptix-blog-archive .peptix-blog-chip { flex: 0 0 auto; }
    .peptix-blog-panel { margin-top: -16px; }
    .peptix-post-hero { min-height: 260px; padding: 24px; border-radius: 16px; }
    .peptix-post-hero .peptix-post-hero-title { font-size: 38px; }
    .peptix-post .peptix-post-title { font-size: 32px; }
    .peptix-post-meta { gap: 10px; }
    .peptix-post .peptix-post-pill { min-height: 44px; padding: 8px 14px; font-size: 16px; flex-wrap: wrap;justify-content: center;}
    .peptix-post .peptix-post-content { font-size: 16px; line-height: 26px; }
    .peptix-post .peptix-post-content h2 { font-size: 28px; }
    .peptix-post .peptix-post-content h3 { font-size: 26px; }
    .peptix-post .peptix-post-content .alignright,
    .peptix-post .peptix-post-content .alignleft { float: none; width: 100%; margin: 0 0 24px; }
}
