/* ========= HPSR.mx Blog Complete Styles ========= */

/* Post Header Styles - CRITICAL for proper header display */
.post-header .bg-img {
  height: 75vh;
  min-height: 480px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  align-content: end;
}

.post-header .bg-img .row {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 4;
}

.post-header .caption .tags a {
  padding: 7px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
}

.post-header .caption .tags a:hover {
  background: #fff;
  color: #1d1d1d !important;
}

/* Main Post Styles */
.main-post .info-area .tags span,
.main-post .info-area .share-icon span {
  font-size: 14px;
  margin-right: 5px;
  opacity: .7;
}

.main-post .info-area .tags a,
.main-post .info-area .share-icon a {
  padding: 7px 20px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 30px;
  margin-right: 5px;
  -webkit-transition: all .4s;
  -o-transition: all .4s;
  transition: all .4s;
  display: inline-block;
}

.main-post .info-area .share-icon a {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-post .info-area .share-icon a:hover {
  background: var(--main-color, #007bff);
  border-color: var(--main-color, #007bff);
  transform: translateY(-2px);
}

.main-post .info-area .tags a:hover,
.main-post .info-area .share-icon a:hover {
  background: var(--main-color);
  color: #000 !important;
  font-weight: 600;
}

.main-post .info-area .share-icon a {
  width: 35px;
  height: 35px;
  line-height: 35px;
  font-size: 11px;
  text-align: center;
  padding: 0;
}

.main-post .author-area {
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* Author area específico - diferente del general */
.main-post .author-area .author-img {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.main-post .author-area .author-img .img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
}

.main-post .author-area .author-img .img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Blog Header Styles */
.blog-hed {
    padding: 100px 0 50px;
}

.blog-hed .text-indent {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 0;
}

.bord-thin-bottom-light {
    border-bottom: 1px solid #e5e7eb;
}

.section-padding {
    padding: 100px 0;
}

/* Blog Main Section */
.blog-mp {
    padding: 80px 0;
}

.xlg-marg {
    margin-top: -100px;
    padding-top: 100px;
}

.main-blog .item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 80px;
    margin-bottom: 80px;
}

.main-blog .item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Post Info (Author & Date) */
.info {
    margin-bottom: 30px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info span:first-child {
    font-weight: 600;
    font-size: 1rem;
    display: block;
    line-height: 1.2;
}

.author-info .sub-color {
    font-size: 0.85rem;
    opacity: 0.7;
}

.date .sub-color {
    font-size: 0.9rem;
}

/* Featured Image */
.fit-img {
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
}

.fit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fit-img:hover img {
    transform: scale(1.05);
}

.main-blog .img {
    height: 400px;
    margin: 30px 0;
}

/* Post Content */
.cont h3 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 20px 0;
}

.cont h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cont h3 a:hover {
    color: var(--main-color);
}

.cont .text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6b7280;
    margin-top: 25px;
}

/* Tags and Reading Time */
.tag-link {
    color: var(--main-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.tag-link:hover {
    opacity: 0.7;
    color: var(--main-color);
}

.reading-time {
    font-size: 0.9rem;
}

/* Sidebar Styles */
.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  /*max-height: calc(100vh - 120px);*/
  overflow-y: auto
}

.sidebar .search-box {
  position: relative;
}

.sidebar .search-box input {
  color: #fff;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  width: 100%;
  background: transparent;
}

.sidebar .search-box input:focus {
  border-color: #fff;
}

.sidebar .search-box .icon {
  position: absolute;
  top: 50%;
  right: 15px;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.sidebar .widget {
  margin-top: 50px;
}

.sidebar .widget .title-widget {
  margin-bottom: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .widget.last-post-thum .item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 30px;
}

.sidebar .widget.last-post-thum .item:last-of-type {
  margin-bottom: 0;
}

.sidebar .widget.last-post-thum .item:hover .img a .date {
  opacity: 1;
}

.sidebar .widget.last-post-thum .item .img {
  width: 90px;
  height: 100px;
  border-radius: 5px;
  overflow: hidden;
}

.sidebar .widget.last-post-thum .item .img a {
  width: 100%;
  height: 100%;
  position: relative;
}

.sidebar .widget.last-post-thum .item .img a .date {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 14px;
  width: 50px;
  height: 50px;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  z-index: 3;
  opacity: 0;
  -webkit-transition: all .4s;
  -o-transition: all .4s;
  transition: all .4s;
}

.sidebar .widget.last-post-thum .item .img a .date span {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  line-height: 1;
}

.sidebar .widget.last-post-thum .item .img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.sidebar .widget.last-post-thum .item .cont {
  padding-left: 25px;
}

.sidebar .widget.last-post-thum .item .cont h6 {
  font-size: 17px;
}

.sidebar .widget.last-post-thum .item .cont .tag {
  font-size: 12px;
  padding: 5px 15px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}

/* Sidebar Tags Styles - FIXED */
.sidebar .widget.tags a {
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.02);
  margin: 2px 0;
  -webkit-transition: all .4s;
  -o-transition: all .4s;
  transition: all .4s;
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

.sidebar .widget.tags a:hover {
  background: var(--main-color) !important;
  color: #000 !important;
  font-weight: 600;
}

/* CTA Widget Styles - FIXED */
.sidebar .cta-widget .butn {
  transition: all 0.3s ease;
  text-decoration: none;
}

.sidebar .cta-widget .butn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.95) !important;
  color: #000;
  text-decoration: none;
}

.sidebar .cta-widget .butn:hover span {
    color: #000 !important;
}

/* Newsletter Widget Styles */
.sidebar .widget input.form-control {
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
}

.sidebar .widget input.form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.sidebar .widget input.form-control:focus {
    border-color: rgba(255,255,255,0.5);
    box-shadow: none;
    background: rgba(255,255,255,0.15);
}

/* Blog List Styles */
.blog-mp .bord {
  position: relative;
}

.blog-mp .bord:after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-mp .item {
  margin-bottom: 50px;
}

.blog-mp .item .info .author-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.blog-mp .item .info .author-info,
.blog-mp .item .info .date {
  font-size: 13px;
  text-transform: uppercase;
}

.blog-mp .item .info .author-info span,
.blog-mp .item .info .date span {
  display: block;
  line-height: 22px;
}

.blog-mp .item .info .author-info .sub-color {
  text-transform: capitalize !important;
}

.blog-mp .item .img {
  border-radius: 15px;
  height: 255px;
  overflow: hidden;
}

.blog-mp .main-blog .item {
  margin-bottom: 0;
}

.blog-mp .main-blog .item .img {
  height: 350px;
}

/* Main Post Content Styles - EXACT Hubfolio Template Styles */
.main-post .spec-letter {
    font-size: 60px;
    line-height: 50px;
    padding-right: 10px;
    float: left;
}

.main-post .text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #fff;
}

.main-post .text p {
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Headings - Hubfolio Style */
.main-post .text h1,
.main-post .text h2,
.main-post .text h3,
.main-post .text h4,
.main-post .text h5,
.main-post .text h6 {
    color: #fff;
    margin-top: 30px;
    margin-bottom: 10px;
}

.main-post .text h1 { font-size: 2.5rem; font-weight: 700; }
.main-post .text h2 { font-size: 2rem; font-weight: 600; }
.main-post .text h3 { font-size: 1.75rem; font-weight: 600; }
.main-post .text h4 { font-size: 1.5rem; font-weight: 600; }
.main-post .text h5 { font-size: 1.25rem; font-weight: 600; }
.main-post .text h6 { font-size: 1.1rem; font-weight: 600; }

/* Title wrapper - Hubfolio Style */
.main-post .title {
    margin-top: 30px;
    margin-bottom: 10px;
}

.main-post .title h4 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* Lists - EXACT Hubfolio Template */
.main-post .unorder-list li,
.main-post .order-list li,
.main-post .text ul li {
    margin-top: 10px;
    opacity: .7;
    padding-left: 15px;
    position: relative;
}

.main-post .unorder-list li:before,
.main-post .order-list li:before,
.main-post .text ul li:before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ccc;
    position: absolute;
    left: 0;
    top: 10px;
}

.main-post .order-list li,
.main-post .text ol li {
    padding-left: 0;
}

.main-post .order-list li:before,
.main-post .text ol li:before {
    display: none;
}

.main-post .order-list li span,
.main-post .text ol li span {
    font-size: 13px;
}

/* Remove default list styles */
.main-post .text ul,
.main-post .text ol {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.main-post .text ol {
    counter-reset: item;
}

.main-post .text ol > li {
    counter-increment: item;
    margin-top: 10px;
    opacity: .7;
    position: relative;
    padding-left: 0;
}

.main-post .text ol > li:before {
    content: counter(item, decimal-leading-zero) " -";
    font-size: 13px;
    color: var(--main-color);
    font-weight: 600;
    margin-right: 10px;
}

/* Blockquotes - EXACT Hubfolio Template */
.main-post .post-qoute,
.main-post .text blockquote {
    position: relative;
    padding: 40px;
    padding-left: 120px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 50px 0;
}

.main-post .post-qoute h6,
.main-post .text blockquote p {
    position: relative;
    font-size: 20px;
    line-height: 1.6;
    color: #fff;
    margin: 0;
}

.main-post .post-qoute h6:before,
.main-post .text blockquote p:before {
    content: '"';
    position: absolute;
    top: 80px;
    left: -100px;
    font-size: 180px;
    line-height: 0;
    color: rgba(255, 255, 255, 0.1);
}

.main-post .post-qoute .author,
.main-post .text blockquote cite {
    font-size: 14px;
    color: var(--main-color);
    margin-top: 20px;
    display: block;
    font-style: normal;
}

/* Images - EXACT Hubfolio Template */
.main-post .iner-img {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin: 50px 0;
}

.main-post .iner-img img,
.main-post .text img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    border-radius: 15px;
}

.main-post .text img {
    height: auto;
    margin: 30px 0;
    display: block;
    max-width: 100%;
}

/* Code Blocks - Hubfolio Style */
.main-post .text code {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--main-color);
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
}

