/*
Theme Name: GBMusical
Theme URI: https://wa.me/2347069047498
Author: GBT3K
Author URI: https://wa.me/2347069047498
Description: A musical-themed WordPress theme crafted by GBT3K.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: musical-by-gbt3k
Tags: music, creative, responsive, blog, portfolio, news
*/

/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Arimo:wght@400;500;700&display=swap');

/*========================================
  CSS Variables & Dark Mode Overrides
========================================*/
:root {
  /* Light mode defaults */
  --bg-color: #f4f4f4;
  --text-color: #333;
  --header-bg: linear-gradient(135deg, #fff, #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: #ccc;
  --footer-link-color: #ccc;
  --footer-link-hover: #08960b;
  --search-tg-border: #e6e6e6;
  --comment-bottom-border: #e0e0e0;
  --text-shadow-color: #035405;
}

body.dark-mode {
  /* 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;
}

/*========================================
  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);
  backdrop-filter: blur(5px);
  color: var(--link-color);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 25px;
}

@media (max-width: 768px) {
    .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 15px;
  }
  }

/* Existing styles for theme-toggle and search-wrapper remain unchanged */
.theme-toggle span {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2em;
  cursor: pointer;
  margin-right: 40px;
}

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

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

.logo img {
  height: 50px; /* Adjust height as needed */
  width: 150px;
  transition: opacity 0.3s ease-in-out;
}

/* Reduce size slightly on smaller screens */
@media (max-width: 600px) {
  .logo img {
    height: 45px;
  }
}

/* Ensure navigation stays horizontal */
.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1em;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 10px 15px;
  display: block;
}

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

/* Hide dropdowns initially */
.nav-links .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  display: none;
  min-width: 200px;
  padding: 10px 0;
  z-index: 1000;
}

/* Show dropdown on hover */
.nav-links .has-dropdown:hover > .dropdown {
  display: block;
}

/* Style dropdown items */
.nav-links .dropdown li {
  list-style: none;
}

.nav-links .dropdown li a {
  padding: 10px 15px;
  display: block;
  color: var(--text-color);
  font-size: 0.95em;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Hover effect for dropdown links */
.nav-links .dropdown li a:hover {
  background: var(--accent-color);
  color: var(--button-text);
  border-radius: 3px;
}

/* Dropdown Icon */
.nav-links .has-dropdown > a i {
  margin-left: 5px;
  font-size: 0.85em;
}

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

/*========================================
  Search Wrapper & Toggle
========================================*/
#search-toggle {
  color: var(--text-color);
  font-size: 1.1em;
}

.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;
  }
  .header-icons {
    display: flex;
  }
  .site-header {
    background: var(--header-bg);
    backdrop-filter: blur(5px);
    color: var(--link-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
}

.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: flex;
  gap: 20px;
  align-items: flex-start;
}

.main-content {
  flex: 3;
  background: var(--card-bg);
  color: var(--card-text);
  padding: 20px;
  box-shadow: 0 2px 30px rgba(0,0,0,0.05);
}

.section-divider {
  border: none;
  border-top: 1px solid #d7d7d759;
  margin: 30px 0 40px;
}

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

/*========================================
  Featured Posts & Cards
========================================*/
.featured-section {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
}

.featured-card {
  flex: 1.5;
}

