/*
Theme Name: PaisaTulna Child V2
Description: Material Design 3 + Hindi branding for PaisaTulna.in
Template: astra
Version: 3.1
*/

/* ===== Material Design 3 Color Variables ===== */
:root {
  --pt-primary: #ff6b35;
  --pt-primary-dark: #e85a2b;
  --pt-primary-light: rgba(255, 107, 53, 0.1);
  --pt-secondary: #4059aa;
  --pt-secondary-dark: #2d4590;
  --pt-secondary-light: rgba(64, 89, 170, 0.1);
  --pt-tertiary: #006c4a;
  --pt-tertiary-light: rgba(0, 108, 74, 0.1);
  --pt-surface: #f8f9ff;
  --pt-surface-dim: #f0f2f8;
  --pt-text: #0d1c2f;
  --pt-text-muted: #5f6368;
  --pt-border: rgba(0, 0, 0, 0.08);
  --pt-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --pt-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --pt-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --pt-radius-sm: 8px;
  --pt-radius-md: 12px;
  --pt-radius-lg: 16px;
  --pt-radius-xl: 20px;
  --pt-font-hindi: 'Noto Sans Devanagari', system-ui, sans-serif;
}

/* ===== Global Reset & Base ===== */
body {
  background: var(--pt-surface) !important;
  color: var(--pt-text);
  font-family: var(--pt-font-hindi);
  line-height: 1.8;
}

/* Fix Astra flex container */
.ast-page-builder-template .site-content > .ast-container,
body.page-template-default .site-content > .ast-container {
  display: block !important;
  max-width: 100% !important;
}

/* ===== Typography ===== */
.hindi-text {
  font-family: var(--pt-font-hindi);
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pt-font-hindi);
  color: var(--pt-text);
  line-height: 1.4;
}

.entry-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pt-secondary);
  margin: 1.5em 0 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 3px solid var(--pt-primary);
  display: inline-block;
}

/* Hide duplicate H1 inside entry-content (WP already shows title in header) */
.entry-header + .entry-content > h1:first-child {
  display: none;
}

.entry-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pt-secondary);
  margin: 2em 0 0.8em;
  padding-left: 16px;
  border-left: 4px solid var(--pt-primary);
}

.entry-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pt-text);
  margin: 1.5em 0 0.6em;
}

.entry-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pt-secondary);
  margin: 1.2em 0 0.5em;
}

.entry-content p {
  margin-bottom: 1.2em;
  color: var(--pt-text);
  line-height: 1.9;
}

.entry-content a {
  color: var(--pt-primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.entry-content a:hover {
  color: var(--pt-primary-dark);
  border-bottom-color: var(--pt-primary);
}

.entry-content strong {
  color: var(--pt-text);
  font-weight: 700;
}

/* ===== Entry Title (Page/Post) ===== */
.entry-title {
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  color: var(--pt-secondary) !important;
  font-family: var(--pt-font-hindi) !important;
  line-height: 1.3 !important;
  margin-bottom: 0.5em !important;
}

/* ===== Content Container ===== */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.ast-article-single {
  background: white;
  border-radius: var(--pt-radius-lg);
  padding: 40px 32px;
  margin: 24px auto;
  max-width: 900px;
  box-shadow: var(--pt-shadow-sm);
}

/* ===== Lists ===== */
.entry-content ul, .entry-content ol {
  margin: 1em 0 1.5em 0;
  padding-left: 1.5em;
}

.entry-content li {
  margin-bottom: 0.6em;
  line-height: 1.8;
  padding-left: 0.3em;
}

.entry-content ul li::marker {
  color: var(--pt-primary);
}

.entry-content ol li::marker {
  color: var(--pt-secondary);
  font-weight: 700;
}

/* ===== Card Details (Credit Card Info Blocks) ===== */
.card-details {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-left: 4px solid var(--pt-tertiary);
  border-radius: var(--pt-radius-md);
  padding: 24px 28px;
  margin: 16px 0 28px;
  transition: box-shadow 0.3s ease;
}

.card-details:hover {
  box-shadow: var(--pt-shadow-md);
}

.card-details h4 {
  color: var(--pt-tertiary) !important;
  font-size: 1rem;
  margin-top: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.card-details ul {
  list-style: none;
  padding-left: 0;
}

.card-details ul li {
  padding: 6px 0 6px 28px;
  position: relative;
  border-bottom: 1px solid var(--pt-border);
}

.card-details ul li:last-child {
  border-bottom: none;
}

.card-details ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pt-tertiary);
  font-weight: 700;
  font-size: 1.1em;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--pt-secondary-light) 0%, rgba(0, 108, 74, 0.05) 100%);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  padding: 32px;
  margin: 32px 0;
  text-align: center;
}