.main-post .text pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-post .text pre code {
    background: transparent;
    padding: 0;
    color: #fff;
    font-size: 14px;
}

/* Tables - Hubfolio Style */
.main-post .text table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.main-post .text table th {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--main-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.main-post .text table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    opacity: 0.8;
}

.main-post .text table tr:last-child td {
    border-bottom: none;
}

/* Links - Hubfolio Style */
.main-post .text a {
    color: var(--main-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.main-post .text a:hover {
    opacity: 0.7;
}

/* Horizontal Rules */
.main-post .text hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 50px 0;
}

/* Strong and Emphasis */
.main-post .text strong {
    font-weight: 600;
    color: #fff;
}

.main-post .text em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 768px) {
    .main-post .post-qoute,
    .main-post .text blockquote {
        padding: 30px !important;
        padding-left: 30px !important;
    }
    
    .main-post .post-qoute h6:before,
    .main-post .text blockquote p:before {
        position: relative;
        left: 0;
        top: 0;
        font-size: 40px;
        display: block;
        margin-bottom: 10px;
    }
}

/* Utility Classes */
.sub-color {
    color: #8b8b8b;
    opacity: 0.8;
}

.fz-14 {
    font-size: 14px;
}

.text-u {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.mr-5 { margin-right: 5px; }
.mr-10 { margin-right: 10px; }
.mr-15 { margin-right: 15px; }
.ml-10 { margin-left: 10px; }
.ml-auto { margin-left: auto; }

.opacity-7 { opacity: 0.7; }
.opacity-50 { opacity: 0.5; }

.md-mb30 { margin-bottom: 30px; }
.md-mb80 { margin-bottom: 80px; }
.mb-15 { margin-bottom: 15px; }
.mb-80 { margin-bottom: 80px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }

.py-5 { padding: 3rem 0; }

/* Button Styles */
.butn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
}

