/* Custom Pagination Styles */
.tj-pagination-area {
  padding: 60px 0 30px;
}

.pagination {
  margin: 0;
}

.pagination .page-item {
  margin: 0 3px;
}

.pagination .page-link {
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  color: #6b7385;
  font-weight: 500;
  padding: 12px 16px;
  transition: all 0.3s ease;
  background-color: #fff;
  line-height: 1;
}

.pagination .page-link:hover {
  background-color: var(--primary-color, #3b82f6);
  border-color: var(--primary-color, #3b82f6);
  color: #fff;
  transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color, #3b82f6);
  border-color: var(--primary-color, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.pagination .page-item.disabled .page-link {
  background-color: #f8f9fa;
  border-color: #e1e5e9;
  color: #adb5bd;
  cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
  background-color: #f8f9fa;
  border-color: #e1e5e9;
  color: #adb5bd;
  transform: none;
}

/* Responsive pagination */
@media (max-width: 576px) {
  .pagination .page-link {
    padding: 8px 12px;
    font-size: 14px;
  }

  .pagination .page-item:not(.disabled):not(.active) {
    display: none;
  }

  .pagination .page-item.active,
  .pagination .page-item:first-child,
  .pagination .page-item:last-child {
    display: block;
  }
}

/* Portfolio Filter Styles */
.portfolio-filter-tabs {
  margin-bottom: 3rem;
}

.filter-button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.filter-btn {
  background: transparent;
  border: 2px solid #e5e5e5;
  padding: 12px 24px;
  border-radius: 30px;
  color: #666;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--tj-color-theme-primary, #007bff);
  border-color: var(--tj-color-theme-primary, #007bff);
  color: #fff;
  transform: translateY(-2px);
}

.filter-btn.active {
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Portfolio Item Enhancements */
.tj-portfolio-item-two .portfolio-content .description {
  font-size: 14px;
  color: #666;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.tj-portfolio-item-two .portfolio-content .project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--tj-color-theme-primary, #007bff);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.tj-portfolio-item-two .portfolio-content .project-link:hover {
  color: var(--tj-color-theme-secondary, #0056b3);
  transform: translateX(3px);
}

/* Loading Spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .filter-button-group {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Blog Page Specific Styles */

/* Blog Categories and Tags */
.blog-categories-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-category {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--tj-color-theme-primary, #007bff);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
}

.blog-tags {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #666;
  font-size: 0.75rem;
}

.blog-tag {
  color: #666;
}

/* Blog Sidebar Styles */
.category-link,
.tag-link {
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  padding: 0;
  color: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
}

.category-link:hover,
.tag-link:hover {
  color: var(--tj-color-theme-primary, #007bff);
}

.sidebar-catagory ul li .category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
}

.sidebar-catagory ul li .category-link:hover {
  color: var(--tj-color-theme-primary, #007bff);
}

.sidebar-catagory ul li .category-link span {
  color: #666;
  transition: color 0.3s ease;
}

.sidebar-catagory ul li .category-link:hover span {
  color: var(--tj-color-theme-primary, #007bff);
}

/* Tag Cloud Styles */
.tagcloud .tag-link {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin: 0.25rem;
  display: inline-block;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #666;
}

.tagcloud .tag-link:hover {
  background: var(--tj-color-theme-primary, #007bff);
  border-color: var(--tj-color-theme-primary, #007bff);
  color: white;
  transform: translateY(-2px);
}

/* Blog Meta Enhancements */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.875rem;
}

.blog-meta span i {
  color: var(--tj-color-theme-primary, #007bff);
}

.blog-meta a {
  color: var(--tj-color-theme-primary, #007bff);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-meta a:hover {
  color: var(--tj-color-theme-secondary, #0056b3);
}

/* Loading Spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

.text-primary {
  color: var(--tj-color-theme-primary, #007bff) !important;
}

/* Blog List Item Spacing */
.details-item {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .blog-meta {
    gap: 0.5rem;
  }

  .blog-meta span {
    font-size: 0.8rem;
  }

  .blog-categories-tags {
    flex-direction: column;
    gap: 0.25rem;
  }

  .tagcloud .tag-link {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }
}

/* Search Box Enhancement */
.sidebar-search form {
  position: relative;
}

.sidebar-search input {
  width: 100%;
  padding-right: 3rem;
}

.sidebar-search button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.sidebar-search button:hover {
  color: var(--tj-color-theme-primary, #007bff);
}

/* Blog Pagination Custom Styles */
.blog-pagination ul {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.blog-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--tj-color-theme-primary, #007bff);
  border-color: var(--tj-color-theme-primary, #007bff);
  color: white;
}

/* Blog Detail Page Specific Styles */

/* Blog Content Styling */
.blog-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #222;
  font-weight: 600;
}

.blog-content h1 {
  font-size: 2rem;
}

.blog-content h2 {
  font-size: 1.75rem;
}

.blog-content h3 {
  font-size: 1.5rem;
}

.blog-content h4 {
  font-size: 1.25rem;
}

.blog-content h5 {
  font-size: 1.125rem;
}

.blog-content h6 {
  font-size: 1rem;
}

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

.blog-content blockquote {
  border-left: 4px solid var(--tj-color-theme-primary, #007bff);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: #f8f9fa;
  font-style: italic;
  position: relative;
}

.blog-content blockquote p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: #555;
}

.blog-content blockquote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--tj-color-theme-primary, #007bff);
}

.blog-content blockquote cite:before {
  content: "— ";
}

/* Blog Video Area */
.blog-video-area {
  margin: 2.5rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.blog-video-area .video-title {
  text-align: center;
  margin-bottom: 2rem;
}

.blog-video-area .video-title h3 {
  margin-bottom: 1rem;
  color: #222;
}

.blog-video-area .video-title p {
  color: #666;
  font-size: 1rem;
}

.video-box {
  align-items: center;
}

.video-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.video-play a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: var(--tj-color-theme-primary, #007bff);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.video-play a:hover {
  background: var(--tj-color-theme-primary, #007bff);
  color: white;
  transform: scale(1.1);
}

.video-content h4 {
  margin-bottom: 1rem;
  color: #222;
}

.video-content .check-list ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.video-content .check-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #555;
}

.video-content .check-list li i {
  color: var(--tj-color-theme-primary, #007bff);
  margin-right: 0.75rem;
  font-size: 0.875rem;
}

/* Tags and Share Section */
.tj-tags-post {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.tj-tags-post .tagcloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tj-tags-post .tagcloud span {
  font-weight: 600;
  color: #333;
  margin-right: 0.5rem;
}

.tj-tags-post .tagcloud a {
  background: white;
  border: 1px solid #ddd;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-decoration: none;
  color: #666;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.tj-tags-post .tagcloud a:hover {
  background: var(--tj-color-theme-primary, #007bff);
  border-color: var(--tj-color-theme-primary, #007bff);
  color: white;
}

.post-share ul {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-share ul li span {
  font-weight: 600;
  color: #333;
}

.post-share ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-share ul li a:hover {
  background: var(--tj-color-theme-primary, #007bff);
  border-color: var(--tj-color-theme-primary, #007bff);
  color: white;
  transform: translateY(-2px);
}

/* Comments Section */
.tj-comments-wrap {
  margin-top: 3rem;
}

.tj-latest-comment {
  margin-bottom: 3rem;
}

.tj-latest-comment .title {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.comment-content-area {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.comment-auother {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-avatar {
  flex-shrink: 0;
}

.comment-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-text {
  flex: 1;
}

.auother-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.auother-header .title-link a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
}

.auother-header .title-link a:hover {
  color: var(--tj-color-theme-primary, #007bff);
}

.auother-header .date {
  color: #888;
  font-size: 0.875rem;
}

.comment-text p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
}

.comment-reply {
  text-align: right;
}

.comment-reply .reply {
  color: var(--tj-color-theme-primary, #007bff);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

.comment-reply .reply:hover {
  text-decoration: underline;
}

/* Comment Form */
.tj-comment-respond {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 2rem;
}

.comment-header {
  margin-bottom: 2rem;
}

.comment-header .title {
  margin-bottom: 0.5rem;
}

.comment-header p {
  color: #666;
  margin: 0;
}

.form-input {
  margin-bottom: 1.5rem;
}

.form-input input,
.form-input textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input input:focus,
.form-input textarea:focus {
  outline: none;
  border-color: var(--tj-color-theme-primary, #007bff);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input textarea {
  resize: vertical;
  min-height: 120px;
}

.tj-blog-details-button {
  margin-top: 1rem;
}

.tj-primary-btn {
  background: var(--tj-color-theme-primary, #007bff);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tj-primary-btn:hover {
  background: var(--tj-color-theme-secondary, #0056b3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .tj-tags-post {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-share ul {
    margin-top: 1rem;
  }

  .comment-auother {
    flex-direction: column;
    gap: 0.75rem;
  }

  .comment-avatar {
    align-self: flex-start;
  }

  .auother-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .blog-content h1 {
    font-size: 1.75rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
  }

  .blog-content h3 {
    font-size: 1.25rem;
  }

  .video-box {
    flex-direction: column;
  }

  .video-image {
    margin-bottom: 1.5rem;
  }
}

/* Enhanced Typography for Blog Content */
.blog-content ul,
.blog-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.blog-content strong {
  font-weight: 600;
  color: #222;
}

.blog-content em {
  font-style: italic;
  color: #555;
}

.blog-content code {
  background: #f4f4f4;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: #e83e8c;
}

.blog-content pre {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-content pre code {
  background: none;
  padding: 0;
  color: #333;
}

/* Contact Page Specific Styles */

/* Contact Form Area */
.contact-form-area {
  padding: 3rem 0;
}

.contact-left-content {
  padding-right: 2rem;
}

.contact-form-wrapper {
  padding-left: 2rem;
}

/* Contact Info Items */
.contact-info-list {
  margin: 2rem 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.contact-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #50e3c2 0%, #5f6dfa 100%);
  margin-right: 1rem;
}

.contact-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.contact-icon i {
  color: white;
  font-size: 1.25rem;
}

.contact-content {
  flex: 1;
}

.contact-header span {
  display: block;
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.contact-header a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.125rem;
}

.contact-header a:hover {
  color: var(--tj-color-theme-primary, #007bff);
}

.contact-header address {
  margin: 0;
  font-style: normal;
  line-height: 1.6;
  color: #555;
}

/* WhatsApp Button */
.whatsapp-link {
  margin-top: 0.75rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background: #128c7e;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
  font-size: 1rem;
}

/* Social Media Links */
.social-media-section h5 {
  margin-bottom: 1rem;
  color: #333;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  color: white;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link.whatsapp {
  background: #25d366;
}

.social-link.whatsapp:hover {
  background: #128c7e;
}

.social-link.instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.social-link.linkedin {
  background: #0077b5;
}

.social-link.linkedin:hover {
  background: #005885;
}

.social-link.facebook {
  background: #1877f2;
}

.social-link.facebook:hover {
  background: #166fe5;
}

.social-link.twitter {
  background: #1da1f2;
}

.social-link.twitter:hover {
  background: #0d8bd9;
}

/* Contact Form Styling */
.contact-form-container {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-input {
  margin-bottom: 1.5rem;
}

.form-input label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-input input,
.form-textarea textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-input input:focus,
.form-textarea textarea:focus {
  outline: none;
  border-color: var(--tj-color-theme-primary, #007bff);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-textarea textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.tj-contact-button {
  margin-top: 1rem;
}

.tj-primary-btn {
  background: var(--tj-color-theme-primary, #007bff);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.tj-primary-btn:hover:not(:disabled) {
  background: var(--tj-color-theme-secondary, #0056b3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.tj-primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Alert Messages */
.alert {
  padding: 1rem;
  border-radius: 5px;
  margin-top: 1rem;
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Map Section */
.tj-map-section {
  margin-top: 3rem;
}

.map-wrapper {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-iframe {
  width: 100%;
  height: 100%;
}

.map-iframe iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-wrapper {
  padding-left: 0;
}

@media (max-width: 768px) {
  .contact-info-item {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .contact-icon {
    align-self: center;
    margin-bottom: 1rem;
  }

  .social-links {
    justify-content: center;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .tj-primary-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .map-wrapper {
    height: 300px;
  }

  .whatsapp-btn {
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .social-link {
    width: 40px;
    height: 40px;
  }

  .contact-info-item {
    margin-bottom: 1.5rem;
  }

  .contact-form-container {
    padding: 1rem;
  }
}

/* Enhanced Contact Section Animation */
.contact-info-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.contact-info-item:nth-child(1) {
  animation-delay: 0.1s;
}

.contact-info-item:nth-child(2) {
  animation-delay: 0.2s;
}

.contact-info-item:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating WhatsApp Button (Optional - for sticky WhatsApp) */
.floating-whatsapp {
  position: fixed;
  right: 30px;
  bottom: 90px;
  z-index: 10000;
}

.floating-whatsapp .whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp .whatsapp-btn i {
  font-size: 1.5rem;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

/* Contact Form Focus States */
.form-input input:valid,
.form-textarea textarea:valid {
  border-color: #28a745;
}

/* Remove red border on untouched/empty inputs */
.form-input input:invalid:not(:placeholder-shown),
.form-textarea textarea:invalid:not(:placeholder-shown) {
  border-color: #e9ecef;
}

/* Success and Error States */
.form-input.success input,
.form-textarea.success textarea {
  border-color: #28a745;
  background-color: #f8fff9;
}

.form-input.error input,
.form-textarea.error textarea {
  border-color: #dc3545;
  background-color: #fff8f8;
}

/* Loading State for Form */
.form-loading {
  position: relative;
  overflow: hidden;
}

.form-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.comntact-list {
  display: flex !important;
  align-items: center !important;
}

/* Reduce vertical gap between services grid and contact form on Services page */
.services-page-section .tj-service-section {
  padding-bottom: 20px !important;
}
.services-page-section .tj-contact-section {
  padding-top: 20px !important;
}

/* Fix for FAQ and Portfolio section overlap */
.tj-portfolio-section {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  padding-bottom: 12px; /* Ensure adequate bottom padding */
  min-height: auto; /* Allow natural height */
  overflow: hidden; /* Prevent shape elements from extending beyond section */
}

.tj-faq-section {
  position: relative;
  z-index: 2;
  margin-top: 0;
  overflow: hidden; /* Prevent shape elements from extending beyond section */
}

/* Ensure shape elements don't overlap */
.portfolio-section-shape {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden; /* Only hide overflow for shape container */
}

.faq-section-shape {
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden; /* Only hide overflow for shape container */
}

/* Additional spacing if needed */
.tj-portfolio-section + .tj-faq-section {
  margin-top: 0;
}

/* Ensure proper stacking context and containment */
.tj-portfolio-section .portfolio-section-shape {
  pointer-events: none;
}

.tj-faq-section .faq-section-shape {
  pointer-events: none;
}

/* Fix for specific portfolio shape elements that might be causing overlap */
.portfolio-section-shape .portfolio-bg-shape,
.portfolio-section-shape .portfolio-bg-shape1,
.portfolio-section-shape .portfolio-bg-shape2,
.portfolio-section-shape .portfolio-bg-shape3,
.portfolio-section-shape .portfolio-bg-shape4,
.portfolio-section-shape .portfolio-bg-shape5,
.portfolio-section-shape .portfolio-bg-shape6 {
  pointer-events: none;
  max-width: 100%;
  max-height: 100%;
}

/* Ensure bottom-positioned shapes don't extend beyond section */
.portfolio-section-shape .portfolio-bg-shape1,
.portfolio-section-shape .portfolio-bg-shape4,
.portfolio-section-shape .portfolio-bg-shape5 {
  bottom: 0 !important;
  max-height: 100%;
}

/* Ensure right-positioned shapes don't extend beyond section */
.portfolio-section-shape .portfolio-bg-shape,
.portfolio-section-shape .portfolio-bg-shape2,
.portfolio-section-shape .portfolio-bg-shape3 {
  right: 0 !important;
  max-width: 100%;
}

/* Ensure left-positioned shapes don't extend beyond section */
.portfolio-section-shape .portfolio-bg-shape6 {
  left: 0 !important;
  max-width: 100%;
}

/* Ensure FAQ shape doesn't interfere */
.faq-section-shape .faq-bg-shape {
  pointer-events: none;
  max-width: 100%;
  max-height: 100%;
}

/* Fix FAQ image group positioning to prevent overlap */
.faq-image-group {
  overflow: hidden;
}

.faq-image-group .faq-image1 .group-image {
  bottom: 0 !important;
  max-height: 100%;
}

/* Ensure all FAQ-related elements stay within bounds */
.tj-faq-section .faq-image-group,
.tj-faq-section .faq-section-shape {
  overflow: hidden;
}

/* Ensure portfolio content displays fully */
.portfolio-items-area {
  position: relative;
  z-index: 2;
  margin-bottom: 100px; /* More space at bottom of portfolio items */
  padding-bottom: 100px; /* More padding at bottom of portfolio items */
  min-height: 600px; /* Ensure minimum height for portfolio items */
  height: auto;
}

.portfolio-content {
  position: relative;
  z-index: 2;
}

.portfolio-gallery {
  position: relative;
  z-index: 2;
}

/* Ensure portfolio items are not clipped */
.portfolio-single-item {
  position: relative;
  z-index: 2;
  display: block;
  height: auto;
}

.portfolio-single {
  position: relative;
  z-index: 2;
  height: auto;
}

/* Ensure portfolio grid displays properly */
.portfolio-items {
  position: relative;
  z-index: 2;
  height: auto !important;
  min-height: auto !important;
}

.portfolio-gallery {
  position: relative;
  z-index: 2;
  height: auto;
  min-height: auto;
}

/* Ensure masonry layout works properly */
.masonary {
  height: auto !important;
  min-height: auto !important;
}

/* Fix overlap by ensuring proper spacing between sections */
.tj-portfolio-section {
  margin-bottom: 0px; /* Even more space between portfolio and FAQ sections */
  position: relative;
  z-index: 1;
  padding-bottom: 200px; /* More bottom padding to ensure content is fully visible */
  min-height: 800px; /* Ensure minimum height for portfolio section */
}

.tj-faq-section {
  margin-top: 0px; /* Even more space between FAQ and portfolio sections */
  position: relative;
  z-index: 2;
  background: var(--tj-color-common-white); /* Ensure FAQ has solid background */
  clear: both; /* Clear any floating elements */
}

/* Ensure portfolio content is fully visible */
.tj-portfolio-section .container {
  position: relative;
  z-index: 3;
  overflow: visible; /* Allow content to be visible */
}

/* Ensure FAQ content is properly positioned */
.tj-faq-section .container {
  position: relative;
  z-index: 3;
  overflow: visible; /* Allow content to be visible */
}

/* Ensure portfolio section background extends properly */
.tj-portfolio-section {
  background: linear-gradient(117deg, var(--tj-color-grey-2) 8.79%, var(--tj-color-grey-3) 98.63%);
  background-clip: padding-box; /* Ensure background doesn't extend beyond padding */
  min-height: 800px; /* Ensure minimum height */
  height: auto; /* Allow content to determine height */
  overflow: visible; /* Allow content to extend beyond section if needed */
}
