.cookie-alert {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  border-radius: 0;
}

/* Ad slots */
.ad-slot {
  width: 100%;
  overflow: hidden;
}

.ad-slot > * {
  max-width: 100%;
}

/* ── Homepage: Category header on TOP, 4 tools per row ── */

/* Stack category title above tools (override the default side-by-side flex) */
.content-sec .content-sec-inner {
  flex-direction: column !important;
}

/* Make category title full-width and horizontal (icon + text inline) */
.content-sec .content-sec-inner .content-title-sec {
  width: 100% !important;
  flex-direction: row !important;
  align-items: center !important;
  margin-bottom: 28px !important;
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(76, 63, 242, 0.12);
}

.content-sec .content-sec-inner .content-title-sec .content-title-icon {
  margin-bottom: 0 !important;
  margin-right: 16px;
  flex-shrink: 0;
}

/* Make tool grid full-width */
.content-sec .content-sec-inner .content-cats-sec {
  width: 100% !important;
  flex: unset !important;
}

/* 4 columns on desktop */
.content-sec .content-sec-inner .content-cats-sec .content-cats-col {
  flex: 0 0 25% !important;
  width: 25% !important;
}

/* 3 columns on tablet-wide (≤1200px) */
@media (max-width: 1200px) {
  .content-sec .content-sec-inner .content-cats-sec .content-cats-col {
    flex: 0 0 33.333% !important;
    width: 33.333% !important;
  }
}

/* 2 columns on tablet (≤768px) */
@media (max-width: 768px) {
  .content-sec .content-sec-inner .content-cats-sec .content-cats-col {
    flex: 0 0 50% !important;
    width: 50% !important;
  }
}

/* 1 column on phone (≤480px) */
@media (max-width: 480px) {
  .content-sec .content-sec-inner .content-cats-sec .content-cats-col {
    flex: 0 0 100% !important;
    width: 100% !important;
    padding: 0 !important;
  }
}

/* reCAPTCHA Global Styles */
.tool-recaptcha-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.tool-recaptcha-wrapper .recaptcha-error-msg {
    order: 2;
}

.tool-recaptcha-wrapper .g-recaptcha {
    order: 1;
}

/* Footer redesign overrides */
#main-site-footer.site-footer {
  min-height: auto !important;
  margin-bottom: 10px !important;
  padding: 14px 16px 10px !important;
  background: #f7f9fc !important;
  border: 1px solid rgba(76, 63, 242, 0.12) !important;
  box-shadow: none !important;
  border-radius: 14px !important;
  display: block !important;
}

#main-site-footer .footer-logo-img {
  max-height: 36px;
  width: auto;
}

#main-site-footer .site-footer-links a {
  color: var(--color-secondary) !important;
  font-size: 15px;
  font-weight: 500;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
  border-radius: 0 !important;
}

#main-site-footer .site-footer-links {
  gap: 4px 0 !important;
}

#main-site-footer .site-footer-links .footer-link-item {
  display: inline-flex;
  align-items: center;
  margin-right: 14px !important;
  margin-bottom: 6px !important;
  line-height: 1.4;
}

#main-site-footer .site-footer-links .footer-link-item:not(:last-child)::after {
  content: "•";
  margin-left: 14px;
  color: rgba(17, 24, 42, 0.45);
}

#main-site-footer .site-footer-links a:hover,
#main-site-footer .site-footer-links a:focus {
  color: var(--color-primary) !important;
}

#main-site-footer .site-footer-credit,
#main-site-footer .site-footer-meta {
  color: rgba(17, 24, 42, 0.72) !important;
}

#main-site-footer .site-footer-credit a {
  color: var(--color-primary) !important;
  font-weight: 600;
}

#main-site-footer .footer-back-top {
  color: var(--color-primary) !important;
  font-weight: 600;
  white-space: nowrap;
}

.dark #main-site-footer .site-footer-links a {
  color: rgba(255, 255, 255, 0.85) !important;
}

.dark #main-site-footer {
  background: #171b28 !important;
  border-color: rgba(73, 185, 235, 0.22) !important;
}

.dark #main-site-footer .site-footer-links .footer-link-item:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.4);
}

.dark #main-site-footer .site-footer-links a:hover,
.dark #main-site-footer .site-footer-links a:focus {
  color: var(--color-blue) !important;
}

