/* ==========================================================================
   anyNet Blog — blog, archive, single, sidebar and content styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page shell
   -------------------------------------------------------------------------- */
.an-page {
  padding-block: 26px 40px;
}

.an-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: #8d8d8d;
  font-size: 12px;
  line-height: 1.8;
}

.an-breadcrumb a {
  color: #777;
}

.an-breadcrumb a:hover,
.an-breadcrumb a:focus {
  color: var(--an-accent);
}

.an-breadcrumb__sep {
  color: #c4c4c4;
  font-size: 11px;
}

.an-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-areas: "side main";
  align-items: start;
  gap: 30px;
}

.an-main {
  grid-area: main;
  min-width: 0;
}

.an-side {
  grid-area: side;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   2. Section headings
   -------------------------------------------------------------------------- */
.an-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.an-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--an-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.6;
}

.an-section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 23px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--an-accent), var(--an-accent-2));
}

.an-section-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--an-accent);
  font-size: 12.5px;
  font-weight: 600;
}

.an-section-link svg {
  width: 14px;
  height: 14px;
}

.an-section-link:hover,
.an-section-link:focus {
  color: var(--an-accent-dark);
}

/* --------------------------------------------------------------------------
   3. Hero
   -------------------------------------------------------------------------- */
.an-hero {
  position: relative;
  margin-block: 8px 28px;
  padding: 34px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8f1ff 0%, var(--an-purple) 52%, #f2e6ff 100%);
  overflow: hidden;
}

.an-hero::before,
.an-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.an-hero::before {
  width: 320px;
  height: 320px;
  inset-block-start: -170px;
  inset-inline-start: -100px;
  background: rgba(255, 255, 255, 0.45);
}

.an-hero::after {
  width: 200px;
  height: 200px;
  inset-block-end: -110px;
  inset-inline-end: 18%;
  background: rgba(0, 153, 214, 0.1);
}

.an-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 34px;
}

.an-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #6a4a8d;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(94, 49, 140, 0.08);
}

.an-hero__eyebrow svg {
  width: 14px;
  height: 14px;
}

.an-hero__title {
  margin: 14px 0 10px;
  color: #251b2f;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.2px;
}

.an-hero__title span {
  color: var(--an-accent-dark);
}

.an-hero__text {
  max-width: 540px;
  margin: 0 0 20px;
  color: #5f526b;
  font-size: 14px;
  line-height: 1.95;
}

.an-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.an-hero__feature {
  min-width: 0;
}

.an-hero-card {
  position: relative;
  display: block;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(63, 20, 100, 0.18);
  overflow: hidden;
  transition: transform var(--an-transition), box-shadow var(--an-transition);
}

.an-hero-card:hover,
.an-hero-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(63, 20, 100, 0.24);
}

.an-hero-card__img {
  position: relative;
  aspect-ratio: 16 / 8.6;
  background: linear-gradient(135deg, #dff5fb, #f3e8ff);
  overflow: hidden;
}

.an-hero-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.an-hero-card:hover .an-hero-card__img img {
  transform: scale(1.04);
}

.an-hero-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 12, 30, 0.45));
}

.an-hero-card__chip {
  position: absolute;
  z-index: 2;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--an-accent-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

.an-hero-card__body {
  position: relative;
  padding: 16px 18px 18px;
}

.an-hero-card__date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #9a9a9a;
  font-size: 11.5px;
}

.an-hero-card__date svg {
  width: 13px;
  height: 13px;
}

.an-hero-card__title {
  margin: 0;
  color: #222;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.75;
  transition: color var(--an-transition);
}

.an-hero-card:hover .an-hero-card__title {
  color: var(--an-accent-dark);
}

/* --------------------------------------------------------------------------
   4. Category pills
   -------------------------------------------------------------------------- */
.an-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.an-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 12.5px;
  line-height: 1.7;
  transition: border-color var(--an-transition), color var(--an-transition), background-color var(--an-transition), transform var(--an-transition);
}

.an-cat-pill span {
  color: #a2a2a2;
  font-size: 10.5px;
}

