/*
Theme Name: TrendnDailyUS
*/
/* Reset css */
body {
  -webkit-text-size-adjust: 100%;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  word-break: break-word;
  vertical-align: baseline;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
  font: inherit;
}
button {
  color: inherit;
  font: inherit;
  outline: 0;
  cursor: pointer;
  border: 0;
  box-shadow: 0;
  background: none;
}
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
a,
abbr,
acronym,
address,
applet,
big,
blockquote,
caption,
cite,
code,
dd,
del,
dfn,
div,
dl,
dt,
em,
fieldset,
font,
form,
h1,
h2,
h3,
h4,
h5,
h6,
iframe,
img,
ins,
kbd,
label,
legend,
li,
object,
ol,
p,
pre,
q,
s,
samp,
small,
span,
strike,
strong,
sub,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
tr,
tt,
ul,
var {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}
ol,
ul,
li {
  list-style: none;
}
table {
  border-collapse: separate;
  border-spacing: 0;
}
caption,
td,
th {
  text-align: left;
}
img {
  width: 100%;
}
textarea:focus,
input:focus {
  outline: none;
}
select {
  -webkit-appearance: none;
  -moz-appearance: none;
}
.blog-content ul li,
.blog-content ol li {
  color: #445566;
}
body,
input,
button,
textarea,
h1,
p {
  font-family: "Public Sans", sans-serif;
}
@-ms-viewport {
  width: device-width;
}

/* Base styles */
body {
  margin: 0;
  font-family: "Public Sans", sans-serif;
  background: #fafbf6;
  color: #6b7280; /* neutral gray for body text */
  line-height: 1.6;
  font-size: 16px;
}
a {
  color: #1a1a1a;
  text-decoration: none;
  user-select: none;
  transition: color 0.3s ease;
}
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: none;
  padding: 0;
}

.wrapper {
  margin: 5px;
  border: 1px solid #6a6b63;
  background: #fafbf6;
}

/* Container */
.inner-wrapper {
  max-width: 1328px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Header */
header {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #6a6b63;
}
header .logo {
  font-weight: 700;
  font-size: 20px;
  user-select: none;
  color: #111827;
  width: 170px;
  height: auto;
}

/* Navigation */
#menu-header-menu {
  display: flex !important;
  gap: 32px;
  align-items: center;
}
#menu-header-menu a {
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 12px;
  color: #374151;
  transition: background-color 0.2s ease, color 0.3s ease;
}
#menu-header-menu a:hover,
#menu-header-menu a:focus {
  color: #f15a29;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  height: 2.5px;
  width: 20px;
  background-color: #e0592c;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: 4px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(-2px, -3px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -7px);
}

/* singlepost css */
.singlearticle-wrapper {
  background: #fafbf6;
}
.articlebanner .articlebanner {
  max-width: 100%;
}
.articlebanner .blog-breadcrumbs,
.lp-post-wrapper figure {
  display: none;
}
.articlebanner .page-title {
  color: #0d0e09;
  font-size: 40px;
  font-weight: 700;
  line-height: 42px;
  text-align: center;
  max-width: 328px;
  margin: 22px auto;
}
.articlebanner img {
  border-radius: 4px;
  object-fit: cover;
  height: 245px;
}
.lp-post-wrapper {
  column-gap: 40px;
  display: flex;
  padding-top: 16px;
  flex-direction: column;
  flex-wrap: wrap;
  width: 100%;
}
.top-two-posts {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  width: 100%;
}
.top-two-posts p {
  margin-bottom: 40px;
}
.top-two-posts h1,
.top-two-posts h2,
.top-two-posts h3 {
  font-weight: 700;
  color: #000;
  font-size: 20px;
}

