/*
Theme Name: Minimal Tech Media
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Custom minimalistic full-width WordPress theme for news, articles, interviews and guest posts.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minimal-tech-media
*/

/* =========================
   BASE
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    color: #000000;
    font-size: 15px;
    line-height: 1.6;
}

/* Visually hidden text for screen readers only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Basic link behavior */

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

a:hover,
a:focus {
    text-decoration: none;
    opacity: 0.95;
    color: #213a96;
}

/* Reset images */

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

/* =========================
   TYPOGRAPHY
   ========================= */

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    margin: 0 0 0.5em;
    line-height: 1.2;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 18px;
}

p {
    margin: 0 0 1em;
}

/* =========================
   GLOBAL LAYOUT
   ========================= */

.site-main {
    padding: 16px 16px 32px;
}

@media (min-width: 960px) {
    .site-main {
        padding: 15px 45px 45px; /* left/right 45px, top 15px, bottom 45px */
    }
}

/* =========================
   BUTTONS
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #000000;
    background-color: #000000;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    border-radius: 20px;
}

.btn:hover,
.btn:focus {
    background-color: #ffffff;
    color: #000000;
    opacity: 0.9;
}

.btn--outline {
    background-color: transparent;
    color: #000000;
}

.btn--outline:hover,
.btn--outline:focus {
    background-color: #000000;
    color: #ffffff;
}

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

.site-header {
    width: 100%;
}

/* NEWS TICKER */

.news-ticker {
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
    color: #000000;
    /* remove bottom border, add background and border-radius */
    border-bottom: none;
    background-color: rgba(218, 218, 218, 0.3); /* #dadada with ~30% opacity */
    margin: 16px 16px 0 16px;  /* mobile: paddings from edges */
    padding: 4px 12px;
    border-radius: 20px;
}

.news-ticker__inner {
    display: inline-flex;
    gap: 24px;
    animation: news-ticker-scroll 120s linear infinite; /* slow, 4x slower than 30s */
    will-change: transform;
}

.news-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.news-ticker__item:hover,
.news-ticker__item:focus {
    opacity: 0.8;
    text-decoration: none;
}

.news-ticker__separator {
    font-weight: 700; /* bold dot */
    padding-right: 4px;
}

.news-ticker__date {
    font-size: 12px;
    opacity: 0.7;
}

.news-ticker__title {
    font-size: 13px;
}

/* Seamless ticker animation */
@keyframes news-ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Black navigation bar */

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;

    background-color: #050505;
    color: #ffffff;

    margin: 16px 16px 0 16px;
    padding: 12px 16px;
    border-radius: 20px;

    position: relative; /* no longer sticky by default */
    z-index: 70;

    /* smooth show/hide animation */
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Floating state */
.site-header__bar--floating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    margin: 8px 16px 0 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}



/* LOGO */

.site-header__logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.site-header__logo-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* LEFT NAVIGATION */

.site-header__nav {
    display: block;
}

.site-header__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-header__nav-item a {
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    padding: 4px 0;
}

.site-header__nav-item a:hover,
.site-header__nav-item a:focus {
    text-decoration: none;
    opacity: 0.75;
}

/* BURGER ON THE RIGHT */

.site-header__burger {
    margin-left: auto;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.site-header__burger-line {
    width: 20px;
    height: 2px;
    background-color: #ffffff;
}

/* Burger in header */

.site-header__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 28px;
    height: 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.site-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff; /* ← white lines */
    border-radius: 999px;
}

/* Just in case, if black is set somewhere above */
header .site-header__burger span {
    background-color: #ffffff;
}


/* MOBILE HEADER VERSION */

@media (max-width: 959.98px) {
    .site-header__bar {
        margin: 16px 16px 0 16px;
        padding: 12px 16px;
        gap: 16px;
    }

    .site-header__bar--floating {
        margin: 8px 16px 0 16px;
    }

    .site-header__nav-list {
        gap: 12px;
    }

    .site-header__nav-item a {
        font-size: 16px;
    }
    
    .site-header__nav {
        display: none;
    }
}

/* DESKTOP HEADER VERSION */

