/*
Theme Name: GBMusical
Theme URI: https://gbt3k.com
Author: GBT3K
Author URI: https://gbt3k.com
Description: A musical-themed WordPress theme crafted by GBT3K.
Version: 1.1.5
License: Proprietary
License URI: https://gbt3k.com
Text Domain: musical-by-gbt3k
Tags: music, creative, responsive, blog, portfolio, news
*/


/*========================================
  CSS Variables & Dark Mode Overrides
========================================*/
:root {
  color-scheme: light;
  /* Light mode defaults */
  --bg-color: #f4f4f4;
  --text-color: #333;
  --header-bg: #fff;
  --link-color: #08960b;
  --accent-color: #08960b;
  --card-bg: #fff;
  --card-text: #333;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --search-bg: #08960b;
  --button-bg: #08960b;
  --button-text: #fff;
  --button-bg-hover: #027c05;
  --mobile-nav-bg: #333;
  --mobile-menu-bg: #fff;
  --mobile-menu-link-color: #333;
  --footer-bg: #222;
  --footer-text: #f2f2f2;
  --footer-link-color: #ccc;
  --footer-link-hover: #11b916;
  --search-tg-border: #e6e6e6;
  --comment-bottom-border: #e0e0e0;
  --text-shadow-color: #035405;
  --divider-color: #eaeaea;
  --hover-bg: #f7f7f7;
}

html.dark-mode,
body.dark-mode {
  color-scheme: dark;
  /* Dark mode overrides */
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --header-bg: #1f1f1f;
  --link-color: #e0e0e0;
  --accent-color: #08960b;
  --card-bg: #1e1e1e;
  --card-text: #e0e0e0;
  --card-shadow: rgba(0, 0, 0, 0.5);
  --search-bg: #08960b;
  --button-bg: #08960b;
  --button-text: #fff;
  --button-bg-hover: #027c05;
  --mobile-nav-bg: #1f1f1f;
  --mobile-menu-bg: #1f1f1f;
  --mobile-menu-link-color: #e0e0e0;
  --footer-bg: #000;
  --footer-text: #888;
  --footer-link-color: #888;
  --footer-link-hover: #08960b;
  --divider-color: #2a2a2a;
  --hover-bg: #252525;
}

/*========================================
  Reset & Base Styles
========================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arimo', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding-top: 80px; /* Space for fixed header */
}

/* ==========================
   TYPOGRAPHY & BASE ELEMENTS
=========================== */
body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea {
  font-family: 'Arimo', sans-serif;
  color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--button-bg-hover);
}

a:hover.share-btn {
    color: #fff;
  }

button {
  font-size: 1em;
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: 4px;
  transition: background 0.3s ease;
}
button:hover {
  background: var(--button-bg-hover);
}

input, textarea {
  font-size: 1em;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  background: var(--card-bg);
  color: var(--text-color);
}
input:focus, textarea:focus {
  border-color: var(--accent-color);
}

body.dark-mode input, 
body.dark-mode textarea {
  background: var(--card-bg);
  color: var(--card-text);
  border: 1px solid #444;
}

/*========================================
  Header & Navigation
========================================*/
.site-header {
  background: var(--header-bg);
  color: var(--link-color);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--divider-color);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 25px;
  max-width: 1260px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .header-container {
    padding: 12px 15px;
  }
}

.theme-toggle button {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.1em;
  cursor: pointer;
  margin-right: 14px;
  padding: 0;
}

#theme-toggle i {
  height: 18px;
  width: 18px;
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: 150px;
  transition: opacity 0.2s ease;
}

@media (max-width: 600px) {
  .logo img {
    height: 45px;
  }
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav .nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.95em;
  font-weight: 500;
  transition: color 0.2s;
  padding: 8px 12px;
  display: block;
  border-radius: 4px;
}

.nav-links li a:hover {
  color: var(--accent-color);
}

/* Dropdown */
.nav-links .has-dropdown {
  position: relative;
}

.nav-links .dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--divider-color);
  border-radius: 6px;
  display: none;
  min-width: 180px;
  padding: 6px 0;
  z-index: 1000;
}