.an-cat-pill:hover,
.an-cat-pill:focus {
  border-color: var(--an-accent);
  background: var(--an-accent-soft);
  color: var(--an-accent-dark);
  transform: translateY(-1px);
}

.an-cat-pill:hover span,
.an-cat-pill:focus span {
  color: var(--an-accent);
}

/* --------------------------------------------------------------------------
   5. Post cards
   -------------------------------------------------------------------------- */
.an-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.an-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #ededed;
  border-radius: var(--an-radius);
  background: #fff;
  box-shadow: var(--an-shadow);
  overflow: hidden;
  transition: transform var(--an-transition), box-shadow var(--an-transition), border-color var(--an-transition);
}

.an-card:hover,
.an-card:focus-within {
  transform: translateY(-3px);
  border-color: #d7eef8;
  box-shadow: 0 12px 30px rgba(0, 80, 120, 0.09);
}

.an-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e4f7fc, #f0e6ff);
  overflow: hidden;
}

.an-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.an-card:hover .an-card__thumb img {
  transform: scale(1.04);
}

.an-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 120, 160, 0.35);
}

.an-card__thumb--empty svg {
  width: 46px;
  height: 46px;
}

.an-card__chip {
  position: absolute;
  z-index: 2;
  inset-block-start: 11px;
  inset-inline-start: 11px;
  max-width: calc(100% - 22px);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--an-accent-dark);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.an-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 15px 17px 18px;
}

.an-card__meta,
.an-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  color: #999;
  font-size: 11.5px;
  line-height: 1.7;
}

.an-card__meta span,
.an-single__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.an-card__meta svg,
.an-single__meta svg {
  width: 13px;
  height: 13px;
  color: #b0b0b0;
}

.an-card__title {
  margin: 0;
  color: #262626;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.75;
  transition: color var(--an-transition);
}

.an-card__title a {
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an-card:hover .an-card__title,
.an-card__title a:hover,
.an-card__title a:focus {
  color: var(--an-accent-dark);
}

.an-card__excerpt {
  display: -webkit-box;
  margin: 0;
  color: #777;
  font-size: 12.5px;
  line-height: 1.95;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  color: var(--an-accent);
  font-size: 12px;
  font-weight: 700;
}

.an-card__more svg {
  width: 14px;
  height: 14px;
  transition: transform var(--an-transition);
}

.an-card:hover .an-card__more svg {
  transform: translateX(-3px);
}

/* --------------------------------------------------------------------------
   6. Archive / search headers
   -------------------------------------------------------------------------- */
.an-archive-head {
  position: relative;
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid #ece4f7;
  border-radius: var(--an-radius);
  background: linear-gradient(135deg, #fbf7ff, #f3f8fd);
  overflow: hidden;
}

.an-archive-head::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  inset-block-start: -80px;
  inset-inline-end: -40px;
  border-radius: 50%;
  background: rgba(235, 210, 255, 0.5);
}

.an-archive-head__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: #8a6aa8;
  font-size: 11px;
  font-weight: 700;
}

.an-archive-head__label svg {
  width: 14px;
  height: 14px;
}

.an-archive-head__title {
  position: relative;
  z-index: 1;
  margin: 0 0 5px;
  color: #251b2f;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.6;
}

.an-archive-head__title span {
  color: var(--an-accent-dark);
}

.an-archive-head__desc {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 880px;
  color: #6f6678;
  font-size: 13px;
  line-height: 1.95;
}

.an-archive-head__desc p {
  margin-bottom: 0;
}

.an-archive-head__count {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #8e8e8e;
  font-size: 11.5px;
}

.an-search-results-info {
  margin: 0 0 18px;
  color: #777;
  font-size: 13px;
}

.an-search-results-info strong {
  color: var(--an-heading);
}

/* --------------------------------------------------------------------------
   7. Pagination
   -------------------------------------------------------------------------- */
.an-pagination {
  margin-top: 30px;
}

.an-pagination .nav-links,
.an-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.an-pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-size: 12.5px;
  line-height: 36px;
  text-align: center;
  transition: background-color var(--an-transition), color var(--an-transition), border-color var(--an-transition);
}

