/*
Theme Name: New808coin
Description: Customizable New808coin child theme for Cryptocurrency Exchange, with a clean Bitcoin-inspired homepage.
Author: New808coin
Template: cryptocurrency-exchange
Version: 19.0.0
Text Domain: new808coin
*/

/* New808coin design layer */
:root {
  --n808-accent: #f7931a;
  --n808-text: #20212f;
  --n808-bg: #ffffff;
}

body {
  background: var(--n808-bg);
  color: var(--n808-text);
}

.n808-home {
  background: var(--n808-bg);
}

.n808-hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 150px 40px 70px;
  text-align: center;
}

.n808-hero__title {
  max-width: 1250px;
  margin: 0 auto;
  color: var(--n808-text);
  font-size: clamp(48px, 5.3vw, 82px);
  line-height: 1.48;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.n808-hero__subtitle {
  max-width: 850px;
  margin: 30px auto 0;
  font-size: 20px;
  line-height: 1.7;
  color: #60626c;
}

.n808-actions {
  max-width: 1410px;
  margin: 55px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.n808-action {
  min-height: 88px;
  padding: 18px 22px;
  border: 2px solid var(--n808-accent);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--n808-accent);
  text-decoration: none !important;
  font-size: 20px;
  font-weight: 700;
  transition: .18s ease;
}

.n808-action:first-child,
.n808-action:hover {
  background: var(--n808-accent);
  color: #fff;
}

.n808-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 30px 80px;
}

@media (max-width: 800px) {
  .n808-hero { padding: 85px 22px 45px; }
  .n808-hero__title { font-size: 42px; line-height: 1.25; }
  .n808-hero__subtitle { font-size: 17px; }
  .n808-actions { grid-template-columns: 1fr; margin-top: 38px; }
}


/* ============================
   MANIFESTO SECTION
   ============================ */
.n808-manifesto {
  padding: 90px 30px 110px;
  background: #f7f7f7;
}

.n808-manifesto__inner {
  max-width: 1480px;
  margin: 0 auto;
  text-align: center;
}

.n808-manifesto__title {
  margin: 0;
  color: var(--n808-text);
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 700;
  line-height: 1.15;
}

.n808-manifesto__accent {
  width: 140px;
  height: 4px;
  margin: 28px auto 30px;
  background: var(--n808-accent);
}

.n808-manifesto__intro {
  max-width: 980px;
  margin: 0 auto 70px;
  color: #41434c;
  font-size: clamp(20px, 1.55vw, 27px);
  line-height: 1.55;
}

.n808-manifesto__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
}

.n808-manifesto-card {
  min-height: 430px;
  padding: 60px 42px 48px;
  border: 1px solid #e5e5e5;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.n808-manifesto-card__icon {
  width: 88px;
  height: 88px;
  margin-bottom: 35px;
  color: var(--n808-accent);
}

.n808-manifesto-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.n808-manifesto-card h3 {
  margin: 0 0 24px;
  color: #222;
  font-size: 28px;
  font-weight: 700;
}

.n808-manifesto-card p {
  margin: 0;
  color: #3f4148;
  font-size: 20px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .n808-manifesto {
    padding: 65px 20px 75px;
  }

  .n808-manifesto__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .n808-manifesto-card {
    min-height: auto;
    padding: 45px 28px;
  }
}


/* ============================
   LATEST NEWS / POSTS
   ============================ */
.n808-news {
  padding: 95px 30px 110px;
  background: #f7f7f7;
}

.n808-news__inner {
  max-width: 1480px;
  margin: 0 auto;
}

.n808-news__header {
  text-align: center;
  margin-bottom: 62px;
}

.n808-news__title {
  margin: 0;
  color: var(--n808-text);
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 700;
  line-height: 1.12;
}

.n808-news__accent {
  width: 140px;
  height: 4px;
  margin: 28px auto 30px;
  background: var(--n808-accent);
}

.n808-news__intro {
  margin: 0 auto;
  max-width: 900px;
  color: #44464f;
  font-size: clamp(19px, 1.45vw, 26px);
  line-height: 1.5;
}

.n808-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
  align-items: start;
}

.n808-news-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 3px 14px rgba(0,0,0,.05);
  padding: 36px 40px 38px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.n808-news-card__category {
  color: #8a8a8a;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 22px;
}

.n808-news-card__title {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  color: #262626;
}

.n808-news-card__title a {
  color: inherit;
  text-decoration: none;
}

