/* CryptoChampion inner pages (404, archive, single, page, search) */

body.ccg-theme:not(.home) {
  background: #08101f;
  color: #0f3049;
}

body.ccg-theme:not(.home) a {
  color: #0f3049;
  text-decoration: none;
}

body.ccg-theme:not(.home) a:hover {
  color: #694114;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.ccg-inner-main {
  background: #fff;
  min-height: 50vh;
  padding: 0;
}

.ccg-inner-main--single .ccg-inner-wrap {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.ccg-inner-main--full-width .ccg-inner-wrap {
  padding: 0;
}

.ccg-inner-main--full-width .ccg-entry--full {
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  padding: 0;
}

.ccg-inner-wrap {
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) clamp(2.5rem, 5vw, 4rem);
}

.ccg-inner-container {
  margin-inline: auto;
  max-width: 1440px;
  width: 100%;
}

.ccg-inner-hero {
  background: #0f3049 center/cover no-repeat;
  background-image: var(--ccg-hero-bg);
  overflow: hidden;
  position: relative;
}

.ccg-inner-hero__overlay {
  background: linear-gradient(90deg, rgba(8, 16, 31, 0.88) 0%, rgba(8, 16, 31, 0.55) 55%, rgba(8, 16, 31, 0.2) 100%);
  inset: 0;
  position: absolute;
}

.ccg-inner-hero__inner {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-inline: auto;
  max-width: 1440px;
  min-height: clamp(200px, 28vw, 280px);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
  position: relative;
  z-index: 1;
}

.ccg-inner-hero__copy {
  flex: 1 1 auto;
  max-width: 640px;
}

.ccg-inner-hero__title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.ccg-inner-hero__description {
  color: #c5f6ed;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  margin: 0;
}