.an-pagination .page-numbers:hover,
.an-pagination .page-numbers:focus {
  border-color: var(--an-accent);
  background: var(--an-accent-soft);
  color: var(--an-accent-dark);
}

.an-pagination .page-numbers.current {
  border-color: var(--an-accent);
  background: var(--an-accent);
  color: #fff;
}

.an-pagination .page-numbers.dots {
  border: 0;
  background: transparent;
}

/* --------------------------------------------------------------------------
   8. Single post
   -------------------------------------------------------------------------- */
.an-single {
  min-width: 0;
  border: 1px solid #ededed;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--an-shadow);
  overflow: hidden;
}

.an-single__inner {
  max-width: 900px;
  margin-inline: auto;
  padding: 26px 28px 30px;
}

.an-single__header {
  margin-bottom: 20px;
}

.an-single__category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 6px;
  background: var(--an-purple-soft);
  color: #7a4ba3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
}

.an-single__category:hover,
.an-single__category:focus {
  background: var(--an-purple);
  color: #5f2f89;
}

.an-single__title {
  margin: 10px 0 12px;
  color: var(--an-heading);
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: -0.2px;
}

.an-single__meta {
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f1f1;
}

.an-single__thumb {
  margin: 0 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e4f7fc, #f0e6ff);
  overflow: hidden;
}

.an-single__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.an-single__footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f1f1f1;
}

.an-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
}

.an-tags__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #777;
  font-size: 12px;
}

.an-tags__label svg {
  width: 14px;
  height: 14px;
}

.an-tags a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fafafa;
  color: #666;
  font-size: 11.5px;
  line-height: 1.8;
}

.an-tags a:hover,
.an-tags a:focus {
  border-color: var(--an-accent);
  background: var(--an-accent-soft);
  color: var(--an-accent-dark);
}

.an-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.an-share__label {
  color: #777;
  font-size: 12px;
}

.an-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e6e6e6;
  border-radius: 50%;
  background: #fff;
  color: #777;
  transition: background-color var(--an-transition), border-color var(--an-transition), color var(--an-transition);
}

.an-share__link:hover,
.an-share__link:focus {
  border-color: var(--an-accent);
  background: var(--an-accent);
  color: #fff;
}

.an-share__link svg {
  width: 15px;
  height: 15px;
}

.an-share__link.is-copied {
  border-color: #0a9f6e;
  background: #0a9f6e;
  color: #fff;
}

/* Post pagination inside entry */
.an-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #f1f1f1;
}

.an-page-links a,
.an-page-links > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e4e4e4;
  border-radius: 7px;
  color: #555;
  font-size: 12px;
}

.an-page-links > span {
  border-color: var(--an-accent);
  background: var(--an-accent);
  color: #fff;
}

/* Comments pagination */
.comment-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
}

/* Related */
.an-related {
  margin-top: 30px;
}

.an-related .an-posts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   9. Entry content
   -------------------------------------------------------------------------- */
.an-entry {
  color: #3f3f3f;
  font-size: 15px;
  line-height: 2.1;
  overflow-wrap: break-word;
}

.an-entry > *:first-child {
  margin-top: 0;
}

.an-entry p {
  margin-bottom: 1.25em;
}

.an-entry h2,
.an-entry h3,
.an-entry h4,
.an-entry h5,
.an-entry h6 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  color: #222;
  line-height: 1.65;
}

.an-entry h2 {
  padding-inline-start: 12px;
  border-inline-start: 4px solid var(--an-accent);
  font-size: 22px;
}

.an-entry h3 {
  font-size: 19px;
}

.an-entry h4 {
  font-size: 17px;
}