.cta-section h3 {
  color: var(--pt-secondary);
  margin-top: 0;
  font-size: 1.4rem;
}

.cta-section p:last-child {
  font-size: 0.85em;
  color: var(--pt-text-muted);
  margin-bottom: 0;
}

/* ===== Card Items (Calculator/Comparison) ===== */
.card-item {
  background: white;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-md);
  padding: 24px;
  margin: 16px 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-item:hover {
  box-shadow: var(--pt-shadow-md);
  transform: translateY(-2px);
  border-color: var(--pt-primary);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.card-rank {
  background: var(--pt-primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.card-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pt-secondary);
  flex: 1;
}

.bank-name {
  font-size: 0.85rem;
  color: var(--pt-text-muted);
  font-weight: 500;
}

.card-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 12px 0;
}

.annual-fee {
  font-weight: 600;
  color: var(--pt-text);
}

.fee-original {
  text-decoration: line-through;
  color: var(--pt-text-muted);
  font-size: 0.9em;
}

.fee-waived {
  color: var(--pt-tertiary);
  font-weight: 700;
}

.features-list {
  list-style: none !important;
  padding-left: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.features-list li {
  background: var(--pt-surface);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--pt-text-muted);
  border: 1px solid var(--pt-border);
}

.card-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ===== Buttons ===== */
.apply-btn, .btn-primary, .calculate-btn,
.ast-button, .wp-block-button__link,
button[type="submit"], input[type="submit"] {
  background: var(--pt-primary) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--pt-radius-sm) !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  font-family: var(--pt-font-hindi) !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  display: inline-block;
  text-decoration: none !important;
  text-align: center;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.apply-btn:hover, .btn-primary:hover, .calculate-btn:hover,
.ast-button:hover, .wp-block-button__link:hover,
button[type="submit"]:hover, input[type="submit"]:hover {
  background: var(--pt-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
  color: white !important;
}

.btn-secondary, .details-btn {
  background: white !important;
  color: var(--pt-secondary) !important;
  border: 2px solid var(--pt-secondary) !important;
  border-radius: var(--pt-radius-sm) !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  display: inline-block;
  text-decoration: none !important;
}

.btn-secondary:hover, .details-btn:hover {
  background: var(--pt-secondary) !important;
  color: white !important;
}

/* ===== Comparison Table ===== */
.comparison-table, .table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--pt-radius-md);
  box-shadow: var(--pt-shadow-sm);
}

.comparison-table table, .table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.95rem;
}

.comparison-table th, .table-wrapper th {
  background: var(--pt-secondary);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.comparison-table td, .table-wrapper td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--pt-border);
  vertical-align: top;
}

.comparison-table tr:nth-child(even), .table-wrapper tr:nth-child(even) {
  background: var(--pt-surface);
}

.comparison-table tr:hover, .table-wrapper tr:hover {
  background: var(--pt-primary-light);
}

/* ===== Comparison Grid ===== */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

/* ===== Form Elements (Calculator) ===== */
.form-section {
  background: white;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  padding: 32px;
  margin: 24px 0;
  box-shadow: var(--pt-shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--pt-text);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  font-size: 1rem;
  font-family: var(--pt-font-hindi);
  transition: border-color 0.2s ease;
  background: white;
  color: var(--pt-text);
  box-sizing: border-box;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--pt-secondary);
  outline: none;
  box-shadow: 0 0 0 3px var(--pt-secondary-light);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* ===== Slider ===== */
.slider-container {
  margin: 16px 0;
}

.slider-container input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--pt-surface-dim);
  outline: none;
  -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pt-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.slider-value {
  font-weight: 700;
  color: var(--pt-primary);
  font-size: 1.2rem;
  margin-top: 4px;
}

/* ===== Checkbox & Radio ===== */
.checkbox-group, .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}