.ccg-inner-hero__figure {
  display: none;
  flex: 0 0 auto;
  height: auto;
  max-height: 220px;
  max-width: min(38vw, 260px);
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.ccg-inner-hero--404 .ccg-inner-hero__figure {
  max-width: min(42vw, 300px);
}

.ccg-inner-hero--plain,
.ccg-inner-hero--single {
  background: #c5f6ed;
  background-image: none;
}

.ccg-inner-hero--plain .ccg-inner-hero__inner,
.ccg-inner-hero--single .ccg-inner-hero__inner {
  min-height: 0;
  padding-block: clamp(1.5rem, 4vw, 2.25rem);
}

.ccg-inner-hero--single .ccg-inner-hero__inner {
  align-items: center;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}

.ccg-inner-hero--single.ccg-inner-hero--has-media .ccg-inner-hero__inner {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .ccg-inner-hero--single.ccg-inner-hero--has-media .ccg-inner-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.ccg-inner-hero--single .ccg-inner-hero__copy {
  max-width: none;
}

.ccg-inner-hero--plain .ccg-inner-hero__title,
.ccg-inner-hero--single .ccg-inner-hero__title {
  color: #0f3049;
  text-shadow: none;
}

.ccg-inner-hero__meta {
  align-items: center;
  color: #5f8798;
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  gap: 0.35rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.ccg-inner-hero__meta a {
  color: #116638;
  font-weight: 700;
}

.ccg-inner-hero__meta a:hover {
  color: #0f3049;
  text-decoration: underline;
}

.ccg-inner-hero__meta-sep {
  color: #5f8798;
}

.ccg-inner-hero--plain .ccg-inner-hero__description,
.ccg-inner-hero--single .ccg-inner-hero__description {
  color: #5f8798;
}

.ccg-inner-hero--single .ccg-inner-hero__featured {
  margin: 0;
  max-width: none;
  overflow: hidden;
  padding: 0;
}

.ccg-inner-hero--single .ccg-inner-hero__featured-image {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 48, 73, 0.12);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.ccg-inner-hero__cloud {
  line-height: 0;
  margin-top: clamp(0.5rem, 2vw, 1rem);
  position: relative;
  z-index: 1;
}

.ccg-inner-hero__cloud-svg {
  display: block;
  height: clamp(56px, 10vw, 96px);
  width: 100%;
}

.ccg-inner-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 48, 73, 0.12);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.ccg-inner-panel--center {
  margin-inline: auto;
  max-width: 640px;
  text-align: center;
}

.ccg-inner-panel__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.ccg-inner-panel__text {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.ccg-inner-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.ccg-inner-btn {
  min-width: 200px;
  text-decoration: none !important;
}

.ccg-inner-btn:hover {
  color: #0c572f;
}

.ccg-search-form {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.ccg-search-form__input {
  background: #fff;
  border: 2px solid #46c883;
  border-radius: 12px;
  color: #0f3049;
  flex: 1 1 220px;
  font-size: 1.1rem;
  min-height: 58px;
  padding: 0 1rem;
}

.ccg-search-form__input:focus {
  border-color: #0f3049;
  outline: none;
}

.ccg-search-form__submit {
  flex: 0 0 auto;
  min-width: 140px;
}

.ccg-post-grid {
  display: grid;
  gap: 1.25rem;
}

.ccg-post-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 48, 73, 0.1);
  display: grid;
  gap: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ccg-post-card:hover {
  box-shadow: 0 14px 36px rgba(15, 48, 73, 0.16);
  transform: translateY(-4px);
}

.ccg-post-card__media {
  aspect-ratio: 16 / 9;
  background: #08101f center/cover no-repeat;
  display: block;
  overflow: hidden;
}

.ccg-post-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ccg-post-card__body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.ccg-post-card__categories {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.ccg-post-card__categories a {
  color: #116638;
}

.ccg-post-card__categories a:hover {
  color: #0f3049;
  text-decoration: underline;
}

.ccg-post-card__title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.ccg-post-card__title a {
  color: #0f3049;
}

.ccg-post-card__title a:hover {
  color: #116638;
  text-decoration: none;
}

.ccg-post-card__meta {
  color: #5f8798;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.ccg-post-card__excerpt {
  color: #0f3049;
  line-height: 1.6;
}

.ccg-post-card__excerpt p {
  margin: 0;
}

.ccg-inner-hero__description :where(p) {
  margin: 0;
}

.ccg-inner-hero--archive .ccg-inner-hero__description {
  max-width: 52ch;
}

.ccg-entry {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 48, 73, 0.12);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.ccg-entry__header {
  border-bottom: 2px solid #c5f6ed;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.ccg-entry__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.ccg-entry__meta {
  color: #5f8798;
  font-size: 0.95rem;
}

.ccg-entry__meta-sep {
  margin-inline: 0.35rem;
}

.ccg-entry__content {
  line-height: 1.7;
}

.ccg-entry__content :where(h2, h3, h4) {
  color: #0f3049;
  line-height: 1.25;
  margin: 1.75rem 0 0.75rem;
}

.ccg-entry__content :where(p, ul, ol, blockquote) {
  margin: 0 0 1rem;
}

.ccg-entry__content a {
  color: #116638;
  text-decoration: underline;
}

.ccg-entry__content img {
  border-radius: 12px;
  height: auto;
  max-width: 100%;
}

.ccg-entry__content :where(.wp-block-image, figure) {
  margin: 1.5rem 0;
}

.ccg-entry__content :where(.alignwide) {
  margin-inline: auto;
  max-width: min(100%, 1200px);
}

.ccg-entry__content :where(.alignfull) {
  margin-inline: calc(-1 * clamp(1rem, 3vw, 2rem));
  max-width: none;
  width: calc(100% + 2 * clamp(1rem, 3vw, 2rem));
}

.ccg-entry__footer {
  border-top: 2px solid #c5f6ed;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.ccg-entry__tags {
  color: #5f8798;
  font-size: 0.95rem;
}

.ccg-entry__back {
  margin-bottom: 1rem;
}

.ccg-entry__back a {
  color: #116638;
  font-weight: 700;
}

.ccg-empty-state {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 48, 73, 0.1);
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.ccg-empty-state__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.5rem;
}

.ccg-empty-state__text {
  color: #5f8798;
  margin: 0 0 1rem;
}

.ccg-pagination {
  margin-top: 1.5rem;
}

.ccg-pagination .nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.ccg-pagination .page-numbers {
  background: #fff;
  border: 2px solid #46c883;
  border-radius: 10px;
  color: #0f3049;
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.85rem;
  place-items: center;
  text-decoration: none;
}

.ccg-pagination .page-numbers.current,
.ccg-pagination .page-numbers:hover {
  background: #46c883;
  color: #0c572f;
  text-decoration: none;
}

.content-widgets {
  margin: 1rem 0;
}

.content-widgets .widget {
  background: #f4fffc;
  border: 2px dashed #46c883;
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 1rem;
}

@media (min-width: 700px) {
  .ccg-inner-hero__figure {
    display: block;
  }
}

@media (min-width: 900px) {
  .ccg-post-grid--archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .ccg-post-grid--archive {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
