/* Fix: social icon hover shift — <i> must be inline-block so width/height/padding apply */
.social-icons i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
  vertical-align: middle;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 40px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover {
  color: #fff;
}

.whatsapp-float i {
  font-size: 24px;
  line-height: 1;
}

.footer-social {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 50%;
}
.footer-links {
  padding-left: 0;
  list-style-type: none;
  width: 250px;
}

.footer-social a:hover {
  color: #fff;
}

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

.footer-social .instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.footer-social .tiktok {
  background-color: #000;
}

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

.footer-social .youtube {
  background-color: #f00;
}

.moddesign-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: rgba(255, 255, 255, 0.72);
  background: #232628;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.moddesign-image-placeholder span {
  max-width: 80%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.moddesign-service-placeholder {
  min-height: 245px;
}

.moddesign-project-placeholder {
  aspect-ratio: 4 / 3;
}

.moddesign-detail-placeholder {
  min-height: 420px;
}

.moddesign-intro-placeholder {
  aspect-ratio: 4 / 3;
}

.moddesign-about-placeholder {
  aspect-ratio: 4 / 3;
}

.moddesign-team-placeholder {
  height: 300px;
}

.moddesign-subheader-placeholder {
  background: #222;
}

@media (max-width: 767px) {
  .footer-social {
    justify-content: flex-start;
    margin-top: 20px;
  }
}

/* ─── Project Detail Page ─────────────────────────────── */

.project-detail-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Meta box */
.project-detail-meta {
  margin-bottom: 0;
}

.project-detail-meta li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
}

.project-detail-meta li:last-child {
  border-bottom: none;
}

.project-meta-label {
  flex: 0 0 88px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  color: var(--primary-color-1);
  padding-top: 2px;
}

.project-meta-value {
  flex: 1;
}

/* Project Details (below dark box, same column) */
.project-details-section {
  padding-top: 4px;
}

.project-details-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.project-detail-lead {
  font-size: 0.97rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 14px;
}

.project-detail-body {
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.82;
}

.project-detail-body p {
  margin-bottom: 0.8rem;
}
.project-detail-body p:last-child {
  margin-bottom: 0;
}

/* CTA buttons wrapper */
.project-detail-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Row 1: Start a Project + WhatsApp — 50/50, equal height */
.project-cta-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.project-cta-start {
  flex: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* WhatsApp sidebar button */
.btn-whatsapp-sidebar {
  flex: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    border-color 0.2s,
    color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-whatsapp-sidebar:hover {
  border-color: #25d366;
  color: #25d366;
}

.btn-whatsapp-sidebar i {
  font-size: 1.1rem;
  line-height: 0;
}

/* Divider + Row 2: Share label + icons */
.project-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  margin-top: 4px;
}

.project-share-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── Image fade-in animation ── */
@keyframes projectFadeInRight {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.project-img-fadein {
  animation: projectFadeInRight 0.35s ease forwards;
}

/* Hide lightbox title bar */
.mfp-title {
  display: none !important;
}
.mfp-counter {
  display: none !important;
}

/* ── Image viewer (right column) ── */

.project-main-image-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
  line-height: 0;
}

.project-main-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.project-main-image-wrap:hover img {
  transform: scale(1.03);
}

.project-main-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.project-main-image-wrap:hover .project-main-zoom {
  opacity: 1;
}

/* Thumbnail grid */
.project-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.project-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition:
    opacity 0.2s,
    border-color 0.2s;
  display: block;
}

.project-thumb.active,
.project-thumb:hover {
  opacity: 1;
  border-color: var(--primary-color-1);
}

/* Share buttons */
.project-share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  text-decoration: none;
}

.project-share-btn:hover {
  background: var(--primary-color-1);
  border-color: var(--primary-color-1);
  color: #fff;
}

.project-share-btn i.fa-brands {
  line-height: 0;
}

/* Prev / Next navigation */
.project-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.project-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  max-width: 200px;
  transition: color 0.2s;
}

.project-nav-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-nav-btn:hover {
  color: var(--primary-color-1);
}

/* ─── Before & After Section ──────────────────────────── */

.project-before-after-section {
  padding: 60px 0 80px;
  background: #1a1c1e;
}

.project-before-after-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 36px;
  letter-spacing: 0.04em;
}

.project-twentytwenty {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.project-twentytwenty img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 991px) {
  .project-detail-sidebar {
    position: static;
  }

  .project-main-image-wrap img {
    height: 320px;
  }

  .project-thumbs-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .project-nav {
    justify-content: flex-start;
    margin-top: 12px;
  }
}

