

:root {
  --primary-color: #0d6efd;
  --dark-color: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --bg-light: #f8fafc;
  --tag-bg: #f1f5f9;
  --tag-text: #475569;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}




/*.btn-contact {
  background-color: #0077ff;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 20px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-contact:hover {
  background-color: #0056b3;
  color: #fff;
  transform: translateY(-1px);
}*/

/* MAIN CONTENT LAYOUT */
.main-page-heading {
  font-size: 2.75rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin: 2rem 0 2.5rem 0;
  letter-spacing: -1px;
}

/* BLOG GRID & CARDS */
.blog-grid-card {
  border: none;
  background: transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  height: 100%;
}

.blog-card-img-wrapper {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  aspect-ratio: 18 / 9;
}

.blog-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-grid-card:hover .blog-card-img-wrapper img {
  transform: scale(1.04);
}

.blog-meta {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  gap: 0 5px;
}

.blog-meta .author-name {
  font-weight: 600;
  color: #475569;
}

.blog-meta .views-badge {
  margin-left: auto;
  color: #64748b;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.blog-grid-card:hover .blog-card-title {
  color: #0077ff;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.75rem;
}

.tag-badge {
  background-color: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.tag-badge:hover {
  background-color: #0077ff;
  color: #ffffff;
}

/* SIDEBAR STYLING */
.sidebar-wrapper {
  padding-left: 1rem;
}

@media (max-width: 991px) {
  .sidebar-wrapper {
    padding-left: 0;
    margin-top: 3rem;
  }
}

.sidebar-widget {
  margin-bottom: 2.5rem;
}

.sidebar-widget-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
  position: relative;
  letter-spacing: -0.3px;
}

/* SEARCH WIDGET */
.sidebar-search-box {
  position: relative;
}

.sidebar-search-box input {
  padding: 12px 45px 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-search-box input:focus {
  outline: none;
  border-color: #0077ff;
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.15);
}

.sidebar-search-box .search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

/* FEATURED POSTS SIDEBAR ITEM */
.featured-post-item {
  display: flex;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.featured-post-item:last-child {
  border-bottom: none;
}

.featured-post-thumb {
  width: 90px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.featured-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-post-item:hover .featured-post-thumb img {
  transform: scale(1.08);
}

.featured-post-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-post-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 4px;
  transition: color 0.2s ease;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-post-item:hover .featured-post-title {
  color: #0077ff;
}

.featured-post-meta {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

/* RECENT POSTS SIDEBAR ITEM */
.recent-post-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.recent-post-item:last-child {
  border-bottom: none;
}

.recent-post-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.recent-post-item:hover .recent-post-title {
  color: #0077ff;
}

.recent-post-meta {
  font-size: 0.8rem;
  color: #64748b;
}

/* NEWSLETTER WIDGET */
.newsletter-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
}

.newsletter-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.newsletter-card p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

/* SINGLE BLOG DETAIL PAGE STYLING */
.single-blog-hero {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  aspect-ratio: 16 / 9;
}

.single-blog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-blog-meta {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.single-blog-meta .views {
  margin-left: auto;
  color: #475569;
  font-weight: 600;
}

.single-blog-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.single-blog-body p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 1.75rem;
}

.single-blog-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.single-blog-body blockquote {
  border-left: 4px solid #0077ff;
  padding: 1rem 1.5rem;
  background-color: #f8fafc;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #334155;
  margin: 2rem 0;
}

/* BACK TO BLOGS BUTTON */
.btn-back-blogs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fe6461;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease;
  padding-bottom: 30px;
}

.btn-back-blogs:hover {
  transform: translateX(-4px);
  color: #0056b3;
}

/* MODAL STYLING */
.modal-content {
  border-radius: 14px;
  border: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
}

.modal-title {
  font-weight: 700;
  color: #0f172a;
}

section.main-blogpage {padding-top: 140px;}

section.main-blogpage h1.main-page-heading {
    padding-bottom: 40px;
}

.blog-header nav#navbarBelow {
    background: linear-gradient(45deg, #fe6461, #2fb9e8);
}

section.blog-iner-page {
    padding-top: 130px;
}

/* LISTS IN BLOG POSTS */
.blog-details-list {
  padding-left: 1.5rem;
  margin-bottom: 1.75rem;
}

.blog-details-list li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 0.5rem;
}

/* TABLES IN BLOG POSTS */
.single-blog-body .table-responsive {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  margin: 2rem 0;
}

.single-blog-body .table {
  margin-bottom: 0;
}

.single-blog-body .table th {
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
  padding: 14px 18px;
  border-color: #1e293b;
}

.single-blog-body .table td {
  padding: 12px 18px;
  color: #334155;
  vertical-align: middle;
}

/* FAQ ACCORDION IN BLOG POSTS */
.faq-accordion-section {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.faq-accordion-section .accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #ffffff;
}

.faq-accordion-section .accordion-button {
  font-weight: 600;
  font-size: 1.05rem;
  color: #0f172a;
  padding: 1.1rem 1.25rem;
  background-color: #ffffff;
}

.faq-accordion-section .accordion-button:not(.collapsed) {
  color: #0d6efd;
  background-color: #eff6ff;
  box-shadow: none;
}

.faq-accordion-section .accordion-button:focus {
  box-shadow: none;
  border-color: #93c5fd;
}

.faq-accordion-section .accordion-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
  padding: 1.25rem;
  background-color: #ffffff;
}

/* BLOG CTA WRAPPER */
.blog-cta-wrapper {
  margin: 2.5rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed var(--border-color);
}

.blog-cta-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
