.detail-section {
  width: 50%;
  padding: 40px 0px;
  margin: 0 auto;
  /* centers horizontally */
}
.detail-mini-head {
  display: flex;
  gap: 20px;
  align-items: center;
}
.detail-mini-head .mini-head-logo{
  height: 20px;
}
.detail-minihead-text{
  margin: 0;
  font-size: 20px;
  color: #161616;
  font-weight: 500;
    font-family: 'selane-st-semi-bold';
}

.detail-main-head {
  margin: 0;
  font-size: 40px;
  font-family: 'selane-st-semi-bold';
  font-weight: 900;
  padding-bottom: 15px;
}

.detail-main-head a {
  color: #161616;
}

.detail-header-top-option {
  margin: 0;
  color: #161616;
  font-size: 20px;
  font-weight: 400;
  padding-bottom: 10px;
}

.detail-header-top-option a {
  color: #161616;
}

.detail-sign {
  color: #3368b2;
}


.summary-container {
  width: 100%;
  color: #161616;
  padding: 50px 0px;
  padding-bottom: 0;
}

.author-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.author-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.author-name {
  font-weight: bold;
  color: #0056b3;
  margin-right: 5px;
  font-size: 22px;
}

.follow-btn {
  font-size: 18px;
  padding: 2px 8px;
  border: 1px solid #ccc;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
}

.follow-topic {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.follow-text {
  font-weight: bold;
  font-size: 20px;
}

.topic-btn {
  background: #f6f6f6;
  border: 1px solid #ccc;
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
}

.divider {
  margin: 15px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.summary-section {
  margin-top: 10px;
}

.summary-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 20px;
}

.info-icon {
  font-size: 12px;
  background-color: #eee;
  border-radius: 50%;
  padding: 2px 5px;
  margin-left: 6px;
  cursor: pointer;
}

.summary-list {
  padding-left: 20px;
  font-size: 20px;
}

.summary-list li {
  margin-bottom: 12px;
  line-height: 1.5;
}

.dashed-divider {
  border: none;
  border-top: 1px dashed #c2c2c2;
  margin: 20px 0;
  /* Adjust spacing as needed */
}

.timestamp-share-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: #333;
}

.timestamps p {
  margin: 0;
  font-size: 16px;
  padding: 5px 0px;
}

.share-icons {
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.icon-btn img {
  width: 18px;
  height: 18px;
}

.detail-para {
  font-size: 20px;
  line-height: 1.6rem;
  color: #161616;
  margin: 0;
  padding: 8px 0px;
  font-family: 'selane-st-semi-bold';
}
.detail-para.blue{
  font-size: 18px;
  line-height: 1.6rem;
  color: #3368b2;
  margin: 0;
  padding: 0px 0px;
  font-weight: 600;
  font-family: 'selane-st-semi-bold';
}

.custom-line {
  border: none;
  border-top: 2px solid #cbcbcb;
  /* or any color you want */
  margin: 20px 0;
  /* optional spacing above and below */
}

.detail-section .curosel-section{
  padding-top: 0;
}
.detail-section .curosel-grid {
  flex: 0 0 calc((100% - 2 * 30px) / 3); /* 5 items + 4 gaps */
  height: auto;
  position: relative;
  border-radius: 25px;
  overflow: hidden;
}
.detail-section .headline-title{
  padding-bottom: 0px;
}
.swipe{
  margin: 0;
  font-size: 16px;
  color: #a3a3a3;
  padding: 10px 0px;
}
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.tag-btn {
  padding: 10px 20px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  color: #000;
  transition: all 0.2s ease-in-out;
}

.recommended-section {
  margin: 30px 30px;
}

.section-title {
  font-weight: bold;
  font-size: 18px;
  border-top: 3px solid #939393;
  padding-top: 8px;
  margin-bottom: 15px;
}

.recommended-grid {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid #ccc;
  padding: 20px 0px;
}

.recommended-card {
  width: 25%;
  border-right: 1px dotted #ccc;
  padding-right: 10px;
  box-sizing: border-box;
}

.recommended-card:last-child {
  border-right: none;
}

.image-wrapper {
  position: relative;
}

.ad-label {
  position: absolute;
  top: 4px;
  left: 4px;
  background-color: white;
  color: #000;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 4px;
  border: 1px solid #ccc;
}

.recommended-card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-text {
  font-size: 15px;
  font-weight: 500;
  margin-top: 10px;
}



.mini-head-section.detail {
  position: fixed;
  overflow: hidden;
  --scroll-line-width: 0%;
}

.mini-head-section.detail::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: var(--scroll-line-width);
  background-color: #3368B2;
  transition: width 0.3s ease-in-out;
  z-index: 10;
}





@media (max-width: 767px){
  .detail-minihead-text{
  display: none;
}
.mini-head-section.detail {
  align-items: center;
}
.detail-section {
  width: auto;
  padding: 40px 10px;
  margin: 0 auto;
  /* centers horizontally */
}
.recommended-section {
  margin: 30px 0px;
  padding: 0px 10px;
}
.recommended-grid {
  display: block;
}
.recommended-card {
  width: auto;
  border-right: none;
  padding-right: 0px;
  box-sizing: border-box;
}

}
@media (min-width: 768px) and (max-width: 991.98px){
    .detail-minihead-text{
  display: none;
}
.mini-head-section.detail {
  align-items: center;
}
.detail-section {
  width: auto;
  padding: 40px 10px;
  margin: 0 auto;
  /* centers horizontally */
}
.recommended-section {
  margin: 30px 0px;
  padding: 0px 10px;
}

.header-grid.b {
    padding: 0px 10px;
}
}