/* Values are taken from the blog.kode.link Astra + heylinkme child theme stylesheets. */
:root {
    --blue: #046bd2;
    --blue-dark: #045cb4;
    --heading: #1e293b;
    --text: #334155;
    --page-bg: #f0f5fa;
    --width: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #eaeaea; }
.site-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--width); min-height: 70px; margin: 0 auto; padding: 0 0;
}
.site-logo { display: flex; }
.site-header-actions { display: flex; align-items: center; gap: 28px; }
.header-login { font-size: 15px; text-decoration: none; }
.header-cta {
    padding: 13px 30px; border-radius: 40px; background: var(--blue);
    color: #fff; font-size: 15px; font-weight: 500; line-height: 1.4; text-decoration: none;
}
.header-cta:hover { background: var(--blue-dark); color: #fff; }
.lang-select {
    height: 42px; min-width: 165px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 2px;
    background: #fff; color: var(--text); font: inherit; font-size: 15px;
}

/* Layout */
.site-content { padding: 64px 20px 64px; }
.container { max-width: var(--width); margin: 0 auto; }

/* Post grid */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border-radius: 6px; box-shadow: 0 6px 15px -2px rgba(16, 24, 40, .05);
}
.post-card-image { display: block; overflow: hidden; }
.post-card-image img {
    display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    transition: transform .5s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.1); }
