/*
Theme Name: ChainDecrypt
Theme URI: https://chaindecrypt.com
Author: Binit Biswas
Description: A professional cryptocurrency and news WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: chaindecrypt
*/

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
}

a {
  text-decoration: none;
  color: #111;
  font-size: 15px;
  -webkit-transition: background-size 0.25s cubic-bezier(0.32, 0.74, 0.57, 1);
  transition: background-size 0.25s cubic-bezier(0.32, 0.74, 0.57, 1);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0%;
  word-break: break-word;
}

a:hover {
  background-size: 100% 16%;
}

.site-header {
  background: #fff;
  color: #000;
  padding: 15px 0;
}

.logo {
  margin: 0;
}

.logo a {
  color: #0087ff;
  text-decoration: none;
  font-weight: 900;
  font-size: 27px;
}

.logo a:hover {
  background-size: 0;
}

.logo img {
  width: 300px;
  height: auto;
}

.ad-banner {
  line-height: 0;
}

.main-navigation ul {
  list-style: none;
  padding: 0;
  display: flex;
}

.main-navigation a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.container {
  max-width: 1150px;
  margin: auto;
  padding: 20px;
}

.featured-news img {
  width: 100%;
  height: auto;
}

.featured-title a {
  color: #fff;
  text-decoration: none;
  display: inline;
  font-size: 28px;
  font-weight: 700;
}

.news-item img {
  width: 100%;
  height: auto;
}

.news-item h3 a {
  text-decoration: none;
  color: #111;
}

.category-title {
  font-size: 32px;
  margin-bottom: 20px;
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
}

.category-news-item img {
  width: 100%;
  height: auto;
}

.category-news-item h2 a {
  text-decoration: none;
  color: #111;
  font-size: 22px;
}

.home-section {
  margin: 60px 0 30px;
}

.section-title {
  font-size: 20px;
  padding-left: 20px;
  margin-bottom: 15px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.single-post-layout {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.content-area {
  width: 70%;
}

.sidebar {
  width: 30%;
  padding: 20px;
  padding-top: 0;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0;
  align-self: flex-start;
}

.post-title {
  margin-bottom: 10px;
}

.post-meta {
  color: #777;
  margin-bottom: 20px;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0px 4px 9px -3px rgb(7 10 25 / 35%);
  -webkit-box-shadow: 0px 4px 9px -3px rgb(7 10 25 / 35%);
  -moz-box-shadow: 0px 4px 9px -3px rgb(7 10 25 / 35%);
}

.post-content {
  line-height: 1.8;
  font-size: 18px;
}

.widget {
  margin-bottom: 25px;
}

.widget-title {
  font-size: 20px;
  border-bottom: 2px solid #000;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.site-footer {
  background: #111;
  color: #fff;
  margin-top: 0px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 20px;
}

.footer-column h3 {
  padding-bottom: 8px;
}

.footer-column a {
  color: #ddd;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  background: #000;
  padding: 10px;
}

.breadcrumbs {
  font-size: 14px;
  margin-bottom: 0px;
  color: #777;
}

.breadcrumbs a {
  text-decoration: none;
  color: #000;
}

.main-menu {
  background-color: #0087ff;
  color: #fff;
}

.site-header .main-menu .container {
  padding: 0 20px;
}

.cd-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.cd-menu > li:not(.menu-item-has-children):first-child > a {
  padding-left: 0;
}

.cd-menu > li {
  position: relative;
  margin-right: 0px;
}

.cd-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 20px 15px;
  display: block;
}

/* Submenu */
.cd-menu li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0271d3;
  min-width: 200px;
  display: none;
  padding: 0;
  z-index: 999;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  overflow: hidden;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
}

.cd-menu li:hover > ul {
  display: block;
}

.cd-menu li ul li {
  width: 100%;
}

.cd-menu li ul a {
  color: #fff;
  padding: 12px 15px;
  font-weight: normal;
}

.cd-menu li ul a:hover {
  background: #fff;
  color: #0271d3;
}

/* Hover Effect */
.cd-menu > li > a:hover {
  color: #bfe1ff;
}

/* Active Menu Item */
.cd-menu li.current-menu-item > a,
.cd-menu li.current-menu-parent > a {
  color: #ffffff;
  background-color: #0271d3;
  border-bottom: 5px solid #161616;
}

.cd-menu li.current-menu-item:first-child > a,
.cd-menu li.current-menu-parent:first-child > a {
  padding-left: 15px;
}

/* Smooth transition */
.cd-menu a {
  transition: all 0.3s ease;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #000;
  margin: 5px 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-right .search-icon {
  font-size: 20px;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 10px 0;
}

.full-banner {
  padding-bottom: 20px;
}

.full-banner img {
  width: 100%;
}

.featured-news-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  -webkit-justify-content: flex-start;
  gap: 2px;
}