.an-entry a {
  color: var(--an-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.an-entry a:hover,
.an-entry a:focus {
  color: var(--an-accent);
  text-decoration-thickness: 2px;
}

.an-entry ul,
.an-entry ol {
  margin-bottom: 1.3em;
  padding-inline-start: 1.5em;
}

.an-entry li {
  margin-bottom: 0.45em;
}

.an-entry blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  border: 0;
  border-inline-start: 4px solid var(--an-accent);
  border-radius: 0 10px 10px 0;
  background: var(--an-accent-soft);
  color: #34515e;
  font-size: 14.5px;
}

.an-entry blockquote p:last-child {
  margin-bottom: 0;
}

.an-entry blockquote cite {
  display: block;
  margin-top: 6px;
  color: #6d8b98;
  font-size: 12px;
  font-style: normal;
}

.an-entry img {
  border-radius: 10px;
}

.an-entry figure {
  margin-block: 1.6em;
}

.an-entry figcaption,
.an-entry .wp-caption-text {
  margin-top: 7px;
  color: #919191;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.an-entry table {
  font-size: 13.5px;
}

.an-entry pre {
  margin-bottom: 1.4em;
  padding: 16px;
  border-radius: 10px;
  background: #222831;
  color: #e6edf3;
  font-size: 12.5px;
  line-height: 1.8;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
}

.an-entry code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #f1f3f5;
  color: #c7254e;
  font-size: 0.9em;
}

.an-entry pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.an-entry iframe {
  max-width: 100%;
  border: 0;
}

.an-entry .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 8px;
  background: var(--an-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.an-entry .wp-block-button__link:hover,
.an-entry .wp-block-button__link:focus {
  background: var(--an-accent-dark);
  color: #fff;
}

.an-entry .has-drop-cap:not(:focus)::first-letter {
  float: right;
  margin: 0.08em 0 0 0.12em;
  color: var(--an-accent-dark);
  font-size: 3.2em;
  font-weight: 800;
  line-height: 0.9;
}

.an-entry .alignwide {
  width: 100%;
}

.an-entry .alignfull {
  margin-inline: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
  border-radius: 0;
}

.an-entry .alignleft {
  float: left;
  margin: 0.4em 1.4em 1em 0;
}

.an-entry .alignright {
  float: right;
  margin: 0.4em 0 1em 1.4em;
}

.an-entry .aligncenter {
  display: block;
  margin-inline: auto;
}

.an-entry .wp-caption {
  max-width: 100%;
}

.an-entry .gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 1.5em;
}

.an-entry .gallery-item {
  margin: 0;
}

.an-entry .gallery img {
  border-radius: 8px;
}

.an-entry .wp-block-table {
  overflow-x: auto;
}

.an-entry .wp-block-separator {
  max-width: 120px;
  margin: 2em auto;
  border: 0;
  border-top: 2px solid #e6e6e6;
}

.an-entry .wp-block-quote {
  border-inline-start-color: var(--an-accent);
}

/* --------------------------------------------------------------------------
   10. Sidebar & widgets
   -------------------------------------------------------------------------- */
.widget {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid #ededed;
  border-radius: var(--an-radius);
  background: #fff;
  box-shadow: var(--an-shadow);
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title,
.widget .wp-block-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--an-heading);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.6;
}

.widget-title::before,
.widget .wp-block-heading::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 17px;
  border-radius: 3px;
  background: var(--an-accent);
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget ul li {
  padding-block: 7px;
  border-bottom: 1px dashed #f0f0f0;
  color: #666;
  font-size: 13px;
  line-height: 1.9;
}

.widget ul li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.widget ul li a {
  color: #555;
}

.widget ul li a:hover,
.widget ul li a:focus {
  color: var(--an-accent-dark);
}

.widget ul ul {
  margin-top: 6px;
  padding-inline-start: 12px;
}

.widget select {
  width: 100%;
  max-width: 100%;
}

.widget img {
  max-width: 100%;
  height: auto;
}

.widget .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.widget .tagcloud a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fafafa;
  color: #666;
  font-size: 11.5px !important;
  line-height: 1.8;
}

.widget .tagcloud a:hover,
.widget .tagcloud a:focus {
  border-color: var(--an-accent);
  background: var(--an-accent-soft);
  color: var(--an-accent-dark);
}

/* Highlighted search widget */
.an-widget-search {
  position: relative;
  margin-bottom: 20px;
  padding: 18px;
  border-radius: var(--an-radius);
  background: linear-gradient(135deg, var(--an-accent) 0%, var(--an-accent-2) 100%);
  box-shadow: 0 8px 22px rgba(0, 153, 214, 0.24);
  overflow: hidden;
}