.n808-news-card__title a:hover {
  color: var(--n808-accent);
}

.n808-news-card__meta {
  margin-bottom: 22px;
  color: #9a9a9a;
  font-size: 17px;
  font-weight: 600;
}

.n808-news-card__excerpt {
  color: #44464f;
  font-size: 19px;
  line-height: 1.55;
  flex: 1;
}

.n808-news-card__more {
  margin-top: 22px;
  color: #8e8e8e;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.n808-news-card__more:hover {
  color: var(--n808-accent);
}

.n808-news__empty {
  text-align: center;
  color: #666;
}

@media (max-width: 980px) {
  .n808-news__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .n808-news-card {
    padding: 30px;
  }
}


/* ============================
   PARTNERS
   ============================ */
.n808-partners {
  padding: 95px 30px 115px;
  background: #fff;
}

.n808-partners__inner {
  max-width: 1480px;
  margin: 0 auto;
  text-align: center;
}

.n808-partners__title {
  margin: 0;
  color: var(--n808-text);
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 700;
  line-height: 1.12;
}

.n808-partners__accent {
  width: 140px;
  height: 4px;
  margin: 28px auto 30px;
  background: var(--n808-accent);
}

.n808-partners__intro {
  margin: 0 auto 65px;
  max-width: 900px;
  color: #44464f;
  font-size: clamp(19px, 1.45vw, 26px);
  line-height: 1.5;
}

.n808-partners__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
}

.n808-partner {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: #fff;
}

.n808-partner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.n808-partner img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 310px;
  object-fit: contain;
}

.n808-partner__placeholder {
  width: 100%;
  min-height: 250px;
  border: 1px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 18px;
}

@media (max-width: 900px) {
  .n808-partners {
    padding: 70px 20px 80px;
  }

  .n808-partners__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .n808-partner {
    min-height: 220px;
  }

  .n808-partner img {
    max-height: 220px;
  }
}


/* ============================
   SIMPLE NEW808COIN FOOTER
   ============================ */

/* Hide the parent theme's widget footer and decorative divider. */
.site-footer,
.divider-d,
.footer_social {
  display: none !important;
}

.footer_bottom {
  margin: 0;
  padding: 0;
  background: var(--n808-footer-bg, #26353d) !important;
  border: 0;
}

.footer_bottom .container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 60px;
}

.footer_bottom .row {
  margin: 0;
}

.footer_bottom [class*="col-"] {
  float: none;
  width: 100%;
  max-width: none;
  padding: 0;
}

.footer_bottom .n808-copyright {
  margin: 0;
  padding: 58px 0;
  color: var(--n808-footer-text, #ffffff);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.scroll-up {
  display: none !important;
}

@media (max-width: 768px) {
  .footer_bottom .container {
    padding: 0 24px;
  }

  .footer_bottom .n808-copyright {
    padding: 38px 0;
    font-size: 16px;
  }
}


/* ============================
   PARTNER CARD OVERLAYS / LINKS
   ============================ */
.n808-partner {
  position: relative;
  overflow: hidden;
}

.n808-partner__link {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 330px;
  text-decoration: none !important;
  overflow: hidden;
}

.n808-partner__link > img {
  transition: transform .25s ease, filter .25s ease;
}

.n808-partner__overlay {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px;
  color: #fff;
  background: rgba(247, 147, 26, .62);
  border: 2px solid rgba(255,255,255,.9);
  opacity: 0;
  transition: opacity .25s ease;
  text-align: center;
}

.n808-partner__link.has-overlay .n808-partner__overlay {
  opacity: 0;
}

.n808-partner__link.has-overlay:hover .n808-partner__overlay,
.n808-partner__link.has-overlay:focus-visible .n808-partner__overlay {
  opacity: 1;
}

.n808-partner__link:hover > img {
  transform: scale(1.025);
}

.n808-partner__link:hover .n808-partner__overlay {
  background: rgba(247, 147, 26, .72);
}

.n808-partner__overlay h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
}

.n808-partner__overlay p {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.55;
  max-width: 420px;
}

.n808-partner__link:not(.has-overlay) .n808-partner__overlay {
  display: none;
}

@media (max-width: 900px) {
  .n808-partner__link {
    min-height: 220px;
  }

  .n808-partner__overlay {
    inset: 10px;
    padding: 24px;
  }

  .n808-partner__overlay h3 {
    font-size: 28px;
  }

  .n808-partner__overlay p {
    font-size: 17px;
  }
}


