/* Small modern overrides on top of template CSS */

:root {
  --iarc-radius: 14px;
  --iarc-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --iarc-shadow-hover: 0 16px 44px rgba(17, 24, 39, 0.14);
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header polish */
.navbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Fix industries dropdown - make it scrollable */
.dropdown {
  max-height: 400px;
  overflow-y: auto;
  z-index: 9999;
  border: 1px solid #e74c3c;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown ul {
  max-height: 350px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

.dropdown ul li {
  display: block;
  width: 100%;
}

/* Ensure industries are visible */
.navbar-nav {
  overflow: visible;
}

/* Fix dropdown positioning */
li:hover > .dropdown {
  display: block !important;
}

/* Better scrollbar styling */
.dropdown::-webkit-scrollbar {
  width: 8px;
}

.dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dropdown::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

/* Cards */
.news-post,
.contact-box,
.widget,
.single-post-content img {
  border-radius: var(--iarc-radius);
}

.news-post.article-post,
.news-post.standard-post,
.top-list-posts,
.contact-box,
.widget {
  box-shadow: var(--iarc-shadow);
  background: #ffffff;
  overflow: hidden;
}

.news-post.article-post:hover,
.news-post.standard-post:hover,
.widget:hover {
  box-shadow: var(--iarc-shadow-hover);
  transform: translateY(-2px);
  transition: all 180ms ease;
}

.news-post .image-holder img,
.single-post-content > img {
  border-top-left-radius: var(--iarc-radius);
  border-top-right-radius: var(--iarc-radius);
}

/* Improve spacing on post detail */
.single-post .post-content-text h1 {
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.single-post .post-content-text p {
  line-height: 1.85;
  margin-bottom: 1.1rem;
  text-align: justify;
  text-justify: inter-word;
}

.single-post .post-content-text {
  padding: 24px 26px 26px;
  max-width: 780px;
  margin: 0 auto;
  font-size: 15.5px;
  color: rgba(17, 24, 39, 0.88);
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: justify;
}

.single-post .post-content-text blockquote {
  border-left: 4px solid rgba(17, 24, 39, 0.2);
  margin: 1.2rem 0;
  color: rgba(17, 24, 39, 0.8);
  background: rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
}

.single-post .post-content-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 14.5px;
}

.single-post .post-content-text table td,
.single-post .post-content-text table th {
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 10px 12px;
  vertical-align: top;
}

.single-post .post-content-text h2,
.single-post .post-content-text h3,
.single-post .post-content-text h4 {
  margin: 1.25rem 0 0.65rem;
  line-height: 1.25;
}

.single-post .post-content-text ul,
.single-post .post-content-text ol {
  padding-left: 1.2rem;
  margin: 0.25rem 0 1rem;
}

.single-post .post-content-text li {
  margin: 0.25rem 0;
}

.single-post .post-content-text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.single-post .post-content-text img {
  border-radius: 12px;
}

/* Comments area – align with theme */
.comments {
  margin-top: 40px;
}

.comments-title {
  margin-bottom: 0;
}

.comments__list {
  margin-top: 0;
}

.comment-form-box {
  margin-top: 30px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
  width: 100%;
  border-radius: 3px;
  border: 1px solid #e1e1e1;
  padding: 13px 20px;
  font-size: 13px;
  background: #fafafa;
  margin-bottom: 20px;
}

.comment-form textarea {
  resize: vertical;
  min-height: 106px;
}

.comment-form button.btn.btn-primary {
  border-radius: 999px;
  padding: 10px 40px;
}

/* Avatar initial inside theme comment image box */
.comments__list-item-image {
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-avatar-initial {
  font-size: 16px;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
}

/* Related posts polish */
.related-box {
  padding: 18px 22px 22px;
}

.related-box h2 {
  margin-bottom: 14px;
}

.related-box .news-post.standard-post {
  padding: 14px 16px 16px;
}

.related-box .news-post.standard-post .image-holder img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
}

.related-box .news-post.standard-post h2 {
  font-size: 15px;
  line-height: 1.35;
  margin-top: 10px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-tags-box {
  gap: 12px;
}

.share-tags-box .tags {
  gap: 8px;
}

.share-tags-box .shares-likes {
  gap: 10px;
}

.blog-box.grid-style .news-post.article-post,
.fresh-section2 .news-post,
.category-line-section .news-post.article-post {
  padding: 18px 20px 20px;
}

.news-post .text-link {
  margin-top: 10px;
  display: inline-block;
}

/* Pagination looks tighter */
.pagination-list a {
  border-radius: 999px;
}

[data-pagination-container].is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 160ms ease;
}

[data-pagination-container] {
  position: relative;
}

/* Fullscreen loader (stays visible while scrolling) */
[data-pagination-container].is-loading::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(1px);
  z-index: 9998;
}

[data-pagination-container].is-loading::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 999px;
  border: 3px solid rgba(148, 163, 184, 0.6);
  border-top-color: #111827;
  animation: iarc-spin 0.7s linear infinite;
  z-index: 9999;
}

