/* Blog Listing Styles -The Designer Bridge Style */
:root {
  --primary: #1b9db1;
  --primary-dark: #138294;
  --text: #2d2d2d;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --light: #f5f7f8;
  --accent: #ff8a00;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Main Content */
.main-content {
  padding: 40px 0 80px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--primary);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--primary-dark);
}

.breadcrumbs span {
  color: var(--muted);
}

/* Page Title */
.page-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 40px;
}

/* Blog Posts */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-post {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e6e6e6;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-image-link {
  display: block;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-image-link:hover .blog-image {
  transform: scale(1.05);
}

.blog-content {
  display: flex;
  flex-direction: column;
}

.blog-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 15px;
  color: var(--text);
  line-height: 1.3;
}

.blog-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-title a:hover {
  color: var(--primary);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 15px;
}

.blog-author {
  font-weight: 600;
  color: var(--text);
}

.blog-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 15px;
  flex: 1;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
  text-decoration: none;
}

.read-more:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: var(--light);
  padding: 25px;
  border-radius: 8px;
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}

/* Search Widget */
.search-form {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 45px 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
}

/* Contact Form Widget */
.contact-form-widget {
  background: #fff;
  border: 2px solid var(--primary);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.phone-input-group {
  display: flex;
  gap: 8px;
}

.phone-input-group select {
  width: 90px;
  flex-shrink: 0;
}

.phone-input-group input {
  flex: 1;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 12px;
  color: var(--muted);
  font-weight: normal;
  margin: 0;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  padding: 12px;
  background: #f04a4a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover {
  background: #d63939;
}

.form-disclaimer {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

.form-disclaimer a {
  color: var(--primary);
  text-decoration: underline;
}

/* Categories Widget */
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.categories-list li:last-child {
  border-bottom: none;
}

.categories-list a {
  color: var(--text);
  font-size: 14px;
  transition: color 0.2s;
  text-decoration: none;
  display: block;
}

.categories-list a:hover {
  color: var(--primary);
}

.category-count {
  color: var(--muted);
  font-size: 12px;
}

/* Floating Chat Icon */
.floating-chat {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-chat:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Blog Empty State */
.blog-empty {
  text-align: center;
  padding: 60px 20px;
}

.blog-empty h2 {
  font-size: 28px;
  color: var(--text);
  margin-bottom: 12px;
}

.blog-empty p {
  color: var(--muted);
  font-size: 16px;
}

/* Pagination */
.blog-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.blog-pagination .pagination {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-pagination .pagination li {
  display: inline-block;
}

.blog-pagination .pagination a,
.blog-pagination .pagination span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  border: 1px solid #ddd;
  color: var(--text);
  background: #fff;
}

.blog-pagination .pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.blog-pagination .pagination .active span {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Responsive Design */
@media (max-width: 968px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .blog-post {
    grid-template-columns: 1fr;
  }

  .blog-image-link {
    height: 250px;
  }

  .sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 32px;
  }

  .floating-chat {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .article-title {
    font-size: 28px;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .contact-form-inline {
    grid-template-columns: 1fr;
  }

  .post-navigation {
    flex-direction: column;
  }

  .ad-banner {
    flex-direction: column;
    text-align: center;
  }

  .ad-banner-image {
    width: 100%;
    height: 200px;
  }
}

/* Blog Detail Styles -The Designer Bridge Style */
.article-main {
  max-width: 100%;
}

.article-header {
  margin-bottom: 30px;
}

.article-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.article-author {
  font-weight: 600;
  color: var(--text);
}

.social-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e6e6;
}

.social-share span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon.facebook {
  background: #1877f2;
}

.social-icon.twitter {
  background: #1da1f2;
}

.social-icon.pinterest {
  background: #bd081c;
}

.social-icon.linkedin {
  background: #0077b5;
}

/* Article Content */
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.article-content p {
  margin-bottom: 20px;
}

.article-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: var(--text);
}

.article-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 30px 0 15px;
  color: var(--text);
}

.article-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: var(--shadow);
}

.article-content ul,
.article-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.article-content li {
  margin-bottom: 10px;
}

/* Advertisement Banners */
.ad-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  gap: 30px;
}

.ad-banner-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.ad-banner-content {
  flex: 1;
}

.ad-banner h3 {
  font-size: 24px;
  margin: 0 0 10px;
}

.ad-banner p {
  font-size: 14px;
  margin: 0 0 15px;
  opacity: 0.9;
}

.ad-banner .btn {
  background: #fff;
  color: var(--primary);
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  transition: background 0.2s;
}

.ad-banner .btn:hover {
  background: #f0f0f0;
}