.an-widget-search::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  inset-block-start: -55px;
  inset-inline-end: -35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.an-widget-search__title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 11px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.an-widget-search__title svg {
  width: 17px;
  height: 17px;
}

.an-widget-search .an-search__input {
  height: 42px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.97);
}

.an-widget-search .an-search__submit {
  height: 42px;
  color: var(--an-accent-dark);
}

.an-widget-search__hint {
  position: relative;
  z-index: 1;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.8;
}

/* Category list */
.an-cat-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.an-cat-list li {
  border-bottom: 1px dashed #f0f0f0;
}

.an-cat-list li:last-child {
  border-bottom: 0;
}

.an-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 7px;
  color: #555;
  font-size: 13px;
}

.an-cat-list a:hover,
.an-cat-list a:focus {
  color: var(--an-accent-dark);
}

.an-cat-list__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f3f3f3;
  color: #999;
  font-size: 10.5px;
  line-height: 1;
}

.an-cat-list a:hover .an-cat-list__count {
  background: var(--an-accent-soft);
  color: var(--an-accent);
}

/* Mini posts */
.an-mini-posts {
  display: grid;
  gap: 12px;
}

.an-mini-post {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px dashed #f0f0f0;
}

.an-mini-post:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.an-mini-post__thumb {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e4f7fc, #f0e6ff);
  overflow: hidden;
}

.an-mini-post__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.an-mini-post__body {
  min-width: 0;
}

.an-mini-post__title {
  display: -webkit-box;
  margin: 0;
  color: #444;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.75;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an-mini-post__title a {
  color: inherit;
}

.an-mini-post__title a:hover,
.an-mini-post__title a:focus {
  color: var(--an-accent-dark);
}

.an-mini-post__date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: #aaa;
  font-size: 10.5px;
}

/* Sidebar search fallback (when a core search widget is used) */
.widget_search .search-form {
  position: relative;
  display: flex;
  margin: 0;
}

.widget_search .search-field {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  padding-inline-end: 46px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
}

.widget_search .search-submit {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 0;
  width: 42px;
  height: 40px;
  border: 0;
  border-inline-start: 1px solid #eee;
  border-radius: 8px 0 0 8px;
  background: transparent;
  color: #999;
  font-size: 0;
}

.widget_search .search-submit::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: auto;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M17 11a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M17 11a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   11. Comments
   -------------------------------------------------------------------------- */
.an-comments {
  margin-top: 30px;
  padding: 24px 28px;
  border: 1px solid #ededed;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--an-shadow);
}

.an-comments .comments-title,
.an-comments .comment-reply-title {
  margin: 0 0 18px;
  color: var(--an-heading);
  font-size: 18px;
  font-weight: 800;
}

.an-comments .comment-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.an-comments .comment-list .children {
  margin: 0;
  padding-inline-start: 26px;
  list-style: none;
}

.an-comments .comment-body {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  background: #fcfcfc;
}

.an-comments .comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 13px;
  font-weight: 700;
}

.an-comments .comment-author .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.an-comments .comment-metadata {
  margin: 5px 0 8px;
  color: #999;
  font-size: 11px;
}

.an-comments .comment-metadata a {
  color: #999;
}

.an-comments .comment-content {
  color: #555;
  font-size: 13px;
  line-height: 1.95;
}

.an-comments .comment-content p:last-child {
  margin-bottom: 0;
}

.an-comments .reply {
  margin-top: 6px;
  font-size: 11.5px;
}

.an-comments .comment-reply-link {
  color: var(--an-accent);
  font-weight: 600;
}

.an-comments .comment-respond {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.an-comments .comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.an-comments .comment-form p {
  margin: 0;
}

.an-comments .comment-form-comment,
.an-comments .comment-form-url,
.an-comments .comment-form-cookies-consent,
.an-comments .form-submit,
.an-comments .comment-notes,
.an-comments .logged-in-as {
  grid-column: 1 / -1;
}

.an-comments .comment-form label {
  display: block;
  margin-bottom: 4px;
  color: #666;
  font-size: 12px;
}

.an-comments input[type="text"],
.an-comments input[type="email"],
.an-comments input[type="url"],
.an-comments textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #444;
  font-size: 13px;
}

