/**
 * Theme Name:     TaskHive Child
 * Author:         HivePress
 * Template:       taskhive
 * Text Domain:    taskhive-child
 *
 * Optimized: 2025-01-18
 * - Removed duplicate rules
 * - Consolidated media queries
 * - Replaced !important with CSS specificity
 */

/* ==========================================================================
   1. LAYOUT - Main Content & Container
   ========================================================================== */

.main-content {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
  padding-top: 1rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}

.row.center-xs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  width: 100%;
}

/* Site Content - Parent theme override required */
html body .site-content {
  padding: 4rem 0 4rem;
}

/* ==========================================================================
   2. HEADER STYLES
   ========================================================================== */

/* Base Header */
html body .site-header {
  background: #fdfdfd;
  position: fixed;
  top: 15px;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 20;
  height: 80px;
  display: flex;
  align-items: center;
  transition: all 0.15s ease-in-out;
}

html body .site-header::before,
html body .header-navbar::before {
  content: inherit;
}

html body .site-header .header-logo {
  margin-left: 35px;
}

html body .site-header .custom-logo {
  width: 150px;
}

html body .site-header .navbar-brand img {
  height: 50px;
  width: auto;
  transition: all 0.3s ease-in-out;
}

/* Header Navbar */
html body .header-navbar {
  background-color: #fff;
  border-radius: 50px;
  box-shadow: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

html body .header-navbar__menu ul li ul {
  background-color: #f7f1f1;
  border-radius: 30px;
  margin-top: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.075);
}

html body .header-navbar__menu ul li a {
  color: #eae5e5;
  font-size: 1.5rem;
  font-weight: 1000;
  letter-spacing: 0.5px;
  padding: 10px 15px;
  transition: all 0.3s ease;
  font-family: 'Pretendard', sans-serif;
}

html body .header-navbar__menu ul li a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

html body .header-navbar__menu ul li ul li a {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Header End Section */
html body .header-navbar__end .header_btn {
  margin: 0 20px 0 0;
  color: #000;
  font-size: 18px;
}

html body .header-navbar__end .header_btn:nth-child(4) {
  margin-right: 28px;
}

html body .header-navbar__end a {
  color: black;
}

/* Header Menu */
html body .header-navbar__end #menu-main-menu-1 {
  display: flex;
  align-items: center;
  margin: 0;
}

html body .header-navbar__end #menu-main-menu-1 li {
  list-style: none;
  margin-right: 30px;
  position: relative;
  margin-bottom: 0;
}

html body .header-navbar__end #menu-main-menu-1 li a {
  color: #000;
}

html body .header-navbar__end #menu-main-menu-1 a.hp-link {
  padding-right: 20px;
}

html body .header-navbar__end #menu-main-menu-1 a.hp-link::after {
  content: '';
  padding-left: 10px;
  font-family: "Font Awesome 5 Free";
  opacity: 0.8;
  font-weight: 900;
  font-size: 14px;
  position: absolute;
  right: 0;
}

/* Dropdown Menu */
html body .header-navbar__end #menu-main-menu-1 .menu-item-has-children ul {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 0;
  z-index: 99999;
  transition: all 0.25s;
  transform: scaleY(0);
  min-width: 130px;
  background-color: #fff;
  box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.07);
  transform-origin: 0 0;
  margin: 0;
}

html body .header-navbar__end #menu-main-menu-1 .menu-item-has-children ul li {
  width: 100%;
}

html body .header-navbar__end #menu-main-menu-1 .menu-item-has-children ul a {
  padding: 5px 15px;
}

html body .header-navbar__end #menu-main-menu-1 .menu-item-has-children ul li:hover>a {
  background: #4385f0;
  color: #fff;
}

html body .header-navbar__end #menu-main-menu-1 li:hover ul {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}

/* Sticky Header */
html body .site-header.sticky {
  right: 82px;
  left: 82px;
  top: 12px;
}

html body .site-header.sticky .header-navbar {
  background: #000;
  height: 100%;
}

html body .site-header.sticky .header_btn,
html body .site-header.sticky .hp-link,
html body .site-header.sticky .hp-link i {
  color: #fff;
}

html body .site-header.sticky .header-navbar__end #menu-main-menu-1 li a {
  color: #fff;
}

