/* =====================================================
   TipTop Nails – Custom Overrides
   Safe from theme updates
===================================================== */

/* -----------------------------
   Accessibility helper
------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   SLIDER TYPOGRAPHY (MATCH ORIGINAL LAVI)
===================================================== */

/* Desktop */
@media (min-width: 992px) {
  .nail-slider .main-slider .slide .content .title {
    font-family: 'Vidaloka', serif;
    font-size: 78px;
    line-height: 1.2;
  }

  .nail-slider .main-slider .slide .content .sub-title {
    font-family: 'Poppins', sans-serif;
    font-size: 30.5px;
    line-height: 1.45;
    font-weight: 400;
  }
}

/* Mobile & Tablet – keep same fonts */
@media (max-width: 991px) {
  .nail-slider .main-slider .slide .content .title {
    font-family: 'Vidaloka', serif !important;
  }

  .nail-slider .main-slider .slide .content .sub-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400;
  }
}

/* Hide Owl Carousel nav arrows */
.nail-slider .owl-nav {
  display: none !important;
}

/* ── Quick Contact: force email & phone links to white ───────────────── */
.contact-info-inner .info-box_link,
.contact-info-inner .info-box_link:visited,
.contact-info-inner .info-box_link:hover,
.contact-info-inner .info-box_link:focus {
  color: #ffffff !important;
  text-decoration: none;
}
.contact-info-inner .info-box_link:hover {
  text-decoration: underline;
  opacity: 0.85;
}
.contact-info-inner address,
.contact-info-inner p {
  color: #ffffff;
}

/* ── Blog Banner ─────────────────────────────────────────────────────── */
.dlab-bnr-inr {
  background-size: cover !important;
  background-position: center center !important;
}

/* ── Stats Section Card Match & Height ───────────────────────────────── */
.page-content .stats {
  border-radius: 16px;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

@media (max-width: 767px) {
  .page-content .stats {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
}

/* ── Page Wrapper & Mobile Gap Fix ───────────────────────────────────── */
html, body {
  background-color: #f7f1ec !important;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.page-wraper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1 0 auto;
}

/* ── Footer Background & White Text Override (Desktop + Mobile) ──────── */
.site-footer,
.site-footer.nail-footer {
  flex-shrink: 0;
  background-color: #9b1e3e !important;
}

.site-footer.nail-footer,
.site-footer.nail-footer .footer-top,
.site-footer.nail-footer .footer-bottom,
.site-footer.nail-footer h2,
.site-footer.nail-footer .icon-heading,
.site-footer.nail-footer p,
.site-footer.nail-footer address,
.site-footer.nail-footer li,
.site-footer.nail-footer span,
.site-footer.nail-footer .day,
.site-footer.nail-footer .time,
.site-footer.nail-footer i,
.site-footer.nail-footer a,
.site-footer.nail-footer a:visited,
.site-footer.nail-footer .navbar-links li a,
.site-footer.nail-footer .info-box_link,
.site-footer.nail-footer .widget-link ul li a,
.site-footer.nail-footer a[x-apple-data-detectors] {
  color: #ffffff !important;
}

.site-footer.nail-footer a:hover,
.site-footer.nail-footer .navbar-links li a:hover,
.site-footer.nail-footer .info-box_link:hover,
.site-footer.nail-footer .widget-link ul li a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.site-footer.nail-footer .heading-icon {
  stroke: #ffffff !important;
}

@media (max-width: 991px) {
  .site-footer {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* ── Blog Sidebar ────────────────────────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}
.sidebar .widget {
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(155, 30, 62, .08);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
  padding: 24px;
  margin-bottom: 22px;
}
.sidebar .widget h4 {
  font-family: 'Vidaloka', serif;
  font-size: 22px;
  margin: 0 0 16px;
  color: #222;
}
.author-box {
  display: flex;
  gap: 14px;
  align-items: center;
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b1e3e, #d77a95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  flex: 0 0 auto;
}
.author-text {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}
.search-form {
  display: flex;
  gap: 10px;
}
.search-form input {
  flex: 1;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
}
.search-form input:focus {
  border-color: #9b1e3e;
  box-shadow: 0 0 0 3px rgba(155, 30, 62, .08);
}
.search-form button {
  width: 48px;
  border: 0;
  border-radius: 8px;
  background: #9b1e3e;
  color: #fff;
}
.recent-post {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.recent-post:last-child {
  margin-bottom: 0;
}
.recent-post img {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}
.recent-post h6 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.35;
}
.recent-post h6 a {
  color: #2b2b2b;
}
.recent-post h6 a:hover {
  color: #9b1e3e;
}
.recent-post span {
  font-size: 12px;
  color: #777;
}
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.category-list li:last-child {
  border-bottom: 0;
}
.category-list a {
  color: #555;
}
.category-list a:hover {
  color: #9b1e3e;
}
@media (max-width: 991px) {
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { margin-top: 10px; }
}
@media (max-width: 768px) {
  .sidebar .widget { padding: 18px; }
  .sidebar .widget h4 { font-size: 20px; }
  .search-form { flex-direction: column; }
  .search-form button { width: 100%; height: 44px; }
}
@media (max-width: 576px) {
  .sidebar .widget { padding: 16px; }
  .author-avatar { width: 64px; height: 64px; font-size: 24px; }
  .recent-post img { width: 58px; height: 58px; }
}

/* ── Mobile Navigation Menu: Force White Links ───────────────────────── */
@media (max-width: 991px) {
  .site-header.nail-header .header-nav {
    background-color: #9b1e3e !important;
  }

  .site-header.nail-header .header-nav .nav > li > a,
  .site-header.nail-header .header-nav .nav > li > a.nav-link,
  .site-header.nail-header .header-nav .nav > li > a:visited,
  .site-header.nail-header .header-nav .nav > li > a:hover,
  .site-header.nail-header .header-nav .nav > li > a:focus,
  .site-header.nail-header .header-nav .nav > li.active > a,
  .site-header.nail-header .header-nav .nav > li.active > a.nav-link {
    color: #ffffff !important;
  }

  .site-header.nail-header .header-nav .nav > li.active > a,
  .site-header.nail-header .header-nav .nav > li > a:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
  }

  .site-header.nail-header .header-nav .footer-menu .copyright,
  .site-header.nail-header .header-nav .footer-menu .copyright a,
  .site-header.nail-header .header-nav .footer-menu .copyright-text {
    color: #ffffff !important;
  }
}