.an-comments textarea {
  min-height: 120px;
  resize: vertical;
}

.an-comments input:focus,
.an-comments textarea:focus {
  border-color: var(--an-accent);
  box-shadow: 0 0 0 3px rgba(0, 153, 214, 0.09);
  outline: none;
}

.an-comments .submit {
  min-height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--an-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.an-comments .submit:hover,
.an-comments .submit:focus {
  background: var(--an-accent-dark);
}

.an-comments .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.an-comments .comment-form-cookies-consent label {
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. Static pages
   -------------------------------------------------------------------------- */
.an-page-card {
  padding: 26px 28px;
  border: 1px solid #ededed;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--an-shadow);
}

.an-page-title {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f1f1;
  color: var(--an-heading);
  font-size: 26px;
  font-weight: 800;
}

.an-page-card .an-entry {
  max-width: 900px;
}

/* Contact page template */
.an-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.an-contact-card {
  padding: 18px;
  border: 1px solid #ededed;
  border-radius: 10px;
  background: #fbfdff;
}

.an-contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--an-accent-soft);
  color: var(--an-accent-dark);
}

.an-contact-card__icon svg {
  width: 20px;
  height: 20px;
}

.an-contact-card__title {
  margin: 0 0 5px;
  color: #333;
  font-size: 13px;
  font-weight: 700;
}

.an-contact-card__text {
  margin: 0;
  color: #666;
  font-size: 12.5px;
  line-height: 1.95;
}

.an-contact-card__text a {
  color: #555;
}

.an-contact-card__text a:hover,
.an-contact-card__text a:focus {
  color: var(--an-accent-dark);
}

/* Newsletter page template */
.an-newsletter-page {
  position: relative;
  padding: 34px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbf7ff, #eef9fd);
  overflow: hidden;
}

.an-newsletter-page::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  inset-block-start: -110px;
  inset-inline-end: -60px;
  border-radius: 50%;
  background: rgba(235, 210, 255, 0.55);
}

.an-newsletter-page__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.an-newsletter-page__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #fff;
  color: var(--an-accent);
  box-shadow: 0 8px 24px rgba(0, 153, 214, 0.16);
}

.an-newsletter-page__icon svg {
  width: 26px;
  height: 26px;
}

.an-newsletter-page__title {
  margin: 0 0 8px;
  color: #251b2f;
  font-size: 25px;
  font-weight: 800;
}

.an-newsletter-page__text {
  margin: 0 0 20px;
  color: #6f6678;
  font-size: 13.5px;
  line-height: 2;
}

.an-newsletter-page .an-newsletter__form {
  max-width: 480px;
}

.an-newsletter-page .an-newsletter__input {
  height: 46px;
  border: 1px solid #e1e1e1;
}

.an-newsletter-page .an-newsletter__btn {
  height: 46px;
  border-color: var(--an-accent);
  background: var(--an-accent);
  color: #fff;
}

.an-newsletter-page .an-newsletter__btn:hover,
.an-newsletter-page .an-newsletter__btn:focus {
  border-color: var(--an-accent-dark);
  background: var(--an-accent-dark);
  color: #fff;
}

.an-newsletter-page .an-newsletter__msg.is-success {
  color: #0a8f61;
}

.an-newsletter-page .an-newsletter__msg.is-error {
  color: #c0392b;
}

.an-newsletter-page__benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #6a5d77;
  font-size: 12px;
}

.an-newsletter-page__benefits li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.an-newsletter-page__benefits svg {
  width: 14px;
  height: 14px;
  color: #0a9f6e;
}

/* --------------------------------------------------------------------------
   13. Empty states / 404
   -------------------------------------------------------------------------- */
.an-none {
  padding: 34px 24px;
  border: 1px dashed #dcdcdc;
  border-radius: var(--an-radius);
  background: #fff;
  text-align: center;
}

.an-none__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--an-accent-soft);
  color: var(--an-accent);
}

.an-none__icon svg {
  width: 28px;
  height: 28px;
}

.an-none__title {
  margin: 0 0 8px;
  color: var(--an-heading);
  font-size: 20px;
  font-weight: 800;
}