@media (max-width: 575px) {
  .project-main-image-wrap img {
    height: 240px;
  }

  .project-thumbs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-thumb {
    height: 72px;
  }

  .project-before-after-title {
    font-size: 1.4rem;
  }

  .project-nav-btn {
    max-width: 140px;
  }
}

/* ─── Button centering override ────────────────────────── */

/* Match template specificity (a.btn-custom) so flex takes effect */
a.btn-custom,
input.btn-custom,
.btn-custom-outline {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  vertical-align: middle;
}

/* ─── Service Cards ─────────────────────────────────────── */

.service-card {
  background: #232628;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  /* Block element — width constrained by Bootstrap column, no inner flex */
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.service-card-image-wrap {
  height: 245px;
  overflow: hidden;
}

.service-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-custom-outline {
  padding: 8px 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}

.btn-custom-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

/* ─── Service Category Filter ───────────────────────────── */

.service-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.service-filter-btn {
  padding: 7px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.service-filter-btn:hover,
.service-filter-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ─── Service Detail Page ───────────────────────────────── */

/*
 * service-card-body: normal block layout — no inner flex.
 * h3/p are block elements here, text wraps naturally.
 * overflow:hidden clips anything wider than the card.
 */
.service-card-body {
  overflow: hidden;
}

.service-card-title {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.service-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.service-detail-body {
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.85;
}

.service-gallery .image-popup-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.service-meta-list li {
  font-size: 0.9rem;
}

.other-services-list li a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  transition: color 0.25s;
}

.other-services-list li a:hover {
  color: #fff;
}

@media (max-width: 991px) {
  .service-detail-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .service-card-image-wrap {
    height: 200px;
  }
}

/* ── Our Projects carousel: visible dots, active dot in theme yellow ── */
/* Owl adds .disabled to .owl-dots when item count <= visible items (few projects),
   and plugins.css hides it with display:none. Force it visible — the per-item dots
   are still built in the DOM via the dotsEach:1 init option. */
.carousel-4-center-dots.owl-theme .owl-dots,
.carousel-4-center-dots.owl-carousel .owl-dots.disabled {
  display: block !important;
  margin-top: 30px;
  text-align: center;
}
.carousel-4-center-dots.owl-theme .owl-dots .owl-dot span {
  width: 7px;
  height: 7px;
  margin: 5px 6px;
  background: #d6d6d6;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.carousel-4-center-dots.owl-theme .owl-dots .owl-dot.active span,
.carousel-4-center-dots.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--primary-color-1);
}

/* ── Our Projects carousel: uniform image height regardless of source ratio ── */
#section-projects .carousel-4-center-dots .dcg-item .dcg-image {
  display: block;
  width: 100%;
  height: 225px;
  object-fit: cover;
}

/* ── Our Projects grid: uniform image height regardless of source ratio ── */
#projects-grid .dcg-item .dcg-image {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* ── Related Projects grid: keep thumbnails to a consistent, modest height ── */
#section-related-projects .dcg-item .dcg-image {
  display: block;
  width: 100%;
  height: 280px;
  max-height: 300px;
  object-fit: cover;
}

/* ── Testimonial (single carousel): stack quote mark › title › quote › name ── */
#testimonial-carousel-single blockquote.testimonial-big:before {
  display: block;
}
#testimonial-carousel-single blockquote.testimonial-big .title,
#testimonial-carousel-single blockquote.testimonial-big .quote-text,
#testimonial-carousel-single blockquote.testimonial-big .name {
  display: block;
}
#testimonial-carousel-single blockquote.testimonial-big .quote-text {
  font-size: 24px;
  font-style: italic;
  font-weight: 100;
}

.contact-page-btn {
  padding: 15px 20px !important;
  color: #000 !important;
}
.contact-page-btn:hover {
  color: #000 !important;
  background-color: #fff !important;
}

/* ─── Footer collapsed (upper block hidden via Settings) ─── */
/* When the logo/contact/services block is hidden, drop the footer's top
   padding so only the copyright subfooter remains, with no empty gap. */
footer.footer-collapsed {
  padding: 0;
}
.footer-tsl {
  color: #494949 !important;
}
.footer-tsl a{
  color: #494949;
  text-decoration: underline !important;
  font-weight: 600;
}
.footer-tsl a:hover{
  color: #fab702 !important;
}
.footer-tsl a:visited{
  color: #494949;
}