@media (min-width: 960px) {
    .news-ticker {
        margin: 10px 45px 0 45px;
        padding: 6px 16px;
        font-size: 13px;
    }

    .news-ticker__title {
        font-size: 14px;
    }

    .site-header__bar {
        margin: 8px 45px 0 45px;
        padding: 16px 24px;
    }

    .site-header__bar--floating {
        margin: 8px 45px 0 45px;
    }

    .site-header__nav-list {
        gap: 24px;
    }
}

/* =========================
   HOME: FIRST BLOCK (LEFT + RIGHT COLUMN)
   ========================= */

.home-hero {
    margin-top: 15px;
}

.home-hero__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* LEFT COLUMN — MAIN NEWS */

.home-hero__main-post {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-hero__main-link {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.home-hero__main-link:hover .home-hero__main-title,
.home-hero__main-link:focus .home-hero__main-title {
    text-decoration: none;
    opacity: 0.85;
}

.home-hero__main-media {
    width: 100%;
}

.home-hero__main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px; /* rounded image */
}

.home-hero__main-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.home-hero__main-title {
    font-size: 24px;
    line-height: 1.25;
}

.home-hero__main-excerpt {
    font-size: 18px;
    color: #333333;
}

.home-hero__meta {
    margin-top: auto;
    font-size: 13px;
    color: #555555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-hero__meta-separator {
    opacity: 0.6;
}

/* RIGHT COLUMN — NEXT 4 NEWS ITEMS */

.home-hero__side {
    height: 100%;
}

.home-hero__side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.home-hero__side-item {
    flex: 1 1 auto;
}

.home-hero__side-link {
    display: flex;
    align-items: stretch;
    gap: 12px;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.home-hero__side-link:hover .home-hero__side-title,
.home-hero__side-link:focus .home-hero__side-title {
    text-decoration: none;
    opacity: 0.85;
}

.home-hero__side-media {
    flex: 0 0 40%;
    max-width: 40%;
}

.home-hero__side-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px; /* rounded image */
}

.home-hero__side-content {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;   /* center title+date vertically */
    align-items: flex-start;
    gap: 6px;
}

.home-hero__side-title {
    font-size: 20px;           /* larger font */
    line-height: 1.3;
}

.home-hero__side-date {
    font-size: 12px;
    color: #777777;
}

@media (max-width: 560px) {
    .home-hero__side-title {
        font-size: 16px;       /* smaller on narrow screens */
        line-height: 1.3;
    }
}

/* DESKTOP: TWO EQUAL COLUMNS WITH SAME HEIGHT */

@media (min-width: 960px) {
    .home-hero {
        margin-top: 15px;
    }

    .home-hero__grid {
        flex-direction: row;
        align-items: stretch;
        gap: 32px;
    }

    .home-hero__main-post,
    .home-hero__side {
        flex: 1 1 50%;
    }

    .home-hero__main-title {
        font-size: 36px;
    }
}


/* =========================
   SINGLE NEWS
   ========================= */

.single-news {
    margin-top: 15px;
}

/* Top block: 2 columns */

.single-news__header {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 24px;
}

/* Left part 40% (only on desktop), stacked on mobile */
.single-news__header-left {
    /* keep empty, controlled via media query */
}

/* Right part 60% */

.single-news__header-right {
    /* mobile 100%, desktop 60% via flex */
}

/* Breadcrumbs */

.single-news__breadcrumbs {
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333333;
}

.single-news__breadcrumbs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.single-news__breadcrumbs-item a {
    text-decoration: none;
}

.single-news__breadcrumbs-item a:hover,
.single-news__breadcrumbs-item a:focus {
    opacity: 0.8;
}

.single-news__breadcrumbs-separator {
    opacity: 0.6;
}

/* Preview + meta */

.single-news__media {
    position: relative;
    margin-bottom: 16px;
}

.single-news__image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

/* Category badges on preview */

.single-news__tags {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

a.single-news__tag:hover {
    background-color: #213a96;
    color: #fff;
}

.single-news__tag {
    background-color: rgba(5, 5, 5, 0.85);
    color: #ffffff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 999px;
}

.single-news__title {
    font-size: 24px;
    margin-bottom: 8px;
}

.single-news__meta {
    font-size: 13px;
    color: #777777;
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-news__meta-separator {
    opacity: 0.6;
}

/* Divider line */

.single-news__divider {
    border-top: 1px solid #000000;
    opacity: 0.15;
    margin: 24px 0;
}

/* Content: 40% empty on the left, 40% text, 20% empty on the right */

.single-news__content {
    /* full-width container, inner block is controlled below */
}

.single-news__content-inner {
    font-size: 18px;
    line-height: 1.8;
}

/* Basic spacing inside content */
.single-news__content-inner > *:first-child {
    margin-top: 0;
}

.single-news__content-inner h2 {
    font-size: 22px;
    margin-top: 1.5em;
}

.single-news__content-inner h3 {
    font-size: 18px;
    margin-top: 1.4em;
}

.single-news__content-inner p {
    margin-bottom: 1em;
}

.single-news__content-inner ul,
.single-news__content-inner ol {
    padding-left: 1.2em;
    margin: 0 0 1em;
}

/* Responsive: desktop layout */

@media (min-width: 960px) {
    .single-news__header {
        flex-direction: row;
        align-items: flex-start;
        gap: 0px;
    }

    .single-news__header-left {
        flex: 0 0 35%;
        display: flex;
        flex-direction: column;   /* vertical, not row */
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;                /* small spacing between breadcrumbs and author */
    }

    .single-news__header-right {
        flex: 0 0 65%;
    }

    .single-news__title {
        font-size: 36px;
    }

    /* Content: 40% empty left, 40% text, 20% empty right */
    .single-news__content-inner {
        width: 40%;
        margin-left: 35%;   /* empty space on the left */
        margin-right: 20%;  /* empty space on the right */
    }
}

/* Mobile: single column */

@media (max-width: 959.98px) {
    .single-news__header {
        gap: 0px;
    }

    .single-news__content-inner {
        width: 100%;
        margin: 0;
    }
}



/* =========================
   HOME: TRENDING
   ========================= */

.trending {
    margin-top: 40px;
}

/* Header: // Trending + line + arrows on the right */

.trending__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.trending__label {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.trending__line {
    flex: 1 1 auto;
    height: 1px;
    background-color: #000000;
    opacity: 0.2;
}

.trending__arrows {
    display: inline-flex;
    gap: 8px;
}

/* Square buttons with rounded corners */

.trending__arrow {
    width: 32px;
    height: 32px;
    border-radius: 6px; /* slight rounding */
    border: 1px solid #000000;
    background-color: transparent;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.trending__arrow:hover,
.trending__arrow:focus {
    background-color: #000000;
    color: #ffffff;
    opacity: 0.9;
}

/* "No more items to scroll" state */

.trending__arrow.is-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* Body: horizontal list */

.trending__body {
    display: flex;
    align-items: stretch;
}

.trending__list-wrapper {
    flex: 1 1 auto;
    overflow: hidden;
}

.trending__list {
    display: flex;
    gap: 24px;
    transition: transform 0.3s ease;
}

/* Trending card */

.trending__item {
    flex: 0 0 calc((100% - 3 * 24px) / 4); /* 4 cards per row */
    min-width: 220px;
}

.trending__link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

/* Preview */

.trending__media {
    position: relative;
	aspect-ratio: 16 / 9;
 	overflow: hidden;
}

.trending__image {
    border-radius: 20px;
	width: 100%;
  	height: 100%;
  	object-fit: cover;
  	display: block;
}

/* Category badges on preview */

.trending__tags {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trending__tag {
    background-color: rgba(5, 5, 5, 0.85);
    color: #ffffff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
}

/* Content under preview */

.trending__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trending__date {
    font-size: 12px;
    color: #777777;
}

.trending__title {
    font-size: 16px;
    line-height: 1.4;
}

/* Responsive */

@media (max-width: 959.98px) {
    .trending__header {
        align-items: flex-start;
    }

    .trending__line {
        display: none; /* hide line on mobile to reduce clutter */
    }

    .trending__arrows {
        margin-left: auto;
    }

    .trending__item {
        flex: 0 0 70%;
    }
}

/* =========================
   HOME: FEATURED INTERVIEW
   ========================= */

.featured-interview {
    margin-top: 40px;
}

.featured-interview__link {
    display: block;
}

/* Container with fixed 16:7 ratio */
.featured-interview__media-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 20px;
    overflow: hidden;
}

/* Image fills the whole box */
.featured-interview__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay on top of the image (everything inside the image) */
.featured-interview__overlay {
    position: absolute;
    inset: 0;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Top badge // Interview */

.featured-interview__label {
    align-self: flex-start;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: rgba(5, 5, 5, 0.85);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 999px;
    line-height: 1;
}

/* Title badge: no more than 50% width */

.featured-interview__title-wrap {
    align-self: flex-start;
    max-width: 50%;           /* no more than 50% width */
    background-color: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    border-radius: 14px;
}

.featured-interview__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    color: #000000;
}

/* Date and author badges at the bottom */

.featured-interview__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.featured-interview__date,
.featured-interview__author {
    font-size: 13px;
    color: #000000;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 4px 10px;
    border-radius: 999px;
}

/* Mobile-only adaptation for this block */

@media (max-width: 767.98px) {
    .featured-interview {
        margin-top: 28px;
    }

    .featured-interview__overlay {
        padding: 14px 14px;
    }

    .featured-interview__label {
        font-size: 16px;
        padding: 4px 10px;
        letter-spacing: 0.06em;
    }

    .featured-interview__title-wrap {
        max-width: 100%;
        padding: 8px 12px;
        border-radius: 12px;
    }

    .featured-interview__title {
        font-size: 15px;
        line-height: 1.3;
    }

    .featured-interview__meta {
        gap: 6px;
        margin-top: 8px;
    }

    .featured-interview__date,
    .featured-interview__author {
        font-size: 11px;
        padding: 3px 8px;
    }
}

@media (min-width: 768px) {
    .featured-interview__overlay {
        padding: 28px 32px;
    }

    .featured-interview__title {
        font-size: 28px;
    }
}


/* =========================
   CPT ARCHIVE PAGES
   ========================= */

.cpt-archive {
    margin-top: 20px;
}

/* Top area: breadcrumbs + title + filters */

.cpt-archive__header {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.cpt-archive__header-left {
    max-width: 100%;
}

/* Breadcrumbs */

.cpt-archive__breadcrumbs {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px; /* was 8px, now 20px */
}

.cpt-archive__breadcrumbs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cpt-archive__breadcrumbs-item a {
    text-decoration: none;
}

.cpt-archive__breadcrumbs-item a:hover,
.cpt-archive__breadcrumbs-item a:focus {
    opacity: 0.8;
}

.cpt-archive__breadcrumbs-separator {
    opacity: 0.6;
}

/* Title row // News / // Articles ... */

.cpt-archive__title-row {
    margin-bottom: 20px; /* was 12px, now 20px */
}

.cpt-archive__title {
    font-size: 28px; /* was 22px, now 28px */
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

/* Category filters */

.cpt-archive__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.cpt-archive__filter {
    border: 1px solid #000000;
    border-radius: 999px;
    padding: 8px 20px;              /* bigger paddings, larger filters */
    font-size: 16px;                /* larger font */
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.cpt-archive__filter:hover,
.cpt-archive__filter:focus {
    opacity: 0.85;
}

.cpt-archive__filter.is-active {
    background-color: #000000;
    color: #ffffff;
}

/* Grid: using trending cards inside */

.cpt-archive__grid-wrap {
    margin-top: 8px;
}

.cpt-archive__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* 2 per row on tablet */

@media (min-width: 640px) {
    .cpt-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 4 per row on desktop */

@media (min-width: 1024px) {
    .cpt-archive__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Load more */

.cpt-archive__load-more-wrap {
    margin-top: 24px;
    text-align: center;
}

.cpt-archive__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid #000000;
    background-color: #000000;
    color: #ffffff;
    cursor: pointer;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    font-family: 'Montserrat';
}

.cpt-archive__load-more:hover,
.cpt-archive__load-more:focus {
    background-color: #ffffff;
    color: #000000;
    opacity: 0.9;
}

.cpt-archive__load-more.is-loading {
    opacity: 0.6;
    cursor: default;
}

/* Card fade-in animation on archive */

.cpt-archive__item--enter {
    opacity: 0;
    transform: translateY(10px);
    animation: cptArchiveFadeIn 0.25s ease forwards;
}

@keyframes cptArchiveFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   AUTHOR ARCHIVE
   ========================= */

.author-archive {
    margin-top: 20px;
}

.author-archive__header {
    margin-bottom: 24px;
}

/* Top row: avatar + name */

.author-archive__top-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.author-archive__avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.author-archive__name {
    font-size: 18px;
    font-weight: 600;
}

/* Author bio */

.author-archive__bio {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    margin-right: 15px;
}

.author-archive__social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.author-archive__social-label {
    font-size: 14px;
    font-weight: 500;
}

.author-archive__social-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.author-archive__social-link {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f3f3f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.author-archive__social-link:hover,
.author-archive__social-link:focus {
    opacity: 0.85;
    transform: translateY(-1px);
}

.author-archive__social-icon {
    font-size: 14px;
    font-weight: 600;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.author-archive__name-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-archive__name {
    font-size: 18px;
    font-weight: 600;
}

.author-archive__position {
    font-size: 12px;
    opacity: 0.8;
}


.author-archive__site a {
    text-decoration: none;
}

.author-archive__site a:hover,
.author-archive__site a:focus {
    text-decoration: underline;
}


@media (max-width: 767.98px) {
    .author-archive__social {
        flex-wrap: wrap;
    }
}


/* Filters are reused from .cpt-archive__filters */

/* Responsive */

@media (max-width: 767.98px) {
    .author-archive__top-row {
        align-items: center;
    }

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

/* Author block on single post page */

.single-post-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    text-decoration: none;
}

.single-post-author__avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.single-post-author__name {
    font-size: 14px;
    font-weight: 600;
}


/* =========================
   OFFCANVAS CATEGORIES PANEL
   ========================= */

.offcanvas-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 80;
}

.offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    max-width: 80%;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    z-index: 90;
    display: flex;
    flex-direction: column;
    border-radius: 20px 0 0 20px;
    overflow: hidden; /* scroll only inside panel */
}

.offcanvas__inner {
    padding: 16px 18px 40px;   /* added 40px bottom padding */
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}



.offcanvas__close {
    align-self: flex-end;
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.offcanvas__title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 20px 0 10px;
}

.offcanvas__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offcanvas__item {
}

.offcanvas__link {
    display: block;
    padding: 0px 0;
    text-decoration: none;
    font-size: 14px;
}

.offcanvas__link:hover,
.offcanvas__link:focus {
    opacity: 0.8;
}

.offcanvas__empty {
    font-size: 13px;
    opacity: 0.7;
}

/* "Open" state — controlled by is-open class in JS */

.offcanvas.is-open {
    transform: translateX(0);
}

.offcanvas-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Optionally disable body scroll when menu is open */
body.offcanvas-open {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .offcanvas {
        width: 100%;
        max-width: 100%;
        border-radius: 0;      /* full-screen on mobile */
    }

    .offcanvas__inner {
        padding: 20px 20px 56px; /* more bottom spacing on mobile */
        /* extra for iPhones with safe area: */
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }
}

/* =========================
   SHARE BLOCK
   ========================= */

.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.post-share__label {
    font-size: 14px;
    font-weight: 500;
}

.post-share__buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-share__btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.post-share__btn--icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f3f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.post-share__btn--icon:hover,
.post-share__btn--icon:focus {
    opacity: 0.85;
    transform: translateY(-1px);
}

.post-share__icon-text {
    font-size: 14px;
    font-weight: 600;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.post-share__copied {
    display: none;
    font-size: 12px;
    margin-left: 8px;
    opacity: 0.8;
}

.post-share__copied.is-visible {
    display: inline-block;
}








/* =========================
   FOOTER
   ========================= */

.site-footer {
    border-top: 1px solid #000000;
    padding: 24px 16px;
    font-size: 13px;
}

@media (min-width: 960px) {
    .site-footer {
        padding: 24px 45px;
    }
}

.site-footer {
    background-color: #111315; /* dark grey almost black */
    color: #f5f5f5;
    padding: 48px 0 24px;
    font-size: 14px;
}

.site-footer a {
    color: #f5f5f5;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

@media (max-width: 960px) {
    .site-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.site-footer__title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    color: #ffffff;
}

.site-footer__subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 8px;
    color: #d0d0d0;
}

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

.site-footer__list li + li {
    margin-top: 8px;
}

.site-footer__list--columns {
    column-count: 2;
    column-gap: 24px;
}

.site-footer__list--contacts li + li {
    margin-top: 4px;
}

.site-footer__muted {
    color: #888;
    font-size: 13px;
}

.site-footer__follow {
    margin-top: 20px;
}

.site-footer__socials {
    display: flex;
    gap: 8px;
}

.site-footer__social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.site-footer__social-link:hover {
    border-color: #888;
}

.site-footer__bottom {
    border-top: 1px solid #26292d;
    margin-top: 32px;
    padding-top: 16px;
}

.site-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #a0a0a0;
}

.site-footer {
    padding-left: 45px;
    padding-right: 45px;
}

@media (max-width: 600px) {
    .site-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}



/* Main wrapper for content pages */
.site-main--content-page {
    padding: 60px 20px 80px; /* spacing relative to header/footer */
}

/* Content block: max 800px and centered */
.content-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f7f7f7;
}

/* Page title */
.content-page__title {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 24px;
}

/* Body content (Gutenberg / classic editor) */
.content-page__body {
    font-size: 16px;
    line-height: 1.7;
}

/* Slight vertical rhythm for inner elements */
.content-page__body > *:not(:last-child) {
    margin-bottom: 1.5rem;
}

/* Images and media inside content are full width within column */
.content-page__body img,
.content-page__body figure,
.content-page__body iframe {
    max-width: 100%;
    height: auto;
}


.site-main--archive {
    padding: 40px 0 60px;
}

/* Category heading */
.archive-header__inner {
    padding: 0 45px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .archive-header__inner {
        padding: 0 20px;
    }
}

.archive-header__title {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.archive-header__description {
    font-size: 14px;
    color: #666;
}

/* Section with grid */
.archive-category__inner {
    padding: 0 45px;
}

@media (max-width: 600px) {
    .archive-category__inner {
        padding: 0 20px;
    }
}

.archive-category__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* Responsive for tablet and mobile */
@media (max-width: 1200px) {
    .archive-category__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .archive-category__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* Post card */
.archive-card {
    background: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.archive-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.archive-card__media {
    position: relative;
    overflow: hidden;
}

.archive-card__image {
    display: block;
    width: 100%;
    height: auto;
}

.archive-card__content {
    padding: 12px 14px 16px;
}

.archive-card__date {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

.archive-card__title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

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


.cpt-archive__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

.cpt-archive__meta-separator {
    opacity: 0.6;
}

.cpt-archive__author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.cpt-archive__author-avatar {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    object-fit: cover;
    display: block;
}

.cpt-archive__author-name {
    font-size: 12px;
}


/* Search form wrapper in archive header */
.cpt-archive__search-form {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 480px;
}

/* Input field */
.cpt-archive__search-input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    background: #fafafa;
    font-family: 'Montserrat';
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.cpt-archive__search-input::placeholder {
    font-family: 'Montserrat';
    color: #999;
}

.cpt-archive__search-input:focus {
    border-color: #111315;
    background: #ffffff;
    box-shadow: 0 0 0 1px #1113150d, 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Search button */
.cpt-archive__search-submit {
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: #111315;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Montserrat';
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.cpt-archive__search-submit:hover {
    background: #1b1f24;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.cpt-archive__search-submit:active {
    transform: translateY(1px);
    box-shadow: none;
    font-family: 'Montserrat';
}

/* Label "Found materials..." */
.cpt-archive__search-note {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

/* Slight mobile adaptation */
@media (max-width: 600px) {
    .cpt-archive__search-form {
        max-width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

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


.site-header__search-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    border: none;
    background: transparent;
    cursor: pointer;

    padding: 4px 10px;
    border-radius: 999px;

    color: #ffffff;
    font-size: 13px;
    font-weight: 500;

    opacity: 0.85;
    transition:
    background-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.1s ease;
}

.site-header__search-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

.site-header__search-toggle:active {
    transform: translateY(1px);
}

/* Icon */
.site-header__search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-header__search-svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
}

/* "Search" text */
.site-header__search-label {
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 14px;
    font-family: Montserrat;
}

/* Hide label on very narrow screens, keep only icon */
@media (max-width: 480px) {
    .site-header__search-label {
        display: none;
    }

    .site-header__search-toggle {
        padding-inline: 6px;
    }
}

.home-hero__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 4px;
}

.home-hero__label {
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #141414;
}

.home-hero__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #444, transparent);
}