.checkbox-item, .radio-item {
  background: white;
  border: 2px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.checkbox-item:hover, .radio-item:hover {
  border-color: var(--pt-secondary);
  background: var(--pt-secondary-light);
}

.checkbox-item input:checked + label,
.radio-item input:checked + label {
  color: var(--pt-secondary);
  font-weight: 600;
}

/* ===== Selector Section (Card Comparison) ===== */
.selector-section {
  background: var(--pt-surface);
  border-radius: var(--pt-radius-lg);
  padding: 24px;
  margin: 24px 0;
}

.selector-group, .card-selectors {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.selector-group select, .card-selectors select {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 2px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  font-size: 1rem;
  font-family: var(--pt-font-hindi);
  background: white;
}

/* ===== Results Section ===== */
.results-section {
  background: white;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  padding: 32px;
  margin: 24px 0;
  box-shadow: var(--pt-shadow-sm);
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--pt-surface);
}

.savings-highlight {
  background: var(--pt-tertiary-light);
  border: 1px solid var(--pt-tertiary);
  border-radius: var(--pt-radius-md);
  padding: 20px 24px;
  text-align: center;
  margin: 16px 0;
}

.savings-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pt-tertiary);
}

/* ===== States ===== */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--pt-text-muted);
}

.loading::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--pt-border);
  border-top-color: var(--pt-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--pt-text-muted);
  background: var(--pt-surface);
  border-radius: var(--pt-radius-lg);
  margin: 24px 0;
}

.error-message {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: var(--pt-radius-sm);
  padding: 12px 16px;
  margin: 16px 0;
}

.required {
  color: var(--pt-primary);
}

.optional {
  color: var(--pt-text-muted);
  font-size: 0.85em;
  font-weight: 400;
}

/* ===== Header ===== */
.ast-site-header-wrap {
  border-bottom: 1px solid var(--pt-border);
}

.main-header-menu .menu-link {
  color: var(--pt-secondary) !important;
  transition: color 0.3s ease;
}

.main-header-menu .menu-link:hover {
  color: var(--pt-primary) !important;
}

.site-title, .site-title a {
  color: var(--pt-secondary) !important;
  font-weight: 700 !important;
}

/* ===== Hero Section ===== */
.paisatulna-hero {
  background: linear-gradient(135deg, var(--pt-secondary) 0%, #1e40af 100%);
  color: white;
  border-radius: var(--pt-radius-xl);
  padding: 48px 24px;
  margin: 24px 0;
}

.paisatulna-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: white;
}

.paisatulna-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== Featured Card ===== */
.paisatulna-featured-card {
  background: white;
  border-radius: var(--pt-radius-md);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--pt-shadow-sm);
  border-left: 4px solid var(--pt-tertiary);
  transition: all 0.3s ease;
}

.paisatulna-featured-card:hover {
  box-shadow: var(--pt-shadow-lg);
  transform: translateY(-2px);
}

.featured-badge {
  background: var(--pt-tertiary-light);
  color: var(--pt-tertiary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 16px;
}

.featured-card-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: center;
}

.featured-card-visual {
  text-align: center;
  padding: 16px;
}

.credit-card-mock {
  background: #003d82;
  color: white;
  padding: 16px;
  border-radius: 12px;
  width: 200px;
  height: 125px;
  margin: 0 auto;
  position: relative;
}

.featured-card-details h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pt-secondary);
  margin-bottom: 8px;
}

.card-subtitle {
  color: var(--pt-text-muted);
  margin-bottom: 16px;
}

.card-benefits div {
  margin-bottom: 8px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.fee-label {
  font-size: 12px;
  color: var(--pt-text-muted);
  text-transform: uppercase;
}

.fee-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pt-text);
}

/* ===== TablePress Override ===== */
.tablepress {
  border-collapse: collapse !important;
  width: 100% !important;
  margin: 16px 0 !important;
  background: white;
  border-radius: var(--pt-radius-md);
  overflow: hidden;
  box-shadow: var(--pt-shadow-sm);
}

.tablepress th {
  background: var(--pt-secondary) !important;
  color: white !important;
  padding: 14px 16px !important;
  font-weight: 600 !important;
  text-align: left !important;
}

.tablepress td {
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--pt-border) !important;
}

.tablepress .odd td {
  background: white !important;
}

.tablepress .even td {
  background: var(--pt-surface) !important;
}

