/* ==========================================================================
   Truppl Dynamic Policy Pages Stylesheet
   ========================================================================== */

/* Meta Bar & Last Revised Badge */
.policy_meta_bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
  background: #f7faf8;
  border: 1px solid #e3ede6;
  border-radius: 16px;
  margin-bottom: 35px;
}

.policy_badge_wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
}

.policy_badge_wrap .badge_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(3, 117, 58, 0.12);
  color: #03753a;
  border-radius: 50%;
  font-size: 13px;
}

/* Policy Tabs / Switcher */
.policy_quick_nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.policy_tab_btn {
  display: inline-block;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  background: #ffffff;
  color: #4a5568;
  border: 1px solid #d5dfd8;
  text-decoration: none;
  transition: all 0.25s ease;
}

.policy_tab_btn:hover {
  background: #edf7f0;
  color: #03753a;
  border-color: #03753a;
  text-decoration: none;
}

.policy_tab_btn.active {
  background: #03753a;
  color: #ffffff !important;
  border-color: #03753a;
  box-shadow: 0 4px 12px rgba(3, 117, 58, 0.25);
}

/* Rich Content / Typography */
.policy_rich_content {
  color: #374151;
  font-size: 16px;
  line-height: 1.85;
}

.policy_rich_content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eef2f0;
  position: relative;
}

.policy_rich_content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: #3ade01;
}

.policy_rich_content h2:first-of-type {
  margin-top: 10px;
}

.policy_rich_content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 28px;
  margin-bottom: 12px;
}

.policy_rich_content h4 {
  font-size: 17px;
  font-weight: 600;
  color: #374151;
  margin-top: 22px;
  margin-bottom: 10px;
}

.policy_rich_content p {
  margin-bottom: 18px;
  color: #4b5563;
  line-height: 1.85;
}

.policy_rich_content ul,
.policy_rich_content ol {
  padding-left: 28px;
  margin-top: 10px;
  margin-bottom: 24px;
}

.policy_rich_content ul li {
  list-style-type: disc;
  margin-bottom: 10px;
  line-height: 1.75;
  color: #4b5563;
}

.policy_rich_content ol li {
  list-style-type: decimal;
  margin-bottom: 10px;
  line-height: 1.75;
  color: #4b5563;
}

.policy_rich_content strong,
.policy_rich_content b {
  color: #111827;
  font-weight: 600;
}

.policy_rich_content a {
  color: #03753a;
  text-decoration: underline;
  transition: color 0.2s;
  word-break: break-word;
}

.policy_rich_content a:hover {
  color: #3ade01;
}

.policy_rich_content blockquote {
  border-left: 4px solid #3ade01;
  background: #f7faf8;
  padding: 16px 22px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-style: italic;
  color: #4a5568;
}

.policy_rich_content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 15px;
}

.policy_rich_content table th,
.policy_rich_content table td {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.policy_rich_content table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #111827;
}

.policy_rich_content table tr:nth-child(even) {
  background-color: #fbfcfb;
}

/* Skeleton Loading State */
.policy_skeleton_container {
  padding: 10px 0;
}

.skeleton_bone {
  background: linear-gradient(90deg, #edf2ee 25%, #f6faf7 50%, #edf2ee 75%);
  background-size: 200% 100%;
  animation: shimmerAnim 1.6s infinite ease-in-out;
  border-radius: 6px;
  margin-bottom: 16px;
}

@keyframes shimmerAnim {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton_bone.title {
  height: 32px;
  width: 60%;
  margin-bottom: 24px;
}

.skeleton_bone.meta {
  height: 20px;
  width: 35%;
  margin-bottom: 30px;
}

.skeleton_bone.heading {
  height: 24px;
  width: 45%;
  margin-top: 30px;
  margin-bottom: 18px;
}

.skeleton_bone.line {
  height: 16px;
  width: 100%;
}

.skeleton_bone.line.w-90 {
  width: 90%;
}

.skeleton_bone.line.w-80 {
  width: 80%;
}

.skeleton_bone.line.w-60 {
  width: 60%;
}

/* Not Found / Error State */
.policy_not_found_card {
  text-align: center;
  padding: 60px 20px;
}

.not_found_icon {
  width: 80px;
  height: 80px;
  line-height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.policy_not_found_card h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.policy_not_found_card p {
  color: #6b7280;
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 30px;
}

.not_found_actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn.puprle_btn {
  background-color: #03753a;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
  border: 1px solid #03753a;
}

.btn.puprle_btn:hover {
  background-color: #3ade01;
  color: #ffffff;
  border-color: #3ade01;
  box-shadow: 0 4px 15px rgba(58, 222, 1, 0.35);
}

.btn.secondary_btn {
  background-color: transparent;
  color: #03753a;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
  border: 1px solid #03753a;
}

.btn.secondary_btn:hover {
  background-color: rgba(3, 117, 58, 0.08);
  color: #03753a;
}

/* Print Styles */
@media print {
  header, footer, .go_top, .policy_meta_bar, .bred_crumb {
    display: none !important;
  }
  .blog_detail_section .blog_inner_pannel {
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .policy_meta_bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog_detail_section .blog_inner_pannel {
    padding: 30px 22px;
  }
  .policy_rich_content h2 {
    font-size: 21px;
  }
  .policy_rich_content h3 {
    font-size: 18px;
  }
}
