/**
 * TrackTech Theme - Blog Styles
 * 
 * Comprehensive blog styling for professional appearance
 */

/* ============================================
   Blog Page Header
   ============================================ */
.page-header {
    background: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
    padding: 160px 0 80px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg');
    opacity: 0.1;
    pointer-events: none;
}

.page-header .container {
    max-width: 1200px;
}

.page-header .breadcrumbs {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 16px;
}

.page-header .breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.page-header .breadcrumbs a:hover {
    color: #F5A623;
}

.page-header .breadcrumbs .separator {
    margin: 0 8px;
}

.page-title {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.2;
}

.archive-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    margin: 0;
    max-width: 600px;
}

/* ============================================
   Blog Layout Grid
   ============================================ */
.blog-layout {
    display: grid;
    gap: 60px;
    padding: 80px 0 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-layout.right-sidebar {
    grid-template-columns: 1fr 360px;
}

.blog-layout.left-sidebar {
    grid-template-columns: 360px 1fr;
}

.blog-layout.left-sidebar .sidebar {
    order: -1;
}

.blog-layout.no-sidebar,
.blog-layout.none-sidebar {
    grid-template-columns: 1fr;
    max-width: 1000px;
}

/* ============================================
   Blog Posts Grid
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

/* ============================================
   Post Card Styling
   ============================================ */
.post-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.post-card .post-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

.post-card .post-thumbnail.no-image {
    background: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card .post-thumbnail .placeholder-image {
    color: rgba(255, 255, 255, 0.2);
    font-size: 48px;
}

.post-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #F5A623;
    color: #0A1628;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
}

.post-card .post-content {
    padding: 24px;
}

.post-card .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6B7280;
}

.post-card .entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-card .entry-meta i {
    color: #F5A623;
    font-size: 12px;
}

.post-card .entry-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
}

.post-card .entry-title a {
    color: #1F2937;
    transition: color 0.2s;
}

.post-card .entry-title a:hover {
    color: #F5A623;
}

.post-card .entry-summary {
    color: #6B7280;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-card .entry-summary p {
    margin: 0;
}

.post-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F5A623;
    color: #0A1628;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s;
}

.post-card .read-more:hover {
    background: #D4920E;
    transform: translateX(4px);
}

/* ============================================
   Single Post Styles
   ============================================ */
.single-post {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-featured-image {
    height: 450px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post .entry-header {
    padding: 40px 40px 0;
}

.single-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #6B7280;
}

.single-post .entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.single-post .entry-meta i {
    color: #F5A623;
}

.single-post .entry-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #1F2937;
    margin: 0;
}

/* Entry Content - The Blog Post Body */
.single-post .entry-content {
    padding: 32px 40px 40px;
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
}

.single-post .entry-content p {
    margin-bottom: 24px;
    color: #374151;
}

.single-post .entry-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    margin: 48px 0 20px;
}

.single-post .entry-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1F2937;
    margin: 36px 0 16px;
}

.single-post .entry-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 28px 0 12px;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.single-post .entry-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.single-post .entry-content ul li {
    list-style-type: disc;
}

.single-post .entry-content ol li {
    list-style-type: decimal;
}

.single-post .entry-content a {
    color: #F5A623;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-post .entry-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: #F9FAFB;
    border-left: 4px solid #F5A623;
    border-radius: 0 12px 12px 0;
    font-size: 20px;
    font-style: italic;
    color: #4B5563;
}

.single-post .entry-content blockquote p {
    margin-bottom: 0;
}

.single-post .entry-content img {
    border-radius: 12px;
    margin: 32px 0;
}

.single-post .entry-content pre,
.single-post .entry-content code {
    background: #1F2937;
    color: #E5E7EB;
    border-radius: 8px;
}

.single-post .entry-content pre {
    padding: 24px;
    overflow-x: auto;
    margin: 24px 0;
}

.single-post .entry-content code {
    padding: 2px 8px;
    font-size: 14px;
}

/* Entry Footer - Tags & Share */
.single-post .entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 40px;
    border-top: 1px solid #E5E7EB;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-tags i {
    color: #9CA3AF;
}

.post-tags a {
    display: inline-block;
    background: #F3F4F6;
    color: #4B5563;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.2s;
}

.post-tags a:hover {
    background: #F5A623;
    color: #0A1628;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #F3F4F6;
    color: #6B7280;
    border-radius: 50%;
    transition: all 0.2s;
}