.nav-links .has-dropdown:hover > .dropdown {
  display: block;
}

.nav-links .dropdown li {
  list-style: none;
}

.nav-links .dropdown li a {
  padding: 8px 14px;
  display: block;
  color: var(--text-color);
  font-size: 0.9em;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
}

.nav-links .dropdown li a:hover {
  background: var(--accent-color);
  color: #fff;
  border-radius: 0;
}

.nav-links .has-dropdown > a i {
  margin-left: 4px;
  font-size: 0.8em;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
}

/*========================================
  Search Wrapper & Toggle
========================================*/
#search-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.1em;
  cursor: pointer;
  padding: 0;
}

.search-wrapper {
  position: relative;
  display: inline-block;
}

/* Hide search form by default */
.search-form {
  display: none;
}

/* Desktop version: overlay the search form without affecting layout */
@media (min-width: 769px) {
  .search-wrapper.active .search-form {
    display: inline-flex;
    align-items: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--search-bg);
    border-radius: 6px;
    padding: 0 5px;
    z-index: 10;
  }
  
  .search-form input {
    width: 180px;
    padding: 8px;
    font-size: 0.9em;
    border: 1px solid var(--search-tg-border);
    border-radius: 3px;
    outline: none;
  }
  
  .search-form button {
    /* Using a single set of properties for the close button */
    background-color: #000;
    color: #fff;
    font-size: 0.8em;
    margin-left: 5px;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    padding: 2px 5px;
  }
}

@media (max-width: 768px) {
  /* When search is active on mobile, overlay it on top of header elements */
  .search-wrapper.active .search-form {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 20px;
    background-color: var(--search-bg);
    z-index: 1100;
    align-items: center;
  }

  .search-form input {
    flex: 1;
    padding: 8px;
    font-size: 0.9em;
    border: 1px solid var(--search-tg-border);;
    border-radius: 3px;
    outline: none;
  }

  .search-form button {
    background-color: #000;
    color: #fff;
    font-size: 0.8em;
    margin-left: 5px;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    padding: 2px 5px;
  }
}

/*========================================
  Responsive: Search Plus (Mobile)
========================================*/
@media (min-width: 769px) {
  .searchplus { 
    display: none;
  }
}

@media (max-width: 768px) {
  .searchplus {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    background: var(--mobile-menu-bg);
    border: 1px solid #ddd;
    box-sizing: border-box;
    margin: 70px auto 0;
    max-width: 350px;
    border-radius: 5px;
  }
  
  .searchplus-category {
    width: 90px;
    font-size: 1em;
    padding: 8px 30px 8px 0;
    border: none;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23333' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 8px center;
    outline: none;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    color: var(--accent-color);
  }

  .searchplus-input {
    flex: 1;
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin: 0 5px;
    outline: none;
    width: 100%;
  }

  .searchplus-submit {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 8px 12px;
    font-size: 1em;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .searchplus-submit:hover {
    background: var(--button-bg-hover);
  }
}

/*========================================
  Mobile Navigation & Icons Menu
========================================*/
.mobile-nav {
  display: none;
  background: var(--mobile-nav-bg);
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li {
  border-bottom: 1px solid #444;
}

.mobile-nav-links li a {
  display: block;
  padding: 15px 20px;
  color: var(--link-color);
  text-decoration: none;
  transition: background 0.3s ease;
}

.mobile-nav-links li a:hover {
  background: #444;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
}

.mobile-icons-menu {
  display: none;
  background: var(--mobile-menu-bg);
  border-top: 1px solid #e0e0e0;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mobile-icons-menu ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-icons-menu li {
  text-align: center;
}

.mobile-icons-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--mobile-menu-link-color);
  font-size: 13px;
  gap: 10px;
  font-weight: bold;
}

.mobile-icons-menu i {
  font-size: 1.5em;
  margin-bottom: 3px;
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .mobile-icons-menu {
    display: block;
  }
  .homepage {
    margin: 0 5px 0 5px !important;
  }
}