.dark #main-site-footer .site-footer-credit,
.dark #main-site-footer .site-footer-meta {
  color: rgba(255, 255, 255, 0.7) !important;
}

.dark #main-site-footer .footer-back-top {
  color: var(--color-blue) !important;
}

@media (max-width: 768px) {
  #main-site-footer.site-footer {
    padding: 10px 12px 8px !important;
  }

  #main-site-footer .footer-logo-img {
    max-height: 30px;
  }

  #main-site-footer .site-footer-credit {
    width: 100%;
    font-size: 13px;
  }

  #main-site-footer .site-footer-links .footer-link-item {
    margin-right: 12px !important;
    margin-bottom: 4px !important;
    font-size: 14px;
  }

  #main-site-footer .site-footer-links .footer-link-item:not(:last-child)::after {
    margin-left: 12px;
  }
}

/* Legal page styling */
.legal-policy h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 22px;
}

.legal-policy p {
  line-height: 1.7 !important;
  margin-bottom: 12px !important;
}

.legal-policy ul,
.legal-policy ol {
  padding-left: 1.2rem;
  margin-bottom: 14px;
}

.legal-policy li {
  margin-bottom: 8px;
  line-height: 1.65;
}

/* Contact CTA block above footer */
.home-helping-sec {
  background: #f7f9fc !important;
  border: 1px solid rgba(76, 63, 242, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  padding: 34px 36px !important;
  min-height: auto !important;
}

.home-helping-sec h3 {
  color: rgba(17, 24, 42, 0.65) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 4px !important;
}

.home-helping-sec h2 {
  color: #11182a !important;
  font-size: 34px !important;
  line-height: 1.2 !important;
  margin-bottom: 12px !important;
}

.home-helping-sec p {
  color: rgba(17, 24, 42, 0.78) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin-bottom: 18px !important;
  max-width: 520px;
}

.home-helping-sec .btn.custom--btn.btn__light {
  background: #11182a !important;
  color: #ffffff !important;
  border: 1px solid #11182a !important;
  border-radius: 999px !important;
  padding: 0 24px !important;
  line-height: 44px !important;
  min-height: 44px;
}

.home-helping-sec .btn.custom--btn.btn__light:hover,
.home-helping-sec .btn.custom--btn.btn__light:focus {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.dark .home-helping-sec {
  background: #171b28 !important;
  border-color: rgba(73, 185, 235, 0.22) !important;
}

.dark .home-helping-sec h3 {
  color: rgba(255, 255, 255, 0.72) !important;
}

.dark .home-helping-sec h2 {
  color: #ffffff !important;
}

.dark .home-helping-sec p {
  color: rgba(255, 255, 255, 0.82) !important;
}

@media (max-width: 768px) {
  .home-helping-sec {
    padding: 22px 18px !important;
  }

  .home-helping-sec h2 {
    font-size: 28px !important;
  }

  .home-helping-sec p {
    font-size: 15px !important;
    margin-bottom: 14px !important;
  }
}

/* Desktop header nav modern look */
@media (min-width: 1201px) {
  header .header-navbar ul {
    gap: 8px;
  }

  header .header-navbar ul li {
    margin-right: 0 !important;
  }

  header .header-navbar ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.2s ease;
  }

  header .header-navbar ul li a:hover,
  header .header-navbar ul li a:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
  }

  .dark header .header-navbar ul li a {
    background: rgba(73, 185, 235, 0.08);
    border-color: rgba(73, 185, 235, 0.26);
  }

  .dark header .header-navbar ul li a:hover,
  .dark header .header-navbar ul li a:focus {
    background: rgba(73, 185, 235, 0.18);
    border-color: rgba(73, 185, 235, 0.42);
  }
}

/* Contact form modern UI */
.contact-page-modern .contact-shell {
  background: linear-gradient(135deg, rgba(76, 63, 242, 0.06) 0%, rgba(73, 185, 235, 0.08) 100%);
  border: 1px solid rgba(76, 63, 242, 0.12);
  box-shadow: 0 10px 24px rgba(17, 24, 42, 0.08);
}

.contact-modern-form {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 42, 0.08);
  padding: 18px;
}

.contact-modern-form .contact-form-head {
  margin-bottom: 14px;
}