.post-card-body { padding: 28px 24px 24px; }
.post-card-tags { margin-bottom: 14px; color: var(--blue); font-size: 14px; font-weight: 600; }
.post-card-tag { text-decoration: none; }
.post-card-tag:not(:first-child)::before { content: ", "; }
.post-card-title { margin: 0 0 16px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.post-card-title a { color: var(--heading); text-decoration: none; }
.post-card-title a:hover { color: var(--blue); }
.post-card-excerpt { margin: 0; }
.archive-header { margin-bottom: 32px; padding: 40px; background: #fff; }
.archive-header h1 { margin: 0; color: var(--heading); font-size: 30px; line-height: 1.3; }

/* Pagination */
.pagination { position: relative; display: flex; justify-content: center; align-items: center; min-height: 40px; margin-top: 64px; }
.page-numbers { display: flex; align-items: center; gap: 0; }
.page-numbers a, .page-numbers .current, .page-numbers .dots {
    display: inline-block; min-width: 40px; height: 40px; padding: 0 4px;
    color: var(--text); font-weight: 500; line-height: 40px; text-align: center; text-decoration: none;
}
.page-numbers a:hover { color: var(--blue-dark); }
.page-numbers .current { border-radius: 2px; background: var(--blue); color: #fff; }
.page-prev, .page-next { position: absolute; padding: 0 20px; color: var(--text); font-weight: 500; text-decoration: none; }
.page-prev { inset-inline-start: 0; }
.page-next { inset-inline-end: 0; }

/* Single post */
.single { padding: 40px; background: #fff; border-radius: 6px; }
.entry-title { margin: 0 0 14px; color: var(--heading); font-size: 36px; font-weight: 600; line-height: 1.4; }
.entry-meta { margin-bottom: 32px; color: var(--blue); font-size: 14px; font-weight: 600; }
.entry-meta a { text-decoration: none; }
.page-feature-image { display: block; margin-top: 20px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 20px; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { color: var(--heading); font-weight: 600; line-height: 1.3; }
.entry-content h1 { margin: 0 0 32px; font-size: 36px; line-height: 1.4; }
.entry-content h2 { margin: 40px 0 24px; font-size: 30px; }
.entry-content h3 { margin: 32px 0 20px; font-size: 24px; }
.entry-content h4 { margin: 28px 0 16px; font-size: 20px; }
.entry-content a { font-weight: 600; text-decoration: underline; }
.entry-content strong { font-weight: 700; }
.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-inline-start: 20px; }
.entry-content img { display: block; height: auto; box-shadow: 0 6px 20px rgba(16, 24, 40, .08); }
.entry-content hr { width: 100px; margin: 26px auto; border: 0; border-top: 1px solid #555d66; }
.entry-content blockquote { margin: 0 0 16px; padding-inline-start: 16px; border-inline-start: 4px solid #d1d5db; }
.entry-content table { width: 100%; margin: 0 0 16px; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 8px 10px; border: 1px solid #d1d5db; text-align: start; }
.entry-content pre { overflow-x: auto; padding: 14px; background: var(--page-bg); }
.entry-content figure { margin: 0 0 16px; }
.entry-content figcaption { margin-top: 6px; font-size: 13px; text-align: center; }
.entry-content .kg-width-wide, .entry-content .kg-width-full { width: 100%; }
.kg-width-wide img, .kg-width-full img { width: 100%; }

/* Share and related posts */
.share { margin-top: 40px; }
.share-heading, .related-heading { margin: 0 0 14px; color: var(--heading); font-size: 14px; font-weight: 700; }
.share-button { display: inline-block; margin-inline-end: 6px; padding: 5px 14px; border: 1px solid #d1d5db; border-radius: 4px; color: var(--heading); font-size: 14px; text-decoration: none; }
.share-button:hover { border-color: var(--heading); color: var(--heading); }
.related { margin-top: 40px; padding-top: 16px; border-top: 1px solid #d1d5db; }
.related-heading { font-weight: 400; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-image { display: block; margin-bottom: 8px; aspect-ratio: 16 / 9; overflow: hidden; background: #f0f5fa; box-shadow: 0 6px 20px rgba(16, 24, 40, .08); }
.related-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.related-title { display: block; font-size: 14px; line-height: 1.4; text-decoration: none; }
.related-meta { color: #64748b; font-size: 13px; line-height: 1.5; }

/* Post navigation */
.post-navigation { display: flex; justify-content: space-between; gap: 26px; margin-top: 30px; }
.post-navigation a { flex: 0 1 48%; color: var(--text); text-decoration: none; }
.post-navigation a:hover { color: var(--blue); }
.nav-label { color: #475569; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.post-navigation p { margin: 4px 0 0; font-size: 14px; }
.nav-next { margin-inline-start: auto; text-align: end; }
.error-page { padding: 48px 40px; text-align: center; }
.error-title { margin: 0 0 22px; color: var(--heading); font-size: 30px; font-weight: 500; }
.error-page p { margin: 0 0 22px; font-size: 20px; }
.error-search { width: 320px; max-width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 2px; background: #fff; color: #808285; cursor: pointer; font: inherit; font-size: 14px; text-align: start; }
.author-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.author-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }

/* Footer: copied from the heylinkme child theme */
.footer { background-color: #1f2c3c; color: #fff; }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1400px; margin: 0 auto; padding: 40px 20px; gap: 10px; }
.footer-section { font-size: 16px; }
.footer-section .title-wrapper { display: flex; justify-content: space-between; align-items: center; }
img.arrow-icon { display: none; }
.footer-section h3 { margin: 0 0 15px; color: #fff; font-size: 1.2em; }
.footer-section ul { margin: 0; padding: 0; list-style: none; }
.footer-section ul li { margin-bottom: 10px; font-size: .9em; }
.footer-section ul li a { color: #fff; line-height: 1.5rem; text-decoration: none; }
.footer-section ul li a:hover { color: grey; }
.social { margin-top: 20px; text-align: center; }
.social .logo { margin-bottom: 20px; font-size: 1.5em; font-weight: bold; }
.social-icons { display: flex; justify-content: center; align-items: center; }
.social-icons a { margin: 0 10px; }
a.link-icon { position: relative; display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; }
.link-icon .bg-layer { position: absolute; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #fff; opacity: .2; }
.social-icons > .link-icon img { z-index: 1; width: 24px; height: 24px; }
a.link-icon:hover > .instagram { opacity: 1; background-color: rgb(250, 0, 98); }
a.link-icon:hover > .facebook { opacity: 1; background-color: rgb(24, 119, 242); }
a.link-icon:hover > .tiktok { opacity: 1; background-color: #000; }
a.link-icon:hover > .linkedin { opacity: 1; background-color: rgb(10, 102, 194); }
a.link-icon:hover > .pinterest { opacity: 1; background-color: rgb(230, 0, 35); }
a.link-icon:hover > .twitter { opacity: 1; background-color: #000; }
.language-selector .lang-select { height: auto; min-width: 0; margin-top: 20px; padding: 5px 10px; font-size: .9em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding: 40px 20px; border-top: 1px solid #2c3e50; text-align: center; }
.footer-bottom .link-logo-color-wrapper { display: flex; justify-content: center; align-items: center; gap: 5px; }
.footer-bottom .footer-links { margin: 10px 0; padding: 0; list-style: none; }
.footer-bottom .footer-links li { display: inline-block; margin: 0 10px; }
.footer-bottom .footer-links a { color: #94bfe7; font-size: .9em; text-decoration: none; }
.footer-bottom .footer-links a:hover { text-decoration: underline; }
.footer-bottom p { margin: 5px 0; color: #94bfe7; font-size: .8em; }
.footer-reg-buttons { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 0; background: #fff; }
.footer-reg-buttons p { margin: 0; color: #000; font-size: 20px; font-weight: 600; }
.btn-wrapper { display: flex; gap: 5px; }
.footer-reg-buttons a { display: flex; justify-content: center; align-items: center; height: 42px; padding: 0 32px; border: 2px solid #eaf2ff; border-radius: 8px; text-decoration: none; }
.btn-white { background: #f5f9ff; color: #000; }
.btn-blue { background: #5c8ee5; color: #fff; }

/* Scroll to top */
.scroll-top {
    position: fixed; right: 30px; bottom: 30px; display: none; width: 26px; height: 26px; padding: 5px;
    border: 0; border-radius: 2px; background: var(--blue); color: #fff; cursor: pointer;
}
.scroll-top.is-visible { display: block; }
[dir="rtl"] .scroll-top { right: auto; left: 30px; }

/* Responsive */
@media (max-width: 1240px) {
    .site-header-inner { padding: 0 20px; }
}
@media (max-width: 1070px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .social { width: 100%; }
}
@media (max-width: 700px) {
    .footer-container { flex-direction: column; }
    img.arrow-icon { display: block; }
    .footer-section .title-wrapper { cursor: pointer; }
    .social .title-wrapper { cursor: default; }
    .footer-section:not(.social) ul { display: none; }
    .footer-section.is-open ul { display: block; }
    .footer-section.is-open .arrow-icon { transform: rotate(180deg); }
    .post-grid { grid-template-columns: 1fr; }
    .site-content { padding: 24px 14px 40px; }
    .single { padding: 22px; }
    .site-header-actions { gap: 10px; }
    .header-login { display: none; }
    .header-cta { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
    .site-header-actions .lang-select { width: 92px; min-width: 0; height: 36px; font-size: 13px; }
    .entry-title, .entry-content h1 { font-size: 28px; }
    .entry-content h2 { font-size: 25px; }
    .entry-content h3 { font-size: 21px; }
    .post-navigation { flex-direction: column; }
    .related-grid { grid-template-columns: 1fr; }
    .page-prev, .page-next { padding: 0; }
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 10px; } }
@media (max-width: 560px) {
    .footer-reg-buttons { flex-direction: column; gap: 5px; }
    .footer-reg-buttons p { margin: 10px 0; }
}