/*========================================
  Homepage & Layout
========================================*/
.homepage {
  max-width: 1200px;
  margin: 20px auto;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 3fr 1.3fr;
  gap: 20px;
  align-items: start;
}

.main-content {
  background: var(--card-bg);
  color: var(--card-text);
  padding: 20px;
  border-radius: 7px;
  box-shadow: 0 2px 30px rgba(0,0,0,0.05);
  min-width: 0;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--divider-color);
  margin: 0 0 28px;
}

.page-divider {
    border: none;
    border-top: 1px solid #d7d7d759;
    margin: 0 0 10px;
  }

/*========================================
  Featured Section
========================================*/
.featured-section {
  display: grid;
  grid-template-columns: 4fr 2fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .featured-section {
    grid-template-columns: 1fr;
  }
}

.hero-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-bg);
}

.hero-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero-img {
    height: 240px;
    min-height: unset;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 35%, transparent 70%);
  display: flex;
  align-items: flex-end;
}

.hero-meta {
  padding: 20px;
  width: 100%;
}

.hero-category {
  display: inline-block;
  font-size: 0.68em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: var(--accent-color);
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
  text-decoration: none;
}

.hero-title {
  font-size: 1.45em;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.15em;
  }
}

.hero-title a {
  color: #fff;
}

.hero-title a:hover {
  color: rgba(255,255,255,0.85);
}

.hero-date {
  display: block;
  font-size: 0.78em;
  color: rgba(255,255,255,0.65);
}

.featured-aside {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
}

.aside-post {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--divider-color);
}

.aside-post:last-child {
  border-bottom: none;
}

.aside-post:hover {
  background: var(--hover-bg);
}

.aside-thumb {
  width: 82px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.aside-info {
  flex: 1;
  min-width: 0;
}

.aside-title {
  font-size: 0.88em;
  font-weight: 600;
  margin: 0 0 5px;
  line-height: 1.35;
}

.aside-title a {
  color: var(--text-color);
}

.aside-title a:hover {
  color: var(--accent-color);
}

.aside-date {
  font-size: 0.75em;
  color: #999;
}

/*========================================
  Module Headers
========================================*/
.module-section {
  margin-bottom: 28px;
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--accent-color);
  border-radius: 5px;
  margin-bottom: 16px;
  border: none;
}

.module-title {
  font-size: 1.05em;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.module-more {
  font-size: 0.82em;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  margin-right: 0;
}

.module-more:hover {
  color: #fff;
}

/*========================================
  Latest Posts List
========================================*/
.post-list {
  display: flex;
  flex-direction: column;
}

.latest-post {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider-color);
}

.latest-post:first-child {
  padding-top: 4px;
}

.latest-post:last-child {
  border-bottom: 1px solid var(--divider-color);
}

.latest-post-thumb {
  width: 120px;
  height: 84px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  display: block;
}

@media (max-width: 768px) {
  .latest-post-thumb {
    width: 90px;
    height: 66px;
  }
}

.latest-post-body {
  flex: 1;
  min-width: 0;
}

.latest-post-cat {
  font-size: 0.68em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.latest-post-cat a {
  color: inherit;
}

.latest-post-title {
  font-size: 1em;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .latest-post-title {
    font-size: 0.88em;
  }
}

.latest-post-title a {
  color: var(--text-color);
}

.latest-post-title a:hover {
  color: var(--accent-color);
}

.latest-post-date {
  font-size: 0.78em;
  color: #999;
}

.load-more-wrap {
  text-align: center;
  padding: 24px 0 8px;
}

.load-more-btn {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-size: 0.9em;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.load-more-btn:hover {
  background: var(--accent-color);
  color: #fff;
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/*========================================
  Pagination (archive/search pages)
========================================*/
.pagination {
  text-align: center;
  margin: 20px 0;
}

.pagination ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination ul li {
  margin: 3px 5px;
  font-size: 14px;
}

.pagination ul li a {
  text-decoration: none;
  color: var(--text-color);
  padding: 3px 7px;
  border: 1px solid var(--divider-color);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.pagination ul li a:hover,
.pagination ul li a.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

/*========================================
  Video Section
========================================*/
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.video-card {
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--divider-color);
}

.video-thumb-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.18);
}

.play-icon i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #111;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.28);
}