.tablepress tr:hover td {
  background: var(--pt-primary-light) !important;
}

/* ===== Archive / Category Pages ===== */
.ast-archive-description {
  background: linear-gradient(135deg, var(--pt-secondary) 0%, #1e40af 100%);
  color: white;
  padding: 40px 32px;
  border-radius: var(--pt-radius-xl);
  margin: 24px auto;
  max-width: 1200px;
  text-align: center;
}

.ast-archive-description .ast-archive-title {
  color: white !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  font-family: var(--pt-font-hindi) !important;
}

.ast-archive-description p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* Blog post cards in archive */
.ast-separate-container .ast-article-post {
  background: white;
  border-radius: var(--pt-radius-md) !important;
  box-shadow: var(--pt-shadow-sm);
  margin-bottom: 24px !important;
  padding: 28px !important;
  transition: all 0.3s ease;
  border: 1px solid var(--pt-border);
}

.ast-separate-container .ast-article-post:hover {
  box-shadow: var(--pt-shadow-md);
  transform: translateY(-2px);
}

.ast-article-post .entry-title a {
  color: var(--pt-secondary) !important;
  font-family: var(--pt-font-hindi) !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.ast-article-post .entry-title a:hover {
  color: var(--pt-primary) !important;
}

.ast-article-post .entry-meta {
  color: var(--pt-text-muted);
  font-size: 0.85rem;
}

.ast-article-post .entry-meta a {
  color: var(--pt-primary);
}

/* Read more button */
.ast-read-more-container a {
  background: var(--pt-primary) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: var(--pt-radius-sm) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
}

.ast-read-more-container a:hover {
  background: var(--pt-primary-dark) !important;
  transform: translateY(-1px);
}

/* ===== Single Post Styling ===== */
.ast-article-single .entry-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--pt-surface);
}

.ast-article-single .entry-meta {
  color: var(--pt-text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.ast-article-single .cat-links a {
  background: var(--pt-secondary-light);
  color: var(--pt-secondary);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

/* ===== Sidebar ===== */
.widget {
  background: white;
  border-radius: var(--pt-radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--pt-shadow-sm);
  border: 1px solid var(--pt-border);
}

.widget-title {
  color: var(--pt-secondary) !important;
  font-family: var(--pt-font-hindi) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  padding-bottom: 12px;
  margin-bottom: 16px !important;
  border-bottom: 2px solid var(--pt-primary);
}

/* ===== Pagination ===== */
.ast-pagination {
  text-align: center;
  margin: 40px 0;
}

.ast-pagination .page-numbers {
  background: white;
  color: var(--pt-secondary);
  padding: 10px 16px;
  border-radius: var(--pt-radius-sm);
  margin: 0 4px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--pt-border);
  transition: all 0.2s ease;
}

.ast-pagination .page-numbers.current,
.ast-pagination .page-numbers:hover {
  background: var(--pt-primary);
  color: white;
  border-color: var(--pt-primary);
}

/* ===== Footer ===== */
.ast-footer-copyright {
  font-size: 13px;
  color: var(--pt-text-muted);
}

.ast-footer-copyright a {
  color: var(--pt-primary);
  text-decoration: none;
  font-weight: 500;
}

.ast-footer-copyright a:hover {
  color: var(--pt-secondary);
  text-decoration: underline;
}

/* ===== Blockquote ===== */
.entry-content blockquote {
  border-left: 4px solid var(--pt-primary);
  background: var(--pt-primary-light);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--pt-radius-sm) var(--pt-radius-sm) 0;
  font-style: normal;
}

.entry-content blockquote p {
  margin-bottom: 0;
  color: var(--pt-text);
  font-weight: 500;
}

/* ===== Code Blocks ===== */
.entry-content code {
  background: var(--pt-surface-dim);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--pt-primary-dark);
}

.entry-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 24px;
  border-radius: var(--pt-radius-md);
  overflow-x: auto;
  margin: 24px 0;
}

/* ===== Images ===== */
.entry-content img {
  border-radius: var(--pt-radius-md);
  box-shadow: var(--pt-shadow-sm);
  max-width: 100%;
  height: auto;
}

/* ===== HR ===== */
.entry-content hr {
  border: none;
  border-top: 2px solid var(--pt-border);
  margin: 32px 0;
}