.post-share a:hover {
    transform: translateY(-3px);
}

.share-facebook:hover {
    background: #1877F2;
    color: #fff;
}

.share-twitter:hover {
    background: #000;
    color: #fff;
}

.share-linkedin:hover {
    background: #0A66C2;
    color: #fff;
}

.share-whatsapp:hover {
    background: #25D366;
    color: #fff;
}

/* ============================================
   Author Box
   ============================================ */
.author-box {
    display: flex;
    gap: 24px;
    padding: 32px 40px;
    margin: 0;
    background: #F9FAFB;
    border-radius: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9CA3AF;
    margin: 0 0 4px;
}

.author-name {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px;
}

.author-bio {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0 0 12px;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #F5A623;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   Post Navigation
   ============================================ */
.post-navigation {
    padding: 32px 40px;
    border-top: 1px solid #E5E7EB;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.nav-previous,
.nav-next {
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
    transition: all 0.2s;
}

.nav-previous:hover,
.nav-next:hover {
    background: #F3F4F6;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9CA3AF;
    margin-bottom: 6px;
}

.nav-title {
    color: #1F2937;
    font-weight: 600;
    font-size: 15px;
}

/* ============================================
   Related Posts
   ============================================ */
.related-posts {
    padding: 32px 40px;
    border-top: 1px solid #E5E7EB;
}

.related-posts h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 24px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    background: #F9FAFB;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.related-post-thumbnail {
    height: 140px;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    padding: 16px;
}

.related-post-date {
    font-size: 12px;
    color: #9CA3AF;
}

.related-post-content h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 6px 0 0;
}

.related-post-content h4 a {
    color: #1F2937;
}

.related-post-content h4 a:hover {
    color: #F5A623;
}

/* ============================================
   Comments Section
   ============================================ */
.comments-area {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    margin-top: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #F3F4F6;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    padding: 24px 0;
    border-bottom: 1px solid #F3F4F6;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-body {
    display: flex;
    gap: 16px;
}

.comment-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
}

.comment-date {
    font-size: 13px;
    color: #9CA3AF;
}

.comment-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4B5563;
}

.comment-text p {
    margin: 0;
}

.comment-actions {
    margin-top: 12px;
    display: flex;
    gap: 16px;
}

.comment-actions a {
    font-size: 13px;
    font-weight: 600;
    color: #F5A623;
}

/* Comment Form */
.comment-reply-title {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin: 40px 0 24px;
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #F5A623;
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form .form-submit {
    margin-top: 8px;
}

/* ============================================
   Sidebar Styles
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.widget {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F3F4F6;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #F5A623;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

.widget li:first-child {
    padding-top: 0;
}

.widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget a {
    color: #4B5563;
    font-size: 15px;
    transition: color 0.2s;
}

.widget a:hover {
    color: #F5A623;
}

/* Recent Posts Widget */
.widget_recent_posts li {
    display: flex;
    flex-direction: column;
}

.widget_recent_posts .post-date {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 4px;
}

/* Categories Widget */
.widget_categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: #F3F4F6;
    color: #6B7280;
    font-size: 12px;
    font-weight: 600;
    border-radius: 14px;
}

/* Newsletter Widget */
.widget_newsletter {
    background: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
    color: #fff;
}

.widget_newsletter .widget-title {
    color: #fff;
    border-bottom-color: #F5A623;
}

.widget_newsletter p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input[type="email"] {
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
}

.newsletter-form .btn {
    padding: 14px 20px;
}

/* Tags Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget_tag_cloud a {
    display: inline-block;
    background: #F3F4F6;
    color: #4B5563 !important;
    font-size: 13px !important;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.2s;
}

.widget_tag_cloud a:hover {
    background: #F5A623;
    color: #0A1628 !important;
}

/* ============================================
   Search Results Page
   ============================================ */
.search-header-content {
    margin-top: 20px;
}

.search-header-content .page-title span {
    color: #F5A623;
}

.search-form-wrapper {
    max-width: 500px;
    margin-top: 24px;
}