.video-card:hover .play-icon {
  background: rgba(0,0,0,0.3);
}

.video-card:hover .play-icon i {
  background: rgba(255,255,255,1);
}

.video-details {
  padding: 10px 12px;
  border-top: 1px solid var(--divider-color);
}

.video-title {
  margin: 0;
}

h3.video-title a {
  color: var(--text-color);
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.35;
}

h3.video-title a:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  h3.video-title a {
    font-size: 0.78em;
  }
}

/*========================================
  Sidebar
========================================*/
.sidebar {
  min-width: 0;
}

.sidebar-section {
  margin-bottom: 0;
}

/*========================================
  Responsive: Homepage Layout
========================================*/
@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    margin-top: 35px;
  }
  .main-content {
    padding: 15px;
  }
  .sidebar {
    width: 100%;
    margin-top: 20px;
    padding: 0;
  }
}

/*========================================
  Trending Posts Sidebar
========================================*/
.trending-posts {
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
}

.trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
}

.trending-item {
  border-bottom: 1px solid var(--divider-color);
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: var(--text-color);
}

.trending-item a:hover {
  background: var(--hover-bg);
}

.trending-item a:hover .trending-title {
  color: var(--accent-color);
}

.rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.72em;
  font-weight: 700;
  flex-shrink: 0;
  padding: 0;
}

.trending-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.trending-info {
  flex: 1;
  min-width: 0;
}

.trending-title {
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.3;
  display: block;
  margin-bottom: 3px;
}

.trending-artist {
  font-size: 0.75em;
  color: #999;
  font-weight: 400;
  display: block;
}

/*========================================
  Footer
========================================*/
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 20px 24px;
  margin-top: 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 32px;
}

.footer-section {
  flex: 1;
  min-width: 180px;
}

.footer-section h3 {
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-color);
  margin-bottom: 14px;
}

.footer-section p {
  color: var(--footer-text);
  font-size: 0.88em;
  line-height: 1.7;
}

.site-footer p {
  color: var(--footer-text);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 9px;
  font-size: 0.88em;
}

.site-footer a,
.footer-section ul li a {
  text-decoration: none;
  color: var(--footer-link-color);
  transition: color 0.2s;
}

.site-footer a:hover,
.footer-section ul li a:hover {
  color: var(--footer-link-hover);
}

/* Social Icons */
.footer-social ul {
  display: flex;
  gap: 10px;
}

.footer-social ul li a {
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: var(--footer-text);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-social ul li a:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px;
  font-size: 0.8em;
  color: var(--footer-text);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom a {
  color: var(--footer-link-hover);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--footer-link-hover);
}

@media (max-width: 768px) {
  .site-footer {
    padding: 32px 15px 20px;
  }
  .footer-container {
    flex-direction: column;
    gap: 24px;
  }
  .footer-section {
    width: 100%;
  }
}

/* Single Post Page Specific Styles */
.single-post-wrapper {
  max-width: 1200px;
  margin: 20px auto;
  gap: 20px;
}

.breadcrumbs {
  font-size: 0.9em;
  margin-bottom: 15px;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--accent-color);
}

.breadcrumbs .current {
  color: #aaa;
}

.post-header {
  margin-bottom: 20px;
}

.post-title {
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--card-text);
}

.spost-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  color: #888;
  border-bottom: 1px solid #ddd; /* Adds a straight line separator */
  padding-bottom: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap; /* Ensures it adjusts properly on smaller screens */
}

/* Left section: Author details and date */
.meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.author {
  display: flex;
  align-items: center;
  gap: 5px;
}

.author a {
  text-decoration: none;
  color: var(--accent-color);
}

.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.verified-badge {
  width: 16px;
  height: 16px;
  margin-left: -3px;
}

/* Right section: Comment icon and count */
.meta-right {
  display: flex;
  align-items: center;
}