/* Trending Section */
.trending-section {
  margin: 16px auto 10px;
  width: 100%;
}
.trending-section .post-titles {
  border-right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 600;
  font-size: 24px;
  color: #e0592c;
  border-top: 1px solid #6a6b63;
  border-bottom: 1px solid #6a6b63;
  padding: 10px 0;
  margin-bottom: 20px;
}
.trending-slider::-webkit-scrollbar {
  display: none;
}
.trending-card {
  display: flex;
  flex-direction: column;
  position: relative;
}
.trending-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  border-radius: 12px;
}
.slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
}
.slider-btn.prev,
.slider-btn.next {
  border-radius: 52px;
  border: 1px solid #000;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  width: 51px;
  height: 51px;
}
.slider-btn svg {
  fill: #1a1a1a;
  width: 32px;
  height: 32px;
}
.slider-btn.prev {
  left: -20px;
}
.slider-btn.next {
  right: -20px;
}
.trending-section .article-titles {
  margin: 17px 0 26px;
  display: flex;
  justify-content: space-between;
  column-gap: 8px;
}
.trending-section .article-titles .title {
  color: #151925;
  font-size: 16px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trending-section .article-titles .title strong {
  font-weight: inherit;
}
.trending-section .article-titles button {
  border-radius: 8px;
  background: #0d0e09;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  max-width: 135px;
  width: 100%;
  height: 48px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
}

/* category */
.category-posts .page-title{
  min-height: 55px;
  font-size: 32px;
  font-weight: 700;
  display: flex ;
  align-items: center;
  justify-content: center;
  color: #e0592c;
}
.category-posts .post-grid-layout {
    color: #6B6B6B;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 168.7%;
    width: 100%;
    flex: 1;
    max-width: none;
    display: flex ;
    column-gap: 20px;
    row-gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.category-posts .top-reads-box{
  max-width: 373px;
}
.category-posts .featured-post-section{
  display: flex ;
  border-bottom: 1px solid #F1F2F4;
  padding: 20px 0;
}
.category-posts .featured-post-section:last-child {
  padding: 0;
  border-bottom: 0;
}
.category-posts .post-section {
  flex-direction: column;
  display: flex ;
  column-gap: 20px;
}
.category-posts .post-thumb {
  max-width: 100%;
  min-height: 150px;
  margin-bottom: 15px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  vertical-align: top;
}
.category-posts .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: bottom;
    min-height: 254px;
}
.category-posts .post-content {
    width: 100%;
}
.category-posts .post-content h3 {
    color: #344756;
    font-family: "Public Sans";
    font-size: 17px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    text-transform: capitalize;
    margin: 0 0 5px;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.category-posts .post-content div {
    color: #000;
    font-family: "Public Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.category-posts .content-wrapper{
  padding-bottom: 20px;
}

/* Footer */
.foot-nav {
  padding: 20px 0px;
  border-top: 1px solid #6a6b63;
}
.footer ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.footer ul li {
  list-style: none;
  text-decoration: none;
  color: #6a6b63;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 26px;
}
.footer ul li a {
  color: inherit;
}
.footer ul li:hover {
  text-decoration: underline;
}
.footer ul li::after {
  content: "|";
  margin: 0 3px;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
}
.footer ul li:last-child::after {
  display: none;
}

@media (min-width: 768px) {
  .wrapper {
    margin: 17px;
  }

  .articlebanner img{
    height: 501px;
  }

  /* navbar */
  #menu-header-menu a {
    font-size: 16px;
    padding: 6px 15px;
  }
  #menu-header-menu li:last-child a {
    padding-right: 0;
  }

  /* header + navbar */
  header {
    padding: 31px 0 27px;
    min-height: auto;
  }

  /* single post */
  .articlebanner .page-title {
    font-size: 80px;
    line-height: 88px;
    max-width: 100%;
    margin: 73px auto 40px;    
  }
  .lp-post-wrapper{
    padding-top: 78px;
  }
  .top-two-posts p{
    font-size: 21px;
    line-height: 35px;
    margin-bottom: 30px;
  }
  .top-two-posts h1, .top-two-posts h2, .top-two-posts h3{
    font-size: 24px;
    line-height: 168.7%;
  }

  /* trending section */
  .trending-section {
    margin: 60px auto 32px;
  }
  .trending-section .post-titles {
    margin: 0 auto 49px;
    padding: 31px 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    font-size: 65px;
    line-height: 88px;
  }
  .trending-slider-wrapper {
    position: relative;
  }
  .trending-slider {
    display: flex;
    gap: 48px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    scrollbar-width: none; /* Firefox */
  }
  .trending-card:not(:last-child)::after {
    content: "";
    width: 0;
    height: 100%;
    position: absolute;
    top: 0;
    right: -27px;
    border: 1px solid #6a6b63;
  }
  .trending-section .article-titles {
    margin: 24px 0 26px;
    column-gap: 10px;
    flex-wrap: wrap;
  }
  .trending-card img {
    max-width: 373px;
    height: 254px;
    width: 373px;
  }
  .trending-section .article-titles .title {
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 5px;
  }
  .trending-desc-row.article-titles button {
    max-width: 130px;
    min-height: 51px;
    font-size: 16px;
    background: unset;
    border: 1px solid #000;
    color: #000;
    box-shadow: none;
  }
  .trending-desc-row.article-titles button:hover {
    background: #000;
    color: #fff;
  }

  /* category */
  .category-posts .page-title{
    min-height: 107px;
    font-size: 72px;
  }
  .category-posts .featured-post-section:hover .post-content{
    text-decoration: underline;
  }

  /* footer */
  .footer ul li {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .hideinmobile {
    display: none !important;
  }

  /* navbar */
  #menu-header-menu {
    position: absolute;
    top: 56px; /* below header */
    left: 0;
    right: 0;
    background: #ffffff;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    padding: 0 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    opacity: 0;
    pointer-events: none;
    transform-origin: top center;
    transform: scaleY(0.95);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
  }
  #navMenu.open .menu-left {
    max-height: 320px; /* enough for 4 menu items with spacing */
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
    padding: 16px 24px 24px 24px;
    width: 97%;
    margin: 0 auto;
  }
  #menu-header-menu a:last-child {
    margin-bottom: 0;
  }
  .hamburger {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .inner-wrapper{
    padding: 0;
    width: 98%;
    margin: 0 auto;
  }  
  .footer.inner-wrapper{
    padding: 20px 0px 0px;
  }

  .trending-section{
    flex-wrap: nowrap;
  }
  .trending-section .title{
    margin-bottom: 0;
  }
  .trending-section .post-titles{
    font-size: 80px;
  }
  .trending-section .article-titles{
    flex-wrap: nowrap;
  }
}
