/* ==========================================
   SUMAWATCH THEME - main.css
   Based on html_3 visual design
   ========================================== */

/* ==========================================
   1. CSS Variables & Reset
   ========================================== */
:root {
    --color-primary: var(--primary);
    --color-primary-dark: var(--primary-dark);
    --color-text: var(--text-main);
    --color-text-muted: var(--text-muted);
    --color-text-light: var(--text-light);
    --color-bg: var(--bg-main);
    --color-bg-secondary: var(--bg-secondary);
    --color-border: var(--border-light);
    --color-border-dark: var(--border-dark);
    --color-sidebar-title-bg: var(--sidebar-title-bg);
    --color-sidebar-title-text: var(--sidebar-title-text);
    --color-link: var(--text-main);
    --color-link-hover: var(--primary);
    --border-radius: var(--radius-sm);
    --border-radius-md: var(--radius-md);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease,
                border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

button {
    transition: color 0.2s ease, background-color 0.2s ease,
                border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--color-link-hover);
}

ul,
ol {
    list-style: none;
}

/* ==========================================
   2. Layout Basics (l-* prefix)
   ========================================== */
.l-wrap {
    overflow-x: hidden;
}

.l-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.l-content {
    display: flex;
    gap: 40px;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 32px 0 24px;
    align-items: flex-start;
}

.l-mainContent {
    flex: 1;
    min-width: 0;
}

/* ==========================================
   3. Header & Navigation
   ========================================== */
.l-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

[data-scrolled="true"] .l-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.l-header__inner {
    display: flex;
    align-items: center;
    max-width: var(--content-max-width);
    margin: 0 auto;
    /*padding: 0 20px;*/
    height: var(--header-height);
    gap: 24px;
}

.l-header__logo {
    flex-shrink: 0;
    margin-right: auto;
}

.c-headLogo__link {
    display: block;
}

.c-headLogo__img {
    height: 40px;
    width: auto;
    display: block;
}

.l-header__gnav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.c-gnav {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
}

.c-gnav__item {
    position: relative;
}

.c-gnav__link {
    display: block;
    font-size: 16px;
    color: var(--color-text);
    text-decoration: none;
    padding: 6px 12px;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}

.c-gnav__link:hover,
.c-gnav__link.is-current {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.l-header__menuBtn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.l-header__menuBtn:hover {
    color: var(--color-primary);
}

/* ==========================================
   4. Mobile Menu (p-spMenu)
   ========================================== */
.p-spMenu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 999;
    transition: left var(--transition);
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
}

[data-spmenu="open"] .p-spMenu {
    left: 0;
}

.p-spMenu__closeBtn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
}

.p-spMenu__closeBtn button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--color-text);
    padding: 4px;
    line-height: 1;
    transition: color var(--transition-fast);
}

.p-spMenu__closeBtn button:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.p-spMenu__body {
    padding: 20px 0;
    position: relative;
    z-index: 1000;
    background: #fff;
}

.p-spMenu__nav {
    list-style: none;
}

.p-spMenu__navItem a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-fast), color var(--transition-fast);
    position: relative;
    z-index: 1;
    background-color: #fff;
}

.p-spMenu__navItem a:hover {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
}

.p-spMenu__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    cursor: pointer;
}

[data-spmenu="open"] .p-spMenu__overlay {
    display: block;
}

/* Body scroll lock when menu open - handled by JS via document.body.style.overflow */

/* ==========================================
   5. Main Visual (p-mainVisual)
   ========================================== */
.p-mainVisual {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
    background: #222;
}

.p-mainVisual__slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.p-mainVisual__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p-mainVisual__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

