/*
Theme Name: DirHR WordPress Theme
Description: A lightning-fast, modern WordPress theme with multiple card styles, extensive customization options, and built-in performance optimization. Optimized for maximum speed and performance.
Version: 1.0.0
Author: Administraktor Network
Author URI: https://administraktor.com
Text Domain: dirhr-wordpress-theme
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, fast, blocks, responsive, customizer, translation-ready, threaded-comments, custom-logo, featured-images, performance
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Updated theme name to DirHR WordPress Theme and updated text domain */

/* Reset and Base Styles - Optimized for performance */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(
    --font-system,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif
  );
  background-color: var(--bg-color, #1a1a1a);
  color: var(--text-color, #ffffff);
  line-height: 1.6;
  font-display: swap;
}

/* Added CSS custom properties for better performance and removed external font dependencies */

/* Header Styles */
.site-header {
  background-color: var(--card-bg-color, #2d2d2d);
  padding: 15px 0;
  border-bottom: 1px solid #404040;
  position: relative;
  z-index: 1000;
}

.site-header.sticky-header {
  position: relative;
  z-index: 1000;
}

.site-header.sticky-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(45, 45, 45, 0.98);
  border-bottom: 1px solid var(--border-color, #404040);
}

.sticky-header-enabled .site-content {
  padding-top: 0;
}

.site-header.sticky-header.is-sticky ~ .header-spacer {
  height: 80px;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color, #ffffff);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--primary-color, #4a9eff);
}

.logo-image {
  max-height: 40px;
  width: auto;
}

/* Navigation Styles */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.main-navigation a {
  color: var(--text-color, #ffffff);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
}

.main-navigation a:hover {
  color: var(--primary-color, #4a9eff);
  /* Removed transition animations */
}

/* Enhanced Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  border: 2px solid var(--primary-color, #4a9eff);
  border-radius: 6px;
  background: transparent;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background-color: rgba(74, 158, 255, 0.1);
  /* Removed transition animations */
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: var(--primary-color, #4a9eff);
  margin: 2px 0;
  border-radius: 1px;
}

/* Enhanced Search Button */
.search-toggle {
  background: linear-gradient(135deg, var(--primary-color, #4a9eff), #3d8bfd);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-toggle:hover {
  background: linear-gradient(135deg, #3d8bfd, var(--primary-color, #4a9eff));
  /* Removed transform and transition animations */
}

.search-toggle svg {
  width: 18px;
  height: 18px;
}

/* Enhanced Header Spacer */
.header-spacer {
  height: 60px; /* Increased height for better spacing */
  background: transparent;
}

/* Hero Section */
.hero-section {
  padding: 80px 20px;
  margin-bottom: 40px;
  position: relative;
}

.hero-type-static .hero-section,
.hero-type-minimal .hero-section {
  text-align: center;
  background-color: var(--card-bg-color, #2d2d2d);
}

.hero-type-gradient .hero-section {
  background: linear-gradient(135deg, var(--primary-color, #4a9eff), var(--card-bg-color, #2d2d2d));
  text-align: center;
}

.hero-type-centered .hero-section {
  text-align: center;
  background-color: var(--card-bg-color, #2d2d2d);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color, #ffffff);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--text-color, #ffffff);
  line-height: 1.6;
}

.hero-cta-button {
  display: inline-block;
  background-color: var(--primary-color, #4a9eff);
  color: white;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.hero-cta-button:hover {
  background-color: var(--primary-color, #4a9eff);
  opacity: 0.9;
}

/* Split Hero Layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.hero-split-content {
  text-align: left;
}

.hero-split-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Text-Only Slider */
.hero-slider-text {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg-color, #2d2d2d);
  border-radius: 12px;
  padding: 60px 40px;
}

.hero-slide-text {
  position: absolute;
  width: 100%;
  opacity: 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-slide-text.active {
  opacity: 1;
  position: relative;
}

.hero-slide-text-content {
  padding: 20px;
}

.hero-slide-text .hero-slide-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-slide-text .hero-slide-title a {
  color: var(--text-color, #ffffff);
  text-decoration: none;
}

.hero-slide-text .hero-slide-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--text-color-secondary, #cccccc);
}

.hero-slide-text .hero-slide-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-color-muted, #999999);
}

/* Full Width Slider */
.slider-style-fullwidth .hero-slider {
  border-radius: 0;
  margin: 0 -20px 40px;
}

/* Minimal Hero */
.hero-minimal {
  text-align: center;
  padding: 60px 20px;
  background-color: transparent;
}

.hero-minimal .hero-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-minimal .hero-subtitle {
  font-size: 1.1rem;
  max-width: 500px;
}

/* Hero Slider Styles - Integrated with existing theme */
.hero-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--card-bg-color, #2d2d2d);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-slide-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  color: white;
}

.hero-slide-category {
  display: inline-block;
  background-color: var(--primary-color, #4a9eff);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-slide-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-slide-title a {
  color: white;
  text-decoration: none;
}

.hero-slide-title a:hover {
  color: var(--primary-color, #4a9eff);
}

.hero-slide-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-slide-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  font-size: 14px;
  opacity: 0.8;
}

.hero-slide-button {
  display: inline-block;
  background-color: var(--primary-color, #4a9eff);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.hero-slide-button:hover {
  background-color: var(--primary-color, #4a9eff);
  opacity: 0.9;
}

/* Navigation */
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 3;
}

.slider-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: white;
  cursor: pointer;
}

.slider-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
}

.slider-dot.active {
  background-color: var(--primary-color, #4a9eff);
  border-color: var(--primary-color, #4a9eff);
}

/* Main Content */
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Grid Columns Support */
.posts-container.grid-columns-1 .posts-grid {
  grid-template-columns: 1fr;
}

.posts-container.grid-columns-2 .posts-grid {
  grid-template-columns: repeat(2, 1fr);
}

.posts-container.grid-columns-3 .posts-grid {
  grid-template-columns: repeat(3, 1fr);
}

.posts-container.grid-columns-4 .posts-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .posts-container.grid-columns-4 .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 480px) {
  .posts-container.grid-columns-2 .posts-grid,
  .posts-container.grid-columns-3 .posts-grid,
  .posts-container.grid-columns-4 .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Grid Layout for Posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* List Layout without Images */
.posts-list-layout {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-bg-color, #2d2d2d);
  border-radius: 8px;
  border: 1px solid #404040;
  overflow: hidden;
}

.post-list-item {
  padding: 30px;
  border-bottom: 1px solid #404040;
}

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

.post-list-item .post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 12px;
  color: #999999;
}

.post-list-item .post-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.post-list-item .post-title a {
  color: var(--text-color, #ffffff);
  text-decoration: none;
}

.post-list-item .post-title a:hover {
  color: var(--primary-color, #4a9eff);
}

.post-list-item .post-excerpt {
  color: var(--text-color, #cccccc);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  opacity: 0.9;
}

.post-list-item .read-more {
  color: var(--primary-color, #4a9eff);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

/* Single Post Styles */
.single-post-header {
  text-align: center;
  margin-bottom: 40px;
}

.single-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color, #ffffff);
}

.single-post-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: #999999;
  margin-bottom: 30px;
}

.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color, #ffffff);
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
  color: var(--text-color, #ffffff);
  margin: 30px 0 15px 0;
  font-weight: 600;
}

.single-post-content a {
  color: var(--primary-color, #4a9eff);
  text-decoration: none;
}

.single-post-content a:hover {
  text-decoration: underline;
}

/* Enhanced responsive image styles for better mobile experience */
/* Responsive image styles for article content */
.single-post-content img,
.page-text img,
.post-content img,
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 1rem auto;
  display: block;
  object-fit: cover;
  will-change: transform;
}

/* Featured images at top of posts/pages */
.single-post-image img,
.page-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
  object-fit: cover;
  fetchpriority: high;
}

@media (max-width: 768px) {
  .single-post-content img,
  .page-text img,
  .post-content img,
  .entry-content img {
    width: 90%;
    margin: 0.8rem auto;
    border-radius: 6px;
  }

  .single-post-image img,
  .page-featured-image img {
    width: 90%;
    margin: 0 auto 1.5rem auto;
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  .single-post-content img,
  .page-text img,
  .post-content img,
  .entry-content img {
    width: 85%;
    margin: 0.5rem auto;
    border-radius: 4px;
  }

  .single-post-image img,
  .page-featured-image img {
    width: 85%;
    margin: 0 auto 1rem auto;
    max-width: 400px;
    border-radius: 6px;
  }
}

/* Enhanced Table of Contents */
.table-of-contents {
  background-color: var(--card-bg-color, #2d2d2d);
  border: 1px solid var(--border-color, #404040);
  border-radius: 12px;
  padding: 24px;
  margin: 30px 0;
  max-width: 320px;
  float: right;
  margin-left: 30px;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  display: block;
  visibility: visible;
  opacity: 1;
}

/* Hide TOC when it has the hidden class */
.table-of-contents.toc-hidden {
  display: none;
}

.table-of-contents h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-color, #ffffff);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color, #404040);
}

.table-of-contents .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents .toc-item {
  margin-bottom: 8px;
  line-height: 1.5;
}

.table-of-contents .toc-item.toc-h2 {
  margin-left: 0;
}

.table-of-contents .toc-item.toc-h3 {
  margin-left: 16px;
}

.table-of-contents .toc-item.toc-h4 {
  margin-left: 32px;
}

.table-of-contents .toc-item.toc-h5,
.table-of-contents .toc-item.toc-h6 {
  margin-left: 48px;
}

.table-of-contents .toc-link {
  color: var(--text-color-secondary, #cccccc);
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 6px 0;
  border-left: 3px solid transparent;
  padding-left: 12px;
}

.table-of-contents .toc-link:hover {
  color: var(--primary-color, #4a9eff);
  border-left-color: var(--primary-color, #4a9eff);
}

.table-of-contents .toc-link:active {
  color: var(--primary-color, #4a9eff);
}

/* Enhanced Post Navigation (Prev/Next) */
.single-post-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border-color, #404040);
}

.post-navigation {
  margin-top: 30px;
}

.post-nav-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.nav-previous,
.nav-next {
  background-color: var(--card-bg-color, #2d2d2d);
  border: 1px solid var(--border-color, #404040);
  border-radius: 12px;
  padding: 20px;
}

.nav-previous:hover,
.nav-next:hover {
  border-color: var(--primary-color, #4a9eff);
}

.nav-previous a,
.nav-next a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-color, #ffffff);
  height: 100%;
}

.nav-previous .nav-label,
.nav-next .nav-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-color-muted, #999999);
  margin-bottom: 8px;
  font-weight: 600;
}

.nav-previous .nav-title,
.nav-next .nav-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-color, #ffffff);
}

.nav-previous:hover .nav-title,
.nav-next:hover .nav-title {
  color: var(--primary-color, #4a9eff);
}

.nav-next {
  text-align: right;
}

.nav-next a {
  align-items: flex-end;
}

/* Post Likes */
.post-like-wrapper {
  margin-top: 15px;
  display: flex;
  align-items: center;
}

.single-post-like-wrapper {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-color, #404040);
  border-bottom: 1px solid var(--border-color, #404040);
  display: flex;
  justify-content: center;
}

.post-like-btn {
  background: transparent;
  border: 1px solid var(--border-color, #404040);
  color: var(--text-color, #ffffff);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
}

.post-like-btn:hover {
  border-color: var(--primary-color, #4a9eff);
  color: var(--primary-color, #4a9eff);
}

.post-like-btn.liked {
  background-color: var(--primary-color, #4a9eff);
  border-color: var(--primary-color, #4a9eff);
  color: #ffffff;
}

.post-like-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.like-icon {
  font-size: 16px;
  line-height: 1;
}

.like-count {
  font-weight: 600;
  margin-left: 4px;
}

.single-post-like {
  padding: 12px 24px;
  font-size: 16px;
}

.single-post-like .like-icon {
  font-size: 18px;
}

/* Comments */
.comments-area {
  max-width: 800px;
  margin: 60px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--border-color, #404040);
}

.comments-title {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--text-color, #ffffff);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  background-color: var(--card-bg-color, #2d2d2d);
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.comment-author {
  font-weight: 600;
  color: var(--text-color, #ffffff);
  margin-bottom: 10px;
}

.comment-content {
  color: var(--text-color, #cccccc);
  line-height: 1.6;
}

/* Comment Form */
.comment-form {
  background-color: var(--card-bg-color, #2d2d2d);
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 30px;
  margin-top: 40px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px;
  background-color: var(--bg-color, #1a1a1a);
  border: 1px solid #404040;
  border-radius: 4px;
  color: var(--text-color, #ffffff);
  font-family: inherit;
  margin-bottom: 15px;
}

.comment-form input[type="submit"] {
  background-color: var(--primary-color, #4a9eff);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

/* Footer */
.site-footer {
  background-color: var(--card-bg-color, #2d2d2d);
  border-top: 1px solid var(--border-color, #404040);
  padding: 60px 0 30px 0;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--text-color, #ffffff);
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-description {
  color: var(--text-color, #cccccc);
  line-height: 1.6;
  opacity: 0.9;
}

.footer-links ul,
.footer-categories ul,
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li,
.footer-categories li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-categories a {
  color: var(--text-color, #cccccc);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover,
.footer-categories a:hover {
  color: var(--primary-color, #4a9eff);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 0;
  border-top: 1px solid #404040;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color, #999999);
  font-size: 14px;
}

.footer-credits a {
  color: var(--primary-color, #4a9eff);
  text-decoration: none;
  font-weight: 500;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color, #4a9eff);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  font-size: 18px;
  /* Removed all transition animations */
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Enhanced Search Form Styles - Integrated with theme */
.search-form-container {
  background-color: var(--card-bg-color, #2d2d2d);
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.search-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.search-input-wrapper {
  display: flex;
  position: relative;
  background-color: var(--card-bg-color, #2d2d2d);
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--primary-color, #4a9eff);
}

.search-field {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text-color, #ffffff);
  font-size: 16px;
  outline: none;
}

.search-field::placeholder {
  color: var(--text-color, #ffffff);
  opacity: 0.6;
}

.search-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: var(--primary-color, #4a9eff);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.search-submit:hover {
  background-color: var(--primary-color, #4a9eff);
  opacity: 0.9;
}

.search-submit svg {
  width: 16px;
  height: 16px;
}

/* Search Page Specific Styles */
.search-header {
  text-align: center;
  margin-bottom: 40px;
}

.search-header .section-title {
  margin-bottom: 10px;
  color: var(--text-color, #ffffff);
  font-size: 2rem;
  font-weight: 700;
}

.search-header .section-title span {
  color: var(--primary-color, #4a9eff);
  font-weight: 600;
}

.no-posts {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--card-bg-color, #2d2d2d);
  border-radius: 8px;
  border: 1px solid #404040;
}

.no-posts h2 {
  color: var(--text-color, #ffffff);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.no-posts p {
  color: var(--text-color, #cccccc);
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Enhanced Pagination */
.pagination,
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination .current,
.pagination-wrapper a,
.pagination-wrapper .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 10px 16px;
  background-color: var(--card-bg-color, #2d2d2d);
  color: var(--text-color, #ffffff);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border-color, #404040);
  font-weight: 500;
}

.pagination a:hover,
.pagination-wrapper a:hover {
  background-color: var(--primary-color, #4a9eff);
  color: white;
  border-color: var(--primary-color, #4a9eff);
}

.pagination .current,
.pagination-wrapper .current {
  background-color: var(--primary-color, #4a9eff);
  color: white;
  border-color: var(--primary-color, #4a9eff);
  cursor: default;
}

.pagination .dots,
.pagination-wrapper .dots {
  padding: 10px 8px;
  color: var(--text-color-muted, #999999);
  pointer-events: none;
}

/* Archive Pages */
.archive-header {
  text-align: center;
  padding: 60px 20px;
  margin-bottom: 40px;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color, #ffffff);
  margin-bottom: 15px;
}

.archive-description {
  color: var(--text-color, #cccccc);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Page Featured Image Styles - Responsive */
.page-featured-image {
  margin-bottom: 30px;
  text-align: center;
}

.page-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 800px;
}

/* Added responsive featured image styles for mobile devices */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-bg-color, #2d2d2d);
    border-top: 1px solid #404040;
    display: none;
    z-index: 999;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .main-navigation.mobile-menu-open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 20px;
  }

  .main-navigation a {
    display: block;
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-navigation a:hover {
    background-color: rgba(74, 158, 255, 0.1);
    padding-left: 10px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .table-of-contents {
    float: none;
    margin: 30px 0;
    max-width: 100%;
    position: relative;
    top: 0;
    max-height: none;
  }

  .post-nav-wrapper {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .nav-next {
    text-align: left;
  }

  .nav-next a {
    align-items: flex-start;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }

  .header-spacer {
    height: 30px;
  }

  /* Hero slider responsive styles */
  .hero-slider {
    height: 400px;
  }

  .hero-slide-inner {
    padding: 0 20px;
  }

  .hero-slide-title {
    font-size: 1.8rem;
  }

  .hero-slide-excerpt {
    font-size: 1rem;
  }

  .slider-nav-btn {
    width: 40px;
    height: 40px;
  }

  .hero-slider-nav {
    padding: 0 10px;
  }

  /* Search form responsive styles */
  .search-form {
    max-width: 100%;
  }

  .search-field {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .search-submit .search-text {
    display: none;
  }

  .search-submit {
    padding: 12px 16px;
  }

  .search-toggle .search-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-content {
    padding: 20px 15px;
  }

  .post-list-item {
    padding: 20px;
  }

  .single-post-title {
    font-size: 1.8rem;
  }

  .single-post-content {
    font-size: 15px;
  }

  .search-toggle {
    padding: 8px 14px;
    font-size: 13px;
  }

  .mobile-menu-toggle {
    padding: 6px;
  }

  .hamburger-line {
    width: 20px;
  }
}

/* Enhanced Card Styles with Text Overlays and Better Designs */

/* Base Post Card Styles */
.post-card {
  background-color: var(--card-bg-color, #2d2d2d);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

/* Modern Card Style */
.card-style-modern {
  background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
  border: 1px solid #404040;
}

.card-style-modern .post-thumbnail {
  position: relative;
  overflow: hidden;
}

.card-style-modern .modern-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-color, #4a9eff);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

/* Overlay Card Styles */
.card-style-overlay,
.card-style-text_overlay,
.card-style-gradient_overlay,
.card-style-dark_overlay {
  position: relative;
  min-height: 300px;
}

.post-thumbnail-overlay {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.post-thumbnail-overlay img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
}

.overlay-content.gradient-bg {
  background: linear-gradient(45deg, rgba(74, 158, 255, 0.9), rgba(138, 43, 226, 0.9));
}

.overlay-content.dark-bg {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}

.overlay-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 12px;
  opacity: 0.9;
}

.overlay-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.overlay-title a {
  color: white;
  text-decoration: none;
}

.overlay-excerpt {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

/* Glass Card Style */
.card-style-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Neon Card Style */
.card-style-neon {
  background: #1a1a1a;
  border: 2px solid var(--primary-color, #4a9eff);
  box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
  position: relative;
}

.card-style-neon::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #4a9eff, #8a2be2, #4a9eff);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.8;
}

/* Elevated Card Style */
.card-style-elevated {
  background: var(--card-bg-color, #2d2d2d);
  border: none;
}

.card-style-elevated:hover {
}

/* Bordered Card Style */
.card-style-bordered {
  border: 3px solid var(--primary-color, #4a9eff);
  background: var(--card-bg-color, #2d2d2d);
}

/* Minimal Card Style */
.card-style-minimal {
  background: transparent;
  border: none;
  box-shadow: none;
}

.card-style-minimal .post-card-content {
  padding: 20px 0;
}

/* Horizontal Card Styles */
.card-style-horizontal,
.card-style-horizontal_reverse {
  min-height: 200px;
}

.horizontal-card-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.horizontal-card-content.reverse {
  flex-direction: row-reverse;
}

.horizontal-thumbnail {
  flex: 0 0 200px;
}

.horizontal-thumbnail img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.horizontal-content {
  flex: 1;
}

/* Magazine Card Styles */
.card-style-magazine,
.card-style-magazine_featured {
  position: relative;
}

.post-thumbnail-magazine {
  position: relative;
  overflow: hidden;
}

.post-thumbnail-magazine img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.magazine-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.featured-label {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff6b35;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.magazine-content {
  padding: 25px;
}

.magazine-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 12px;
  color: #999;
}

.magazine-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.magazine-title a {
  color: var(--text-color, #ffffff);
  text-decoration: none;
}

/* Compact Card Styles */
.card-style-compact,
.card-style-compact_image {
  padding: 15px;
}

.compact-card-content {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.compact-thumbnail {
  flex: 0 0 80px;
}

.compact-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.compact-content {
  flex: 1;
}

.compact-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11px;
  color: #999;
}

.compact-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.compact-title a {
  color: var(--text-color, #ffffff);
  text-decoration: none;
}

.compact-title a:hover {
  color: var(--primary-color, #4a9eff);
}

.compact-excerpt {
  font-size: 13px;
  color: #ccc;
  line-height: 1.4;
}

/* Post Card Content */
.post-card-content {
  padding: 25px;
}

.post-card-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 12px;
  color: #999999;
}

.post-card-category a {
  color: var(--primary-color, #4a9eff);
  text-decoration: none;
  font-weight: 600;
}

.post-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.post-card-title a {
  color: var(--text-color, #ffffff);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--primary-color, #4a9eff);
}

.post-card-excerpt {
  color: var(--text-color, #cccccc);
  line-height: 1.6;
  opacity: 0.9;
}

/* Homepage Presets Styles */
.featured-post-section {
  margin-bottom: 40px;
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background-color: var(--card-bg-color, #2d2d2d);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color, #404040);
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.featured-post-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.featured-post-title a {
  color: var(--text-color, #ffffff);
  text-decoration: none;
}

.featured-post-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color-secondary, #cccccc);
}

.magazine-featured {
  margin-bottom: 40px;
}

.magazine-featured-post {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  background-color: var(--card-bg-color, #2d2d2d);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color, #404040);
}

.magazine-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 350px;
}

.magazine-featured-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.magazine-featured-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.magazine-featured-title a {
  color: var(--text-color, #ffffff);
  text-decoration: none;
}

.magazine-featured-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color-secondary, #cccccc);
}

.news-headlines {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color, #404040);
}

.news-headlines .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color, #ffffff);
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.magazine-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero-split-content {
    text-align: center;
  }
  
  .featured-post {
    grid-template-columns: 1fr;
  }
  
  .featured-post-image img {
    min-height: 250px;
  }
  
  .featured-post-content {
    padding: 30px 20px;
  }
  
  .featured-post-title {
    font-size: 1.8rem;
  }
  
  .magazine-featured-post {
    grid-template-columns: 1fr;
  }
  
  .magazine-featured-image img {
    min-height: 250px;
  }
  
  .magazine-featured-content {
    padding: 20px;
  }
  
  .magazine-featured-title {
    font-size: 1.5rem;
  }
  
  .hero-slider-text {
    min-height: 300px;
    padding: 40px 20px;
  }
  
  .hero-slide-text .hero-slide-title {
    font-size: 1.8rem;
  }
  
  .horizontal-card-content {
    flex-direction: column;
  }

  .horizontal-card-content.reverse {
    flex-direction: column;
  }

  .horizontal-thumbnail {
    flex: none;
    width: 100%;
  }

  .overlay-content {
    padding: 20px;
  }

  .overlay-title {
    font-size: 1.2rem;
  }
}