.card-post {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-thumb {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

@media (max-width: 768px) {
    .card-thumb {
      height: 300px;
    }
    }
    @media (min-width: 769px) {
      .side-posts {
        margin-top: -10px;
      }
    }

.card-details {
  padding: 15px;
}

.card-details .post-category {
  font-size: 0.75em;
  color: var(--accent-color);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-details .post-title {
  font-size: 1.4em;
  margin: 0 0 6px;
  color: var(--card-text);
  font-weight: 600;
}

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

@media (max-width: 768px) {
    .card-details .post-title {
    font-size: 1.2em;
  }
  }

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

.card-details .post-meta {
  font-size: 0.85em;
  color: #aaa;
  margin-bottom: 8px;
}

.card-details .post-excerpt {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
  }

.card-details .read-more {
  text-decoration: none;
  color: var(--accent-color);
  font-size: 0.9em;
  transition: color 0.3s;
}

.card-details .read-more:hover {
  color: #0056b3;
}

@media (max-width: 768px) {
  .featured-section {
    flex-direction: column;
  }
  .featured-card,
  .side-posts {
    width: 100%;
  }
}

/*========================================
  Side Posts (Mini Cards)
========================================*/
.side-posts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-post {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.side-post:hover {
  transform: translateX(2px);
}

.side-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
}

.side-details {
  flex: 1;
}

.side-title {
    font-size: 0.9em;
    margin: 0 0 4px;
    color: var(--card-text);
  }

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

.side-post .post-meta {
  font-size: 0.8em;
  color: #888;
}

/*========================================
  Module Headers & Post List
========================================*/
.module-section {
  margin-top: -10px;
  margin-bottom: 0;
}

.module-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

.post-list {
  display: grid;
  gap: 20px;
  padding-top: 20px;
}

.post {
  display: flex;
  background: var(--card-bg);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.post-thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 15px;
}

@media (min-width: 769px) {
    .post-thumb {
    width: 120px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
  }
  }

.post-details {
  flex: 1;
}

.post-category {
  font-size: 0.75em;
  color: var(--accent-color);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hpost-title {
  font-size: 1.1em;
  margin: 0 0 6px;
  color: var(--card-text);
  font-weight: 600;
}

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

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

  @media (max-width: 768px) {
    h2.hpost-title {
      font-size: 0.9em;
      padding-top: 5px;
    }
  }

.post-meta {
  font-size: 0.85em;
  color: #aaa;
  margin-bottom: 8px;
}

.post-excerpt {
  font-size: 0.8em;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.4;
}

.read-more {
  text-decoration: none;
  color: #007BFF;
  font-size: 0.9em;
  transition: color 0.3s;
}

.read-more:hover {
  color: #0056b3;
}

@media (max-width: 768px) {
  .post-excerpt,
  .read-more,
  .post-meta {
    display: none;
  }
}

/*========================================
  Pagination
========================================*/
.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 #ddd;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s, padding 0.3s;
  display: inline-block;
  box-sizing: border-box;
}

.pagination ul li a:hover,
.pagination ul li a.active {
  background: var(--card-bg);
  color: var(--accent-color);
  border-color: var(--accent-color);
  padding: 5px 9px;
}

/*========================================
  Module Header (Reusable)
========================================*/
.module-header {
  margin: 0;
  padding: 7px 5px 7px 15px;
  border: none;
  background-color: var(--accent-color);
  border-radius: 7px;
}

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

/*========================================
  Video Section
========================================*/
.video-section {
  margin: 40px 0;
}

.video-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

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

.video-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.video-thumb-container {
  position: relative;
}

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

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2em;
  color: var(--button-text);
  opacity: 0.85;
}

.video-details {
  padding: 12px;
}

.video-title {
  font-size: 1.2em;
  margin: 0 0 5px;
  color: var(--card-text);
}

h3.video-title a {
    color: var(--card-text);
    font-size: 0.85em;
  }

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

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

@media (max-width: 768px) {
    h3.video-title a {
      color: var(--card-text);
      font-size: 0.8em;
    }
    .video-thumb {
        width: 100%;
        display: block;
        object-fit: cover;
        height: 130px;
    }
  }

.video-meta {
  font-size: 0.9em;
  color: #888;
}

.video-pagination {
  text-align: center;
  margin-top: 30px;
}

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

.see-more-button:hover {
  background-color: var(--button-bg-hover);
}

.video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-more {
  font-size: 1em;
  color: var(--button-text);
  text-decoration: none;
  transition: color 0.3s ease;
  margin-right: 5px;
}

.module-more:hover {
  color: var(--button-bg-hover);
}

/*========================================
  Sidebar
========================================*/
.sidebar {
  flex: 1.5;
  background: var(--card-bg);
  padding: 0;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.05);
}

.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-section h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 5px;
  color: var(--card-text);
}

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

.sidebar-section ul li {
  margin-bottom: 8px;
}

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

.sidebar-section ul li a:hover {
  color: var(--button-bg-hover);
}

/*========================================
  Responsive: Homepage Layout
========================================*/
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    margin-top: 35px;
  }
  .main-content,
  .sidebar {
    padding: 15px;
    border-radius: 7px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    margin-top: 20px;
    padding: 0;
  }
}

/*========================================
  Trending Posts Sidebar
========================================*/
.trending-posts {
  background: var(--card-bg);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.trending-list {
    list-style: none;
    margin: 15px 0 0;
    padding: 7px;
    border: 1px solid;
    border-color: var(--accent-color);
    border-radius: 5px;
  }

.trending-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  padding-left: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trending-list li:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .trending-list li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    width: 100%;
    transition: color 0.3s;
    font-weight: 600;
    font-size: 0.9em;
  }

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

.rank {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 15px;
  color: var(--button-text);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: var(--accent-color);
  padding: 10px;
}

.trending-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
}

.trending-title {
  font-size: 1em;
  flex: 1;
}

.trending-info {
    display: flex;
    flex-direction: column; /* Stack title & artist */
  }
  
  .trending-artist {
    font-size: 0.85em;
    color: var(--secondary-text);
    font-weight: 400;
    margin-top: 2px;
  }  

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

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

.footer-container h3 {
  color: var(--body-text);
}

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

/* Fix: Ensure About Us & Copyright Text is Visible */
.footer-section p {
  color: var(--footer-text); /* Inherits correct color */
  font-size: 0.9em;
  line-height: 1.6;
}