.p-mainVisual__content {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    padding: 0 40px;
    color: #fff;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.p-mainVisual__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.p-mainVisual__desc {
    font-size: 15px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   6. Content Area Layout (l-content, l-sidebar)
   ========================================== */
.l-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

.l-sidebar__inner {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

/* ==========================================
   7. Post List (p-postList)
   ========================================== */
.p-postList {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap:24px;
}

/* List type (homepage) */
.p-postList.-type-list .p-postList__item {
    display: flex;
    /* gap: 16px; */
    padding: 20px 0;
    /* border-bottom: 1px solid var(--color-border); */
}

.p-postList.-type-list .p-postList__item:first-child {
    /* border-top: 1px solid var(--color-border); */
}

.p-postList.-type-list .c-postThumb {
    /* display: flex; */
    display:inline-block;
    gap: 16px;
    width: 100%;
}

.p-postList.-type-list .c-postThumb__figure {
    /* width: 180px; */
    width:100%;
    flex-shrink: 0;
}

.p-postList.-type-list .c-postThumb__figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
    transition: opacity var(--transition-fast);
}

.p-postList.-type-list .c-postThumb__figure img:hover {
    opacity: 0.85;
}

.p-postList.-type-list .c-postThumb__body {
    flex: 1;
    min-width: 0;
}

/* Card type (category page, 3-column grid) */
.p-postList.-type-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
}

.p-postList.-type-card.-pc-col3 {
    grid-template-columns: repeat(3, 1fr);
}

.p-postList.-type-card.-sp-col1 {
    /* Handled in responsive */
}

.p-postList.-type-card .p-postList__item {
    background: #fff;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition), transform var(--transition);
}

.p-postList.-type-card .p-postList__item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.p-postList.-type-card .c-postThumb__figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.p-postList.-type-card .p-postList__item:hover .c-postThumb__figure img {
    transform: scale(1.03);
}

.p-postList.-type-card .c-postThumb__body {
    padding: 14px 16px 18px;
}

/* ==========================================
   8. Post Card (c-postThumb)
   ========================================== */
.c-postThumb__figure {
    position: relative;
    overflow: hidden;
}

.c-postThumb__cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.c-postThumb__cat:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.c-postThumb__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.c-postThumb__title:hover {
    color: var(--color-primary);
}

.c-postThumb__title a {
    color: inherit;
}

.c-postThumb__title a:hover {
    color: var(--color-primary);
}

.c-postThumb__summary {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.c-postThumb__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 8px;
}

.c-postThumb__date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.c-postThumb__date::before {
    content: "📅";
    font-size: 0.85em;
}

/* ==========================================
   9. Breadcrumb (p-breadcrumb)
   ========================================== */
.p-breadcrumb {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding:0 20px;
}

.p-breadcrumb__inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 10px 0;
}

.p-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    font-size: 12px;
    color: var(--color-text-light);
}

.p-breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.p-breadcrumb__item::after {
    content: "›";
    color: var(--color-text-light);
    margin-left: 4px;
}

.p-breadcrumb__item:last-child::after {
    display: none;
}

.p-breadcrumb__item a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.p-breadcrumb__item a:hover {
    color: var(--color-primary);
}

/* ==========================================
   10. Sidebar Widgets (c-widget)
   ========================================== */
.c-widget {
    margin-bottom: 32px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.c-widget__title.-side {
    background: var(--color-sidebar-title-bg);
    color: var(--color-sidebar-title-text);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    position: relative;
}

.c-widget__title.-side::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--color-primary);
    margin-right: 8px;
    vertical-align: middle;
}

.c-widget__body {
    padding: 0;
}

/* Popular posts widget */
.c-widget__list {
    list-style: none;
    padding: 0;
}

.c-widget__listItem {
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-fast);
}

.c-widget__listItem:last-child {
    border-bottom: none;
}

.c-widget__listItem:hover {
    background: var(--color-bg-secondary);
}

.c-widget__listItem:hover a{
    color: var(--color-primary);
}

.c-widget__listItem a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    text-decoration: none;
}

.span_num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.span_num.-rank-1 {
    background: #d4a017;
}

.span_num.-rank-2 {
    background: #9e9e9e;
}

.span_num.-rank-3 {
    background: #a97b4f;
}

.c-widget__listItem .post-title {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text);
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card-type sidebar posts */
.c-widget__card {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    transition: background var(--transition-fast);
}

.c-widget__card:last-child {
    border-bottom: none;
}

.c-widget__card:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}