.search-results-count {
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 32px;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-result-item {
    display: flex;
    gap: 24px;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.search-result-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.result-thumbnail {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
}

.result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-content {
    flex: 1;
}

.result-type {
    display: inline-block;
    background: #F5A623;
    color: #0A1628;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.result-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.result-title a {
    color: #1F2937;
}

.result-title a:hover {
    color: #F5A623;
}

.result-excerpt {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
}

/* Search Form */
.search-form {
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-field {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 16px;
}

.search-field:focus {
    outline: none;
}

.search-submit {
    padding: 16px 24px;
    background: #F5A623;
    color: #0A1628;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-submit:hover {
    background: #D4920E;
}

/* ============================================
   404 Error Page
   ============================================ */
.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    padding-top: 140px;
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-size: 140px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #F5A623 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 12px;
}

.error-description {
    font-size: 17px;
    color: #6B7280;
    margin-bottom: 32px;
}

.error-search {
    max-width: 360px;
    margin: 0 auto 32px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.error-links {
    padding-top: 32px;
    border-top: 1px solid #E5E7EB;
}

.error-links h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 16px;
}

.error-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.error-links a {
    color: #F5A623;
    font-weight: 600;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-results-icon {
    font-size: 56px;
    color: #D1D5DB;
    margin-bottom: 24px;
}

.no-results h2 {
    font-size: 24px;
    color: #1F2937;
    margin: 0 0 8px;
}

.no-results p {
    color: #6B7280;
    margin: 0;
}

.search-suggestions {
    text-align: left;
    max-width: 360px;
    margin: 32px auto 0;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
}

.search-suggestions h3 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px;
}

.search-suggestions ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.search-suggestions li {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 6px;
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
    background: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
    padding: 64px 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-text h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    margin: 0;
}

.newsletter-form-inline {
    display: flex;
    max-width: 400px;
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.newsletter-form-inline input[type="email"] {
    flex: 1;
    padding: 18px 20px;
    border: none;
    font-size: 15px;
}

.newsletter-form-inline .btn {
    padding: 18px 28px;
    border-radius: 0;
}

/* ============================================
   Header Fixes
   ============================================ */
.site-header.solid {
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(10px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.header-search-toggle:hover {
    color: #F5A623;
}

.header-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.header-search.active {
    max-height: 100px;
    padding: 20px 0;
}

.header-search .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search .search-form {
    flex: 1;
}

.header-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #F3F4F6;
    border: none;
    border-radius: 50%;
    color: #6B7280;
    font-size: 18px;
    cursor: pointer;
}

.header-cta-btn {
    white-space: nowrap;
}

.mobile-search {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {

    .blog-layout.right-sidebar,
    .blog-layout.left-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-layout.left-sidebar .sidebar {
        order: 0;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 48px;
    }

    .page-title {
        font-size: 32px;
    }

    .blog-layout {
        padding: 40px 0 60px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .single-post .entry-header,
    .single-post .entry-content,
    .single-post .entry-footer,
    .author-box,
    .post-navigation,
    .related-posts {
        padding-left: 24px;
        padding-right: 24px;
    }

    .single-post .entry-title {
        font-size: 28px;
    }

    .single-post .entry-content {
        font-size: 16px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .nav-next {
        text-align: left;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .comments-area {
        padding: 24px;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form-inline {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
    }

    .newsletter-form-inline input[type="email"] {
        border-radius: 12px;
    }

    .newsletter-form-inline .btn {
        border-radius: 12px;
    }

    .search-result-item {
        flex-direction: column;
    }

    .result-thumbnail {
        width: 100%;
        height: 160px;
    }

    .header-search-toggle,
    .header-cta-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 26px;
    }

    .error-code {
        font-size: 100px;
    }

    .error-actions {
        flex-direction: column;
    }
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    margin-top: 48px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    color: #4B5563;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.pagination a:hover {
    background: #F5A623;
    color: #0A1628;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pagination .current {
    background: #F5A623;
    color: #0A1628;
}

.pagination .prev,
.pagination .next {
    gap: 8px;
}

/* ============================================
   Footer Improvements
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, #0A1628 0%, #050D17 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: #F5A623;
    color: #0A1628;
    transform: translateY(-3px);
}

.footer-column h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 14px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #F5A623;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact i {
    color: #F5A623;
    width: 18px;
    margin-top: 3px;
}

.footer-contact span,
.footer-contact a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

.footer-bottom-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-nav a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-bottom-nav a:hover {
    color: #F5A623;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-bottom-nav ul {
        justify-content: center;
    }
}