.featured-news {
  flex: 0 1 66.76%;
  max-width: 66.76%;
  padding-right: 0px;
  height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.featured-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-grid {
  flex: 0 1 33%;
}

.news-col {
  display: grid;
  gap: 2px;
}

.post-thumb {
  position: relative;
  height: 248.8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-thumb a {
  display: block;
}

.post-element-wrap {
  position: absolute;
  bottom: 0px;
  background-image: linear-gradient(to top, rgb(26, 25, 25), transparent);
  width: 100%;
  z-index: 1;
  padding: 0px;
}

.post-element-wrap .post-element {
  padding: 0 20px;
}

.post-element-wrap .post-meta {
  color: #fff;
  font-size: 12px;
  padding: 0 20px;
}

.post-element-wrap .post-meta span {
  display: inline;
  padding-right: 10px;
}

.post-element-wrap .post-meta span:last-child {
  display: inline;
  padding-right: 0px;
}

.post-element-wrap .post-meta a {
  display: inline;
  color: #fff;
}

.post-element-wrap .post-title a {
  color: #fff;
  display: inline;
  font-size: 18px;
}

span.author_name:before,
a.author_name:before,
span.post-date:before,
span.post-comment:before,
.read-time:before {
  margin-right: 7px;
  font-family: "Font Awesome 5 Free";
  color: #fff;
}

h1.featured-title {
  position: absolute;
  bottom: 0px;
  left: 0px;
  background-image: linear-gradient(to top, rgb(26, 25, 25), transparent);
  color: #fff;
  width: 100%;
  z-index: 1;
  padding: 0;
  border-radius: 0px 0px 4px 4px;
  margin: 0;
  padding: 20px;
}

.light-bg {
  background: #e9edf9;
}

.thumb {
  position: relative;
  border-radius: 4px;
  box-shadow: 0px 4px 9px -3px rgb(7 10 25 / 35%);
  -webkit-box-shadow: 0px 4px 9px -3px rgb(7 10 25 / 35%);
  -moz-box-shadow: 0px 4px 9px -3px rgb(7 10 25 / 35%);
  padding-bottom: calc(var(--chain-post-grid-image-ratio) * 100%);
  width: 100%;
  overflow: hidden;
  margin-bottom: 16px;
}

.section-item img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: scale(1) translate(-50%, -50%);
  display: block;
  width: 100%;
  height: 101%;
  object-fit: cover;
}

.section-item h3 a {
  text-decoration: none;
  color: #111;
  font-size: 15px;
}

.highlight-title {
  position: relative;
  font-size: 24px;
  padding-left: 20px;
  margin-bottom: 15px;
  margin-top: 0;
}

.highlight-title:before,
.highlight-title:after {
  content: "";
  z-index: 1;
  opacity: 0.8;
  width: 11px;
  height: 11px;
  position: absolute;
  left: 0;
  border-radius: 50%;
}

.highlight-title:before {
  top: 6px;
  background-color: #ff2453;
}

.highlight-title:after {
  top: 13px;
  background-color: #be2edd;
}

.section-title {
  font-size: 20px;
  padding-left: 20px;
  margin-bottom: 15px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-view {
  text-decoration: none;
  color: #999;
  font-size: 14px;
  -webkit-transition: 0.6s ease-out;
  -moz-transition: 0.6s ease-out;
  transition: 0.6s ease-out;
}

.btn-view:hover {
  color: #0b0b0b;
}

.cd-footer {
  background: #0b0b0b;
  color: #fff;
  padding-top: 50px;
}

.cd-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.cd-footer h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #fff;
}

.cd-footer-about p {
  color: #aaa;
  line-height: 1.6;
}

.cd-social a {
  display: inline-block;
  margin-right: 10px;
  background: #1e1e1e;
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
}

.cd-social a:hover {
  background: #0271d3;
}

.cd-footer-post {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.cd-footer-post img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

.cd-footer-post {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.cd-footer-post:last-child {
  border-bottom: 0;
}

.cd-footer-post a {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}

.cd-footer-post span {
  font-size: 12px;
  color: #999;
}

.cd-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cd-footer-bottom .cd-footer-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cd-footer-bottom .cd-footer-nav li {
  color: #fff;
  text-decoration: none;
}

.cd-footer-bottom .cd-footer-nav a {
  color: #fff;
  text-decoration: none;
}

.light-footer {
  background: #1c1c1c;
  color: #ffffff;
  padding: 15px 0 140px;
}

.light-footer .container {
  padding: 0px;
}

.cd-footer-post .category-link {
  display: inline-block;
  margin: 10px 0 0;
}

.cd-footer-post .category-link a {
  display: inline-block;
}

.breadcrumb-wrap {
  background: #f5f5f5;
  padding: 10px 0;
  margin-bottom: 20px;
}

.breadcrumb-wrap .container {
  padding-top: 0;
  padding-bottom: 0;
}

.single-article h1.post-title {
  margin-top: 0;
}

.footer-sticky-ad {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 10px 0;
}

.footer-sticky-ad .container {
  text-align: center;
  padding: 0;
}

.foot-sticky-ad {
  width: 100%;
  height: 100px;
}

.social-icons a {
  margin-right: 10px;
  font-size: 18px;
}
.social-icons a:hover {
  opacity: 0.8;
}

.cat-post-thumbnail img {
  height: 101%;
  width: 100%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: scale(1) translate(-50%, -50%);
}

.category-news-grid article figure {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0px 4px 9px -3px rgb(7 10 25 / 35%);
  -webkit-box-shadow: 0px 4px 9px -3px rgb(7 10 25 / 35%);
  -moz-box-shadow: 0px 4px 9px -3px rgb(7 10 25 / 35%);
  flex: 0 1 35%;
  margin-bottom: 0;
}

.category-news-grid article .box_wrap {
  display: flex;
}

.post-element {
  flex: 0 1 65%;
  padding: 5px 0 5px 30px;
}

.post-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 10px;
}

.post-element h2 {
  margin: 0 0 10px;
  font-size: inherit;
}

.post-element p {
  margin: 0;
  font-size: 15px;
}

a.post-link-button {
  margin: 10px 0 0;
  display: inline-block;
  font-family: var(--post-link-btn-family);
  font-weight: 600;
  font-size: var(--post-link-btn-size);
  line-height: var(--post-link-btn-lineheight);
  letter-spacing: var(--post-link-btn-letterspacing);
  text-decoration: var(--post-link-btn-textdecoration);
  text-transform: var(--post-link-btn-texttransform);
  font-weight: var(--post-link-btn-weight);
  color: var(--post-title-color);
  margin-bottom: 20px;
}

.post-link-button:hover {
  background-size: 0;
}

a.post-link-button i {
  transition: 0.2s ease-in;
  padding-left: 0;
  vertical-align: middle;
  font-size: 10px;
}

.post-element a.post-link-button:hover,
.post-element a.post-link-button:hover i {
  color: var(--chain-global-preset-primary-color);
}

.category-news-grid article:not(:last-child) {
  margin-bottom: 30px;
}

.category-news-grid {
  margin-bottom: 0px;
}

.post-element a.post-link-button:hover i {
  padding-left: 5px;
}

.post-meta a {
  color: inherit;
  text-decoration: none;
}

.post-meta a:hover {
  color: #000; /* or your theme primary color */
}

.chaindecrypt-recent-post {
  margin-top: 15px;
  display: flex;
  position: relative;
  transition: all 0.25s cubic-bezier(0.02, 0.01, 0.47, 1);
}

.chaindecrypt-recent-post figure {
  border-radius: 4px;
  box-shadow: 0px 4px 9px -3px rgb(7 10 25 / 35%);
  -webkit-box-shadow: 0px 4px 9px -3px rgb(7 10 25 / 35%);
  -moz-box-shadow: 0px 4px 9px -3px rgb(7 10 25 / 35%);
  flex: 0 1 30%;
  overflow: hidden;
  background-color: #cccccc;
  margin: 0px;
  height: fit-content;
}

.chaindecrypt-recent-post figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chaindecrypt-recent-post .post-element {
  padding-left: 16px;
  flex: 1 1 65%;
}

.chaindecrypt-recent-post ul.post-categories {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-block;
}

.chaindecrypt-recent-post .post-title a {
  color: #1a1a1a;
  font-size: 14px;
}

.chaindecrypt-recent-post .post-meta a,
.chaindecrypt-recent-post .post-meta span::before,
.chaindecrypt-recent-post .post-meta time {
  color: #777;
  text-decoration: none;
  font-size: 14px;
}

.chaindecrypt-recent-post .date-wrap {
  display: inline-block;
}

.widget .chaindecrypt-recent-post:not(:nth-child(2)) {
  border-top: 1px solid #777;
  padding-top: 15px;
}

.chaindecrypt-recent-post .post-meta {
  margin-bottom: 0;
}

.featured-news-wrap .post-meta,
.featured-news-wrap .post-meta .post-author a {
  color: #fff;
  font-size: 14px;
  margin-top: 15px;
}

.featured-news-wrap .featured-title .post-meta {
  margin-bottom: 0;
}

.footerbanner-wrap {
  position: relative;
}

.footerbanner-wrap .close-ad-btn {
  position: absolute;
  top: 0px;
  right: 0px;
  cursor: pointer;
  background-color: rgb(22 22 22 / 28%);
  border-radius: 4px;
  padding: 8px;
}

.page-title {
  font-size: 40px;
  line-height: normal;
  margin: 0 0 30px;
}

.p-0 {
  padding: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .main-navigation ul.cd-menu {
    display: none;
    flex-direction: column;
    background: #111;
    width: 100%;
  }

  .cd-menu li {
    margin: 0;
  }

  .cd-menu a {
    color: #fff;
    padding: 12px 15px;
    border-bottom: 1px solid #222;
  }

  .cd-menu li ul {
    position: static;
    background: #222;
    display: none;
  }

  .cd-menu li.open > ul {
    display: block;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-navigation {
    position: relative;
  }
}
