.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-bar {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
}

.search-bar input[type="search"] {
  width: 100%;
  padding: 12px 40px 12px 20px;
  border: none;
  border-radius: 50px;
  background-color: var(--card-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  font-size: 16px;
  color: #333;
  outline: none;
  font-family: "Inter", sans-serif;
  font-weight: 300;
}

.search-bar .search-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 18px;
  color: #888;
  pointer-events: none;
}

/*=============SEARCH CARD=================*/


.search-card {
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 20px;
}

.search-card img {
  max-width: 8.2rem;
  float: right;
  border-radius: 10px;
}



.search-text {
  flex: 1.5;
}

.search-title {
  font-size: 3.5rem;
  font-family: "PTSerifPro Demi";
  line-height: 1.2;
}

.search-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #777;
  margin-bottom: 2rem;
  gap: 0.2rem;
}

.search-meta .read-time {
  background: var(--duration-bg);
  color: var(--tag-text);
  border-radius: 4px;
  font-size: 0.8rem;
}


















.category-list li:last-child {
  border-bottom: none;
}

.category-list a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.category-list a:hover {
  color: #FFB534;
}

.category-list .see-all {
  font-size: 0.9rem;
  padding-top: 10px;
  color: #666;
  text-align: right;
}

.category-list .see-all a {
  color: #555;
  font-weight: normal;
}

.see-all a:hover {
  text-decoration: underline;
}





.most-viewed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: item;
}

.most-viewed-list li {
  counter-increment: item;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 2.2rem; /* space for the number */
}

.most-viewed-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  font-size: 1.5rem; /* increase number size */
  color: var(--text-color);
}

.post-title {
  display: block;
  font-weight: 700;
  color: var(--text-color);
}

.post-meta {
  display: block;
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  margin-top: 2px;
}

.see-more {
  text-align: right;
  font-size: 0.9rem;
  margin-top: 10px;
}

.see-more a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.see-more a:hover {
  text-decoration: underline;
}

.widget-gallery h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  border-radius: 5px;
}

.gallery-grid img {
  width: 100%;
  display: block;
  height: auto;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
}

.thumb {
  height: auto;
}


/*=============Calendar==============*/


header .icons{
  display: flex;
}
header .icons span{
  height: 20px;
  width: 20px;
  margin: 0 5px;
  cursor: pointer;
  color: #363636;
  text-align: center;
  line-height: 19px;
  font-size: 0.5rem;
  user-select: none;
  border-radius: 50%;
  border: 1px solid #878787;
}
.icons span:last-child{
  margin-right: -10px;
}
header .icons span:hover{
  background: #b4b4b4;
}
header .current-date{
  font-size: 1.2rem;
  font-weight: 800;
}
.calendar{
  padding: 10px;
}
.calender-line {
  width: 100%;
  height: 1px;
  background-color: #959595;
  margin: 5px 5px;
}

.calendar ul{
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  text-align: center;
}
.calendar .days{
  margin-bottom: 20px;
}
.calendar li{
  color: var(--text-color);
  width: calc(100% / 7);
  font-size: 0.85rem;
}
.calendar .weeks li{
  font-weight: 700;
  cursor: default;
  color: #959595;
}
.calendar .days li{
  z-index: 1;
  cursor: pointer;
  position: relative;
  margin-top: 20px;
  font-weight: 400;
}
.days li.inactive{
  color: var(--inactive-text);
}
.days li.active{
  color: var(--text-color-inverse);
}
.days li::before{
  position: absolute;
  content: "";
  left: 50%;
  top: 50%;
  height: 30px;
  width: 30px;
  z-index: -1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.days li.active::before{
  background: #FFB534;
}
.days li:not(.active):hover::before{
  background: var(--green-bg);
}

.calendar-footer {
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  border-radius: 12px;
  gap: 10px;
  font-family: sans-serif;
  max-width: 800px;
}

.date-badge {
  background-color: var(--green-bg);
  border-radius: 10px 0 0 10px;
  text-align: center;
  min-width: 80px;
  min-height: 80px;
}

.date-badge span {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-color);
  position: relative;
  top: 4px;
}

.date-badge strong {
  font-size: 50px;
  line-height: 1;
  display: block;
  color: var(--text-color);
  letter-spacing: -0.08em;
}

.date-details {
  flex-grow: 1;
  height: 100%;
}

.date-details h4 {
  font-size: 15px;
  margin: 0 0 0px;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.2;
}

.read-now {
  background-color: #ffb534;
  color: var(--text-color-inverse);
  border: none;
  padding: 12px 10px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 10px;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  margin: 0px 20px 0px 10px;
}

.read-now:hover {
  background-color: #000000;
}


@media (max-width: 1023px) {
  .sidebar {
    display: none;
  }


  

  .blog-grid-container {
    grid-template-columns: 1fr; /* make main content take full width */
  }

  .search-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #777;
  margin-bottom: 0.8rem;
  gap: 0.2rem;
}

.search-meta .read-time {
  background: var(--duration-bg);
  color: var(--tag-text);
  border-radius: 4px;
  font-size: 0.8rem;
}


}

@media (max-width: 768px) {


.search-title {
  font-size: 2.5rem;
}
}

@media (max-width: 600px) {


.search-title {
  font-size: 1.7rem;
}

  
}
