/*
 * AdsenseUsers Premium Design — 100% Match
 * Referenced directly from header.php <style> tag and wp_enqueue
 */

/* ========================================
   RESET & TOKENS
   ======================================== */
:root {
    --blue: #1662ff;
    --blue-dark: #1252d3;
    --dark: #0f172a;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --bg: #f8fafc;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--gray-700);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--blue-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Knock out margin from body in WP */
#page,
.site {
    margin: 0;
}

#content.site-content {
    margin: 0;
}


/* ========================================
   HEADER (overrides inline + WP defaults)
   ======================================== */
#masthead,
#masthead.site-header {
    background: var(--white) !important;
    border-bottom: 1px solid var(--gray-200) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    height: auto !important;
}

/* ========================================
   BODY / LAYOUT
   ======================================== */
.sy-body {
    background: var(--bg);
    padding: 2rem 0 3rem;
}

.container-fluid {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   HERO SPLIT CARD
   ======================================== */
/* When hero uses .hero-split */
.hero-split {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    min-height: 320px;
}

.hero-split .hero-img {
    flex: 0 0 45%;
    background: #eef2ff;
    overflow: hidden;
}

.hero-split .hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
}

.hero-split .hero-img .post-thumbnail {
    height: 100%;
}

.hero-split .hero-img .post-thumbnail img {
    height: 100%;
}

.hero-split .hero-body {
    flex: 1;
    padding: 2.4rem 2.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* When hero uses .hero-card (existing code) — same look */
.hero-card {
    display: flex;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    background: var(--white);
    margin-bottom: 2rem;
}

.hero-card>.row {
    width: 100%;
    margin: 0;
}

.hero-card .image-col,
.hero-card .col-lg-6.p-0 {
    background: #e8eef8;
    overflow: hidden;
    min-height: 300px;
    padding: 0 !important;
}

.hero-card .image-col img,
.hero-card .col-lg-6.p-0 img,
.hero-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

.hero-card .post-thumbnail {
    height: 100%;
}

/* ========================================
   HERO TEXT SECTION (right side)
   ======================================== */
.hero-body h2.entry-title,
.hero-body .entry-title,
.hero-card .entry-title {
    font-size: 1.85rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: var(--dark) !important;
    margin-bottom: 0.75rem !important;
}

.hero-body .entry-title a,
.hero-card .entry-title a {
    color: var(--dark) !important;
}

.hero-body .entry-title a:hover,
.hero-card .entry-title a:hover {
    color: var(--blue) !important;
}

.hero-excerpt,
.hero-body p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.65;
}

/* Hero category badge */
.hero-body .cat-links a,
.hero-card .cat-links a {
    display: inline-block;
    background: var(--blue);
    color: var(--white) !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-decoration: none;
}

/* Hero meta (author · date · comments) */
.hero-card .entry-meta,
.hero-body .entry-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.87rem;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.hero-card .entry-meta a,
.hero-body .entry-meta a {
    color: var(--blue);
    font-weight: 600;
}

/* Read More button */
.btn.btn-primary,
a.btn.btn-primary {
    background: var(--blue) !important;
    border: none !important;
    border-radius: 6px !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 0.55rem 1.5rem !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(22, 98, 255, .25);
    transition: background .2s, box-shadow .2s, transform .15s;
}

.btn.btn-primary:hover,
a.btn.btn-primary:hover {
    background: var(--blue-dark) !important;
    box-shadow: 0 4px 14px rgba(22, 98, 255, .35);
    transform: translateY(-1px);
    color: var(--white) !important;
}

/* ========================================
   LATEST POSTS SECTION HEADER
   ======================================== */
.latest-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0.6rem 0;
    margin-bottom: 1rem;
    border-bottom: none;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    background: var(--blue);
    border-radius: 3px;
}

.view-all {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue) !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-all:hover {
    color: var(--blue-dark) !important;
}

/* ========================================
   POST CARDS
   ======================================== */
.sy-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: box-shadow .25s, transform .25s;
}

.sy-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* Card image */
.sy-card .sy-card__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--gray-100);
}

.sy-card .sy-card__img img,
.sy-card .sy-card__img .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform .4s ease;
}

.sy-card:hover .sy-card__img img {
    transform: scale(1.05);
}

.sy-card .sy-card__img .post-thumbnail {
    height: 100%;
}

/* Card content */
.sy-card .sy-card__content {
    padding: 1rem 1.1rem 1.15rem !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Badge */
.badge-cat,
.sy-card .badge-cat {
    display: inline-block;
    background: var(--blue);
    color: var(--white) !important;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    text-decoration: none;
    margin-bottom: 0.45rem;
}

.badge-cat:hover {
    background: var(--blue-dark);
    color: var(--white) !important;
}

/* Reset cat-links to match badge style */
.sy-card .cat-links a {
    display: inline-block;
    background: var(--blue) !important;
    color: var(--white) !important;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    text-decoration: none;
    margin-bottom: 0.45rem;
}

/* Card title */
.card-title,
.sy-card .entry-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.97rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: var(--dark) !important;
    margin: 0 0 0.45rem !important;
    padding: 0 !important;
}

