/* Blog Page Styles */
.blog-filter-section {
  background: #f8f9fa;
  padding: 2rem 0;
  margin-bottom: 3rem;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid #1464ff;
  background: transparent;
  color: #1464ff;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: #1464ff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(20, 100, 255, 0.3);
}

.search-container {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.search-input:focus {
  outline: none;
  border-color: #1464ff;
  box-shadow: 0 0 0 3px rgba(20, 100, 255, 0.1);
}

.search-input.searching {
  border-color: #f79433;
  box-shadow: 0 0 0 3px rgba(247, 148, 51, 0.1);
}

.search-input::placeholder {
  color: #999;
  font-style: italic;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 1.2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
}

.blog-category {
  display: inline-block;
  background: #f79433;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: #333;
}

.blog-title:hover {
  color: #1464ff;
  cursor: pointer;
}

.blog-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.85rem;
  color: #888;
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more {
  color: #1464ff;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #f79433;
  transform: translateX(-3px);
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-size: 1.1rem;
}

.no-results-hidden {
  display: none !important;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.page-header {
  background: linear-gradient(135deg, #1464ff 0%, #f79433 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.results-count {
  text-align: center;
  margin: 2rem 0;
  font-size: 1.1rem;
  color: #666;
}

/* Footer Styles */
.roya_footer {
  background: #1a1a1a;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-brand img {
  filter: brightness(0) invert(1);
  width: 120px;
}

.footer-brand p {
  margin-top: 1rem;
  color: #ccc;
}

.footer-section-title {
  color: #f79433;
  margin-bottom: 1rem;
}

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

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-list a {
  color: #ccc;
  text-decoration: none;
}

.footer-list a:hover {
  color: #f79433;
}

.footer-contact {
  color: #ccc;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-contact i {
  margin-left: 0.5rem;
}

.footer-divider {
  border-color: #333;
  margin: 2rem 0 1rem;
}

.footer-copyright {
  text-align: center;
  color: #888;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
    gap: 0.75rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .search-container {
    margin-top: 1rem;
  }
}

/* Blog Details Styles */
.breadcrumb-section {
  background: #f8f9fa;
  padding: 1rem 0;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #666;
}

.breadcrumb-item a {
  color: #1464ff;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #666;
}

.blog-details-section {
  padding: 3rem 0;
}

.blog-details-content {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.blog-header {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.blog-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.blog-meta {
  font-size: 0.9rem;
  color: #666;
}

.blog-meta i {
  color: #1464ff;
  margin-left: 0.5rem;
}

.blog-featured-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.blog-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f79433;
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 1.5rem 0 1rem;
}

.blog-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1464ff;
  margin: 1.5rem 0 1rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content .lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: #555;
  border-right: 4px solid #f79433;
  padding-right: 1rem;
  margin-bottom: 2rem;
}

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

.custom-list li {
  margin-bottom: 0.75rem;
  padding-right: 1.5rem;
  position: relative;
}

.custom-list li::before {
  content: "✓";
  color: #f79433;
  font-weight: bold;
  position: absolute;
  right: 0;
  top: 0;
}

.highlight-box {
  border-right: 4px solid #1464ff;
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

.blockquote {
  border-right: 4px solid #f79433;
  font-size: 1.2rem;
  font-style: italic;
}

.blog-footer {
  border-top: 2px solid #f0f0f0;
  padding-top: 2rem;
  margin-top: 3rem;
}

.blog-tags .badge {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  border: 1px solid #ddd;
}

.social-share .btn {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.author-info {
  border: 1px solid #e0e0e0;
}

.author-avatar {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.blog-navigation .nav-link-prev,
.blog-navigation .nav-link-next {
  text-decoration: none;
  color: #333;
  padding: 1rem;
  border-radius: 10px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  display: block;
}

.blog-navigation .nav-link-prev:hover,
.blog-navigation .nav-link-next:hover {
  background: #1464ff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(20, 100, 255, 0.3);
}

.nav-title {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Sidebar Styles */
.blog-sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar-widget {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f79433;
}

.categories-list li a {
  text-decoration: none;
  color: #666;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.categories-list li a:hover {
  color: #1464ff;
}

.recent-post-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.recent-post-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.recent-post-title a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.recent-post-title a:hover {
  color: #1464ff;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: #1464ff;
  color: white;
  border-color: #1464ff;
}

.newsletter-widget {
  background: linear-gradient(135deg, #1464ff 0%, #f79433 100%);
  color: white;
}

.newsletter-widget .widget-title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-widget p {
  color: rgba(255, 255, 255, 0.9);
}

.newsletter-form .form-control {
  border: none;
  border-radius: 25px;
  padding: 0.75rem 1rem;
}

.newsletter-form .btn {
  border-radius: 25px;
  background: white;
  color: #1464ff;
  font-weight: 600;
  border: none;
}

.newsletter-form .btn:hover {
  background: #f79433;
  color: white;
}

/* Related Posts Section */
.related-posts-section {
  background: #f8f9fa;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 50%;
  height: 3px;
  background: #f79433;
}

/* Responsive for Blog Details */
@media (max-width: 992px) {
  .blog-sidebar {
    position: static;
    margin-top: 3rem;
  }
}

@media (max-width: 768px) {
  .blog-details-content {
    padding: 1.5rem;
  }

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

  .blog-meta {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .blog-navigation .row > div {
    margin-bottom: 1rem;
  }

  .social-share {
    margin-top: 1rem;
  }
}