.butn-bord {
    background: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
}

.butn-bord:hover {
    background: var(--main-color);
    color: white;
}

.butn-rounded {
    border-radius: 30px;
}

.butn-light {
    background: white;
    color: #000;
    border: none;
}

.butn-light:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    color: #000;
}

/* Pagination */
.pagination .page-link {
    color: var(--main-color);
    border: 1px solid #e5e7eb;
    padding: 10px 15px;
    margin: 0 3px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: white;
}

/* Loading States */
.spinner-border {
    color: var(--main-color) !important;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .post-header h1 {
    font-size: 30px !important;
  }
  
  .post-header .info {
    display: block !important;
  }
  
  .main-post .info-area {
    display: block !important;
  }
  
  .main-post .info-area .tags {
    margin-bottom: 15px;
  }
  
  .main-post .author-area {
    padding: 30px 15px;
  }
  
  .main-post .author-area .flex {
    display: block !important;
  }
  
  .main-post .author-area .author-img {
    margin-bottom: 15px;
  }

  .blog-hed {
    padding: 80px 0 40px;
  }
  
  .blog-hed .text-indent {
    font-size: 2rem;
  }
  
  .blog-mp {
    padding: 60px 0;
  }
  
  .main-blog .item {
    margin-bottom: 60px;
    padding-bottom: 60px;
  }
  
  .main-blog .img {
    height: 250px;
    margin: 20px 0;
  }
  
  .info {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .info .ml-auto {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .sidebar {
    position: static;
    margin-top: 80px;
    max-height: none;
  }
}

@media (max-width: 991px) {
    .blog-hed .text-indent {
        font-size: 2.5rem;
    }
    
    .main-blog .img {
        height: 300px;
    }
    
    .cont h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-hed .text-indent {
        font-size: 1.8rem;
    }
    
    .cont h3 {
        font-size: 1.3rem;
    }
    
    .main-blog .img {
        height: 200px;
    }
}