html body .site-header.sticky .header-navbar__end .sub-menu li a {
  color: #000;
}

html body .site-header.sticky .header-navbar__end .sub-menu li:hover a {
  color: #fff;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
}

/* ==========================================================================
   3. CATEGORY STYLES
   ========================================================================== */

.category-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 5px;
  gap: 5px;
  max-width: 1200px;
  margin: 0 auto;
}

.category {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.category:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.category i {
  font-size: 2.5em;
  color: rgb(12, 12, 12);
  margin-bottom: 1rem;
}

/* Category Text - using specificity instead of !important */
html body .category h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

html body .category p {
  font-size: 16px;
  color: #666;
}

/* Main Content Category Overrides */
html body .main-content .category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 10px;
  height: 100%;
  transition: all 0.3s ease;
}

html body .main-content .category i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

html body .main-content .category h2 {
  font-size: 24px;
  margin-top: 2rem;
  font-weight: bold;
  color: #333;
}

html body .main-content .category p {
  font-size: 16px;
  margin-top: 1rem;
  color: #666;
}

/* ==========================================================================
   4. MAIN TITLE
   ========================================================================== */

html body .main-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin: 2rem 0;
  color: #333;
}

html body .main-content .main-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin: 2rem 0;
  color: #333;
}

/* ==========================================================================
   5. CAROUSEL STYLES
   ========================================================================== */

html body .main-content .carousel.slide {
  width: 80%;
  aspect-ratio: 16 / 3.5;
  margin: 0 auto 2rem;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

html body .main-content .carousel-inner {
  height: 100%;
  position: relative;
}

html body .main-content .carousel-item {
  height: 100%;
}

html body .main-content .carousel-item img.d-block {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   6. GRID LAYOUT
   ========================================================================== */

html body .main-content .container {
  width: 80%;
  margin: 0 auto;
  padding: 0;
}

html body .main-content .col-xs-10.col-sm-10.col-md-8 {
  width: 80%;
  max-width: 80%;
  margin: 0 auto;
}

html body .main-content .row.center-xs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

html body .main-content .col-xs-6 {
  width: 40%;
  flex: 0 0 40%;
  margin: 0;
}

/* ==========================================================================
   7. FILTER STYLES
   ========================================================================== */

.request-right {
  padding: 40px 0;
}

.filter-container-main {
  display: flex;
  gap: 30px;
  padding: 30px 0;
}

.filter-container-main .filter-left-part {
  width: 30%;
}

.filter-container-main .filter-right-part {
  width: 70%;
}

/* Filter Right Part - Post Items */
.filter-right-part .post-item {
  border-radius: 5px;
  box-shadow: 0 5px 30px rgba(7, 36, 86, 0.075);
  background-color: #fff;
  transition: transform 0.25s;
  margin-bottom: 35px;
}

.filter-right-part .post-item:hover {
  transform: translateY(-10px);
}

.filter-right-part .post-item .hp-listing__footer {
  padding: 15px 25px;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
}

.filter-right-part .post-item .hp-listing__footer i {
  color: rgba(7, 36, 86, 0.25);
}

.filter-right-part .post-item .top-content {
  padding: 25px;
  border-bottom: 1px solid rgba(7, 36, 86, 0.075);
}

.filter-right-part .post-item .top-content p {
  font-size: 11px;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}

.filter-right-part .post-item h2 {
  margin-bottom: 10px;
}

/* Filter Left Part */
.filter-left-part .filter-budget {
  margin: 40px 0;
  border-radius: 5px;
  box-shadow: 0 5px 30px rgba(7, 36, 86, 0.075);
  background-color: #fff;
  padding: 25px;
}

.filter-container {
  padding: 30px 25px;
  border-bottom: 1px solid rgba(7, 36, 86, 0.075);
}

/* Filter Category */
.filter-category {
  border-radius: 5px;
  box-shadow: 0 5px 30px rgba(7, 36, 86, 0.075);
  background-color: #fff;
  padding: 25px;
}

.filter-category label {
  font-size: 16px;
  color: #000;
  cursor: pointer;
}

.filter-category #filter-category div {
  line-height: 25px;
  position: relative;
  padding-left: 25px;
  margin-bottom: 2px;
}

#filter-category {
  font-size: 12px;
  margin-left: 5px;
  margin-top: 10px;
}