.contact-modern-form .contact-form-head h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-modern-form .contact-form-head p {
  margin: 0;
  color: rgba(17, 24, 42, 0.68);
}

.contact-modern-form .contact-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(17, 24, 42, 0.72);
  margin-bottom: 6px;
}

.contact-modern-form .contact-input,
.contact-modern-form .contact-textarea {
  border-radius: 12px !important;
  border: 1px solid rgba(17, 24, 42, 0.12) !important;
  background: #fdfdff;
  transition: all 0.2s ease;
}

.contact-modern-form .contact-input:focus,
.contact-modern-form .contact-textarea:focus {
  border-color: rgba(76, 63, 242, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(76, 63, 242, 0.12) !important;
}

.contact-modern-form .contact-submit-btn {
  min-width: 180px;
}

.dark .contact-page-modern .contact-shell {
  background: linear-gradient(135deg, rgba(76, 63, 242, 0.14) 0%, rgba(73, 185, 235, 0.11) 100%);
  border-color: rgba(73, 185, 235, 0.2);
}

.dark .contact-modern-form {
  background: #131b2c;
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .contact-modern-form .contact-form-head h2 {
  color: #ffffff;
}

.dark .contact-modern-form .contact-form-head p,
.dark .contact-modern-form .contact-label {
  color: rgba(255, 255, 255, 0.72);
}

.dark .contact-modern-form .contact-input,
.dark .contact-modern-form .contact-textarea {
  background: #0f1727;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Blog listing modernization */
.blog-list-modern .blog-sec-col {
  border: 1px solid rgba(17, 24, 42, 0.1);
  box-shadow: 0 10px 24px rgba(17, 24, 42, 0.08);
  border-radius: 16px;
  padding: 14px;
  min-height: 100%;
  top: 0 !important;
  border-bottom-width: 1px !important;
}

.blog-list-modern .blog-sec-col:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 63, 242, 0.28);
}

.blog-list-modern .blog-sec-col .blog-sec-image {
  border-radius: 12px;
  margin-bottom: 14px;
}

.blog-list-modern .blog-title-sec {
  margin-bottom: 8px;
}

.blog-list-modern .blog-title-sec h2 {
  font-size: 20px;
  line-height: 1.35;
}

.blog-list-modern .blog-sec-col p {
  height: auto;
  max-height: 68px;
  line-height: 1.5;
  color: rgba(17, 24, 42, 0.78);
}

.dark .blog-list-modern .blog-sec-col {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.dark .blog-list-modern .blog-sec-col:hover {
  border-color: rgba(73, 185, 235, 0.32);
}

.dark .blog-list-modern .blog-sec-col p {
  color: rgba(255, 255, 255, 0.76);
}

/* Blog post 70/30 with sidebar */
.blog-post-layout .single-page-inner {
  margin-bottom: 0 !important;
}

.blog-sidebar {
  position: sticky;
  top: 24px;
}

.blog-sidebar-ad .ad-slot {
  margin: 0 !important;
}

.blog-sidebar-card {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 42, 0.1);
  border-radius: 14px;
  padding: 14px;
}

.blog-sidebar-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.blog-sidebar-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(17, 24, 42, 0.08);
}

.blog-sidebar-item:last-child {
  border-bottom: 0;
}

.blog-sidebar-item img {
  width: 84px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}

.blog-sidebar-item h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.blog-sidebar-item p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  color: rgba(17, 24, 42, 0.72);
}

.dark .blog-sidebar-card {
  background: #131b2c;
  border-color: rgba(255, 255, 255, 0.12);
}

.dark .blog-sidebar-card h3,
.dark .blog-sidebar-item h4 {
  color: #ffffff;
}

.dark .blog-sidebar-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark .blog-sidebar-item p {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 992px) {
  .blog-sidebar {
    position: static;
  }
}

.blog-share-box {
  margin-top: 22px;
  margin-bottom: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 24, 42, 0.12);
}

.blog-share-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-share-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 42, 0.15);
  background: #f7f9fc;
  color: #11182a;
  font-size: 13px;
  font-weight: 600;
}

.blog-share-links a:hover,
.blog-share-links a:focus {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.dark .blog-share-box {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.dark .blog-share-label {
  color: #ffffff;
}

.dark .blog-share-links a {
  background: #171b28;
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}