@keyframes iarc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Contact map height fallback */
#map {
  min-height: 320px;
  border-radius: var(--iarc-radius);
  overflow: hidden;
  background: #f3f4f6;
}

/* Contact form: success/error message styling */
#contact-form #msg.message.success,
#msg.message.success {
  padding: 12px 18px;
  border-radius: 8px;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  margin-top: 15px;
}

#contact-form #msg.message.error,
#msg.message.error {
  padding: 12px 18px;
  border-radius: 8px;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  margin-top: 15px;
}

/* Contact form: button styled like theme's input, loader works on button */
#contact-form #submit_contact {
  color: #e74c3c;
  width: 100%;
  text-align: center;
  outline: none;
  font-size: 13px;
  font-family: "Roboto", sans-serif;
  padding: 13px 50px;
  background: #fff;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid #ebebeb;
  text-transform: uppercase;
  margin: 0;
}

#contact-form #submit_contact:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
}

#contact-form.is-submitting #submit_contact {
  pointer-events: none;
}

#contact-form .btn-loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(231, 76, 60, 0.4);
  border-top-color: #e74c3c;
  animation: iarc-spin 0.7s linear infinite;
  vertical-align: middle;
}

/* Loading Background Effect */
.btn-loading {
  background:#fff;   /* Grey background */
  cursor: not-allowed;
  opacity: 0.8;
  transition: all 0.3s ease;
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Post comment button loader (reuses .btn-loader) */
#post-comment-form.is-submitting button[type="submit"] {
  pointer-events: none;
}

/* Newsletter: button matches original input[type="submit"] design (pehle vali UI) */
.sidebar .subscribe-widget2 .nl-submit,
.subscibe-form .nl-submit {
  width: 100%;
  display: block;
  outline: none;
  color: #e74c3c;
  font-size: 13px;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  padding: 13px 50px;
  background: #fff;
  font-weight: 400;
  border: 1px solid #ebebeb;
  text-transform: uppercase;
  margin: 0;
}

.subscibe-form .nl-submit:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
}

.subscibe-form .nl-msg {
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 8px;
  display: none;
}

.subscibe-form .nl-msg:not(:empty) {
  display: block;
}

.subscibe-form .nl-msg.nl-success {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
}

.subscibe-form .nl-msg.nl-error {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}

.subscibe-form .nl-msg.nl-warning {
  color: #856404;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
}

/* Newsletter Subscribe button loader */
.subscibe-form .nl-submit.is-submitting {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  overflow: visible;
}

.subscibe-form .nl-submit.is-submitting::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 999px;
  border: 2px solid rgba(231, 76, 60, 0.4);
  border-top-color: #e74c3c;
  animation: iarc-spin 0.7s linear infinite;
}

/* Reduce layout jump on images not found */
img {
  max-width: 100%;
  height: auto;
}

/* Avatar circle using initials, inside template comment box */
.comments__list-item-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
}

.comment-avatar-initial {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
}

