/**
 * YuvaInfoSeva Mobile-First Responsive Stylesheet
 * Optimized for mobile viewport widths: 320px, 360px, 375px, 390px, 412px, 430px
 */

/* Responsive Table Wrapper */
.yis-prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Touch target minimum sizes */
button,
.yis-btn,
.yis-search-toggle,
.yis-mobile-toggle,
.yis-menu-list > li > a,
.yis-drawer-menu-list li a {
  min-height: 44px;
}

/* Base Mobile Enhancements (< 640px) */
@media (max-width: 639px) {
  .yis-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-content {
    padding-top: 16px;
    padding-bottom: 36px;
  }

  .yis-header-inner {
    height: 64px;
  }

  .yis-logo-icon {
    width: 36px;
    height: 36px;
  }

  .yis-brand-main {
    font-size: 1.2rem;
  }

  .yis-tagline-text {
    display: none;
  }

  .yis-single-article,
  .yis-tool-single-article {
    padding: 16px 14px;
    border-radius: var(--yis-radius);
  }

  .yis-single-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .yis-single-lead-excerpt {
    font-size: 0.95rem;
    padding-left: 12px;
  }

  .yis-prose {
    font-size: 1rem;
    line-height: 1.7;
  }

  .yis-prose h2 {
    font-size: 1.3rem;
  }

  .yis-prose h3 {
    font-size: 1.15rem;
  }

  .yis-featured-content {
    padding: 20px 16px;
  }

  .yis-featured-title {
    font-size: 1.3rem;
  }

  .yis-featured-read-btn-wrap {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .yis-featured-read-btn-wrap .yis-btn {
    width: 100%;
  }

  .yis-author-box {
    padding: 16px;
  }

  .yis-author-avatar-img {
    width: 60px;
    height: 60px;
  }

  .yis-author-title {
    font-size: 1.1rem;
  }

  .yis-author-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .yis-post-nav-grid {
    grid-template-columns: 1fr;
  }

  .yis-nav-next .yis-nav-direction {
    align-self: flex-start;
  }

  .yis-trust-card {
    padding: 20px 16px;
  }

  .yis-trust-action {
    width: 100%;
  }

  .yis-trust-action .yis-btn {
    width: 100%;
  }

  .yis-section-title {
    font-size: 1.15rem;
  }

  .yis-view-all-link {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .yis-calc-body,
  .yis-calc-results-wrap {
    padding: 16px 14px;
  }

  .yis-radio-group {
    flex-direction: column;
  }

  .yis-radio-btn {
    width: 100%;
  }

  .yis-stat-val {
    font-size: 1.2rem;
  }

  .yis-footer {
    padding-top: 36px;
  }

  .yis-footer-grid {
    gap: 28px;
  }
}

/* Small Smartphone screens (320px - 375px) */
@media (max-width: 375px) {
  .yis-single-title {
    font-size: 1.35rem;
  }

  .yis-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .yis-view-all-link {
    align-self: flex-start;
  }

  .yis-back-to-top {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
}

/* Print Styles */
@media print {
  .yis-header,
  .yis-footer,
  .yis-sidebar-column,
  .yis-post-nav,
  .yis-related-section,
  .yis-ad-container,
  .yis-back-to-top,
  .yis-search-bar-dropdown {
    display: none !important;
  }

  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }

  .yis-single-article {
    border: none !important;
    padding: 0 !important;
  }
}


/* -------------------------------------------------------------------------
   v2.5.3: Premium footer + mobile-safe single post overflow fixes
------------------------------------------------------------------------- */
.yis-footer {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-top: 4px solid #123b67;
  padding: 42px 0 18px;
  position: relative;
  overflow: hidden;
}
.yis-footer::before {
  content: "";
  display: block;
  width: 110px;
  height: 4px;
  background: #198754;
  border-radius: 99px;
  position: absolute;
  top: -4px;
  left: 24px;
}
.yis-footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  margin-bottom: 30px;
  border-bottom: 1px solid #dfe7ef;
}
.yis-footer-logo-wrap .custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 330px;
}
.yis-footer-logo-wrap .custom-logo {
  width: auto;
  max-width: 300px;
  max-height: 72px;
  height: auto;
  display: block;
}
.yis-footer-logo-link {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  gap: 3px;
}
.yis-footer-logo-text {
  color: #123b67;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.04em;
}
.yis-footer-logo-text span { color: #198754; }
.yis-footer-logo-link small {
  color: #64748b;
  font-size: .72rem;
  font-weight: 600;
}
.yis-footer-desc {
  max-width: 610px;
  margin: 12px 0 14px;
  color: #64748b;
  font-size: .9rem;
  line-height: 1.7;
}
.yis-footer-trust-badge {
  color: #198754;
  background: #eaf8f1;
  border: 1px solid #cceedd;
  border-radius: 999px;
  padding: 8px 13px;
}
.yis-footer-mini-cta {
  flex: 0 0 auto;
  background: #123b67;
  border-radius: 16px;
  padding: 16px 18px;
  min-width: 220px;
  box-shadow: 0 12px 30px rgba(18,59,103,.12);
}
.yis-footer-mini-label {
  display: block;
  color: #bcd2e8;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.yis-footer-tools-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: .95rem;
}
.yis-footer-tools-btn span { color: #49c77f; font-size: 1.2rem; }
.yis-footer-grid { gap: 28px; margin-bottom: 30px; }
.yis-footer-title {
  color: #123b67;
  border-bottom: 0;
  padding-bottom: 8px;
  margin-bottom: 10px;
  position: relative;
}
.yis-footer-title::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 99px;
  background: #198754;
  margin-top: 7px;
}
.yis-footer-links { gap: 5px; }
.yis-footer-links li a {
  display: inline-block;
  padding: 4px 0;
  color: #64748b;
  font-size: .88rem;
  text-decoration: none;
}
.yis-footer-links li a:hover { color: #123b67; transform: translateX(2px); }
.yis-footer-bottom {
  border-top: 1px solid #dfe7ef;
  padding-top: 18px;
  gap: 8px;
}
.yis-footer-bottom a { color: #123b67; font-weight: 700; }

/* Prevent long article words, embeds, images and code from widening the viewport. */
.yis-single-article,
.yis-content-column,
.yis-prose,
.yis-prose > *,
.yis-prose p,
.yis-prose li,
.yis-prose blockquote,
.yis-prose td,
.yis-prose th,
.yis-single-header { min-width: 0; max-width: 100%; }
.yis-prose,
.yis-prose p,
.yis-prose li,
.yis-single-title,
.yis-single-lead-excerpt { overflow-wrap: anywhere; word-break: normal; }
.yis-prose img,
.yis-prose video,
.yis-prose iframe,
.yis-prose embed,
.yis-prose object,
.yis-single-featured-image { max-width: 100%; height: auto; }
.yis-prose iframe,
.yis-prose video { width: 100%; }
.yis-prose pre { max-width: 100%; overflow-x: auto; white-space: pre; -webkit-overflow-scrolling: touch; }
.yis-prose code { overflow-wrap: anywhere; word-break: break-word; }
.yis-prose .wp-block-table,
.yis-prose .table-responsive { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.yis-prose table { min-width: 0; }

@media (max-width: 767px) {
  body { overflow-x: hidden; }
  .yis-single-article { width: 100%; box-sizing: border-box; }
  .yis-layout-grid { width: 100%; }
  .yis-content-column { width: 100%; overflow: hidden; }
  .yis-single-title { font-size: clamp(1.42rem, 6vw, 1.75rem); letter-spacing: -.02em; }
  .yis-single-featured-figure { margin-left: 0; margin-right: 0; }
  .yis-prose { width: 100%; font-size: 1rem; }
  .yis-prose h2 { font-size: 1.28rem; }
  .yis-prose h3 { font-size: 1.12rem; }
  .yis-prose ul, .yis-prose ol { padding-left: 1.2rem; }
  .yis-prose .wp-block-columns { display: block; }
  .yis-prose .wp-block-column { margin-bottom: 20px; }
  .yis-post-action-buttons { flex-wrap: wrap; }

  .yis-footer { padding-top: 32px; }
  .yis-footer-brand-row { display: block; padding-bottom: 24px; margin-bottom: 24px; }
  .yis-footer-logo-wrap .custom-logo { max-width: 260px; max-height: 64px; }
  .yis-footer-desc { font-size: .86rem; }
  .yis-footer-mini-cta { margin-top: 18px; width: 100%; box-sizing: border-box; }
  .yis-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .yis-footer-title { font-size: .92rem; }
  .yis-footer-links li a { font-size: .82rem; line-height: 1.35; }
  .yis-footer-bottom { align-items: flex-start; }
  .yis-footer-disclaimer-note { max-width: none; }
}

@media (max-width: 380px) {
  .yis-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .yis-footer-logo-wrap .custom-logo { max-width: 235px; }
}