html body .filter-budget h4 {
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(15, 23, 39, 0.65);
  margin-bottom: 10px;
}

/* Filter Checkbox Styles */
#filter-category .category_filter_checbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

#filter-category .category_filter_checbox span::before {
  position: absolute;
  content: '';
  border: 2px solid rgba(7, 36, 86, 0.075);
  width: 20px;
  height: 20px;
  border-radius: 50px;
  left: 0;
  top: 2px;
}

#filter-category .category_filter_checbox span::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffc61c;
  top: 8px;
  left: 6px;
  transition: opacity 0.25s;
  opacity: 0;
  position: absolute;
  content: '';
}

#filter-category .category_filter_checbox input:checked~span::before {
  border-color: #ffc61c;
}

#filter-category .category_filter_checbox input:checked~span::after {
  opacity: 1;
}

/* Apply Filters Button */
#apply-filters {
  background: #ffc107;
  color: #fff;
  width: 100%;
  box-shadow: rgba(255, 193, 7, 0.35) 0px 5px 21px;
}

/* ==========================================================================
   8. BUDGET SLIDER (noUiSlider)
   ========================================================================== */

.range-slider-container {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
}

#budget-slider {
  height: 5px;
  border: none;
  background-color: transparent;
  margin: 9px 14px 9px 9px;
}

#budget-slider .noUi-connect {
  background: #ffc61b;
}

#budget-slider .noUi-handle {
  top: -9px;
  width: 23px;
  height: 23px;
  cursor: ew-resize;
  border: 1px solid rgba(7, 36, 86, 0.125);
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 4px 0 rgba(7, 36, 86, 0.075);
  outline: none;
}

#budget-slider .noUi-handle::after,
#budget-slider .noUi-handle::before {
  top: 7px;
  left: 7px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(7, 36, 86, 0.125);
  border-top-color: transparent;
  border-bottom-color: transparent;
  background: transparent;
}

.budget-inputs {
  display: flex;
  justify-content: space-between;
  margin-top: 0;
  margin-bottom: 25px;
}

.budget-inputs input {
  width: 45%;
  box-shadow: none;
  color: inherit;
  font-size: 1rem;
  background-color: transparent;
  line-height: 1.5;
  padding: 0.4375rem 1rem;
  border: 1px solid rgba(7, 36, 86, 0.075);
  border-radius: 4px;
  text-align: center;
}

/* ==========================================================================
   9. FORM STYLES
   ========================================================================== */

html body .hp-form__field.hp-form__field--select:nth-child(2) {
  display: none;
}

html body .hp-form__fields .select2-container {
  min-width: 100%;
}

/* ==========================================================================
   10. ANIMATION SECTION
   ========================================================================== */

.animation-section {
  margin: 3rem 0;
}

.animation-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.animation-image img {
  max-width: 100%;
  height: auto;
}

.animation-text {
  text-align: center;
}

.animated-title {
  font-size: 28px;
  margin-bottom: 1rem;
}

.animated-description {
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE - 1280px (Large Desktop)
   ========================================================================== */

@media screen and (max-width: 1280px) {
  html body .site-header.sticky {
    border-radius: 50px;
  }
}

/* ==========================================================================
   RESPONSIVE - 1199px (Desktop)
   ========================================================================== */

@media screen and (max-width: 1199px) {
  html body .header-navbar__end .header_btn {
    display: none;
  }

  html body .site-header.sticky .fas.fa-bars {
    color: #fff;
  }

  html body .header-navbar__burger>ul::before {
    cursor: pointer;
    color: #000;
  }
}

/* ==========================================================================
   RESPONSIVE - 991px (Tablet Landscape)
   ========================================================================== */

@media screen and (max-width: 991px) {
  .site-container .desktop-menu {
    display: none;
  }

  .mobile-menu {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
  }

  html body .site-header .header-logo {
    margin: 0;
  }

  html body .header-navbar__start {
    padding: 0;
  }

  html body .site-header.sticky .mobile-menu {
    background: #000;
    border-radius: 50px;
    height: 80px;
    display: flex;
    align-items: center;
  }

  html body .site-header.sticky #menu-main-menu-1 span,
  html body .site-header.sticky #menu-main-menu-1 i,
  html body .site-header.sticky #menu-main-menu-2 li a,
  html body .site-header.sticky #menu-main-menu-2 li i,
  html body .site-header.sticky #menu-main-menu-2 li::after {
    color: #000;
  }

  html body .header-navbar__burger>ul {
    padding-top: 45px;
  }

  html body .site-header.sticky {
    left: 15px;
    right: 15px;
    width: auto;
  }

  .mobile-menu .fas.fa-bars {
    font-size: 22px;
    color: #000;
  }

  html body .site-content {
    padding: 3rem 0 4rem;
    margin-top: 0;
  }

  .main-content {
    padding-top: 1rem;
  }

  html body .main-title,
  html body .main-content .main-title {
    font-size: 28px;
    margin: 0.5rem 0;
  }
}