.an-none__text {
  max-width: 560px;
  margin: 0 auto 18px;
  color: #777;
  font-size: 13px;
  line-height: 1.95;
}

.an-none .an-search {
  max-width: 420px;
  margin-inline: auto;
}

.an-404 {
  padding: 10px 0 30px;
}

.an-404__card {
  max-width: 720px;
  margin-inline: auto;
  padding: 40px 28px;
  border: 1px solid #ededed;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--an-shadow);
  text-align: center;
}

.an-404__code {
  margin: 0;
  color: var(--an-purple);
  font-size: clamp(78px, 12vw, 130px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -4px;
  text-shadow: 0 4px 0 #f4e9ff;
}

.an-404__title {
  margin: 6px 0 8px;
  color: var(--an-heading);
  font-size: 24px;
  font-weight: 800;
}

.an-404__text {
  margin: 0 auto 20px;
  max-width: 520px;
  color: #777;
  font-size: 13px;
  line-height: 1.95;
}

.an-404 .an-search {
  max-width: 420px;
  margin-inline: auto;
}

.an-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   14. Forms / core alignments
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #444;
  font-size: 13px;
  transition: border-color var(--an-transition), box-shadow var(--an-transition);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--an-accent);
  box-shadow: 0 0 0 3px rgba(0, 153, 214, 0.09);
  outline: none;
}

.alignleft {
  float: left;
  margin: 0.4em 1.4em 1em 0;
}

.alignright {
  float: right;
  margin: 0.4em 0 1em 1.4em;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  color: #919191;
  font-size: 12px;
  text-align: center;
}

.sticky {
  border-color: #cfeaf6;
  box-shadow: 0 0 0 1px #cfeaf6, var(--an-shadow);
}

.bypostauthor {
  display: block;
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1399px) {
  .an-posts-grid,
  .an-related .an-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .an-single__inner {
    padding: 24px;
  }
}

@media (max-width: 1199px) {
  .an-layout {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
  }

  .an-hero {
    padding: 28px;
  }

  .an-single__inner {
    max-width: none;
  }

  .an-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .an-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "side";
    gap: 24px;
  }

  .an-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  .an-side > * {
    margin-bottom: 0;
  }

  .an-side .an-widget-search {
    grid-column: 1 / -1;
  }

  .an-hero__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .an-hero__text {
    max-width: none;
  }

  .an-hero__feature {
    max-width: 660px;
  }

  .an-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .an-page {
    padding-block: 20px 32px;
  }

  .an-posts-grid,
  .an-related .an-posts-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .an-side {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .an-hero {
    padding: 22px;
    border-radius: 16px;
  }

  .an-hero__title {
    font-size: 22px;
  }

  .an-hero__text {
    font-size: 13px;
  }

  .an-archive-head {
    padding: 18px;
  }

  .an-archive-head__title {
    font-size: 21px;
  }

  .an-single__inner {
    padding: 20px 17px 24px;
  }

  .an-single__title {
    font-size: 22px;
  }

  .an-entry {
    font-size: 14px;
    line-height: 2.05;
  }

  .an-entry h2 {
    font-size: 19px;
  }

  .an-entry h3 {
    font-size: 17px;
  }

  .an-entry .alignleft,
  .an-entry .alignright {
    float: none;
    margin: 1em auto;
  }

  .an-entry .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .an-comments {
    padding: 20px 17px;
  }

  .an-comments .comment-form {
    grid-template-columns: 1fr;
  }

  .an-comments .comment-list .children {
    padding-inline-start: 12px;
  }

  .an-page-card {
    padding: 20px 17px;
  }

  .an-page-title {
    font-size: 22px;
  }

  .an-newsletter-page {
    padding: 26px 18px;
  }

  .an-newsletter-page__title {
    font-size: 21px;
  }

  .an-footer {
    margin-top: 38px;
  }
}

@media (max-width: 479px) {
  .an-hero__actions .an-btn {
    width: 100%;
  }

  .an-pagination .page-numbers {
    min-width: 34px;
    height: 34px;
    line-height: 32px;
  }

  .an-newsletter-page__benefits {
    flex-direction: column;
    align-items: center;
  }
}
