/*
Theme Name: FOR BET
Theme URI: https://example.com/
Author: John Website
Author URI: https://example.com/
Description: Lightweight SEO-friendly WordPress theme for content websites and PBN sites.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: pbn-lite
*/

/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #ffffff;
    color: #172033;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: #155eef;
    text-decoration: none;
}

a:hover {
    color: #0f4fc9;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: fixed;
    top: 10px;
    left: 10px;

    width: auto;
    height: auto;

    padding: 10px 15px;
    margin: 0;

    overflow: visible;
    clip: auto;
    white-space: normal;

    background: #ffffff;
    color: #111827;

    z-index: 99999;
}

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

.container {
    width: min(1120px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.site-main {
    min-height: 500px;
}

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

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #edf0f4;
}

.header-inner {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    margin: 0;

    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;

    letter-spacing: -0.4px;
}

.site-title a {
    color: #111827;
}

.site-description {
    display: none;
}

/* =========================================================
   NAVIGATION
========================================================= */

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    margin: 0;
    padding: 0;

    list-style: none;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;

    padding: 18px 18px;

    color: #111827;

    font-size: 16px;
    font-weight: 600;

    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}

.main-navigation a:hover {
    color: #155eef;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #155eef;
}

/* =========================================================
   HOMEPAGE
========================================================= */

.home-section {
    padding: 70px 0;
}

.home-section--gray {
    background: #f8fafc;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.home-content {
    max-width: 900px;
    margin: 0 auto;
}

.home-content h1 {
    margin-top: 0;

    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.15;

    letter-spacing: -1.2px;
}

.home-content h2 {
    margin-top: 45px;

    font-size: 30px;
    line-height: 1.25;

    letter-spacing: -0.5px;
}

.home-content h3 {
    margin-top: 30px;

    font-size: 22px;
    line-height: 1.35;
}

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

.home-content ul,
.home-content ol {
    margin: 0 0 25px;
    padding-left: 25px;
}

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

.home-content blockquote {
    margin: 30px 0;

    padding: 20px 25px;

    border-left: 4px solid #155eef;

    background: #f8fafc;

    color: #475569;
}

.home-content table {
    width: 100%;
    border-collapse: collapse;

    margin: 30px 0;
}

.home-content th,
.home-content td {
    padding: 12px 15px;

    border: 1px solid #e5e7eb;

    text-align: left;
}

.home-content th {
    background: #f8fafc;
}

/* =========================================================
   CONTENT
========================================================= */

.content-area {
    padding: 60px 0;
}

.content-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 50px;

    align-items: start;
}

.content-main {
    min-width: 0;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    margin: 0 0 15px;

    color: #111827;

    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.2;

    letter-spacing: -0.8px;
}

.entry-meta {
    color: #64748b;

    font-size: 14px;
}

.entry-meta a {
    color: #64748b;
}

.entry-meta a:hover {
    color: #155eef;
}

.entry-thumbnail {
    margin: 0 0 30px;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;

    border-radius: 8px;
}

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

.entry-content {
    color: #273449;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #111827;

    line-height: 1.3;
}

.entry-content h2 {
    margin-top: 45px;
    margin-bottom: 18px;

    font-size: 30px;
}

.entry-content h3 {
    margin-top: 35px;
    margin-bottom: 15px;

    font-size: 23px;
}

.entry-content h4 {
    margin-top: 28px;
    margin-bottom: 12px;

    font-size: 19px;
}

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

.entry-content ul,
.entry-content ol {
    margin: 0 0 25px;
    padding-left: 25px;
}

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

.entry-content img {
    margin: 25px auto;
}

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

.entry-content figcaption {
    margin-top: 8px;

    color: #64748b;

    font-size: 14px;
    text-align: center;
}

.entry-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;

    background: #f8fafc;

    border-left: 4px solid #155eef;

    color: #475569;
}

.entry-content table {
    width: 100%;

    border-collapse: collapse;

    margin: 30px 0;
}

.entry-content th,
.entry-content td {
    padding: 12px 15px;

    border: 1px solid #e5e7eb;
}

.entry-content th {
    background: #f8fafc;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: sticky;
    top: 20px;
}

.widget {
    margin-bottom: 35px;
}

.widget-title {
    margin: 0 0 15px;

    color: #111827;

    font-size: 18px;
    line-height: 1.4;
}

.widget ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.widget li {
    padding: 8px 0;

    border-bottom: 1px solid #edf0f4;
}

.widget li:last-child {
    border-bottom: 0;
}

.widget a {
    color: #334155;
}

.widget a:hover {
    color: #155eef;
}

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

.archive-header {
    margin-bottom: 40px;

    padding-bottom: 25px;

    border-bottom: 1px solid #e5e7eb;
}

.archive-title {
    margin: 0;

    color: #111827;

    font-size: 36px;
    line-height: 1.25;
}

.archive-description {
    margin-top: 15px;

    color: #64748b;
}

.post-list {
    display: grid;

    gap: 30px;
}