.footer-bottom p {
  color: var(--footer-text); /* Ensures proper visibility */
}

/* Quick Links */
.footer-section h4 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: var(--accent-color);
}

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

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

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

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

/* Fix: Dark Mode Text Color Consistency */
body.dark-mode .footer-section p,
body.dark-mode .footer-bottom p {
  color: var(--footer-link-color); /* Matches Quick Links */
}

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

.footer-social ul li a {
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: var(--mobile-nav-bg);
  border-radius: 50%;
  color: var(--footer-text);
  transition: background 0.3s, color 0.3s;
}

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

/* Footer Bottom Section */
.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  margin-top: 20px;
  font-size: 0.8em;
  color: var(--footer-text); /* Ensures visibility */
}

/* Fix: Light Mode Footer Text Visibility */
body:not(.dark-mode) .footer-bottom p {
  color: var(--footer-text); /* Uses correct footer color */
}

/* Responsive Fix */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-section {
    width: 100%;
    text-align: left;
  }
}

/* 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: 2em;
  margin-bottom: 10px;
  color: var(--card-text);
  font-size: 23px;
  font-weight: 600;
}

.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;
  }
  
  /* Common Styles for Share Buttons */
  .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.2em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
  }
  
  /* Facebook */
  .facebook {
    background-color: #1877F2;
  }
  .facebook:hover {
    background-color: #1359b1;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.4);
  }
  
  /* X (Twitter) */
  .twitter {
    background-color: #000;
  }
  .twitter:hover {
    background-color: #222;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }
  
  /* WhatsApp */
  .whatsapp {
    background-color: #25D366;
  }
  .whatsapp:hover {
    background-color: #1da851;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.4);
  }
  
  /* Pinterest */
  .pinterest {
    background-color: #E60023;
  }
  .pinterest:hover {
    background-color: #b4001c;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(230, 0, 35, 0.4);
  }
  
  /* Copy Link Button */
  .copy-link {
    background-color: #555;
  }
  .copy-link:hover {
    background-color: #333;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(85, 85, 85, 0.4);
  }
  
  /* Click Effect */
  .share-btn:active {
    transform: scale(0.9);
  }
  
  /* Responsive for Small Screens */
  @media (max-width: 600px) {
    .top-share {
      gap: 10px;
    }
    .share-btn {
      width: 40px;
      height: 30px;
      font-size: 1.1em;
    }
  }  

.featured-image {
  position: relative;
  margin-bottom: 20px;
}
.featured-image img {
    width: 100%;
    height: 570px;
    border-radius: 8px;
    display: block;
  }
  @media (max-width: 768px) {
    .featured-image img {
    width: 100%;
    height: 270px;
    border-radius: 8px;
    display: block;
    }
  }
  
.featured-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
  color: #fff;
  font-size: 0.9em;
  text-align: left;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-sizing: border-box;
}

/* 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);
}

/* Common Styles for Share Buttons */
.social-share .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  font-size: 1.2em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Facebook */
.facebook {
  background-color: #1877F2;
}
.facebook:hover {
  background-color: #1359b1;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(24, 119, 242, 0.4);
}

/* X (Twitter) */
.twitter {
  background-color: #000;
}
.twitter:hover {
  background-color: #222;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* LinkedIn */
.linkedin {
  background-color: #0077b5;
}
.linkedin:hover {
  background-color: #005582;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 119, 181, 0.4);
}

/* Pinterest */
.pinterest {
  background-color: #E60023;
}
.pinterest:hover {
  background-color: #b4001c;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(230, 0, 35, 0.4);
}

/* Click Effect */
.share-btn:active {
  transform: scale(0.9);
}

/* Responsive for Small Screens */
@media (max-width: 600px) {
  .social-share {
    gap: 8px;
  }
  .share-btn {
    width: 36px;
    height: 36px;
    font-size: 1.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;
  }

/* ==========================
   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;
  font-size: 1.0em;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

/* Fix Play Button Size */
.play-btn {
  font-size: 1.3em;
  width: 50px;
  height: 50px;
}

/* Hover Effect */
.player-btn:hover {
  transform: scale(1.1);
}

/* 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;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  color: #333;
}

/* Dark Mode Overrides for Comment System */
body.dark-mode .comment-system {
  background: var(--card-bg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  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);
}

@media (max-width: 768px) {
.content-wrapper {
  display: block;
  gap: 20px;
  align-items: flex-start;
}
}

.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 Layout */
.search-page .search-content {
  background: var(--card-bg);
  padding: 20px;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.05);
}

/* Search Results Header */
.search-count {
  font-size: 1.1em;
  color: var(--text-color);
  margin-top: 5px;
}

.search-count i {
  color: var(--accent-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;
    }
}