/* V8 partner hover behavior */
.n808-partner__link.has-overlay {
  cursor: pointer;
}

.n808-partner__link.has-overlay > img {
  transition: transform .25s ease, filter .25s ease;
}

.n808-partner__link.has-overlay:hover > img,
.n808-partner__link.has-overlay:focus-visible > img {
  transform: scale(1.03);
  filter: brightness(.82);
}

/* ============================
   ANNOUNCEMENTS PAGE
   ============================ */
.n808-announcements-page {
  background: #fff;
  min-height: 70vh;
}
.n808-announcements-hero {
  background: #152326;
  color: #fff;
  padding: 82px 30px 72px;
  text-align: center;
}
.n808-announcements-hero__inner {
  max-width: 1480px;
  margin: 0 auto;
}
.n808-announcements-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.15;
  font-weight: 500;
}
.n808-announcements-hero__accent {
  width: 120px;
  height: 4px;
  margin: 25px auto 0;
  background: var(--n808-accent);
}
.n808-announcements-wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding: 80px 30px 100px;
}
.n808-announcements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: stretch;
}
.n808-announcement-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 3px 14px rgba(0,0,0,.05);
  padding: 34px 36px 38px;
  display: flex;
  flex-direction: column;
}
.n808-announcement-card__category {
  color: #8a8a8a;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 18px;
}
.n808-announcement-card__title {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
}
.n808-announcement-card__title a {
  color: #262626;
  text-decoration: none;
}
.n808-announcement-card__title a:hover {
  color: var(--n808-accent);
}
.n808-announcement-card__meta {
  color: #999;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.n808-announcement-card__excerpt {
  color: #44464f;
  font-size: 18px;
  line-height: 1.6;
  flex: 1;
}
.n808-announcement-card__more {
  margin-top: 22px;
  color: #8e8e8e;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}
.n808-announcement-card__more:hover {
  color: var(--n808-accent);
}
.n808-announcements-pagination {
  margin-top: 48px;
  text-align: center;
}
.n808-announcements-pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 9px 14px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
}
.n808-announcements-pagination .current,
.n808-announcements-pagination .page-numbers:hover {
  background: var(--n808-accent);
  border-color: var(--n808-accent);
  color: #fff;
}
@media (max-width: 980px) {
  .n808-announcements-grid { grid-template-columns: 1fr; }
}

/* V11 announcement card cleanup */
.n808-announcement-card__category {
  display: none !important;
}
.n808-announcement-card__meta {
  margin-top: 2px;
}

/* V12: compact hero so CTA buttons appear on the initial desktop view */
.n808-hero {
  padding-top: 78px;
  padding-bottom: 48px;
}
.n808-hero__title {
  max-width: 1080px;
  font-size: clamp(40px, 3.8vw, 62px);
  line-height: 1.22;
  letter-spacing: -0.03em;
}
.n808-hero__subtitle {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.5;
}
.n808-actions {
  margin-top: 30px;
}
.n808-action {
  min-height: 68px;
  padding: 14px 20px;
  font-size: 18px;
}
@media (max-width: 800px) {
  .n808-hero {
    padding-top: 55px;
    padding-bottom: 40px;
  }
  .n808-hero__title {
    font-size: clamp(34px, 9vw, 46px);
    line-height: 1.18;
  }
}

/* V13 homepage news cleanup + Read All button */
.n808-news-card__category {
  display: none !important;
}
.n808-news__read-all-wrap {
  margin-top: 42px;
  text-align: center;
}
.n808-news__read-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 54px;
  padding: 14px 28px;
  border: 2px solid var(--n808-accent);
  background: var(--n808-accent);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 18px;
  font-weight: 700;
  transition: .2s ease;
}
.n808-news__read-all:hover {
  background: #fff;
  color: var(--n808-accent) !important;
}


/* ============================
   V14 SINGLE ANNOUNCEMENT POST
   ============================ */
.single-post .page-title,
.single-post .breadcrumb,
.single-post .breadcrumb_wrapper,
.single-post .inner-banner,
.single-post .page-header,
.single-post .banner,
.single-post .header-banner {
  display: none !important;
}

.n808-single {
  background: #fff;
}

.n808-single__wrap {
  width: min(1480px, calc(100% - 60px));
  margin: 0 auto;
  padding: 72px 0 90px;
}

.n808-single__article {
  width: 100%;
  max-width: none;
  margin: 0;
}