.comment-link {
  text-decoration: none;
  color: #888;
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment-link i {
  font-size: 1em;
}

/* Ensure everything stays on the same line, even on mobile */
@media (max-width: 600px) {
  .spost-meta {
    flex-wrap: nowrap; /* Prevents wrapping */
  }
  .meta-left {
    flex-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .meta-right {
    margin-left: auto; /* Pushes it to the right on small screens */
  }
}

/* Top Share Section */
.top-share {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 30px;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  font-size: 1.1em;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.facebook  { background-color: #1877F2; }
.facebook:hover  { background-color: #1359b1; }
.twitter   { background-color: #000; }
.twitter:hover   { background-color: #222; }
.whatsapp  { background-color: #25D366; }
.whatsapp:hover  { background-color: #1da851; }
.pinterest { background-color: #E60023; }
.pinterest:hover { background-color: #b4001c; }
.copy-link { background-color: #555; }
.copy-link:hover { background-color: #333; }
.linkedin  { background-color: #0077b5; }
.linkedin:hover  { background-color: #005582; }

@media (max-width: 600px) {
  .share-btn {
    width: 40px;
    height: 30px;
    font-size: 1em;
  }
}

.featured-image {
  position: relative;
  margin-bottom: 20px;
}

.featured-image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

@media (max-width: 768px) {
  .featured-image img {
    max-height: 280px;
  }
}

.featured-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 15px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.9em;
  text-align: left;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-sizing: border-box;
}

/* Bottom Social Share */
.social-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.social-share span {
  font-size: 1em;
  margin-right: 10px;
  color: var(--card-text);
}

.social-share .share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1em;
}

@media (max-width: 600px) {
  .social-share { gap: 8px; }
  .social-share .share-btn {
    width: 36px;
    height: 36px;
    font-size: 1em;
  }
}

/* Song Info Table */
.song-info {
  background: var(--card-bg);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--card-shadow);
  margin-bottom: 20px;
}

.song-info ul {
  list-style-type: disc; /* Adds dot bullets */
  padding-left: 18px;
  margin: 0;
}

.song-info li {
  font-size: 0.95em;
  color: var(--card-text);
  padding: 6px 0;
}

.song-info strong {
  font-weight: 600;
  color: var(--text-color);
  margin-right: 5px;
}

.song-info span {
  color: var(--text-color);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
  .song-info {
    padding: 12px 15px;
  }
  
  .song-info ul {
    padding-left: 15px;
  }
  
  .song-info li {
    font-size: 0.9em;
  }
}

/* Post Content */
.post-content p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--card-text);
    font-size: 0.95em;
    padding-left: 5px !important;
  }
  
  .post-content p:first-of-type {
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--card-text);
    font-weight: bold;
  }

.post-content ul,
.post-content ol,
.page-body ul,
.page-body ol {
  margin: 0 0 18px 24px;
  padding-left: 18px;
  color: var(--card-text);
}

.post-content ol,
.page-body ol {
  list-style: decimal;
}

.post-content ul,
.page-body ul {
  list-style: disc;
}

.post-content li,
.page-body li {
  margin-bottom: 8px;
  font-size: 0.95em;
  line-height: 1.65;
  color: var(--card-text);
}

.post-content li::marker,
.page-body li::marker {
  color: var(--accent-color);
  font-weight: 700;
}

.post-content li > ul,
.post-content li > ol,
.page-body li > ul,
.page-body li > ol {
  margin-top: 8px;
  margin-bottom: 0;
}

.post-content ol ol,
.page-body ol ol {
  list-style: lower-alpha;
}

.post-content ol ol ol,
.page-body ol ol ol {
  list-style: lower-roman;
}

@media (max-width: 600px) {
  .post-content ul,
  .post-content ol,
  .page-body ul,
  .page-body ol {
    margin-left: 18px;
    padding-left: 14px;
  }
}

/* ==========================
   AUDIO PLAYER FIX 
========================== */

/* Prevent Global Styles from Affecting Audio Player */
.audio-player h2,
.audio-player p {
  margin: 0; /* Removes unwanted global margin */
  padding: 0; /* Removes unwanted global padding */
  line-height: normal !important; /* Resets line height */
}

.audio-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 20px auto;
  height: 110px;
  padding: 15px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--card-shadow);
  border: 1px solid var(--text-color);
}

/* Left Section: Thumbnail & Song Info */
.player-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  margin-top: -10px !important;
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: -10px !important;
}

.song-title {
  font-size: 1em !important;
  font-weight: 700;
  padding-top: 5px !important;
}

.artist-name {
  font-size: 0.75em !important;
  color: var(--text-color) !important;
}

/* Right Section: Genre & Year */
.player-right {
  gap: 10px;
}

p.genre {
  font-size: 0.75em !important;
  font-weight: 600 !important;
  color: var(--accent-color) !important;
  margin-top: -25px !important;
  margin-bottom: 5px !important;
}

p.year {
  font-size: 0.75em;
  color: #888;
}

/* Player Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: -33px !important;
}

/* Keep Buttons Consistent */
.player-btn {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  font-size: 1.0em;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
  color: var(--text-color);
}

.play-btn {
  font-size: 1.3em;
  width: 50px;
  height: 50px;
}

.player-btn:hover {
  opacity: 0.7;
}

/* Custom Progress Bar */
.progress-container {
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Progress Bar Animation */
.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-color);
  transition: width 0.2s linear;
}

/* Time Info */
.time-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.65em;
  color: #777;
  margin-top: 3px;
  width: 100%;
}

.time-info span {
  font-weight: 500;
}

/* Download Section */
.download-section {
  text-align: center;
  margin-top: 15px;
}

/* Download Button */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background 0.3s ease;
  font-weight: bold;
  text-shadow: 1px 2px 2px var(--text-shadow-color);
}

.download-btn i {
  font-size: 1em;
  color: var(--button-text);
}

a.download-btn:hover {
  color: var(--button-text);
  background: var(--button-bg-hover);
}

/* ==========================
   MOBILE RESPONSIVENESS
========================== */

@media (max-width: 600px) {
  .audio-player {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    height: auto;
    padding: 15px 10px 10px 10px;
  }

  .player-left {
    flex-direction: row;
    gap: 8px;
  }

  .player-thumb {
    width: 40px;
    height: 40px;
  }

  .player-info {
    gap: 3px;
  }

  .song-title {
    font-size: 0.9em !important;
  }

  .artist-name {
    font-size: 0.65em !important;
  }

  .player-right {
    font-size: 0.75em;
  }
  
  p.genre {
    margin-top: -15px;
    margin-bottom: 5px;
  }

  .player-controls {
    margin-top: -5px;
    gap: 8px;
  }

  .player-btn {
    font-size: 0.9em;
    width: 35px;
    height: 35px;
  }

  .play-btn {
    font-size: 1.2em;
    width: 40px;
    height: 40px;
  }

  .progress-container {
    margin-top: 3px;
    height: 4px;
  }

  .time-info {
    font-size: 0.75em;
  }

  .download-btn {
    font-size: 0.85em;
    padding: 10px 15px;
    text-align: center;
    display: block;
    justify-content: center;
    width: auto;
  }
}

/* Post Tags */
.post-tags {
  margin: 20px 0;
  font-size: 0.9em;
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Adjust spacing between tags as needed */
}

.post-tags span {
  font-weight: bold;
  margin-right: 10px; /* Optional if you prefer extra spacing for spans */
}

.post-tags .tag {
  background: var(--accent-color);
  color: #fff;
  padding: 5px 10px;
  border-radius: 3px;
  text-decoration: none;
  /* Remove margin-right if you're using gap for consistent spacing */
}

.comment-system * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Comment System Container */
.comment-system {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
  color: var(--card-text);
}

/* Comment Count Header */
.comment-system .comment-count {
    font-size: 1.0em;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    font-weight: bold;
  }
body.dark-mode .comment-system .comment-count {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Comments Container */
.comment-system .comments-container {
  margin-bottom: 20px;
}

/* Individual Comment Styling */
.comment-system .comment {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
}
.comment-system .comment:last-child {
  border-bottom: none;
}
body.dark-mode .comment-system .comment {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.comment-system .avatar {
  margin-right: 15px;
}
.comment-system .avatar img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-system .comment-content {
  flex: 1;
}
.comment-system .comment-header {
  margin-bottom: 5px;
  font-size: 0.9em;
  color: #555;
}
body.dark-mode .comment-system .comment-header {
  color: #ccc;
}
.comment-system .comment-header .author {
  font-weight: bold;
  color: #333;
}
body.dark-mode .comment-system .comment-header .author {
  color: var(--card-text);
}
.comment-system .comment-header .mystery {
  font-style: italic;
  color: #999;
  margin-left: 5px;
}
body.dark-mode .comment-system .comment-header .mystery {
  color: #aaa;
}
.comment-system .comment-header .date {
  float: right;
  color: #aaa;
}
body.dark-mode .comment-system .comment-header .date {
  color: #bbb;
}

.comment-system .comment-body {
  margin-bottom: 10px;
  line-height: 1.5;
  color: #444;
}
body.dark-mode .comment-system .comment-body {
  color: #ccc;
}

/* Action Buttons */
.comment-system .comment-actions {
  margin-bottom: 10px;
}
.comment-system .comment-actions button {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    margin-right: 10px;
    font-size: 0.9em;
    transition: color 0.3s;
  }
  .comment-system .comment-actions button:hover {
    color: var(--accent-color);
  }
.comment-system .like-btn.active {
  color: #e0245e;
}
.comment-system .comment-actions .like-btn:hover {
    color: #e0245e;
  }

/* Reply Form Styling */
.comment-system .reply-form {
  margin-top: 10px;
}
.comment-system .reply-form input,
.comment-system .reply-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  font-family: inherit;
  margin-bottom: 5px;
  resize: vertical;
}
body.dark-mode .comment-system .reply-form input,
body.dark-mode .comment-system .reply-form textarea {
  border: 1px solid #444;
  background: var(--card-bg);
  color: var(--card-text);
}
.comment-system .reply-form button {
  padding: 6px 12px;
  background-color: #08960b;
  border: none;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.comment-system .reply-form button:hover {
  background-color: var(--button-bg-hover);
}
body.dark-mode .comment-system .reply-form button:hover {
  background-color: var(--button-bg-hover);
}

/* Nested Replies */
.comment-system .replies {
  margin-left: 65px;
  border-left: 2px solid #f0f0f0;
  padding-left: 15px;
  margin-top: 10px;
}
.comment-system .replies:last-of-type >.replies {
    border-bottom: 1px solid var(--comment-bottom-border);
  }

body.dark-mode .comment-system .replies:last-of-type >.replies {
    border-bottom: #333;
  }

body.dark-mode .comment-system .replies {
  border-left: 2px solid rgba(255,255,255,0.1);
}

/* Responsive adjustments for mobile (minimal nested replies) */
@media (max-width: 600px) {
  .comment-system .replies {
    margin-left: 15px;
    padding-left: 5px;
    border-left: 2px solid #f0f0f0;
  }
}

/* Top-level Comment Form */
.comment-system .comment-form {
  margin-top: 20px;
}
.comment-system .comment-form input,
.comment-system .comment-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  font-family: inherit;
  margin-bottom: 10px;
  resize: vertical;
}
body.dark-mode .comment-system .comment-form input,
body.dark-mode .comment-system .comment-form textarea {
  border: 1px solid #444;
  background: var(--card-bg);
  color: var(--card-text);
}
.comment-system .comment-form button {
  padding: 8px 16px;
  background-color: #08960b;
  border: none;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.comment-system .comment-form button:hover {
  background-color: var(--button-bg-hover);
}
body.dark-mode .comment-system .comment-form button:hover {
  background-color: var(--button-bg-hover);
}


.archive-module-header {
  padding-bottom: 5px;
  margin-top: 30px;
  border-bottom: 3px solid var(--accent-color);
}

.archive-module-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--card-text);
  margin: 0;
}

/* Archive Description */
.archive-description {
  background: var(--card-bg);
  color: var(--card-text);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--card-shadow);
  margin-bottom: 10px;
  margin-top: 10px;
  position: relative;
  font-size: 1em;
  line-height: 1.6;
}

/* Archive Date Positioning */
.archive-date {
  font-size: 0.9em;
  color: #888;
  position: absolute;
  bottom: 10px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Icon Color for Date */
.archive-date i {
  color: var(--accent-color);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .archive-description {
    padding: 12px 15px;
  }
  
  .archive-date {
    position: static;
    margin-top: 10px;
    text-align: right;
  }
}

/* Search Page */
.search-header {
  margin-bottom: 20px;
  padding-bottom: 5px;
  border-bottom: 3px solid var(--accent-color);
}

.search-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--card-text);
  margin: 0 0 4px;
  line-height: 1.3;
}

.search-term {
  color: var(--accent-color);
}

.search-count {
  font-size: 0.88em;
  color: #999;
  margin: 0;
}

.search-count .result-number {
  font-weight: 600;
  color: var(--text-color);
}

/* No Results Section */
.no-results {
  text-align: center;
  margin: 30px 0;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--card-shadow);
}