/* Contact Form Section */
.contact-form-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1505691938895-1758d7feb511?q=80&w=1200&auto=format&fit=crop")
      center/cover;
  padding: 60px 40px;
  border-radius: 12px;
  margin: 50px 0;
  color: #fff;
  text-align: center;
}

.contact-form-section h2 {
  font-size: 32px;
  margin: 0 0 30px;
}

.contact-form-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-inline input {
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.contact-form-inline button {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form-inline button:hover {
  background: #e67a00;
}

/* Author Bio */
.author-bio {
  background: var(--light);
  padding: 30px;
  border-radius: 12px;
  margin: 50px 0;
  display: flex;
  gap: 20px;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-info h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--text);
}

.author-info p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Pagination */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 50px 0;
  padding-top: 30px;
  border-top: 1px solid #e6e6e6;
}

.nav-post {
  flex: 1;
  padding: 20px;
  background: var(--light);
  border-radius: 8px;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.nav-post:hover {
  background: #e8e8e8;
}

.nav-post-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.nav-post-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

/* Newsletter */
.newsletter {
  background: var(--primary);
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin: 50px 0;
}

.newsletter h3 {
  font-size: 24px;
  margin: 0 0 15px;
}

.newsletter p {
  font-size: 14px;
  margin: 0 0 20px;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
}

.newsletter-form button {
  padding: 12px 24px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Popular/Recent Posts */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.post-list-item:last-child {
  border-bottom: none;
}

.post-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.post-list-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 5px;
  color: var(--text);
  line-height: 1.4;
}

.post-list-content h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.post-list-content h4 a:hover {
  color: var(--primary);
}

.post-list-content .post-date {
  font-size: 12px;
  color: var(--muted);
}

/* Tags Widget */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Blog Hero (for listing page) */
.blog-hero {
  background: linear-gradient(135deg, #1b9db1 0%, #138294 100%);
  color: #fff;
  padding: 100px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.blog-hero p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
}

.blog-detail-section {
  padding: 60px 0 100px;
  background: linear-gradient(to bottom, #f8fafc 0%, #fff 100%);
}

.blog-detail-header {
  max-width: 900px;
  margin: 0 auto 40px;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1b9db1;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.back-to-blog:hover {
  color: #138294;
  gap: 12px;
}

.blog-detail-category {
  display: inline-block;
  color: #1b9db1;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(27, 157, 177, 0.1);
  border-radius: 20px;
}

.blog-detail-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 24px;
  line-height: 1.2;
}

.blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 2px solid #e5e7eb;
  font-size: 15px;
  color: #6b7280;
}

.blog-detail-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-detail-meta svg {
  flex-shrink: 0;
  color: #1b9db1;
}

.blog-detail-image {
  max-width: 1200px;
  margin: 0 auto 50px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.blog-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-detail-content {
  max-width: 900px;
  margin: 0 auto;
}

.blog-content-body {
  font-size: 18px;
  line-height: 1.9;
  color: #4b5563;
}

.blog-content-body h2 {
  font-size: 32px;
  font-weight: 800;
  color: #1f2937;
  margin-top: 48px;
  margin-bottom: 24px;
}

.blog-content-body h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 36px;
  margin-bottom: 16px;
}

.blog-content-body p {
  margin-bottom: 24px;
}

.blog-content-body ul,
.blog-content-body ol {
  margin: 24px 0;
  padding-left: 32px;
}

.blog-content-body li {
  margin-bottom: 12px;
}

.blog-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 32px 0;
}

.blog-content-body blockquote {
  border-left: 4px solid #1b9db1;
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: #6b7280;
  font-size: 20px;
}

.related-blogs {
  max-width: 1200px;
  margin: 80px auto 0;
  padding-top: 60px;
  border-top: 2px solid #e5e7eb;
}

.related-blogs h2 {
  font-size: 32px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 40px;
  text-align: center;
}

.related-blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.related-blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.related-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(27, 157, 177, 0.15);
  border-color: #1b9db1;
}

.related-blog-image-link {
  display: block;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e5e7eb;
}

.related-blog-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-blog-card:hover .related-blog-image-link img {
  transform: scale(1.1);
}

.related-blog-body {
  padding: 24px;
}

.related-blog-category {
  display: inline-block;
  color: #1b9db1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.related-blog-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.3;
}

.related-blog-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-blog-body h3 a:hover {
  color: #1b9db1;
}

.related-blog-body p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .blog-detail-section {
    padding: 40px 0 60px;
  }

  .blog-detail-image {
    margin-bottom: 32px;
    border-radius: 16px;
  }

  .blog-content-body {
    font-size: 16px;
  }

  .blog-content-body h2 {
    font-size: 28px;
  }

  .blog-content-body h3 {
    font-size: 22px;
  }

  .related-blogs-grid {
    grid-template-columns: 1fr;
  }
}