.n808-single__title {
  margin: 0 0 14px;
  color: #24252d;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1.14;
  font-weight: 700;
}

.n808-single__date {
  margin: 0 0 42px;
  color: #8d8f96;
  font-size: 18px;
  font-weight: 600;
}

.n808-single__content {
  color: #3e4048;
  font-size: 18px;
  line-height: 1.75;
}

.n808-single__content > * {
  max-width: none;
}

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

.n808-single__category {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid #e6e6e6;
  color: var(--n808-accent);
  font-size: 18px;
  font-weight: 700;
}

.n808-single__nav {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.n808-single__nav a,
.n808-single__nav span {
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid var(--n808-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--n808-accent);
  background: #fff;
  text-decoration: none !important;
  font-size: 17px;
  font-weight: 700;
}

.n808-single__nav a:hover {
  background: var(--n808-accent);
  color: #fff;
}

.n808-single__nav .n808-single__all {
  background: var(--n808-accent);
  color: #fff;
}

.n808-single__prev {
  justify-self: start;
}

.n808-single__next {
  justify-self: end;
}

.n808-single__disabled {
  opacity: .35;
  pointer-events: none;
}

@media (max-width: 760px) {
  .n808-single__wrap {
    width: min(100% - 32px, 1480px);
    padding: 45px 0 65px;
  }

  .n808-single__title {
    font-size: 36px;
  }

  .n808-single__nav {
    grid-template-columns: 1fr;
  }

  .n808-single__prev,
  .n808-single__next {
    justify-self: stretch;
  }
}


/* ============================
   V15 SINGLE POST TITLE REFINEMENT
   ============================ */
.n808-single__hero {
  background: #152326;
  padding: 48px 30px 44px;
  text-align: center;
}

.n808-single__hero-inner {
  max-width: 1480px;
  margin: 0 auto;
}

.n808-single__hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.n808-single__wrap {
  padding-top: 58px;
}

.n808-single__title {
  display: none;
}

.n808-single__date {
  margin-bottom: 34px;
}

.n808-single__category {
  display: none !important;
}

@media (max-width: 760px) {
  .n808-single__hero {
    padding: 34px 20px 32px;
  }

  .n808-single__hero-title {
    font-size: 30px;
  }

  .n808-single__wrap {
    padding-top: 38px;
  }
}


/* ============================
   V16 STANDARD PAGE LAYOUT
   ============================ */
.n808-page {
  background: #fff;
}

.n808-page__hero {
  background: #152326;
  padding: 48px 30px 44px;
  text-align: center;
}

.n808-page__hero-inner {
  max-width: 1480px;
  margin: 0 auto;
}

.n808-page__title {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 2.7vw, 44px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.n808-page__wrap {
  width: min(1480px, calc(100% - 60px));
  margin: 0 auto;
  padding: 64px 0 90px;
}

.n808-page__content {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #3e4048;
  font-size: 18px;
  line-height: 1.7;
}

.n808-page__content > * {
  max-width: none;
}

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

/* Prevent parent theme's page breadcrumb/title banner from appearing. */
.page:not(.home) .page-title,
.page:not(.home) .breadcrumb,
.page:not(.home) .breadcrumb_wrapper,
.page:not(.home) .inner-banner,
.page:not(.home) .page-header,
.page:not(.home) .banner,
.page:not(.home) .header-banner {
  display: none !important;
}

@media (max-width: 760px) {
  .n808-page__hero {
    padding: 34px 20px 32px;
  }

  .n808-page__title {
    font-size: 30px;
  }

  .n808-page__wrap {
    width: min(100% - 32px, 1480px);
    padding: 42px 0 65px;
  }
}


/* V17 alternating homepage section backgrounds */
.n808-manifesto { background: #f5f6f7 !important; }
.n808-news { background: #eceff1 !important; }
.n808-partners { background: #ffffff !important; }

/* V17 market stats row */
.n808-market {
  background: #fafafa;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  padding: 28px 30px;
}
.n808-market__inner {
  max-width: 1410px;
  margin: 0 auto;
}
.n808-market__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.n808-market-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  padding: 24px 22px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.n808-market-card__label {
  color: #74767e;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 9px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.n808-market-card__value {
  color: #24252d;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
}
@media (max-width: 900px) {
  .n808-market__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .n808-market { padding: 22px 18px; }
  .n808-market__grid { grid-template-columns: 1fr; }
}