.card-title a,
.sy-card .entry-title a {
    color: var(--dark) !important;
    text-decoration: none;
}

.card-title a:hover,
.sy-card .entry-title a:hover {
    color: var(--blue) !important;
}

/* Card excerpt */
.card-excerpt,
.sy-card .entry-content p,
.sy-card p.mb-0 {
    font-size: 0.84rem;
    color: var(--gray-500);
    line-height: 1.55;
    margin: 0 0 0.5rem !important;
}

.sy-card .entry-content {
    padding: 0 !important;
}

/* Card meta */
.card-meta,
.sy-card .entry-meta {
    font-size: 0.78rem !important;
    color: var(--gray-400) !important;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: auto !important;
    padding-top: 0.5rem;
}

.card-meta a,
.sy-card .entry-meta a {
    color: var(--gray-400) !important;
}

.card-sep {
    color: var(--gray-200);
}

/* ========================================
   SIDEBAR
   ======================================== */
#secondary.widget-area {
    padding: 0;
}

.widget {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

/* Widget title */
.widget-title,
.widgettitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    margin: 0 0 1rem !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.65rem !important;
    line-height: 1.3;
}

/* Remove old ::before that was added */
.widget-title::before {
    display: none !important;
}

/* Search widget */
.widget_search .search-form {
    display: flex;
}

.widget_search input[type="search"] {
    flex: 1;
    border: 1px solid var(--gray-200);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 0.55rem 0.9rem;
    font-size: 0.88rem;
    color: var(--gray-700);
    background: var(--gray-100);
    outline: none;
    transition: border-color .2s;
}

.widget_search input[type="search"]::placeholder {
    color: var(--gray-400);
}

.widget_search input[type="search"]:focus {
    border-color: var(--blue);
    background: var(--white);
}

.widget_search input[type="submit"],
.widget_search button[type="submit"] {
    background: var(--blue) !important;
    border: 1px solid var(--blue) !important;
    border-radius: 0 6px 6px 0 !important;
    color: var(--white) !important;
    padding: 0.55rem 0.95rem !important;
    font-size: 1rem !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: background .2s;
}

.widget_search input[type="submit"]:hover,
.widget_search button[type="submit"]:hover {
    background: var(--blue-dark) !important;
    border-color: var(--blue-dark) !important;
}

/* Widget list items */
.widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li a {
    color: var(--dark);
    font-size: 0.9rem;
    line-height: 1.4;
}

.widget ul li a:hover {
    color: var(--blue);
}

/* Categories: name + count side by side */
.widget_categories ul li {
    justify-content: space-between;
}

.widget_categories ul li a {
    color: var(--blue);
    font-weight: 500;
}

.widget_categories ul li .post-count {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* ========================================
   PAGINATION
   ======================================== */
.sy-pagination {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.sy-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-700);
    background: var(--white);
    transition: all .2s;
}

.sy-pagination .page-numbers.current,
.sy-pagination .page-numbers:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

/* ========================================
   FOOTER
   ======================================== */
footer#colophon,
.site-footer#colophon {
    background: var(--dark) !important;
    color: #94a3b8;
    padding: 3rem 0 0;
}

footer#colophon .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

footer#colophon .widget-title {
    color: var(--white) !important;
    border-bottom-color: rgba(255, 255, 255, .12);
}

footer#colophon a {
    color: #94a3b8 !important;
}

footer#colophon a:hover {
    color: var(--blue) !important;
}

footer#colophon ul li {
    border-bottom-color: rgba(255, 255, 255, .08) !important;
}

footer.footer-bottom {
    background: #020817 !important;
    color: #475569;
    padding: 0.85rem 0;
    font-size: 0.85rem;
    border-top: 1px solid #1e293b;
    text-align: center;
}

footer.footer-bottom .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

footer.footer-bottom a {
    color: var(--blue) !important;
}

footer.footer-bottom nav a {
    color: #94a3b8 !important;
    margin-left: 1.5rem;
}

footer.footer-bottom nav a:hover {
    color: var(--white) !important;
}

/* ========================================
   SINGLE POST
   ======================================== */
.sy-content-area article.post .entry-title,
.sy-content-area .entry-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.sy-content-area .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    padding: 0 !important;
}

.post-thumbnail {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .hero-split {
        flex-direction: column;
    }

    .hero-split .hero-img {
        flex: 0 0 240px;
        min-height: 240px;
    }

    .hero-card>.row {
        flex-direction: column !important;
    }

    .hero-card .image-col {
        min-height: 220px;
    }

    .sy-card .sy-card__img {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 767px) {
    .container-fluid {
        padding: 0 1rem;
    }

    .sy-body {
        padding: 1rem 0 2rem;
    }

    .hero-body {
        padding: 1.5rem !important;
    }

    .hero-body h2.entry-title,
    .hero-card .entry-title {
        font-size: 1.35rem !important;
    }
}