.c-widget__card:hover .c-widget__cardTitle {
    color: var(--color-primary);
}

.c-widget__cardImg {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.c-widget__cardTitle {
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================
   11. Pagination (c-pagination)
   ========================================== */
.c-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.c-pagination a,
.c-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.c-pagination a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.c-pagination span.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
}

.c-pagination span.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.c-pagination .page-nav {
    font-size: 18px;
    font-weight: 700;
}

.c-pagination .ellipsis {
    border: none;
    background: none;
    cursor: default;
}

/* Pagination wrapper (from techlysupport compatibility) */
.pagination-wrapper {
    margin-top: 32px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
}

.pagination a.page-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.pagination span.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
}

.pagination span.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination .page-nav {
    font-size: 18px;
    font-weight: 700;
}

.pagination .ellipsis {
    border: none;
    background: none;
    cursor: default;
}

/* ==========================================
   12. Article Detail Page
   ========================================== */
.l-article {
    display: flex;
    gap: 40px;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 40px 0px;
    align-items: flex-start;
}

.l-article__main {
    flex: 1;
    min-width: 0;
}

.l-article__sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

.p-article__header {
    margin-bottom: 24px;
}

.p-article__cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.p-article__cat a {
    color: inherit;
}

.p-article__title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 16px;
}

.p-article__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-light);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.p-article__metaItem {
    display: flex;
    align-items: center;
    gap: 4px;
}

.p-article__headImg {
    width: 100%;
    margin-bottom: 28px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.p-article__headImg img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Article content typography */
.article-content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--color-text);
}

.article-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 16px;
    padding: 10px 16px;
    border-left: 4px solid var(--color-primary);
    background: var(--color-bg-secondary);
    line-height: 1.4;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-border);
    line-height: 1.4;
}

.article-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 24px 0 10px;
    line-height: 1.4;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: 6px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 16px 0;
}

.article-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--color-primary-dark);
}

.article-content blockquote {
    border-left: 4px solid var(--color-primary);
    background: var(--color-bg-secondary);
    padding: 16px 20px;
    margin: 24px 0;
    color: var(--color-text-muted);
    font-style: italic;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 14px;
}

.article-content th {
    background: var(--color-sidebar-title-bg);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

.article-content td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
}

.article-content tr:nth-child(even) td {
    background: var(--color-bg-secondary);
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 18px;
}

/* TOC (Table of Contents) */
.p-toc {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 28px;
}

.p-toc__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.p-toc__list {
    list-style: none;
    counter-reset: toc-counter;
}

.p-toc__item {
    counter-increment: toc-counter;
    margin-bottom: 8px;
}

.p-toc__item a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: none;
    line-height: 1.5;
    transition: color var(--transition-fast);
}

