/* Blog (/hirek) and home page news section. Everything is scoped to .hirek-* classes.
   The site header and footer are styled in site.css. */

:root {
  --hirek-navy: #00235c;
  --hirek-navy-2: #003068;
  --hirek-dark: #001b39;
  --hirek-blue: #0071e4;
  --hirek-text: #2b2f36;
  --hirek-muted: #5f6672;
  --hirek-line: #e3e8ef;
  --hirek-soft: #f4f7fb;
  --hirek-shadow: 0 3px 15px rgba(22, 41, 124, 0.1);
}

/* ---------- page frame ---------- */
.hirek-page { background: #fff; color: var(--hirek-text); }
.hirek-skip { position: absolute; left: -9999px; top: 0; z-index: 10000; background: #fff; color: var(--hirek-navy); padding: 10px 16px; }
.hirek-skip:focus { left: 10px; top: 10px; color: var(--hirek-navy); }
.hirek-page a:focus-visible, .hirek-page button:focus-visible, .hirek-page summary:focus-visible,
.hirek-home a:focus-visible { outline: 2px solid var(--hirek-blue); outline-offset: 2px; }


/* ---------- shared pieces ---------- */
.hirek-hero { padding: 115px 0 40px; background: linear-gradient(135deg, var(--hirek-dark) 0%, var(--hirek-navy) 55%, var(--hirek-navy-2) 100%); color: #fff; }
.hirek-hero__title { margin: 18px 0 12px; font-family: 'Rajdhani', sans-serif; font-size: 46px; line-height: 1.1; font-weight: 700; color: #fff; text-transform: uppercase; }
.hirek-hero__lead { max-width: 760px; margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }

.hirek-breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.hirek-breadcrumb li { color: rgba(255, 255, 255, 0.75); }
.hirek-breadcrumb li + li::before { content: '›'; margin: 0 8px; color: rgba(255, 255, 255, 0.5); }
.hirek-breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.hirek-breadcrumb a:hover { color: #fff; text-decoration-color: #fff; }
/* light variant: on white background (single post) */
.hirek-breadcrumb--light { margin: 0 0 22px; }
.hirek-breadcrumb--light li { color: var(--hirek-muted); }
.hirek-breadcrumb--light li + li::before { color: #9aa3ae; }
.hirek-breadcrumb--light a { color: var(--hirek-navy-2); text-decoration-color: rgba(0, 48, 104, 0.35); }
.hirek-breadcrumb--light a:hover, .hirek-breadcrumb--light a:focus { color: var(--hirek-blue); text-decoration-color: currentColor; }

.hirek-section { padding-top: 50px; padding-bottom: 70px; }
.hirek-narrow { max-width: 860px; }
.hirek-empty, .hirek-message p { font-size: 17px; line-height: 1.7; color: var(--hirek-text); }
.hirek-message .hirek-btn { margin: 0 10px 10px 0; }
.hirek-empty a { color: var(--hirek-blue); font-weight: 600; }
.hirek-empty a:hover { color: var(--hirek-navy); text-decoration: underline; }

.hirek-btn { display: inline-block; padding: 13px 26px 11px; border: 2px solid var(--hirek-navy-2); border-radius: 5px; background: var(--hirek-navy-2); color: #fff; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; line-height: 1.4; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.hirek-btn:hover, .hirek-btn:focus { background: var(--hirek-blue); border-color: var(--hirek-blue); color: #fff; text-decoration: none; }
.hirek-btn--outline { background: transparent; color: var(--hirek-navy-2); }

.hirek-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.hirek-cats a { display: inline-block; padding: 4px 10px 3px; border-radius: 3px; background: #e8f1fd; color: var(--hirek-navy-2); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.hirek-cats a:hover, .hirek-cats a:focus { background: var(--hirek-navy-2); color: #fff; }

/* ---------- cards ---------- */
.hirek-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 640px) { .hirek-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .hirek-grid { grid-template-columns: repeat(3, 1fr); } }

.hirek-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 5px; background: #fff; box-shadow: var(--hirek-shadow); transition: transform .25s, box-shadow .25s; }
.hirek-card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(22, 41, 124, 0.16); }
.hirek-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: linear-gradient(135deg, var(--hirek-navy), var(--hirek-blue)); }
.hirek-card__media img { width: 100%; height: 100%; object-fit: cover; }
.hirek-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.hirek-card__cats { margin-bottom: 10px; }
.hirek-card__title { margin: 0 0 10px; font-family: 'Rajdhani', sans-serif; font-size: 22px; line-height: 1.25; font-weight: 700; }
.hirek-card__title a { color: #111; }
.hirek-card__title a:hover, .hirek-card__title a:focus { color: var(--hirek-blue); }
.hirek-card__summary { display: -webkit-box; margin: 0 0 16px; overflow: hidden; font-size: 15px; line-height: 1.6; color: var(--hirek-muted); -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.hirek-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hirek-line); font-size: 14px; color: var(--hirek-muted); }
.hirek-card__more { color: var(--hirek-blue); font-weight: 600; white-space: nowrap; }
.hirek-card__more:hover, .hirek-card__more:focus { color: var(--hirek-navy); text-decoration: underline; }

/* ---------- pagination ---------- */
.hirek-pagination { margin-top: 50px; }
.hirek-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hirek-pagination a, .hirek-pagination span { display: inline-block; min-width: 46px; padding: 12px 16px 10px; background: #f2f2f2; color: #111; font-size: 15px; letter-spacing: 1px; text-align: center; transition: background-color .2s, color .2s; }
.hirek-pagination a:hover, .hirek-pagination a:focus { background: var(--hirek-navy-2); color: #fff; }
.hirek-pagination [aria-current] { background: var(--hirek-navy-2); color: #fff; }
.hirek-pagination__gap { padding: 12px 4px; color: var(--hirek-muted); }

/* ---------- topics / author ---------- */
.hirek-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hirek-topics a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; border-radius: 5px; background: #fff; box-shadow: var(--hirek-shadow); color: #111; font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 700; }
.hirek-topics a:hover, .hirek-topics a:focus { background: var(--hirek-navy-2); color: #fff; }
.hirek-topics small { font-family: 'Now Regular', sans-serif; font-size: 13px; font-weight: 400; opacity: .75; }

.hirek-avatar { flex: none; border-radius: 50%; object-fit: cover; }
.hirek-avatar--initials { display: inline-flex; align-items: center; justify-content: center; background: var(--hirek-navy-2); color: #fff; font-family: 'Rajdhani', sans-serif; font-size: 28px; font-weight: 700; }
.hirek-profile { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 50px; padding-bottom: 40px; border-bottom: 1px solid var(--hirek-line); }
.hirek-profile__label { margin: 0 0 4px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--hirek-muted); }
.hirek-profile__name { margin: 0 0 12px; font-family: 'Rajdhani', sans-serif; font-size: 40px; font-weight: 700; color: #111; }
.hirek-profile__bio { white-space: pre-line; color: var(--hirek-text); }
.hirek-social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.hirek-social a { color: var(--hirek-blue); font-weight: 600; }
.hirek-social a:hover, .hirek-social a:focus { color: var(--hirek-navy); text-decoration: underline; }
@media (max-width: 575px) { .hirek-profile { flex-direction: column; gap: 16px; } .hirek-profile__name { font-size: 32px; } }

/* ---------- single post ---------- */
.hirek-post-page { padding-top: 105px; margin-bottom: 70px; }   /* top: clears the fixed site header; bottom: same spacing as .hirek-section */
.hirek-post { padding-top: 0; }
.hirek-post__header { margin-bottom: 30px; }
.hirek-post__title { margin: 14px 0 14px; font-family: 'Rajdhani', sans-serif; font-size: 44px; line-height: 1.12; font-weight: 700; color: #111; }
.hirek-post__lead { margin: 0 0 16px; font-size: 19px; line-height: 1.6; color: var(--hirek-text); }
.hirek-post__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 26px; font-size: 14px; color: var(--hirek-muted); }
.hirek-post__meta a { color: var(--hirek-blue); font-weight: 600; }
.hirek-post__meta a:hover { color: var(--hirek-navy); text-decoration: underline; }
.hirek-post__cover { margin: 0; }
.hirek-post__cover img { display: block; width: 100%; height: auto; border-radius: 5px; }
@media (max-width: 575px) { .hirek-post__title, .hirek-hero__title { font-size: 32px; } .hirek-post__lead { font-size: 17px; } }

.hirek-toc { margin: 0 0 34px; }
.hirek-toc details { padding: 16px 22px; border-left: 4px solid var(--hirek-blue); border-radius: 0 5px 5px 0; background: var(--hirek-soft); }
.hirek-toc summary { cursor: pointer; font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 700; color: #111; }
.hirek-toc ol { margin: 10px 0 0; padding-left: 20px; }
.hirek-toc li { margin: 5px 0; }
.hirek-toc .hirek-toc__l3 { margin-left: 18px; list-style: circle; }
.hirek-toc a { color: var(--hirek-navy-2); }
.hirek-toc a:hover, .hirek-toc a:focus { color: var(--hirek-blue); text-decoration: underline; }

/* CKEditor content */
.hirek-content { font-size: 17px; line-height: 1.75; color: var(--hirek-text); overflow-wrap: break-word; }
.hirek-content::after { content: ''; display: table; clear: both; }
.hirek-content p, .hirek-content li { font-size: 17px; line-height: 1.75; color: var(--hirek-text); }
.hirek-content p { margin: 0 0 1.2em; }
.hirek-content h2, .hirek-content h3, .hirek-content h4, .hirek-content h5, .hirek-content h6 { margin: 1.8em 0 .6em; font-family: 'Rajdhani', sans-serif; font-weight: 700; line-height: 1.25; color: #111; scroll-margin-top: 95px; }
.hirek-content h2 { font-size: 32px; }
.hirek-content h3 { font-size: 25px; }
.hirek-content h4 { font-size: 21px; }
.hirek-content h5, .hirek-content h6 { font-size: 18px; }
.hirek-content a { color: var(--hirek-blue); text-decoration: underline; text-underline-offset: 2px; }
.hirek-content a:hover, .hirek-content a:focus { color: var(--hirek-navy); }
.hirek-content ul, .hirek-content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.hirek-content li { margin-bottom: .35em; }
.hirek-content ul.todo-list { padding-left: 0; list-style: none; }
.hirek-content ul.todo-list input { margin-right: 8px; }
.hirek-content img { max-width: 100%; height: auto; border-radius: 4px; }
.hirek-content figure { margin: 1.6em 0; }
.hirek-content figure.image { display: block; max-width: 100%; margin-left: auto; margin-right: auto; text-align: center; }
.hirek-content figure.image img { display: block; margin: 0 auto; }
.hirek-content figure.image_resized img { width: 100%; }
.hirek-content figcaption { display: block; padding-top: 8px; font-size: 14px; line-height: 1.5; color: var(--hirek-muted); text-align: center; }
.hirek-content .image-style-side, .hirek-content .image-style-align-right { float: right; max-width: 50%; margin: .3em 0 1em 1.5em; }
.hirek-content .image-style-align-left { float: left; max-width: 50%; margin: .3em 1.5em 1em 0; }
.hirek-content .image-style-align-center, .hirek-content .image-style-block-align-center { margin-left: auto; margin-right: auto; }
@media (max-width: 575px) { .hirek-content .image-style-side, .hirek-content .image-style-align-right, .hirek-content .image-style-align-left { float: none; max-width: 100%; margin: 1.6em 0; } }
.hirek-content figure.table, .hirek-content .hirek-table { display: block; max-width: 100%; overflow-x: auto; margin: 1.6em 0; -webkit-overflow-scrolling: touch; }
.hirek-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hirek-content th, .hirek-content td { padding: 10px 12px; border: 1px solid var(--hirek-line); vertical-align: top; }
.hirek-content th, .hirek-content thead td { background: var(--hirek-soft); font-weight: 700; }
.hirek-content blockquote { margin: 1.6em 0; padding: 14px 22px; border-left: 4px solid var(--hirek-blue); background: var(--hirek-soft); font-style: italic; }
.hirek-content blockquote p:last-child { margin-bottom: 0; }
.hirek-content pre { margin: 1.6em 0; padding: 16px 18px; overflow-x: auto; border-radius: 5px; background: #0f1b2d; color: #e8eef7; font-size: 14px; line-height: 1.6; }
.hirek-content code { padding: .1em .35em; border-radius: 3px; background: var(--hirek-soft); font-size: .9em; }
.hirek-content pre code { padding: 0; background: none; }
.hirek-content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--hirek-line); }
.hirek-content iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 5px; }
.hirek-content .text-tiny { font-size: .7em; } .hirek-content .text-small { font-size: .85em; } .hirek-content .text-big { font-size: 1.4em; } .hirek-content .text-huge { font-size: 1.8em; }

.hirek-post__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 36px 0 0; font-size: 14px; color: var(--hirek-muted); }
.hirek-cta { margin: 40px 0 0; padding: 32px 34px; border-radius: 5px; background: linear-gradient(135deg, var(--hirek-navy) 0%, var(--hirek-navy-2) 100%); color: #fff; }
.hirek-cta h2 { margin: 0 0 10px; font-family: 'Rajdhani', sans-serif; font-size: 30px; font-weight: 700; color: #fff; }
.hirek-cta p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
.hirek-cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hirek-cta .hirek-btn { border-color: #fff; background: #fff; color: var(--hirek-navy); }
.hirek-cta .hirek-btn--outline { background: transparent; color: #fff; }
.hirek-cta .hirek-btn:hover, .hirek-cta .hirek-btn:focus { border-color: var(--hirek-blue); background: var(--hirek-blue); color: #fff; }

.hirek-faq { margin: 50px 0 0; }
.hirek-faq > h2, .hirek-related > h2 { margin: 0 0 20px; font-family: 'Rajdhani', sans-serif; font-size: 32px; font-weight: 700; color: #111; }
.hirek-faq__item { border-bottom: 1px solid var(--hirek-line); }
.hirek-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; }
.hirek-faq__item summary::-webkit-details-marker { display: none; }
.hirek-faq__item summary::after { content: '+'; flex: none; font-size: 26px; line-height: 1; color: var(--hirek-blue); }
.hirek-faq__item[open] summary::after { content: '–'; }
.hirek-faq__item summary h3 { margin: 0; font-family: 'Rajdhani', sans-serif; font-size: 21px; font-weight: 700; line-height: 1.3; color: #111; }
.hirek-faq__answer { padding: 0 0 18px; font-size: 16px; line-height: 1.7; color: var(--hirek-text); }
.hirek-faq__answer--text { white-space: pre-line; }
.hirek-faq__answer p { font-size: 16px; line-height: 1.7; }

.hirek-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 50px 0 0; }
.hirek-postnav a { display: block; padding: 18px 20px; border: 1px solid var(--hirek-line); border-radius: 5px; color: #111; font-family: 'Rajdhani', sans-serif; font-size: 19px; font-weight: 700; line-height: 1.3; }
.hirek-postnav a:hover, .hirek-postnav a:focus { border-color: var(--hirek-blue); color: var(--hirek-blue); }
.hirek-postnav span { display: block; margin-bottom: 6px; font-family: 'Now Regular', sans-serif; font-size: 13px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: var(--hirek-muted); }
.hirek-postnav__next { grid-column: 2; text-align: right; }
@media (max-width: 575px) { .hirek-postnav { grid-template-columns: 1fr; } .hirek-postnav__next { grid-column: auto; } }

.hirek-related { margin: 60px 0 80px; }
.hirek-page--post .hirek-related .hirek-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .hirek-page--post .hirek-related .hirek-grid { grid-template-columns: repeat(3, 1fr); } }
.hirek-related .hirek-card__title { font-size: 19px; }
.hirek-related .hirek-card__summary { display: none; }

/* ---------- home page section ---------- */
.hirek-home .section-title { position: relative; z-index: 1; }
.hirek-home__bg { display: block; position: absolute; left: 0; top: -45px; z-index: -1; width: 100%; font-family: 'Rockville Solid Regular'; font-size: 100px; line-height: 1.2; color: #f2f2f2; }
@media (max-width: 576px) { .hirek-home__bg { font-size: 60px; } }
@media (max-width: 479px) { .hirek-home__bg { top: -40px; line-height: .8; } }
.hirek-home__more { margin: 45px 0 0; text-align: center; }
.hirek-home .hirek-card__title { font-size: 21px; }
.hirek-content a:not([href]) { color: inherit; text-decoration: none; }