.no-results p {
  font-size: 1.1em;
  color: var(--text-color);
}

.search-query {
  font-weight: bold;
  color: var(--accent-color);
}

/* Search Form (No Results) */
.searchnoresult {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 20px;
  background: var(--mobile-menu-bg);
  border: 1px solid #ddd;
  box-sizing: border-box;
  margin: 20px auto;
  max-width: 350px;
  border-radius: 5px;
}

.searchnoresult-category {
  width: 90px;
  font-size: 1em;
  padding: 8px 30px 8px 0;
  border: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23333' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 8px center;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: var(--accent-color);
}

.searchnoresult-input {
  flex: 1;
  padding: 8px;
  font-size: 1em;
  border: 1px solid #ddd;
  border-radius: 3px;
  margin: 0 5px;
  outline: none;
  width: 100%;
}

.searchnoresult-submit {
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 8px 12px;
  font-size: 1em;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.searchnoresult-submit:hover {
  background: var(--button-bg-hover);
}

/* 404 Page Styling */
.error-page {
  max-width: 1200px;
  margin: 20px auto;
}

.error-section {
  text-align: center;
  padding: 50px 20px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px var(--card-shadow);
}

.error-title {
  font-size: 5em;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.error-message {
  font-size: 1.4em;
  color: var(--text-color);
  margin-bottom: 15px;
}

/* Back to Homepage Button */
.home-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 12px 20px;
  font-size: 1em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.home-button:hover {
  background: var(--button-bg);
}

/* Mobile Optimization */
@media (max-width: 600px) {
  .error-title {
    font-size: 4em;
  }

  .error-message {
    font-size: 1.2em;
  }

  .home-button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Page Article */
.page-article {
  background: var(--content-bg);
  border-radius: 6px;
  box-shadow: var(--box-shadow);
}

/* Page Body */
.page-body {
  line-height: 1.7;
  color: var(--text-color);
  padding-left: 7px !important;
}

/* Page Title */
.page-body h1 {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
  }

  .page-body h2 {
    font-size: 1.16em;
  }
  
  .page-body h3 {
    font-size: 1.1em;
  }
  
  .page-body h4 {
    font-size: 1.04em;
  }
  
  .page-body h5 {
    font-size: 0.98em;
  }
  
  /* Paragraph Styling */
  .page-body p {
    font-size: 0.95em;
    color: var(--text-color);
    margin-bottom: 15px;
  }
  
  @media (max-width: 768px) {
  .page-body {
  padding-left: 10px !important;
}
}

  /* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

#back-to-top:hover {
    background: var(--button-bg-hover);
    transform: scale(1.1);
}

#back-to-top i {
    font-size: 18px;
}

/* Ensure Button is Visible Above Footer */
@media (max-width: 768px) {
    #back-to-top {
        bottom: 70px;
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

.sr-only,
.hiddenMark {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