.p-toc__item a::before {
    content: counter(toc-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.p-toc__item a:hover {
    color: var(--color-primary);
}

/* FAQ Section */
.p-faq {
    margin-top: 40px;
}

.p-faq__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

.p-faq__item {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.p-faq__question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--color-bg-secondary);
    transition: background var(--transition-fast);
}

.p-faq__question::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.p-faq__question:hover {
    background: #efefef;
}

.p-faq__answer {
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
    background: #fff;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.p-faq__answer::before {
    content: "A";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #555;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Related posts */
.p-relatedPosts {
    margin-top: 40px;
}

.p-relatedPosts__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.p-relatedPosts__title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* ==========================================
   13. Footer
   ========================================== */
.l-footer {
    /* background: var(--color-sidebar-title-bg); */
    background:var(--footer-bg);
    color: #ccc;
}

.l-footer__inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 40px 0 20px;
}

.l-footer__widgets {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.l-footer__widgetTitle {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}

.l-footer__widgetList {
    list-style: none;
}

.l-footer__widgetList li {
    margin-bottom: 8px;
}

.l-footer__widgetList a {
    color: #aaa;
    font-size: 14px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.l-footer__widgetList a:hover {
    color: #fff;
}

.l-footer__foot {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 16px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.l-footer__copyright {
    font-size: 14px;
    color: #c3c3c3;
}

.l-footer__nav {
    display: flex;
    gap: 16px;
    list-style: none;
}

.l-footer__nav a {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.l-footer__nav a:hover {
    color: #fff;
}

/* ==========================================
   14. Back to Top Button (#pagetop)
   ========================================== */
#pagetop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
    line-height: 1;
}

#pagetop:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

#pagetop.is-visible {
    display: flex;
}

/* ==========================================
   15. Utility Classes (u-* prefix)
   ========================================== */
.u-mt-40 {
    margin-top: 40px;
}

.u-mt-20 {
    margin-top: 20px;
}

.u-mb-40 {
    margin-bottom: 40px;
}

.u-mb-20 {
    margin-bottom: 20px;
}

.u-ta-c {
    text-align: center;
}

.u-thin {
    font-weight: 300;
}

.u-obf-cover {
    object-fit: cover;
}

/* Section title utility */
.section-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 10px 14px;
    border-left: 4px solid var(--color-primary);
    background: var(--color-bg-secondary);
    color: var(--color-text);
}

/* ==========================================
   16. Animations & Transitions
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.p-postList__item {
    animation: fadeIn 0.3s ease forwards;
}
.about_p-catHeader{
    max-width: 1200px;
    padding: 40px 0;
    margin: 0 auto;
}
/* ==========================================
   17. Responsive Breakpoints
   ========================================== */
@media(max-width:1200px){
    .l-content{
        padding:32px 24px 24px;
    }
    .l-header,
    .l-footer{
        padding:0 24px;
    }
    .p-catHeader.about_p-catHeader{
        padding:40px 20px;
    }
    .l-article{
        padding:40px 24px;
    }
}
/* Tablet: 769px - 1024px */
@media (max-width: 1024px) {
    .p-postList.-type-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .l-sidebar {
        display: none;
    }

    .l-article__sidebar {
        display: none;
    }

    .l-footer__widgets {
        grid-template-columns:2fr 1fr 1fr;
    }

    .p-mainVisual {
        height: 360px;
    }
}

/* Mobile: <= 768px */
@media (max-width: 768px) {
    :root {
        --header-height: 54px;
    }

    .l-header__inner {
        height: 54px;
        padding: 0 16px;
    }
    .l-footer__inner {
        padding: 40px 16px 20px;
    }

    .c-headLogo__img {
        height: 32px;
    }

    .l-header__gnav {
        display: none;
    }

    .l-header__menuBtn {
        display: block;
    }

    .p-mainVisual {
        height: 220px;
    }

    .p-mainVisual__title {
        font-size: 20px;
    }

    .p-mainVisual__content {
        bottom: 20px;
        padding: 0 20px;
    }

    .l-content {
        flex-direction: column;
        padding: 20px 16px;
        gap: 24px;
    }

    .l-sidebar {
        display: block;
        width: 100%;
    }

    .p-postList.-type-card {
        grid-template-columns: 1fr;
    }

    .p-postList.-type-list .p-postList__item {
        flex-direction: column;
    }

    .p-postList.-type-list .c-postThumb {
        flex-direction: column;
    }

    .p-postList.-type-list .c-postThumb__figure {
        width: 100%;
    }

    .l-article {
        flex-direction: column;
        padding: 20px 16px;
        gap: 24px;
    }

    .l-article__sidebar {
        display: block;
        width: 100%;
    }

    .p-article__title {
        font-size: 20px;
    }

    .l-footer__widgets {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .l-footer__foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-content h2 {
        font-size: 18px;
    }

    .article-content h3 {
        font-size: 16px;
    }

    #pagetop {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    .p-postList {
        grid-template-columns: 1fr;
    }
    .l-footer{
        padding:0;
    }
    .l-footer__foot{
        padding:16px 15px;
    }
    .p-breadcrumb{
        padding:0 16px;
    }
    .p-catHeader.about_p-catHeader{
        padding:40px 16px;
    }
}

/* Large screens: >= 1025px */
@media (min-width: 1025px) {
    .l-header__menuBtn {
        display: none !important;
    }
}
