/* Main Theme Styles */

/* Reset and Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
}

footer{
    background-color: #f9f9f9;
    border-top: #d1d5db solid 1px;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Layout */
.site {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 2rem 0 1rem;
    line-height: 1.2;
    color: var(--tnb-primary);
}

p {
    margin: 0 0 1.5rem;
}

/* Links */
a {
    color: var(--tnb-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: color-mix(in srgb, var(--tnb-primary) 80%, black);
}

a:focus {
    outline: none;
}

/* Buttons */
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    background: var(--tnb-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    opacity: 0.9;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    width: 100%;
}

/* Media */
img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.text-center {
    text-align: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem;
}
.post-card-more:hover {
    color: #fc5710 !important;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 0.5rem;
    }
}

/* Header layout and responsive tweaks */
.header-social {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-social-link,
.header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    border-radius: 50%;
    transition: background-color 150ms ease, transform 120ms ease;
}

.header-social-link .icon,
.header-social a svg {
    width: 18px;
    height: 18px;
    color: currentColor;
}

/* Make categories horizontal on larger screens */
.header-categories ul,
.header-categories .wp-block-categories__list {
    display: flex !important;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

.header-categories li {
    margin: 0;
}

.header-categories li a {
    color: #4a4a4a;
    font-weight: 600;
    text-decoration: none;
}

.header-categories li a:hover {
    color: var(--tnb-primary);
}

/* Mobile menu styles */
#mobile-menu {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 300ms, opacity 300ms ease-in-out;
}

#mobile-menu.is-active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

#mobile-menu>div {
    transform: translateX(100%);
    transition: transform 300ms ease-in-out;
}

#mobile-menu.is-active>div {
    transform: translateX(0);
}

.cat-item a {
    text-align: left;
}
.cat-item{
    padding: 0.5rem 1rem;
}
.cat-item a:hover {
    color: #fc5710 !important;
}   

.wp-block-pages-list_item_link {
    font-size: small;
}



/* Categories styling */

.inner-container {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
}

.inner-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to left, #f9f9f9 60%, transparent);
}



.header-categories a {
    display: block;
    padding: 0.5rem 0;
    color: #4a4a4a;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-categories a:hover {
    color: var(--tnb-primary);
}

/* Mobile styles */
@media (max-width: 767px) {
    .header-social {
        display: none !important;
    }


    .header-categories ul {
        gap: 1rem !important;
    }

    .header-categories li {
        width: 100%;
        text-align: center;
    }
}

/* Hamburger button hover effect */
#mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
}

#categories-toggle:focus {
    outline: none;
}

/* Content grid */
.content-grid .wp-block-query .wp-block-query__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.post-card-title {
    padding: 0.75rem 1rem 0 1rem;
    font-weight: 700;
    color: var(--tnb-primary);
    font-size: 1.05rem;
}

.post-card-excerpt {
    padding: 0.5rem 1rem 1rem 1rem;
    color: #555;
    flex-grow: 1;
}

.post-card-meta {
    padding: 0.5rem 1rem 1rem 1rem;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive: reduce image height on small screens */
@media (max-width: 640px) {
    .post-card-image img {
        height: 120px;
    }
}


/* Hero pattern (moved from inline to stylesheet to avoid editor parsing issues) */
.hero-pattern {
    min-height: 50vh;
    padding-top: var(--wp--preset--spacing--50);
    padding-right: var(--wp--preset--spacing--50);
    padding-bottom: var(--wp--preset--spacing--50);
    padding-left: var(--wp--preset--spacing--50);
    color: black;
    margin-top: 0;
    margin-bottom: 0;
    background-color: #f9f9f9;
    opacity: 1;
    background: radial-gradient(circle, transparent 20%, #f9f9f9 20%, #f9f9f9 80%, transparent 80%, transparent), radial-gradient(circle, transparent 20%, #f9f9f9 20%, #f9f9f9 80%, transparent 80%, transparent) 17.5px 17.5px, linear-gradient(#ffe7b3 1.4000000000000001px, transparent 1.4000000000000001px) 0 -0.7000000000000001px, linear-gradient(90deg, #ffe7b3 1.4000000000000001px, #f9f9f9 1.4000000000000001px) -0.7000000000000001px 0;
    background-size: 35px 35px, 35px 35px, 17.5px 17.5px, 17.5px 17.5px;
}

.hero-pattern .hero-text {
    color: #27201D;
}

.hero-pattern h2,
.hero-pattern p {
    color: #27201D;
}

#wp-block-search__input-1 {
    border-radius: 40px;
}

.wp-block-search__button {
    margin-left: 5px !important;
}


.wp-block-post-date, .wp-block-post-author-name {
    font-size: small;
    padding: 0;
}

.wp-block-post-date::after{
    content: '·';
    margin-left: 5px;
    margin-right: 1px;
    font-weight: bolder;
    font-size: larger;
}

.post-card-categories a {
    background-color: #fc7510;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    text-decoration: none;
}


.post-card-title, .post-card-excerpt {
    padding-left:0;
}

.post-card-title{
    margin-top: 3px;
}

.wp-block-pages-list__item__link:hover {
    color: #fc5710 !important;
}
.current-menu-item > .wp-block-pages-list__item__link {
    font-weight: bold;
    color: #fc5710 !important;
}

@media (max-width: 768px) {
    .hero-pattern {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}