/*
Theme Name: CyberPro
Theme URI: https://cyberpro.com.sa/
Author: CyberPro
Author URI: https://cyberpro.com.sa
Description: CyberPro website theme with blog. Activating it creates the Home, Features, Privacy, Terms and Blog pages.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: cyberpro-blog
*/

.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.alignleft { float: left; margin: .4rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption { margin-top: .5rem; text-align: center; color: var(--muted); font-size: .85rem; }

.bl-inner { max-width: 1240px; margin: 0 auto; }
.bl-lead { max-width: 640px; margin: 1rem auto 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2.5rem; align-items: start; }
.bl-layout-full { grid-template-columns: minmax(0, 920px); justify-content: center; }
.bl-main { min-width: 0; }
.bl-main > :first-child { margin-top: 0; }
@media (max-width: 1024px) { .bl-layout { grid-template-columns: minmax(0, 1fr); } }

.bl-grid { margin-top: 1.4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.4rem; }
.bl-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.bl-card, .bl-featured {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff;
  border: 1px solid #d4efdc; box-shadow: 0 30px 60px -44px rgba(47,138,65,.55);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bl-card:hover, .bl-featured:hover { transform: translateY(-4px); border-color: #a9dfb8; box-shadow: 0 34px 60px -36px rgba(47,138,65,.6); }
.bl-card:focus-within, .bl-featured:focus-within { outline: 3px solid #2f8a41; outline-offset: 3px; }
.bl-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.bl-cover { position: relative; aspect-ratio: 16 / 9; background: #e6f5ea; overflow: hidden; }
.bl-featured .bl-cover { aspect-ratio: auto; min-height: 280px; }
.bl-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bl-card:hover .bl-cover img, .bl-featured:hover .bl-cover img { transform: scale(1.04); }
.bl-cover-ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: #2f8a41;
  background:
    linear-gradient(rgba(92,193,111,.16) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(92,193,111,.16) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(135deg, #e6f5ea, #cdeed6);
}
.bl-body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.45rem 1.45rem; }
.bl-featured .bl-body { padding: clamp(1.4rem, 3vw, 2.2rem); justify-content: center; }
.bl-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.bl-tags:empty { display: none; }
.bl-chip {
  position: relative; z-index: 1; display: inline-block; padding: .28rem .7rem; border-radius: 999px;
  background: #e6f5ea; color: #2f8a41; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  transition: background .2s;
}
a.bl-chip:hover { background: #d4efdc; }
.bl-chip-solid { background: #5cc16f; color: #0f2a17; }
.bl-title { margin-top: .75rem; font: 700 1.22rem/1.32 "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.01em; }
.bl-featured .bl-title { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.2; }
.bl-title a { color: var(--ink); text-decoration: none; }
.bl-title a::after { content: ""; position: absolute; inset: 0; }
.bl-title a:focus-visible { outline: none; }
.bl-excerpt {
  margin-top: .6rem; color: var(--muted); font-size: .94rem; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bl-featured .bl-excerpt { -webkit-line-clamp: 4; font-size: 1rem; }
.bl-byline { margin-top: auto; padding-top: 1.1rem; display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; color: var(--muted); font-size: .84rem; }
.bl-byline .bl-avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #d4efdc; }
.bl-author { position: relative; z-index: 1; color: var(--ink); font-weight: 600; text-decoration: none; }
.bl-author:hover { color: #2f8a41; }
.lg-head .bl-byline { justify-content: center; margin-top: 1.1rem; padding-top: 0; font-size: .92rem; }
.lg-head .bl-avatar { width: 34px; height: 34px; }
@media (max-width: 760px) {
  .bl-featured { grid-template-columns: 1fr; }
  .bl-featured .bl-cover { aspect-ratio: 16 / 9; min-height: 0; }
}

.bl-empty { text-align: center; }
.bl-empty h2 { padding-left: 0; }
.bl-empty h2::before { display: none; }
.bl-empty .bl-search { max-width: 420px; margin: 1.2rem auto 0; }

.pagination { margin-top: 2.2rem; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 1rem; border-radius: 999px;
  background: #fff; border: 1px solid #c6ebd2; color: #2f8a41; font-weight: 600; font-size: .92rem; text-decoration: none; transition: background .2s;
}
.pagination a.page-numbers:hover { background: #f3faf5; }
.pagination .page-numbers.current { background: #5cc16f; border-color: #5cc16f; color: #0f2a17; }
.pagination .page-numbers.dots { background: none; border: 0; }

.bl-side { display: grid; gap: 1.2rem; }
.bl-widget {
  padding: 1.3rem 1.4rem; border-radius: 20px; background: #fff; border: 1px solid #d4efdc;
  box-shadow: 0 30px 60px -48px rgba(47,138,65,.55); font-size: .92rem;
}
.bl-widget-title, .bl-widget h2.wp-block-heading {
  position: relative; margin-bottom: .95rem; padding-left: .85rem;
  font: 700 1.05rem/1.3 "Space Grotesk", "Inter", sans-serif; color: var(--ink);
}
.bl-widget-title::before, .bl-widget h2.wp-block-heading::before {
  content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 4px; background: linear-gradient(#5cc16f, #2f8a41);
}
.bl-widget ul, .bl-widget ol { list-style: none; padding: 0; margin: 0; }
.bl-widget li a { color: var(--ink); text-decoration: none; }
.bl-widget li a:hover { color: #2f8a41; }
.bl-widget > ul > li, .bl-widget .wp-block-latest-posts li, .bl-widget .wp-block-categories li, .bl-widget .wp-block-archives li { padding: .5rem 0; border-bottom: 1px solid #eef5f0; }
.bl-widget > ul > li:last-child, .bl-widget li:last-child { border-bottom: 0; }
.bl-cats li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.bl-cats .children { width: 100%; padding-left: .9rem; }
.bl-count { min-width: 28px; padding: .1rem .5rem; border-radius: 999px; background: #e6f5ea; color: #2f8a41; font-size: .75rem; font-weight: 700; text-align: center; }
.bl-recent li { padding: .55rem 0; }
.bl-recent a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: .8rem; align-items: center; }
.bl-recent-thumb { position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #e6f5ea, #cdeed6); }
.bl-recent-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bl-recent strong { display: block; font-size: .9rem; line-height: 1.35; font-weight: 600; }
.bl-recent time { display: block; margin-top: .2rem; color: var(--muted); font-size: .76rem; }
.tagcloud, .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.tagcloud a, .wp-block-tag-cloud a {
  display: inline-block; padding: .32rem .75rem; border-radius: 999px; border: 1px solid #c6ebd2; background: #f7fcf8;
  color: #2f8a41; font-size: .8rem !important; font-weight: 600; text-decoration: none; transition: background .2s;
}
.tagcloud a:hover, .wp-block-tag-cloud a:hover { background: #e6f5ea; }
.bl-search { display: flex; gap: .4rem; }
.bl-search input {
  flex: 1; min-width: 0; padding: .75rem 1rem; border-radius: 999px; border: 1.5px solid #d4efdc; background: #f7fcf8;
  font: 400 .92rem "Inter", system-ui, sans-serif; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.bl-search input:focus { outline: none; border-color: #5cc16f; background: #fff; box-shadow: 0 0 0 4px rgba(92,193,111,.2); }
.bl-search button { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #5cc16f; color: #0f2a17; cursor: pointer; transition: background .2s; }
.bl-search button:hover { background: #4fb462; }
.bl-search button:focus-visible { outline: 2px solid #2f8a41; outline-offset: 2px; }
.bl-widget .wp-block-search__label { display: block; margin-bottom: .6rem; font: 700 1.05rem/1.3 "Space Grotesk", "Inter", sans-serif; color: var(--ink); }
.bl-widget .wp-block-search__inside-wrapper { display: flex; gap: .4rem; }
.bl-widget .wp-block-search__input {
  flex: 1; min-width: 0; padding: .75rem 1rem; border-radius: 999px; border: 1.5px solid #d4efdc; background: #f7fcf8;
  font: 400 .92rem "Inter", system-ui, sans-serif; color: var(--ink);
}
.bl-widget .wp-block-search__input:focus { outline: none; border-color: #5cc16f; background: #fff; box-shadow: 0 0 0 4px rgba(92,193,111,.2); }
.bl-widget .wp-block-search__button { padding: .7rem 1.1rem; border: 0; border-radius: 999px; background: #5cc16f; color: #0f2a17; font: 600 .88rem "Inter", system-ui, sans-serif; cursor: pointer; }
.bl-widget .wp-block-search__button:hover { background: #4fb462; }
.bl-cta {
  border: 0; color: #0f2a17;
  background:
    radial-gradient(circle at 1px 1px, rgba(15,42,23,.14) 1px, transparent 0) 0 0 / 14px 14px,
    linear-gradient(135deg, #5cc16f, #4fb462);
}
.bl-cta h3 { font: 700 1.2rem/1.3 "Space Grotesk", "Inter", sans-serif; }
.bl-cta p { margin-top: .5rem; color: #16361f; line-height: 1.6; }
.bl-cta a {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; padding: .7rem 1.2rem; border-radius: 999px;
  background: #0f2a17; color: #fff; font-weight: 600; text-decoration: none; transition: background .2s, transform .2s;
}
.bl-cta a:hover { background: #16361f; transform: translateY(-1px); }

.bp-crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .85rem; }
.bp-crumbs a { color: #2f8a41; font-weight: 600; text-decoration: none; }
.bp-crumbs a:hover { text-decoration: underline; }
.bp-chips { justify-content: center; margin-top: 1.1rem; }
.bp-title { overflow-wrap: anywhere; }
.bp-cover { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid #d4efdc; aspect-ratio: 1200 / 630; object-fit: cover; box-shadow: 0 30px 60px -40px rgba(47,138,65,.55); }
.bl-main > .bp-cover + .lg-card { margin-top: 1.4rem; }
.bp-body::after { content: ""; display: table; clear: both; }
.bp-body p, .bp-body li { font-size: 1.02rem; }
.bp-body > *:first-child { margin-top: 0; }
.bp-body img { max-width: 100%; height: auto; border-radius: 14px; }
.bp-body figure { margin: 1.4rem 0; }
.bp-body h3 { margin-top: 1.8rem; }
.bp-body h4 { margin-top: 1.4rem; font: 700 1.05rem/1.3 "Space Grotesk", "Inter", sans-serif; }
.bp-body ol { margin-top: .9rem; padding-left: 1.4rem; }
.bp-body ol li { margin-top: .45rem; padding-left: .3rem; }
.bp-body ol li::marker { color: #2f8a41; font-weight: 700; }
.bp-body blockquote, .bp-body .wp-block-quote { margin: 1.4rem 0; padding: 1rem 1.3rem; border-radius: 14px; background: #f3faf5; border-left: 4px solid #5cc16f; color: #16361f; font-style: italic; }
.bp-body blockquote p { margin-top: 0; }
.bp-body blockquote cite { display: block; margin-top: .6rem; font-size: .85rem; font-style: normal; color: var(--muted); }
.bp-body code { padding: .1rem .35rem; border-radius: 6px; background: #eef2f6; font-size: .9em; }
.bp-body pre { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 14px; background: #0f2a17; color: #d4efdc; overflow-x: auto; font-size: .88rem; line-height: 1.6; }
.bp-body pre code { padding: 0; background: none; color: inherit; }
.bp-body hr, .bp-body .wp-block-separator { margin: 2rem 0; border: 0; border-top: 1px solid #d4efdc; }
.bp-body iframe, .bp-body video, .bp-body .wp-block-embed { max-width: 100%; }
.bp-body .wp-block-embed iframe { border-radius: 14px; }
.lg-card .wp-block-button__link {
  display: inline-block; padding: .75rem 1.3rem; border-radius: 999px; background: #5cc16f; color: #0f2a17;
  font-weight: 600; text-decoration: none;
}
.lg-card .wp-block-button__link:hover { background: #4fb462; color: #0f2a17; }
.bp-pages { margin-top: 1.5rem; display: flex; gap: .5rem; align-items: center; font-weight: 600; }
.lg-card .contact-box a.bp-cta {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .75rem 1.3rem; border-radius: 999px;
  background: #0f2a17; color: #fff; font-weight: 600; text-decoration: none; transition: transform .2s, background .2s;
}
.lg-card .contact-box a.bp-cta:hover { background: #16361f; transform: translateY(-1px); }

.bp-foot { margin-top: 1.4rem; display: grid; gap: .9rem; padding: 1.2rem 1.4rem; border-radius: 20px; background: #fff; border: 1px solid #d4efdc; }
.bp-row { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.bp-label { margin-right: .3rem; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bp-share {
  padding: .4rem .85rem; border-radius: 999px; border: 1px solid #c6ebd2; background: #fff; color: #0f2a17;
  font: 600 .82rem "Inter", system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s;
}
.bp-share:hover { background: #e6f5ea; }
.bp-share:focus-visible { outline: 2px solid #2f8a41; outline-offset: 2px; }
.bp-like {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid #c6ebd2;
  background: #fff; color: #0f2a17; font: 600 .88rem "Inter", system-ui, sans-serif; cursor: pointer; transition: background .2s, border-color .2s, transform .15s;
}
.bp-like svg { fill: none; color: #e0465a; transition: transform .2s; }
.bp-like:hover { background: #fff5f6; border-color: #f3b8c0; }
.bp-like:active { transform: scale(.96); }
.bp-like:focus-visible { outline: 2px solid #2f8a41; outline-offset: 2px; }
.bp-like.is-liked { background: #fff0f2; border-color: #e0465a; }
.bp-like.is-liked svg { fill: #e0465a; transform: scale(1.1); }
.bp-like-count { min-width: 1.4em; padding: .05rem .45rem; border-radius: 999px; background: #f3f6f4; font-size: .78rem; text-align: center; }
.bp-like:disabled { opacity: .7; cursor: wait; }
.nav-menu .current-menu-item > a, .nav-menu .current_page_parent > a, .nav-menu .current-menu-ancestor > a { color: #2f8a41; background: #e6f5ea; }
.bp-author { margin-top: 1.4rem; display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem; border-radius: 20px; background: #fff; border: 1px solid #d4efdc; }
.bp-author-img { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 3px solid #e6f5ea; }
.bp-author-name { display: inline-block; margin-top: .2rem; color: var(--ink); font: 700 1.1rem "Space Grotesk", "Inter", sans-serif; text-decoration: none; }
.bp-author p:last-child { margin-top: .4rem; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.bp-nav { margin-top: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bp-nav a {
  display: grid; gap: .35rem; padding: 1.1rem 1.3rem; border-radius: 20px; background: #fff; border: 1px solid #d4efdc;
  color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s;
}
.bp-nav a:hover { border-color: #a9dfb8; transform: translateY(-2px); }
.bp-nav small { color: #2f8a41; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bp-nav strong { font: 600 .98rem/1.35 "Space Grotesk", "Inter", sans-serif; }
.bp-nav-next { grid-column: 2; text-align: right; }
@media (max-width: 640px) {
  .bp-nav { grid-template-columns: 1fr; }
  .bp-nav-next { grid-column: auto; text-align: left; }
}

.bp-comments { margin-top: 1.4rem; }
.bp-comment-list, .bp-comment-list .children { list-style: none; padding: 0; margin: 0; }
.bp-comment-list .children { padding-left: clamp(1rem, 4vw, 2.5rem); }
.bp-comments .comment-body { padding: 1.1rem 0; border-bottom: 1px solid #e0f2e6; }
.bp-comments .comment-author { display: flex; align-items: center; gap: .6rem; }
.bp-comments .comment-author .avatar { border-radius: 50%; }
.bp-comments .comment-author .fn { color: var(--ink); font-style: normal; }
.bp-comments .says { display: none; }
.bp-comments .comment-metadata { margin-top: .2rem; padding-left: calc(40px + .6rem); font-size: .78rem; }
.bp-comments .comment-metadata a { color: var(--muted); font-weight: 500; text-decoration: none; }
.bp-comments .comment-content { padding-left: calc(40px + .6rem); }
.bp-comments .reply { padding-left: calc(40px + .6rem); margin-top: .5rem; }
.bp-comments .comment-reply-link { font-size: .8rem; }
.bp-comments .comment-awaiting-moderation { display: block; margin-top: .4rem; color: #7a5300; font-size: .85rem; }
.bp-comments .comment-respond { margin-top: 1.5rem; }
.bp-comments .comment-reply-title small { margin-left: .5rem; font-size: .8rem; }
.bp-comments .comment-form { display: grid; gap: .9rem; margin-top: 1rem; }
.bp-comments .comment-form p { margin: 0; }
.bp-comments .comment-form label { display: block; margin-bottom: .35rem; color: var(--ink); font-size: .88rem; font-weight: 600; }
.bp-comments .comment-form input[type="text"], .bp-comments .comment-form input[type="email"], .bp-comments .comment-form input[type="url"], .bp-comments .comment-form textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 14px; border: 1.5px solid #d4efdc; background: #f7fcf8;
  font: 400 .96rem "Inter", system-ui, sans-serif; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.bp-comments .comment-form textarea { min-height: 140px; resize: vertical; }
.bp-comments .comment-form input:focus, .bp-comments .comment-form textarea:focus { outline: none; border-color: #5cc16f; background: #fff; box-shadow: 0 0 0 4px rgba(92,193,111,.2); }
.bp-comments .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.bp-comments .comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--muted); }
.bp-submit {
  padding: .8rem 1.5rem; border: 0; border-radius: 999px; background: #5cc16f; color: #0f2a17;
  font: 600 .95rem "Inter", system-ui, sans-serif; cursor: pointer; transition: background .2s;
}
.bp-submit:hover { background: #4fb462; }

.bp-more { margin-top: clamp(3rem, 6vw, 4.5rem); }
.bp-more-title { text-align: center; font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.2 "Space Grotesk", "Inter", sans-serif; }
.bp-more-title .accent { color: #5cc16f; }

@media (prefers-reduced-motion: reduce) {
  .bl-card, .bl-featured, .bl-cover img, .pagination .page-numbers, .bp-nav a, .bl-cta a, .lg-card .contact-box a.bp-cta { transition: none; }
}
