/**
 * Common Font Styles, Typography, and Utilities
 * Gold Price Bangladesh Theme - Consolidated Common Styles
 */

/* Root CSS Variables for Font Families */
:root {
  --font-primary: 'Manrope', 'Noto Serif Bengali', -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-secondary: 'Noto Serif Bengali', 'Noto Serif', 'Times New Roman', serif;
  --font-english: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-bengali: 'Noto Serif Bengali', 'Noto Serif', 'Times New Roman', serif;
}

/* Default Body Font */
body {
  font-family: var(--font-primary) !important;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Default Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary) !important;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

/* Paragraph Default */
p {
  font-family: var(--font-primary) !important;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

/* Language-specific font assignments */
html[lang='en'] {
  font-family: var(--font-english) !important;
}

html[lang='bn-BD'],
html[lang='bn'] {
  font-family: var(--font-bengali) !important;
}

/* Mixed content support */
.english-text {
  font-family: var(--font-english) !important;
}

.bengali-text {
  font-family: var(--font-bengali) !important;
}

/* Utility classes for font families */
.font-english {
  font-family: var(--font-english) !important;
}

.font-bengali {
  font-family: var(--font-bengali) !important;
}

.font-primary {
  font-family: var(--font-primary) !important;
}

.font-secondary {
  font-family: var(--font-secondary) !important;
}

/* Typography scale */
.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-base {
  font-size: 1rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-3xl {
  font-size: 1.875rem;
}
.text-4xl {
  font-size: 2.25rem;
}
.text-5xl {
  font-size: 3rem;
}

/* Font weight utilities */
.font-light {
  font-weight: 300;
}
.font-normal {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}

/* Line height utilities */
.leading-tight {
  line-height: 1.25;
}
.leading-snug {
  line-height: 1.375;
}
.leading-normal {
  line-height: 1.5;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-loose {
  line-height: 2;
}

/* Text color utilities for gold theme */
.text-gold {
  color: #d4af37;
}

.text-gold-dark {
  color: #b8941e;
}

.text-gold-light {
  color: #f4e4c1;
}

/* Gold Gradient Classes */
.gold-gradient {
  background: linear-gradient(135deg, #d4af37 0%, #b8941e 100%);
}

.gold-text-gradient {
  background: linear-gradient(135deg, #d4af37 0%, #b8941e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b8941e 100%);
}

/* Background and Border Utilities */
.bg-background {
  background-color: #ffffff;
}

.bg-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
}

/* Text Color Utilities */
.text-foreground {
  color: #111827;
}

.text-muted-foreground {
  color: #6b7280;
}

.text-primary {
  color: #d4af37;
}

/* Hover Effects */
.hover\:bg-gold-gradient:hover {
  background: linear-gradient(135deg, #d4af37 0%, #b8941e 100%);
  color: white;
}

.hover\:border-primary:hover {
  border-color: #d4af37;
}

.hover\:opacity-90:hover {
  opacity: 0.9;
}

/* Transition Utilities */
.transition-colors {
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

.transition-opacity {
  transition: opacity 0.2s ease;
}

/* Stats Card Hover Effect */
.stats-card {
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Container utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive typography */
@media (max-width: 640px) {
  .text-4xl {
    font-size: 1.875rem;
  }
  .text-5xl {
    font-size: 2.25rem;
  }
}

/* Dark mode font adjustments */
@media (prefers-color-scheme: dark) {
  body {
    color: #e5e7eb;
  }

  .text-gold {
    color: #f4e4c1;
  }

  .text-gold-dark {
    color: #d4af37;
  }

  .bg-background {
    background-color: #0f172a;
  }

  .bg-card {
    background-color: #1e293b;
    border-color: #374151;
  }

  .text-foreground {
    color: #f1f5f9;
  }

  .text-muted-foreground {
    color: #94a3b8;
  }
}

/* Print styles */
@media print {
  body {
    font-family: var(--font-primary) !important;
    font-size: 12pt;
    line-height: 1.4;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--font-primary) !important;
    page-break-after: avoid;
  }
}

/* WP styles */
.wp-block-image {
  margin: unset !important;
}
.wp-block-image a {
  border-bottom: unset !important;
}
.single-content-area .wp-block-image img {
  height: auto;
  width: auto;
  border-radius: 5px;
  margin: 10px 0px;
}
.wp-block-image figcaption {
  margin-top: unset !important;
  font-style: italic;
  font-size: var(--tiny-size);
}
.single-content-area iframe {
  width: 100%;
  height: 480px;
  border-radius: 5px;
}
.wpp-meta,
.post-stats {
}
figure.wp-block-embed .wp-block-embed__wrapper iframe {
  width: 100% !important;
  height: 450px !important;
  border-radius: 7px;
  margin: 15px 0px;
}
/* .wp-block-table tr {
  border: 1px solid lightgray;
  } */
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}
.wp-block-table table td,
.wp-block-table table th {
  border: 1px solid #4d4d4d;
  padding: 12px;
  font-weight: 600;
}
.wp-block-table table td strong,
.wp-block-table table th strong,
.wp-block-table td strong,
.single-content-area th strong {
  font-weight: 600;
  font-size: var(--p-size);
}
.wp-block-table table thead tr td {
  font-weight: 700;
}
.wp-block-table table td,
.wp-block-table table th,
.wp-block-table td {
  font-weight: 400;
  font-size: var(--p-size);
  transition: all 0.3s ease-in;
}
.wp-block-table thead {
  border-bottom: unset !important;
}
.wp-block-table table tr:nth-child(even) {
  background-color: #0b0f18;
}
.wp-block-table table tr:hover {
  background-color: #0b0f18;
}
.wp-block-table table th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
}
.wp-block-table .wp-element-caption {
  font-style: italic;
  margin-top: 5px;
  font-size: 14px;
}
/* content area */
.single-content-area {
  margin-top: 13px;
  width: 100%;
  padding: 20px;
}
.single-content-area:last-child {
  margin-bottom: 20px;
}
.page-content-area {
  padding: 10px;
}
.page-content-area p {
}
.page-content-area.single-content-area > h3 {
  display: inline-block;
}
.page-content-area.single-content-area {
  max-width: 900px;
  margin: auto;
  padding: 30px 0px;
}
.single-content-area p ul {
}
.single-content-area ul,
.single-content-area ol {
  margin-bottom: 18px;
  margin-left: 20px;
}
.single-content-area li {
  font-size: 18px;
  position: relative;
  padding-left: 22px;
  line-height: 30px;
  margin-bottom: 10px;
  font-weight: 400;
}
.single-content-area li::before {
  content: '';
  position: absolute;
  left: 0px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--brand-color);
  border-radius: 2px;
}
.single-content-area li.treatment-list-li::before {
  padding-left: 0px !important;
  left: 0px !important;
  top: 8px !important;
  position: relative !important;
  height: unset !important;
  width: unset !important;
  background: unset !important;
  border-radius: unset !important;
}
.single-content-area li.treatment-list-li {
  padding-left: 0px !important;
  margin: 0px !important;
  line-height: unset !important;
  font-size: unset;
}
.single-content-area li strong {
  font-weight: 600;
}
.single-content-area p {
  font-size: 19px;
  margin-bottom: 15px;
  line-height: 31px;
}
.single-content-area p strong {
  font-weight: 600;
}
.single-content-area p img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.single-content-area p iframe {
  width: 100%;
  height: 450px;
}
.single-content-area h2,
.single-content-area h3,
.single-content-area h4,
.single-content-area h5,
.single-content-area h6 {
  text-transform: capitalize;
  margin: 10px 0px;
  font-weight: 500;
  color: var(--black);
}
.single-content-area h2 strong,
.single-content-area h3 strong,
.single-content-area h4 strong,
.single-content-area h5 strong,
.single-content-area h6 strong {
  font-weight: 600;
}
.single-content-area h2 {
  font-weight: 600 !important;
  font-size: var(--heading-two) !important;
  line-height: 35px;
}
.single-content-area h3 {
  font-weight: 600 !important;
  font-size: var(--heading-three);
}
.single-content-area h4 {
  font-size: var(--heading-four);
}
.single-content-area h5 {
  font-size: var(--heading-five);
}
.single-content-area h6 {
  font-size: var(--heading-six);
}
.single-content-area a {
  border-bottom: 2px dotted #0000004a;
  font-weight: 500;
  text-decoration: none;
  color: var(--brand-color);
  margin: 0px 1px;
}
.single-content-area a:hover {
  color: var(--brand-color-bold);
}
.single-content-area blockquote {
  background: var(--background-two);
  padding: 15px;
  border-left: 3px solid #009688;
  box-shadow: 0px 0px 1px 0px lightgrey;
  margin: 20px 0px;
  border-radius: 3px;
}
.single-content-area blockquote p {
  font-size: var(--p-size);
  line-height: 28px;
  font-weight: 400;
  color: #282524;
  margin-bottom: unset;
}