.post-card {
    display: grid;

    grid-template-columns: 230px minmax(0, 1fr);

    gap: 25px;

    padding-bottom: 30px;

    border-bottom: 1px solid #e5e7eb;
}

.post-card-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 10;

    object-fit: cover;

    border-radius: 7px;
}

.post-card-title {
    margin: 0 0 10px;

    font-size: 23px;
    line-height: 1.35;
}

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

.post-card-title a:hover {
    color: #155eef;
}

.post-card-meta {
    margin-bottom: 10px;

    color: #64748b;

    font-size: 14px;
}

.post-card-excerpt {
    color: #475569;
}

/* =========================================================
   PAGINATION
========================================================= */

.pagination {
    margin-top: 45px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    padding: 0 12px;

    border: 1px solid #e2e8f0;

    border-radius: 5px;

    color: #334155;

    font-size: 14px;
}

.pagination a:hover,
.pagination .current {
    background: #155eef;

    border-color: #155eef;

    color: #ffffff;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {
    margin-bottom: 25px;

    color: #64748b;

    font-size: 14px;
}

.breadcrumb a {
    color: #64748b;
}

.breadcrumb a:hover {
    color: #155eef;
}

.breadcrumb-separator {
    margin: 0 7px;

    color: #cbd5e1;
}

/* =========================================================
   FAQ
========================================================= */

.faq-section {
    max-width: 1080px;
    margin: 0 auto;
}

.faq-title {
    margin: 0 0 40px;

    color: #111827;

    font-size: 30px;

    text-align: center;
}

.faq-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0 38px;
}

.faq-item {
    border-bottom: 1px solid #dfe4ea;
}

.faq-item summary {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 62px;

    padding: 15px 0;

    cursor: pointer;

    list-style: none;

    color: #172033;

    font-size: 16px;
    font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";

    flex-shrink: 0;

    font-size: 20px;

    font-weight: 400;

    color: #334155;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 0 20px;

    color: #64748b;

    font-size: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

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

.site-footer {
    background: #ffffff;

    border-top: 1px solid #e5e7eb;
}

.footer-main {
    padding: 50px 0 40px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr;

    gap: 40px;
}

.footer-title {
    margin: 0 0 15px;

    color: #111827;

    font-size: 17px;
}

.footer-brand-title {
    margin: 0 0 15px;

    color: #155eef;

    font-size: 23px;
}

.footer-description {
    margin: 0;

    color: #64748b;

    font-size: 15px;
}

.footer-links {
    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #475569;

    font-size: 14px;
}

.footer-links a:hover {
    color: #155eef;
}

.footer-bottom {
    padding: 18px 0;

    border-top: 1px solid #edf0f4;

    color: #64748b;

    font-size: 13px;
}

.footer-bottom-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

/* =========================================================
   SEARCH
========================================================= */

.search-form {
    display: flex;

    gap: 8px;

    margin-top: 25px;
}

.search-form label {
    flex: 1;
}

.search-field {
    width: 100%;

    height: 44px;

    padding: 0 14px;

    border: 1px solid #dbe2ea;

    border-radius: 5px;

    outline: none;
}

.search-field:focus {
    border-color: #155eef;
}

.search-submit {
    padding: 0 20px;

    border: 0;

    border-radius: 5px;

    background: #155eef;

    color: #ffffff;

    font-weight: 600;
}

/* =========================================================
   404
========================================================= */

.error-404 {
    padding: 100px 0;

    text-align: center;
}

.error-404 h1 {
    margin: 0 0 15px;

    font-size: 70px;

    line-height: 1;
}

.error-404 p {
    color: #64748b;
}

/* =========================================================
   COMMENTS
========================================================= */

.comments-area {
    margin-top: 50px;

    padding-top: 35px;

    border-top: 1px solid #e5e7eb;
}

.comment-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.comment {
    margin-bottom: 25px;

    padding-bottom: 25px;

    border-bottom: 1px solid #e5e7eb;
}

.comment-meta {
    color: #64748b;

    font-size: 13px;
}

.comment-content {
    margin-top: 10px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;

    padding: 12px;

    border: 1px solid #dbe2ea;

    border-radius: 5px;
}

.comment-form textarea {
    min-height: 150px;

    resize: vertical;
}

.comment-form .submit {
    padding: 11px 18px;

    border: 0;

    border-radius: 5px;

    background: #155eef;

    color: #ffffff;

    font-weight: 600;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .header-inner {
        min-height: auto;

        padding: 15px 0;

        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .main-navigation {
        width: 100%;

        overflow-x: auto;
    }

    .main-navigation ul {
        flex-wrap: nowrap;
    }

    .main-navigation a {
        padding: 8px 12px;

        white-space: nowrap;

        font-size: 14px;
    }

    .content-layout {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1120px);
    }

    .home-section,
    .content-area {
        padding: 45px 0;
    }

    .post-card {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .post-card-thumbnail img {
        aspect-ratio: 16 / 9;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        align-items: flex-start;

        flex-direction: column;
    }

    .search-form {
        flex-direction: column;
    }

    .search-submit {
        height: 44px;
    }
}