/*
 Theme Name:   GeneratePress Child
 Theme URI:    http://example.com/generatepress/
 Description:  GeneratePress Theme
 Author:       Sebastian Delgado
 Author URI:   http://sebastiandelgado.com
 Template:     generatepress
 Version:      1.0.0
*/

/* ===== Custom Birdie Font ===== */
@font-face {
	font-family: "TAY Birdie";
	src: url("/wp-content/uploads/fonts/TAYBirdieRegular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "TAY Birdie";
	src: url("/wp-content/uploads/fonts/TAYBirdieRegular.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ===== Latest Blog Hero ===== */
.lbh {
margin-top: -40px;
--lbh-accent: #f5c518;
position: relative;
isolation: isolate;
display: flex;
align-items: center;
width: 100vw;
max-width: 100vw;
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
min-height: var(--lbh-h, 85vh);
overflow: hidden;
background: var(--lbh-bg);
color: var(--lbh-fg);
}
.lbh--light { --lbh-bg: #fff; --lbh-fg: #111; --lbh-fade: rgba(255,255,255,.6); }
.lbh--dark  { --lbh-bg: #000; --lbh-fg: #fff; --lbh-fade: rgba(0,0,0,.65); }
.lbh--dark .lbh__title,
.lbh--dark .lbh__excerpt { text-shadow: 0 2px 18px rgba(0,0,0,.45); }

/* Image */
.lbh__media { position: absolute; inset: 0; z-index: -2; }
.lbh__media img,
.lbh__img {
display: block;
width: 100%;
height: 100%;
max-width: none;
object-fit: cover;
object-position: center;
opacity: var(--lbh-o, .55);
transform: scale(1.02);
transition: transform 1.2s ease, opacity .4s ease;
}
.lbh:hover .lbh__img { transform: scale(1.05); }

/* Fade behind text */
.lbh::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
pointer-events: none;
background: linear-gradient(90deg, var(--lbh-fade) 0%, transparent 70%);
}
.lbh--noimg::before { display: none; }

/* Layout */
.lbh__inner {
width: 100%;
max-width: 1310px;
margin: 0 auto;
box-sizing: border-box;
padding: clamp(56px, 8vw, 128px) clamp(20px, 6.5vw, 110px);
}
.lbh__content { max-width: 820px; }

/* Tags */
.lbh__tags {
position: relative;
z-index: 2;
display: flex;
flex-wrap: wrap;
gap: 12px;
margin: 0 0 clamp(20px, 2.6vw, 32px);
}
.lbh__tag {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 8px 16px;
font-size: 13px;
font-weight: 600;
line-height: 1;
letter-spacing: .2em;
text-transform: uppercase;
color: inherit;
text-decoration: none;
border: 2px solid currentColor;
transition: background .2s ease, color .2s ease;
}
.lbh__tag--latest {
background: var(--lbh-fg);
color: var(--lbh-bg);
border-color: var(--lbh-fg);
}
.lbh__tag--cat:hover,
.lbh__tag--cat:focus-visible {
background: var(--lbh-fg);
color: var(--lbh-bg);
border-color: var(--lbh-fg);
}
.lbh__dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex: none;
background: var(--accent);
animation: lbh-pulse 2s ease-out infinite;
}

/* Title (whole banner is clickable) */
.lbh__title {
margin: 0 0 .45em;
font-size: clamp(32px, 5.4vw, 56px);
font-weight: 800;
line-height: 1.04;
color: inherit;
}
.lbh__title a { color: inherit; text-decoration: none; }
.lbh__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lbh__title a:focus-visible { outline: none; }
.lbh__title a:focus-visible::after { outline: 3px solid var(--lbh-accent); outline-offset: -6px; }

/* Excerpt */
.lbh__excerpt {
margin-bottom: 1.8em;
max-width: 720px;
font-size: clamp(17px, 1.55vw, 23px);
font-weight: 500;
line-height: 1.45;
color: inherit;
}

/* Button */
.lbh__btn {
position: relative;
z-index: 2;
display: inline-flex;
align-items: center;
gap: 10px;
background: var(--accent);
}
.lbh__arrow { transition: transform .2s ease; }
.lbh__btn:hover .lbh__arrow { transform: translateX(4px); }

@keyframes lbh-pulse {
0%   { box-shadow: 0 0 0 0 rgba(245,197,24,.75); }
70%  { box-shadow: 0 0 0 9px rgba(245,197,24,0); }
100% { box-shadow: 0 0 0 0 rgba(245,197,24,0); }
}

/* Tablet */
@media (max-width: 1024px) {
.lbh::before { background: linear-gradient(90deg, var(--lbh-fade) 0%, transparent 90%); }
}

/* Phone */
@media (max-width: 767px) {
.lbh { align-items: flex-start; min-height: min(var(--lbh-h, 85vh), 760px); }
.lbh::before { background: linear-gradient(180deg, var(--lbh-fade) 0%, transparent 75%); }
.lbh__tags { gap: 8px; }
.lbh__tag { font-size: 11px; padding: 7px 11px; letter-spacing: .16em; }
.lbh__btn { padding: 13px 22px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
.lbh__dot { animation: none; }
.lbh__img, .lbh__btn, .lbh__arrow { transition: none; }
.lbh:hover .lbh__img { transform: scale(1.02); }
}


/* ===== Index Pages (Blog, Category Archive, Tag Archive) ===== */
.blog-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto;
}


.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
	grid-gap: 40px;
	max-width: 1140px;
	margin: 40px 0px;
}

.blog-card h2, .blog-card h2 a {
	color: var(--contrast)!important;
}

.blog-card {
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0,0,0,.4)!important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;''
}

.blog-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.blog-card a {
	text-decoration: none;
	color: inherit;
	display: block;
	height: 100%;
}

.blog-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-card .content {
	padding: 20px 20px 10px 20px!important;
}

.blog-card h2 {
font-size: 20px;
margin: 0 0 20px!important;
}

.blog-card p.date {
font-size: 14px;
color: #b6c0cc!important;
}

.blog-card {
	background:none!important;
}

.blog-card .meta {
	font-size: 13px;
	display: flex;
    flex-wrap: wrap;
    grid-gap: 16px;
    align-items: center;
}

.category-badge {
	font-size: 10px;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.08em;
	padding: 8px 14px 6px 14px;
	display: inline-block;
	background: var(--accent);
	color: var(--base);
}

.pagination {
	text-align: center;
	margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 3px;
    padding: 8px 12px;
    border-radius: 20px;
    background-color: #ddd;
    transition: background 0.5s ease;
}

.pagination .page-numbers:hover {
	background-color: #c5d9f1;
}

.pagination .current {
	background-color: var(--accent);
	color: var(--base);
	font-weight: 500;
}

.pagination .current:hover {
	background-color: var(--accent);
}