/* Header */
.site-header { 
  background: var(--ti-header-bg-color, #fff); 
  box-shadow: var(--ti-box-shadow-sm, 0 2px 4px rgba(0,0,0,0.05)); 
  position: sticky;
  top: 0;
  z-index: var(--ti-z-sticky, 1000);
}

.site-header .container {
  height: var(--ti-header-height, 70px);
}

.site-header .navbar-brand {
  padding: 0;
}

.site-header .nav {
  justify-content: center;
  flex-grow: 1;
  margin-right: 0;
  margin-left: 0;
}

.site-header .menu-item {
  display: flex;
  align-items: center;
}

.site-header .menu-item a { 
  text-transform: uppercase; 
  font-weight: 600; 
  color: var(--ti-text-color, #333); 
  margin: 0 0.85rem;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  position: relative;
  text-decoration: none;
  display: block;
  letter-spacing: var(--ti-letter-spacing, 0.02em);
}

/* Bottom border animation */
.site-header .menu-item a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--ti-primary-color, #eb4d36);
  transition: width var(--ti-transition-normal, 0.3s ease);
}

.site-header .menu-item a:hover::after,
.site-header .menu-item a:focus::after,
.site-header .current-menu-item a::after {
  width: 100%;
}

.site-header .menu-item a:hover,
.site-header .menu-item a:focus,
.site-header .current-menu-item a {
  color: var(--ti-primary-color, #eb4d36);
}

.site-header .btn-subscribe { 
  background-color: var(--ti-primary-color, #eb4d36); 
  border: none; 
  color: #fff; 
  text-transform: uppercase; 
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--ti-border-radius, 4px);
  font-size: 0.85rem;
}

.site-header .btn-subscribe:hover {
  background-color: var(--ti-link-hover-color, #d34430);
}

.site-header .search-icon i, 
.site-header .bi-list { 
  color: var(--ti-text-color, #333); 
  font-size: 1.25rem; 
}

.site-header .search-icon:hover i,
.site-header .btn-link:hover .bi-list {
  color: var(--ti-primary-color, #eb4d36);
}

.site-header .d-flex.align-items-center {
  white-space: nowrap;
}

/* Mobile menu */
#mobileMenu {
  border-top: 1px solid #eee;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

#mobileMenu .menu-item {
  padding: 0;
  border-bottom: 1px solid #eee;
}

#mobileMenu .menu-item a {
  padding: 0.75rem 1rem;
  display: block;
}

#mobileMenu .btn-subscribe {
  margin: 0 1rem 1rem;
  width: calc(100% - 2rem);
}

/* Footer */
.site-footer { 
  background-color: var(--ti-footer-bg-color, #000); 
  color: var(--ti-footer-text-color, #fff); 
  padding: 4rem 0 1rem;
}

.site-footer h5 {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;
}

.site-footer p {
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 90%;
}

.site-footer h6 {
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.site-footer .social-icons {
  display: flex;
  margin-top: 1.5rem;
  justify-content: flex-start;
}

.site-footer .social-icons a { 
  font-size: 1.5rem; 
  margin-right: 1.5rem; 
  color: #fff;
}

.site-footer .social-icons a:hover {
  color: var(--ti-primary-color, #eb4d36);
}

/* Footer links */
.site-footer .list-unstyled {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer .list-unstyled li {
  margin-bottom: 1.1rem;
}

.site-footer .list-unstyled a {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
}

/* Footer link animation */
.site-footer .list-unstyled a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--ti-primary-color, #eb4d36);
  transition: width var(--ti-transition-normal, 0.3s ease);
}

.site-footer .list-unstyled a:hover::after {
  width: 100%;
}

.site-footer a { 
  color: #fff; 
  text-decoration: none; 
}

.site-footer a:hover { 
  color: #eb4d36;
  text-decoration: none; 
}

.site-footer hr {
  border-color: #333;
  margin: 1.5rem 0;
  opacity: 0.2;
  border-top-width: 1px;
}

.site-footer .container > hr {
  margin-top: 2rem;
}

.site-footer .d-flex.justify-content-between,
.site-footer .d-flex.flex-column {
  font-size: 0.8rem;
}

.site-footer .d-flex p {
  margin-bottom: 0;
  color: #fff;
  font-size: 0.8rem;
}

.site-footer .d-flex.flex-column a,
.site-footer .d-flex.justify-content-between a {
  color: #aaa;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

/* Bottom footer links animation */
.site-footer .d-flex.flex-column a::after,
.site-footer .d-flex.justify-content-between a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #eb4d36;
  opacity: 0.7;
  transition: width 0.3s ease;
}

.site-footer .d-flex.flex-column a:hover::after,
.site-footer .d-flex.justify-content-between a:hover::after {
  width: 100%;
}

.site-footer .d-flex a:hover {
  color: #eb4d36;
}

/* Subscribe Form in Footer */
.site-footer .subscribe-section {
  margin-bottom: 3rem;
}

.site-footer .subscribe-section h6 {
  font-size: 1.2rem;
  text-transform: none;
  margin-bottom: 1.25rem;
  letter-spacing: 0;
}

.site-footer form {
  display: flex;
}

.site-footer form input {
  height: 48px;
  background-color: transparent;
  border: 1px solid #333;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  flex-grow: 1;
  border-radius: 0;
}

.site-footer form input::placeholder {
  color: #ccc;
}

.site-footer form input:focus {
  outline: none;
  box-shadow: none;
  border-color: #eb4d36;
  background-color: transparent;
  color: #fff;
}

.site-footer .btn-subscribe {
  height: 48px;
  background-color: #eb4d36;
  border: none;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  border-radius: 0;
  letter-spacing: 0.05em;
}

.site-footer .btn-subscribe:hover {
  background-color: #d34430;
}

/* Content */
.site-content { padding: var(--ti-content-spacing, 30px) 0; }

/* Logo Styling */
.navbar-brand img,
.navbar-brand .svg-logo {
  min-height: 45px;
  width: auto;
  height: auto;
  max-width: 100%;
}

.svg-logo {
  display: block;
}

/* Single Post Audio Player Component Styles */
.single-post-container {
  position: relative;
}

.featured-image-container {
  display: flex;
  width: 100%;
  height: 480px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.audio-player-container {
  display: flex;
  padding: 20px;
  align-items: center;
  gap: 18px;
  position: absolute;
  bottom: 0px;
  background: #C72B1C;
  border-radius: 0;
  box-shadow: none;
  left: 0;
  right: 0;
  max-width: 50%;
}

.listen-text {
  color: #FFF;
  font-family: "Sofia Pro", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 30px; /* 125% */
  letter-spacing: 0.24px;
  white-space: nowrap;
}

.play-pause-btn {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.play-pause-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.play-pause-btn.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Audio waveform visualization */
.audio-waveform-container {
  flex: 1 1 auto;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 20px;
}

.waveform-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  cursor: pointer;
  user-select: none;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.waveform-bars:hover {
  background: rgba(255, 255, 255, 0.1);
}

.waveform-bars .bar {
  width: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
  transition: all 0.2s ease;
  transform-origin: bottom;
  will-change: transform, background, opacity;
}

.waveform-bars .bar:nth-child(1) { height: 15px; }
.waveform-bars .bar:nth-child(2) { height: 25px; }
.waveform-bars .bar:nth-child(3) { height: 35px; }
.waveform-bars .bar:nth-child(4) { height: 20px; }
.waveform-bars .bar:nth-child(5) { height: 30px; }
.waveform-bars .bar:nth-child(6) { height: 40px; }
.waveform-bars .bar:nth-child(7) { height: 25px; }
.waveform-bars .bar:nth-child(8) { height: 15px; }
.waveform-bars .bar:nth-child(9) { height: 35px; }
.waveform-bars .bar:nth-child(10) { height: 20px; }
.waveform-bars .bar:nth-child(11) { height: 30px; }
.waveform-bars .bar:nth-child(12) { height: 40px; }
.waveform-bars .bar:nth-child(13) { height: 25px; }
.waveform-bars .bar:nth-child(14) { height: 35px; }
.waveform-bars .bar:nth-child(15) { height: 20px; }
.waveform-bars .bar:nth-child(16) { height: 15px; }
.waveform-bars .bar:nth-child(17) { height: 30px; }
.waveform-bars .bar:nth-child(18) { height: 35px; }
.waveform-bars .bar:nth-child(19) { height: 25px; }
.waveform-bars .bar:nth-child(20) { height: 40px; }
.waveform-bars .bar:nth-child(21) { height: 20px; }
.waveform-bars .bar:nth-child(22) { height: 30px; }
.waveform-bars .bar:nth-child(23) { height: 15px; }
.waveform-bars .bar:nth-child(24) { height: 35px; }
.waveform-bars .bar:nth-child(25) { height: 25px; }
.waveform-bars .bar:nth-child(26) { height: 40px; }
.waveform-bars .bar:nth-child(27) { height: 20px; }
.waveform-bars .bar:nth-child(28) { height: 30px; }
.waveform-bars .bar:nth-child(29) { height: 15px; }
.waveform-bars .bar:nth-child(30) { height: 35px; }
.waveform-bars .bar:nth-child(31) { height: 25px; }
.waveform-bars .bar:nth-child(32) { height: 20px; }
.waveform-bars .bar:nth-child(33) { height: 30px; }
.waveform-bars .bar:nth-child(34) { height: 40px; }
.waveform-bars .bar:nth-child(35) { height: 15px; }
.waveform-bars .bar:nth-child(36) { height: 25px; }
.waveform-bars .bar:nth-child(37) { height: 35px; }
.waveform-bars .bar:nth-child(38) { height: 20px; }
.waveform-bars .bar:nth-child(39) { height: 30px; }
.waveform-bars .bar:nth-child(40) { height: 25px; }

/* Playing animation */
.waveform-bars.playing .bar {
  background: #FFF;
  animation: waveform-pulse 1.5s ease-in-out infinite;
}

.waveform-bars.playing .bar:nth-child(odd) {
  animation-delay: 0.1s;
}

.waveform-bars.playing .bar:nth-child(even) {
  animation-delay: 0.2s;
}

@keyframes waveform-pulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* Skip and restart buttons */
.skip-btn,
.restart-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
  position: relative;
  width: 56px;
  height: 56px;
  box-sizing: border-box;
}

.skip-btn:hover,
.restart-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.skip-btn {
  flex-direction: column;
  gap: 0;
}

.skip-text {
  color: #FFF;
  font-size: 14px;
  font-weight: 700;
  z-index: 2;
}

/* Ensure skip forward button spacing */
.skip-forward {
  margin-left: 5px;
}

.skip-back {
  margin-right: 5px;
}

.audio-unavailable {
  opacity: 0.7;
}

/* Article Content Component Styles */
.article-content-wrapper {
  padding: 60px 0;
  background: #fff;
}

.article-content-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Article Header */
.article-header {
  margin-bottom: 50px;
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 30px;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
  color: #1a1a1a;
}

.article-meta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.meta-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.article-excerpt {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #C72B1C;
}

.article-excerpt p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  font-style: italic;
}

/* Article Body */
.article-body {
  margin-bottom: 50px;
}

.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content h2, 
.article-content h3, 
.article-content h4 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.article-content h2 {
  font-size: 2rem;
  font-weight: 600;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.article-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

.article-content blockquote {
  border-left: 4px solid #C72B1C;
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  font-size: 20px;
  color: #555;
}

.article-content ul, 
.article-content ol {
  margin-bottom: 24px;
  padding-left: 30px;
}

.article-content li {
  margin-bottom: 8px;
}

/* Article Footer */
.article-footer {
  border-top: 1px solid #eee;
  padding-top: 30px;
  margin-top: 50px;
}

.article-tags,
.article-categories {
  margin-bottom: 30px;
}

.tags-container,
.categories-container {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tags-label,
.categories-label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.tags-list,
.categories-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag-link,
.category-link {
  background: #f1f1f1;
  color: #666;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag-link:hover,
.category-link:hover {
  background: #C72B1C;
  color: #fff;
  text-decoration: none;
}

/* Share Section */
.article-share {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.share-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  font-size: 14px;
}

.share-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.share-btn.twitter {
  background: #1da1f2;
  color: #fff;
}

.share-btn.facebook {
  background: #4267b2;
  color: #fff;
}

.share-btn.linkedin {
  background: #0077b5;
  color: #fff;
}

.share-btn.copy-link {
  background: #6c757d;
  color: #fff;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #fff;
}

/* Author Page Styles */
.author-posts .post-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-posts .post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-posts .post-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.author-posts .post-title a {
  color: #333;
  text-decoration: none;
}

.author-posts .post-title a:hover {
  color: var(--ti-primary-color, #eb4d36);
}

.author-posts .post-meta {
  font-size: 0.875rem;
  color: #666;
}

.author-posts .post-meta a {
  color: var(--ti-primary-color, #eb4d36);
  text-decoration: none;
}

.author-posts .post-meta a:hover {
  text-decoration: underline;
}

.author-posts .post-excerpt {
  color: #555;
  line-height: 1.6;
}

.author-bio-section {
  margin-bottom: 3rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  .featured-image-container {
    height: 300px;
  }
  
  .audio-player-container {
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 15px;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
  }
  
  .listen-text {
    font-size: 18px;
    line-height: 24px;
    order: 1;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .play-pause-btn {
    order: 2;
  }
  
  .audio-waveform-container {
    order: 3;
    margin: 0 10px;
    flex: 1;
    min-width: 150px;
  }
  
  .skip-btn,
  .restart-btn {
    order: 4;
    width: 35px;
    height: 35px;
  }
  
  .waveform-bars {
    height: 30px;
  }
  
  .waveform-bars .bar {
    width: 2px;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 15px;
  }
  
  .article-content {
    font-size: 16px;
  }
  
  .share-buttons {
    justify-content: center;
  }
  
  .share-btn {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .audio-player-container {
    padding: 12px;
    gap: 8px;
  }
  
  .listen-text {
    font-size: 16px;
    line-height: 20px;
  }
  
  .play-pause-btn {
    width: 40px;
    height: 40px;
  }
  
  .skip-btn,
  .restart-btn {
    width: 30px;
    height: 30px;
  }
  
  .waveform-bars {
    height: 25px;
    gap: 1px;
  }
  
  .waveform-bars .bar {
    width: 2px;
  }
  
  .skip-text {
    font-size: 10px;
    top: 6px;
  }
  
  .article-content-wrapper {
    padding: 40px 0;
  }
  
  .tags-container,
  .categories-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .share-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .share-btn {
    justify-content: center;
  }
}

/* Make the SVG icon fill most of the circle and sit under the numeric label */
.skip-btn svg {
  width: 80%;
  height: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