/* ==========================================================================
   RESPONSIVE - 768px (Tablet Portrait)
   ========================================================================== */

@media screen and (max-width: 768px) {

  /* Header */
  html body .site-header {
    width: auto;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 65px;
  }

  html body .site-header .navbar-brand img {
    height: 40px;
  }

  html body .site-header.sticky-header {
    height: 65px;
  }

  html body .site-header.sticky-header .navbar-brand img {
    height: 40px;
  }

  /* Category */
  .category {
    width: 100%;
    max-width: 150px;
    aspect-ratio: 3 / 2;
    height: auto;
    padding: 5px;
    border-radius: 15px;
  }

  .category-container {
    padding: 3px;
    gap: 3px;
  }

  .category i {
    font-size: 2em;
  }

  html body .category h2,
  html body .main-content .category h2 {
    font-size: 20px;
    margin-top: 1.5rem;
  }

  html body .category p,
  html body .main-content .category p {
    font-size: 14px;
    margin-top: 0.75rem;
  }

  /* Main Title */
  html body .main-title,
  html body .main-content .main-title {
    font-size: 28px;
    margin: 1.5rem 0;
  }

  /* Carousel */
  html body .main-content .carousel.slide {
    width: 80%;
    aspect-ratio: 16 / 3.5;
    margin: 0 auto 1.5rem;
    border-radius: 15px;
    overflow: hidden;
  }

  html body .main-content .carousel-inner {
    height: 100%;
  }

  html body .main-content .carousel-item img.d-block {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Grid */
  .row.center-xs {
    gap: 1rem;
  }

  html body .main-content .col-xs-10.col-sm-10.col-md-8 {
    width: 80%;
    max-width: 80%;
  }

  html body .main-content .col-xs-6 {
    width: 40%;
    flex: 0 0 40%;
  }

  /* Site Content */
  html body .site-content {
    margin-top: 80px;
  }

  .container {
    margin-top: 1.5rem;
  }

  /* Animation */
  .animation-container {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   RESPONSIVE - 480px (Mobile)
   ========================================================================== */

@media screen and (max-width: 480px) {

  /* Header */
  html body .site-header {
    height: 50px;
  }

  html body .site-header .header-logo {
    margin-left: 15px;
  }

  html body .site-header .navbar-brand img {
    height: 30px;
  }

  html body .site-header.sticky-header {
    height: 50px;
  }

  html body .site-header.sticky-header .navbar-brand img {
    height: 30px;
  }

  /* Main Content */
  .main-content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Main Title */
  html body .main-title,
  html body .main-content .main-title {
    font-size: 20px;
    margin: 1rem 0;
  }

  /* Site Content */
  html body .site-content {
    padding: 3rem 0 4rem;
    margin-top: 60px;
  }

  /* Category */
  .category-container {
    padding: 2px;
    gap: 2px;
  }

  .category {
    max-width: 120px;
    aspect-ratio: 3 / 2;
    height: auto;
    padding: 0.8rem;
  }

  .category i {
    font-size: 1.8em;
  }

  html body .category h2,
  html body .main-content .category h2 {
    font-size: 16px;
    margin-top: 1rem;
  }

  html body .category p,
  html body .main-content .category p {
    font-size: 12px;
    margin-top: 0.5rem;
  }

  /* Carousel */
  html body .main-content .carousel.slide {
    width: 95%;
    aspect-ratio: 16 / 3.5;
    margin: 0 auto 1rem;
    border-radius: 15px;
    overflow: hidden;
  }

  html body .main-content .carousel-inner,
  html body .main-content .carousel-item,
  html body .main-content .carousel-item img.d-block {
    height: 100%;
  }

  /* Grid */
  .row.center-xs {
    gap: 0.8rem;
  }

  html body .main-content .col-xs-10.col-sm-10.col-md-8 {
    width: 95%;
    max-width: 95%;
  }

  html body .main-content .col-xs-6 {
    width: 47.5%;
    flex: 0 0 47.5%;
  }

  /* Animation */
  .animated-title {
    font-size: 24px;
  }

  .animated-description {
    font-size: 14px;
  }
}

/* ==========================================================================
   9. SITE FOOTER - Australian Sunset Gold Theme
   High Specificity Overrides for TaskHive Parent Theme
   ========================================================================== */

/* Footer Container - High Specificity */
html body footer.site-footer {
  background: #1E3A5F;
  background: var(--color-secondary, #1E3A5F);
  color: #FFFFFF;
  color: var(--color-white, #FFFFFF);
  padding: 60px 0 30px;
  margin-top: 0;
  border-top: none;
}

/* Footer Container Inner */
html body footer.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Footer Widget Area - Flex Layout */
html body footer.site-footer .footer-widgets {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 40px;
}

html body footer.site-footer .footer-widgets .row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
}

/* Footer Widget Columns */
html body footer.site-footer .footer-widgets .col-sm {
  flex: 1;
  min-width: 200px;
}

/* Footer Individual Widget */
html body footer.site-footer .widget--footer,
html body footer.site-footer .widget {
  margin-bottom: 30px;
}

/* Footer Widget Title - Gold Color */
html body footer.site-footer .widget--footer h2,
html body footer.site-footer .widget h2,
html body footer.site-footer .wp-block-heading,
html body footer.site-footer h2.wp-block-heading {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: #FFB700;
  color: var(--color-primary, #FFB700);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

html body footer.site-footer .widget--footer h2::after,
html body footer.site-footer .widget h2::after,
html body footer.site-footer h2.wp-block-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #FFB700;
  background: var(--color-primary, #FFB700);
}

/* Footer Links - White with Gold Hover */
html body footer.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

html body footer.site-footer a:hover {
  color: #FFB700;
  color: var(--color-primary, #FFB700);
}

/* Footer List Items */
html body footer.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

html body footer.site-footer ul li {
  margin-bottom: 10px;
  padding-left: 0;
}

html body footer.site-footer .wp-block-archives-list li,
html body footer.site-footer .wp-block-categories-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}

html body footer.site-footer .wp-block-archives-list li::before,
html body footer.site-footer .wp-block-categories-list li::before {
  content: '›';
  color: #FFB700;
  color: var(--color-primary, #FFB700);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Footer Navigation - Centered Links */
html body footer.site-footer nav,
html body footer.site-footer .footer-navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 30px;
  padding: 30px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
}

html body footer.site-footer nav a,
html body footer.site-footer .footer-navbar a {
  font-size: 0.875rem;
  padding: 5px 0;
  position: relative;
}

html body footer.site-footer nav a::after,
html body footer.site-footer .footer-navbar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFB700;
  background: var(--color-primary, #FFB700);
  transition: width 0.3s ease;
}

html body footer.site-footer nav a:hover::after,
html body footer.site-footer .footer-navbar a:hover::after {
  width: 100%;
}

/* Footer Bottom / Copyright */
html body footer.site-footer .footer-bottom,
html body footer.site-footer .site-info {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer CTA Section */
.footer-cta {
  background: linear-gradient(135deg, #FFB700 0%, #E5A400 100%);
  background: linear-gradient(135deg, var(--color-primary, #FFB700) 0%, var(--color-primary-dark, #E5A400) 100%);
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 0;
}

.footer-cta h3 {
  color: #FFFFFF;
  color: var(--color-white, #FFFFFF);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.footer-cta .btn {
  background: #FFFFFF;
  background: var(--color-white, #FFFFFF);
  color: #FFB700;
  color: var(--color-primary, #FFB700);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-cta .btn:hover {
  background: #1E3A5F;
  background: var(--color-secondary, #1E3A5F);
  color: #FFFFFF;
  color: var(--color-white, #FFFFFF);
  transform: translateY(-2px);
}

/* Footer Responsive */
@media (max-width: 768px) {
  html body footer.site-footer {
    padding: 40px 0 20px;
  }

  html body footer.site-footer .footer-widgets,
  html body footer.site-footer .footer-widgets .row {
    flex-direction: column;
    gap: 20px;
  }

  html body footer.site-footer .footer-widgets .col-sm {
    min-width: 100%;
  }

  html body footer.site-footer nav,
  html body footer.site-footer .footer-navbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* ========================================
   Sidebar Widget Styling - Gold Theme
   ======================================== */

/* Sidebar Widget Titles */
html body .widget-area .widget h2,
html body .sidebar .widget h2,
html body aside .widget h2,
html body .widget h2.widget-title,
html body .widget h2.wp-block-heading {
  color: #1E3A5F;
  color: var(--color-secondary, #1E3A5F);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  position: relative;
  border-bottom: 2px solid #F3F4F6;
}

html body .widget-area .widget h2::after,
html body .sidebar .widget h2::after,
html body aside .widget h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #FFB700;
  background: var(--color-primary, #FFB700);
}

/* Sidebar Widget Links */
html body .widget-area .widget a,
html body .sidebar .widget a,
html body aside .widget a {
  color: #1E3A5F;
  color: var(--color-secondary, #1E3A5F);
  text-decoration: none;
  transition: all 0.3s ease;
}

html body .widget-area .widget a:hover,
html body .sidebar .widget a:hover,
html body aside .widget a:hover {
  color: #FFB700;
  color: var(--color-primary, #FFB700);
}

/* Sidebar Widget Lists */
html body .widget-area .widget ul,
html body .sidebar .widget ul,
html body aside .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

html body .widget-area .widget ul li,
html body .sidebar .widget ul li,
html body aside .widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid #F3F4F6;
}

html body .widget-area .widget ul li:last-child,
html body .sidebar .widget ul li:last-child,
html body aside .widget ul li:last-child {
  border-bottom: none;
}

/* Sidebar Search Widget */
html body .widget-area .search-field,
html body .sidebar .search-field,
html body aside .search-field {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  transition: all 0.3s ease;
}

html body .widget-area .search-field:focus,
html body .sidebar .search-field:focus,
html body aside .search-field:focus {
  outline: none;
  border-color: #FFB700;
  box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.1);
}

/* ========================================
   Page Content Styling - Gold Theme
   ======================================== */

/* Page Titles */
html body .page-title,
html body .entry-title,
html body article h1,
html body .content-area h1 {
  color: #1E3A5F;
  color: var(--color-secondary, #1E3A5F);
  font-weight: 700;
}

/* Content Links */
html body .entry-content a,
html body .content-area a,
html body article a {
  color: #FFB700;
  color: var(--color-primary, #FFB700);
  text-decoration: none;
  transition: all 0.3s ease;
}

html body .entry-content a:hover,
html body .content-area a:hover,
html body article a:hover {
  color: #E5A400;
  color: var(--color-primary-dark, #E5A400);
  text-decoration: underline;
}

/* Vendor/Archive Page Styling */
html body .archive .page-header,
html body .search .page-header {
  background: linear-gradient(135deg, #1E3A5F 0%, #2D4A6F 100%);
  padding: 40px 20px;
  margin-bottom: 30px;
  border-radius: 12px;
  text-align: center;
}

html body .archive .page-title,
html body .search .page-title {
  color: #FFFFFF;
  margin-bottom: 10px;
}

html body .archive .archive-description,
html body .search .archive-description {
  color: rgba(255, 255, 255, 0.9);
}

/* No Results Message */
html body .no-results .page-header,
html body .nothing-found {
  text-align: center;
  padding: 60px 20px;
}

html body .no-results .page-title,
html body .nothing-found h1 {
  color: #1E3A5F;
  font-size: 2rem;
  margin-bottom: 15px;
}

html body .no-results .page-content p,
html body .nothing-found p {
  color: #6B7280;
  font-size: 1.1rem;
}

/* ========================================
   HivePress Component Gold Theme
   ======================================== */

/* HivePress Vendor Cards */
html body .hp-vendor--view-block,
html body .hp-listing--view-block {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

html body .hp-vendor--view-block:hover,
html body .hp-listing--view-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

html body .hp-vendor__name a,
html body .hp-listing__title a {
  color: #1E3A5F;
  font-weight: 600;
}

html body .hp-vendor__name a:hover,
html body .hp-listing__title a:hover {
  color: #FFB700;
}

/* HivePress Buttons */
html body .hp-form__button,
html body .hp-menu__item--user-register a,
html body .hp-button--primary {
  background: #FFB700;
  background: var(--color-primary, #FFB700);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

html body .hp-form__button:hover,
html body .hp-menu__item--user-register a:hover,
html body .hp-button--primary:hover {
  background: #E5A400;
  background: var(--color-primary-dark, #E5A400);
  transform: translateY(-2px);
}

/* HivePress Ratings - Gold Stars */
html body .hp-rating__stars,
html body .hp-vendor__rating .hp-rating__stars {
  color: #FFB700;
}

/* HivePress Categories */
html body .hp-category__name {
  color: #1E3A5F;
  font-weight: 600;
}

html body .hp-category__name:hover {
  color: #FFB700;
}

/* ========================================
   Form Styling - Gold Theme
   ======================================== */

/* Input Fields */
html body input[type="text"],
html body input[type="email"],
html body input[type="password"],
html body input[type="search"],
html body input[type="tel"],
html body input[type="url"],
html body textarea,
html body select {
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

html body input[type="text"]:focus,
html body input[type="email"]:focus,
html body input[type="password"]:focus,
html body input[type="search"]:focus,
html body input[type="tel"]:focus,
html body input[type="url"]:focus,
html body textarea:focus,
html body select:focus {
  outline: none;
  border-color: #FFB700;
  box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.15);
}

/* Submit Buttons */
html body input[type="submit"],
html body button[type="submit"],
html body .btn-primary {
  background: #FFB700;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

html body input[type="submit"]:hover,
html body button[type="submit"]:hover,
html body .btn-primary:hover {
  background: #E5A400;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 183, 0, 0.3);
}

/* ========================================
   Micro-Interactions & Animations
   ======================================== */

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Button Micro-Interactions */
html body .btn,
html body button,
html body input[type="submit"],
html body .hp-form__button,
html body .hp-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html body .btn::after,
html body button::after,
html body input[type="submit"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 50%;
  transform: scale(1) translate(-50%, -50%);
  transform-origin: center;
}

html body .btn:active::after,
html body button:active::after,
html body input[type="submit"]:active::after {
  animation: ripple 0.6s ease-out;
}

/* Button Hover Effects - Enhanced */
html body .btn:hover,
html body button:hover,
html body a.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

html body .btn:active,
html body button:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Card Micro-Interactions */
html body .card,
html body .post-card,
html body .hp-vendor--view-block,
html body .hp-listing--view-block,
html body .community-post-card,
html body .qa-question-card,
html body .widget {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html body .card:hover,
html body .post-card:hover,
html body .community-post-card:hover,
html body .qa-question-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Image Zoom on Card Hover */
html body .card img,
html body .post-card .post-thumbnail img,
html body .community-post-card .post-image img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html body .card:hover img,
html body .post-card:hover .post-thumbnail img,
html body .community-post-card:hover .post-image img {
  transform: scale(1.1);
}

/* Link Hover Animations */
html body a {
  transition: color 0.2s ease, transform 0.2s ease;
}

html body nav a:hover,
html body .menu-item a:hover {
  transform: translateY(-1px);
}

/* Underline Animation for Links */
html body .nav-link,
html body .menu-item a,
html body .widget a {
  position: relative;
}

html body .nav-link::after,
html body .widget a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: #FFB700;
  transition: width 0.3s ease;
}

html body .nav-link:hover::after,
html body .widget a:hover::after {
  width: 100%;
}

/* Input Focus Animations */
html body input:focus,
html body textarea:focus,
html body select:focus {
  transform: scale(1.01);
}

/* Loading Skeleton Animation */
.skeleton {
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Fade-in Animation on Scroll (JS trigger class) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Animation for Lists */
.stagger-item {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger-item:nth-child(5) {
  animation-delay: 0.5s;
}

.stagger-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Icon Animations */
html body .fa,
html body .fas,
html body .far,
html body .fab,
html body i[class*="fa-"] {
  transition: transform 0.3s ease, color 0.3s ease;
}

html body a:hover .fa,
html body a:hover .fas,
html body a:hover .far,
html body button:hover i {
  transform: scale(1.1);
}

/* Heart/Like Animation */
.like-btn.liked i {
  animation: bounceIn 0.5s ease;
  color: #EF4444;
}

/* Tooltip Animation */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1E3A5F;
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Notification Badge Pulse */
.notification-badge {
  animation: pulse 2s infinite;
}

/* Smooth Page Transitions */
html body .site-content {
  animation: fadeIn 0.3s ease;
}

/* Reduced Motion - Accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   Accessibility Improvements (WCAG 2.1 AA)
   ======================================== */

/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1E3A5F;
  color: #FFFFFF;
  padding: 12px 20px;
  z-index: 100000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #FFB700;
  outline-offset: 2px;
}

/* Focus Visible Styles - High Contrast */
html body *:focus-visible {
  outline: 3px solid #FFB700;
  outline-offset: 2px;
}

html body a:focus-visible,
html body button:focus-visible,
html body input:focus-visible,
html body textarea:focus-visible,
html body select:focus-visible,
html body [tabindex]:focus-visible {
  outline: 3px solid #FFB700;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 183, 0, 0.2);
}

/* Remove outline on mouse click, keep for keyboard */
html body *:focus:not(:focus-visible) {
  outline: none;
}

/* Screen Reader Only Text */
.sr-only,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus,
.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: inherit;
}

/* High Contrast Mode Support */
@media (forced-colors: active) {

  html body .btn,
  html body button,
  html body input[type="submit"] {
    border: 2px solid currentColor;
  }

  html body a:focus-visible,
  html body button:focus-visible {
    outline: 3px solid Highlight;
  }
}

/* Minimum Touch Target Size (44x44px) */
html body a,
html body button,
html body input[type="submit"],
html body input[type="button"],
html body [role="button"] {
  min-height: 44px;
  min-width: 44px;
}

html body .small-btn,
html body .icon-btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Link Distinction (not color alone) */
html body .entry-content a,
html body .content-area p a,
html body article p a {
  text-decoration: underline;
  text-decoration-color: #FFB700;
  text-underline-offset: 3px;
}

html body .entry-content a:hover,
html body .content-area p a:hover,
html body article p a:hover {
  text-decoration-thickness: 3px;
}

/* Form Label Association */
html body label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  cursor: pointer;
}

html body label[for] {
  cursor: pointer;
}

/* Error States - Color + Icon */
html body .error,
html body .form-error,
html body .has-error input,
html body input.error {
  border-color: #DC2626;
  background-color: #FEF2F2;
}

html body .error-message,
html body .form-error-message {
  color: #DC2626;
  font-size: 0.875rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

html body .error-message::before {
  content: '⚠';
  font-size: 1rem;
}

/* Success States */
html body .success,
html body .form-success,
html body input.success {
  border-color: #10B981;
  background-color: #ECFDF5;
}

html body .success-message {
  color: #10B981;
  font-size: 0.875rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

html body .success-message::before {
  content: '✓';
  font-size: 1rem;
}

/* Required Field Indicator */
html body .required,
html body label .required {
  color: #DC2626;
  margin-left: 2px;
}

html body label .required::after {
  content: ' (필수)';
  font-size: 0.75rem;
  font-weight: normal;
  color: #6B7280;
}

/* Table Accessibility */
html body table {
  border-collapse: collapse;
  width: 100%;
}

html body th {
  text-align: left;
  background: #F3F4F6;
  font-weight: 600;
}

html body th,
html body td {
  padding: 12px 15px;
  border-bottom: 1px solid #E5E7EB;
}

html body tbody tr:hover {
  background: #F9FAFB;
}

/* Improved Color Contrast */
html body .text-muted,
html body .text-secondary {
  color: #4B5563;
  /* Improved from #6B7280 for better contrast */
}

/* Selection Styling */
::selection {
  background: #FFB700;
  color: #1E3A5F;
}

::-moz-selection {
  background: #FFB700;
  color: #1E3A5F;
}

/* Print Styles for Accessibility */
@media print {
  html body a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #6B7280;
  }

  html body .no-print {
    display: none;
  }
}