/* ===== 404 Page ===== */
.error-404 {
  text-align: center;
  padding: 60px 20px;
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--pt-primary);
  margin-bottom: 0;
}

/* ===== Search ===== */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.search-form .search-field {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  font-size: 1rem;
}

.search-form .search-submit {
  padding: 12px 24px !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .paisatulna-hero {
    margin: 16px 0;
    padding: 32px 20px;
    border-radius: var(--pt-radius-md);
  }

  .paisatulna-hero h1 {
    font-size: 1.8rem;
  }

  .paisatulna-hero p {
    font-size: 1rem;
  }

  .featured-card-inner {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .featured-card-details {
    text-align: left;
  }

  .card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .apply-btn {
    width: 100%;
    text-align: center;
  }

  .ast-article-single {
    padding: 24px 16px;
    margin: 12px;
    border-radius: var(--pt-radius-md);
  }

  .entry-title {
    font-size: 1.6rem !important;
  }

  .entry-content h2 {
    font-size: 1.3rem;
  }

  .entry-content h3 {
    font-size: 1.1rem;
  }

  .card-details {
    padding: 16px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .selector-group, .card-selectors {
    flex-direction: column;
  }

  .ast-archive-description {
    padding: 28px 20px;
    margin: 12px;
    border-radius: var(--pt-radius-md);
  }

  .ast-archive-description .ast-archive-title {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .paisatulna-hero h1 {
    font-size: 1.5rem;
  }

  .credit-card-mock {
    width: 160px;
    height: 100px;
  }

  .entry-title {
    font-size: 1.4rem !important;
  }
}

/* ===== Desktop Enhancements ===== */
@media (min-width: 769px) {
  .main-header-menu .menu-link {
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
  }

  .main-header-menu .menu-link:hover {
    background: var(--pt-primary-light) !important;
    color: var(--pt-primary) !important;
  }

  .site-title {
    font-size: 1.8rem !important;
  }

  .paisatulna-hero {
    margin: 30px 0 !important;
    padding: 50px 40px !important;
    border-radius: var(--pt-radius-xl) !important;
  }

  .paisatulna-hero h1 {
    font-size: 48px !important;
    text-align: center;
  }

  .paisatulna-hero p {
    font-size: 20px !important;
    text-align: center;
  }
}

/* ===== Print Styles ===== */
@media print {
  .ast-site-header-wrap, .ast-footer-copyright, .apply-btn,
  .btn-primary, .calculate-btn {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .ast-article-single {
    box-shadow: none !important;
    border: none !important;
  }
}

/* ===== Cookie Notice Override ===== */
#cookie-notice .cn-button {
  background: var(--pt-primary) !important;
  border-radius: var(--pt-radius-sm) !important;
}

/* ===== Regular HTML Tables (in entry-content) ===== */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--pt-radius-md);
  overflow: hidden;
  box-shadow: var(--pt-shadow-sm);
  margin: 20px 0;
  font-size: 0.95rem;
}

.entry-content table th {
  background: var(--pt-secondary);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.entry-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--pt-border);
  vertical-align: top;
}

.entry-content table tr:nth-child(even) {
  background: var(--pt-surface);
}

.entry-content table tr:hover {
  background: var(--pt-primary-light);
}

/* ===== Inline Styles Override (for content with leftover inline styles) ===== */
.entry-content .container,
.entry-content .content,
.entry-content .header {
  all: unset;
  display: block;
}

/* ===== Navigation cleanup ===== */
.ast-header-break-point .main-header-menu li a {
  font-size: 14px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  display: block;
}

/* ===== Post navigation (prev/next) ===== */
.ast-single-post-navigation {
  margin: 40px 0;
  padding: 24px;
  background: var(--pt-surface);
  border-radius: var(--pt-radius-md);
}

.ast-single-post-navigation a {
  color: var(--pt-secondary) !important;
  font-weight: 600;
  text-decoration: none;
}

.ast-single-post-navigation a:hover {
  color: var(--pt-primary) !important;
}

/* ===== Comments ===== */
.comments-area {
  background: white;
  border-radius: var(--pt-radius-lg);
  padding: 32px;
  margin-top: 32px;
  box-shadow: var(--pt-shadow-sm);
}

.comments-area .comment-reply-title {
  color: var(--pt-secondary);
  font-family: var(--pt-font-hindi);
}
