.stat-label {text-align:center}
html[lang="bg-BG"] 
.values-grid .wpb_column {
    display: flex !important;
}

html[lang="bg-BG"] .values-grid .vc_column-inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

html[lang="bg-BG"] .values-grid .w-iconbox {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 100% !important;
}

html[lang="bg-BG"] .values-grid .w-iconbox-meta {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

html[lang="bg-BG"] .values-grid .w-iconbox-text {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

html[lang="bg-BG"] .values-grid .w-iconbox-text p {
    flex: 1 !important;
    margin-bottom: 0 !important;
}

@media (min-width: 769px) {
html[lang="bg-BG"] .w-flipbox,
html[lang="bg-BG"] .w-flipbox-h,
html[lang="bg-BG"] .w-flipbox-hh {
    height: 320px !important;
	}}



.stat-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
/* --- MOBILE: up to 768px --- */
.video-wrapper {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

#bgvid {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 10px;
  text-align: center;
}

.video-logo {
  width: 80%;
  max-width: 500px;
  margin-bottom: 20px;
}

.video-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.video-slogan  {
  margin: 0 !important;
  color: #fff !important;
  font-size: 16px !important;
  
  line-height: 1.2 !important;
  font-style: italic !important;
  font-weight: 500 !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55) !important;
}

.video-slogan &gt; div:last-child {
  color: #fff;
  font-size: 19px;
  
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}
.value-card {
    margin-bottom: 20px !important;margin-top:0
}

@media (max-width: 1024px) {
    .values-grid {
        margin-bottom: 0 !important;margin-top:0 !important
    }
}

@media (min-width: 1025px) {
    .values-grid {
        margin-bottom: 20px;
    }
}
@media (max-width: 768px) {
    
    /* Force all grid containers inside .bfa-frame.services to 1 column */
    .bfa-frame.services &gt; div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    /* Topic cards */
    .bfa-frame.services .topic-card {
        padding: 0.65rem !important;
        text-align: left !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Links inside topic cards */
    .bfa-frame.services .topic-card a {
        display: block !important;
        width: 100% !important;
        text-decoration: none !important;
        color: inherit !important;
    }
    
    /* Paragraphs inside topic cards */
    .bfa-frame.services .topic-card p {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Icons */
    .bfa-frame.services .topic-card i {
        font-size: 1.1rem !important;
        width: 1.5rem !important;
        display: inline-block !important;
        text-align: center !important;
    }
    
    /* Stats row — stack vertically */
    .bfa-frame.services .stats-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
        margin-top: 1rem !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    /* Stat badges — full width */
    .bfa-frame.services .stat-badge {
        width: 100% !important;
        text-align: center !important;
        padding: 0.6rem !important;
        background: #f9f9f9 !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }
    
    .bfa-frame.services .stat-badge i {
        margin-right: 0.3rem !important;
    }
    
    .bfa-frame.services .stat-badge .stat-value,
    .bfa-frame.services .stat-badge .stat-label {
        display: inline !important;
    }
    
    /* --- For "How our services connect" section (without .services class) --- */
    .bfa-frame &gt; div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    .bfa-frame .topic-card {
        padding: 0.5rem !important;
        text-align: center !important;
    }
    
    .bfa-frame .topic-card a {
        display: block !important;
        width: 100% !important;
        text-decoration: none !important;
        color: inherit !important;
    }
}

/* --- TABLET: 769px to 1024px --- */
@media (min-width: 769px) and (max-width: 1024px) {
    
    /* 3-column grids become 2 columns */
    .bfa-frame.services &gt; div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }
    
    /* Last item spans full width if odd number */
    .bfa-frame.services &gt; div[style*="grid-template-columns: 1fr 1fr 1fr"] .topic-card:last-child:nth-child(odd) {
        grid-column: span 2 !important;
    }
    
    /* For "How our services connect" section (without .services class) */
    .bfa-frame &gt; div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .bfa-frame &gt; div[style*="grid-template-columns: repeat(3, 1fr)"] .topic-card:last-child:nth-child(odd) {
        grid-column: span 2 !important;
    }
}
.services .topic-card a br {
    display: none;
}
.services .topic-card {
    padding: 1rem !important;
}

.services .topic-card p,
.services .topic-card a {
    display: flex !important;
    align-items: flex-start;
    gap: .5rem;

    margin: 0 !important;
    padding: 0 !important;

    color: #445e77 !important;
    font-size: 1rem;
    line-height: 1.4;
    text-decoration: none;
    width: 100%;
}

.services .topic-card i {
    color: #836722;
    flex: 0 0 auto;
    margin-top: .15em;
}
.w-map {
  border-top: 5px solid #bfa161;
 }
#page-footer .wpcf7-submit {float:right}
a.readtheblog:hover{background:#bfa161 !important; text-decoration:none}
.home .value-card {background-color:#fefcf7 !important;}
.w-flipbox-front, .w-flipbox-back {background-color: white !important}
.home .layout_417 .usg_post_image_1 {
  margin-left: 10px !important;
  margin-bottom: 1rem !important;
  margin-right: 10px !important;
  border-radius: 50% !important;
  border: 1px solid #bfa161 !important;
}
.wpcf7-submit {width:auto!important; float: right; }
.home .post_title {overflow:hidden; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="password"], .wpcf7-form input[type="email"], .wpcf7-form input[type="url"], .wpcf7-form input[type="tel"], .wpcf7-form input[type="number"], .wpcf7-form input[type="date"], .wpcf7-form textarea, .wpcf7-form select, .wpcf7-form input[type="text"]:focus, 
.wpcf7-form input[type="password"]:focus, 
.wpcf7-form input[type="email"]:focus, 
.wpcf7-form input[type="url"]:focus, 
.wpcf7-form input[type="tel"]:focus, 
.wpcf7-form input[type="number"]:focus, 
.wpcf7-form input[type="date"]:focus, 
.wpcf7-form textarea:focus, 
.wpcf7-form select:focus {
	background: white !important;
	border: 1px solid black !important; box-shadow: none
}
#page-footer .wpcf7-form p:last-child {
    text-align: center !important;
}



    #page-footer form {
               margin: 0 auto;
        padding: 0 !important;
       
	}

.home h2 {
	text-align:center}	
	.us_custom_50cc7d67 {padding:0}
.l-section.wpb_row.us_custom_50cc7d67 {
    margin-bottom: 30px !important;
}

.l-section.wpb_row.us_custom_50cc7d67:last-child {
    margin-bottom: 0 !important;
}
.stat-badge ul li::before {display:none}
.list li::before {color:#836722}
#page-content {margin-top:40px}


.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.value-card {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 320px;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
}

.value-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.value-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.value-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: #836722;
    background: #f5f0e8;
    padding: 0.15rem 0.6rem;
    border-radius: 40px;
    border: 1px solid #e8dfd2;
    flex-shrink: 0;
}

.value-header i {
    flex-shrink: 0;
}

.value-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e1e1e;
}

.value-card p {
    color: #2c2c2c;
    line-height: 1.6;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    flex: 1;
}

.value-card p:first-of-type {
    margin-top: 0;
}

.value-card p strong {
    color: #1a1a1a;
    font-weight: 600;
}

.value-quote {
    margin-top: 1.2rem;
    padding: 0.8rem 1rem;
    background: #faf8f5;
    border-left: 4px solid #bfa161;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #3d3d3d;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-shrink: 0;
}

.value-quote::before {
    content: "“";
    font-size: 1.2rem;
    color: #836722;
    margin-right: 0.2rem;
}

.value-quote::after {
    content: "”";
    font-size: 1.2rem;
    color: #836722;
    margin-left: 0.2rem;
}

@media (max-width: 1024px) {
    .value-card {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 280px;
        min-height: 340px;
    }
}

@media (max-width: 640px) {
    .value-card {
        flex: 1 1 100%;
        min-width: 100%;
        min-height: 300px;
    }
}
/* ===== STATS ROW ===== */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    justify-content: center;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #333;
    white-space: nowrap;
}

.feature-item .icon {
    font-size: 1rem;
    color: #836722;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.feature-item .number {
    font-weight: 700;
    color: #1a1a1a;
    margin-right: 0.1rem;
}

.feature-item .text {
    color: #666;
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
	#page-content {
		margin-top:55px !important
	}
    .feature-grid {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }

    .feature-item {
        white-space: normal;
        font-size: 0.85rem;
        width: auto;
        justify-content: center;
    }

    .feature-item .icon {
        font-size: 1rem;
        width: 1.5rem;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        gap: 0.4rem;
        padding: 0.5rem 0;
    }

    .feature-item {
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .feature-item .icon {
        font-size: 0.9rem;
        width: 1.3rem;
    }
}
.checklist li {
    list-style: none ;
    margin-bottom: 0.75rem;
}
.checklist li i {
    margin-right: 0.5rem;
}
.checklist li::before {display:none}
.muted{font-size:16px; text-align:center; color: #6a7f9b;}
.bfa-btn {
    display: inline-block;
    background: #bfa161;
    color: #ffffff !important;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
	margin-bottom:20px
}

.bfa-btn:hover {
    background: #a8894e;
    color: #ffffff !important;
    text-decoration: none;
}

.btn-center {
    text-align: center;
    margin-top: 2rem;
}
.eor-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
        margin-bottom: 1rem;
    }
    .eor-card {
        background: #f9f9f9;
        padding: 1rem;
        border-radius: 8px;
        border-left: 4px solid #bfa161;
    }
    .eor-card i {
        color: #836722;
        margin-right: 0.25rem;
    }
    .eor-card strong {
        color: #333;
    }
    .eor-card p {
        margin-top: 0.5rem;
        margin-bottom: 0;
        font-size: 0.85rem;
        line-height: 1.4;
        color: #555;
    }
    @media (max-width: 1100px) {
        .eor-grid {
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        }
    }
.mrr-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
        margin: 1rem 0;
    }
    @media (max-width: 1000px) {
        .mrr-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    @media (max-width: 600px) {
        .mrr-grid {
            grid-template-columns: 1fr;
        }
    }
    .mrr-card {
        background: #f9f9f9;
        padding: 1rem;
        border-radius: 8px;
        border-left: 4px solid #bfa161;
			hyphens:auto
    }
    .mrr-card p {
        font-size: 0.85rem;
        margin-top: 0.5rem;
        margin-bottom: 0;
    }
    .mrr-card svg  { color: #836722 !important; }
    



.clear {
	clear:both}
.video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}
a.level_1 {text-transform:uppercase}
@media (min-width: 1024px) {
  .logo-slogan-container {
    margin-top: 60px;
  }
	.rating {margin-right:15px}
	.testimonials p {hyphens:auto
	}
}

#bgvid {
  width: 100%;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.video-slogan {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translateX(-50%);

  width: 90%;
  text-align: center;
margin-top:40px;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  font-style: italic;
  font-weight: 500;

  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}

@media (max-width: 768px) {
  .video-slogan {
    top: 72%;
    font-size: 18px;
    line-height: 1.4;
  }
}
.section-title{margin-top:20px}
    .adjustment-table {
        border-collapse: collapse;
        width: 100%;
        font-size: 0.85rem;
        margin: 1rem 0;
    }
    .adjustment-table th,
    .adjustment-table td {
        border: 1px solid #e6e9ef;
        padding: 0.75rem;
    }
    .adjustment-table th {
        background: #f8f9fc;
        text-align: center;
    }
    .adjustment-table th:first-child {
        text-align: left;
    }
    .label-cell {
        background: #fefaf2;
        font-weight: 600;
    }
    .elapsed {
        background: #2c3e4f;
        color: white;
        text-align: center;
    }
    .remaining {
        background: #bfa161;
        color: white;
        text-align: center;
    }

/* Warning box styles */
.warning-box {
    background: #fef7e8;
    border-left: 4px solid #bfa161;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: #5a4a2a;
    line-height: 1.5;
}

.warning-box i {
    color: #836722;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.warning-box strong {
    color: #836722;
}
.cta-button {
    display: block;
    background: #bfa161;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    margin: 1rem auto 0 auto;
    text-decoration: none;
    transition: background 0.2s;
    text-align: center;
    width: fit-content;
    max-width: 100%;
}

.cta-button:hover {
    background: #a88b4a;
    text-decoration: none;
}
.home .stats-block {margin-bottom:15px !important}

/* Comparison table wrapper */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;border:1px solid #bfa161;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
	
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #e6e9ef;
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
}

.comparison-table th {
    background: #f8f9fc;
    font-weight: 700;
    color: #1e2f3a;
}

.comparison-table td:first-child {
    font-weight: 600;
    background: #fefaf2 !important;
    width: 50% !important;
}

/* Efficiency highlight row */
.efficiency-highlight {
    background: #e8f5e9 !important;
}

.efficiency-highlight td {
    background: #e8f5e9;
}
.legal-list li::before {display:none !important}

.article-meta {
    margin: 0 auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Article container */
.estonian-tax-guide {
    max-width: 1280px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    padding: 2rem;
}

/* Article header */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f6;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e2f3a;
    margin-bottom: 0.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
}

.article-meta-item {
    font-size: 0.8rem;
    color: #4a627a;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8f9fc;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
}

.article-meta-item i {
    color: #836722;
}

/* Introduction block */
.intro-block {
    background: #fefaf2;
    border-left: 4px solid #bfa161;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Disclaimer box */
.disclaimer-box {
    background: #fef7e8;
    border: 1px solid #f0e5d2;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: #5a4a2a;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.disclaimer-box i {
    color: #836722;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Method cards (two columns for Salary vs Dividends) */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.method-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.method-card:hover {
    border-color: #836722;
    box-shadow: 0 4px 12px rgba(191, 161, 97, 0.08);
}

.method-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e2f3a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.method-title i {
    color: #836722;
}

.method-tax-note {
    background: #f8f9fc;
    padding: 0.75rem;
    margin: 1rem 0;
    font-size: 0.85rem;
    border-left: 3px solid #bfa161;
}

/* Example box (salary/dividend examples) */
.example-box {
    background: #f8f9fc;
    border: 1px solid #e6e9ef;
    padding: 1.2rem;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 0.85rem;
}

.example-box strong {
    color: #836722;
}

/* Comparison table wrapper */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #e6e9ef;
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
}

.comparison-table th {
    background: #f8f9fc;
    font-weight: 700;
    color: #1e2f3a;
}

.comparison-table td:first-child {
    font-weight: 600;
    background: #fefaf2;
    width: 25%;
}

/* Efficiency highlight row */
.efficiency-highlight {
    background: #e8f5e9 !important;
}

.efficiency-highlight td {
    background: #e8f5e9;
}

/* Scenario cards (When Salary / When Dividends) */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.scenario-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    padding: 1.2rem;
}

.scenario-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e2f3a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scenario-card h4 i {
    color: #836722;
}

.scenario-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.scenario-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.85rem;
    line-height: 1.4;
}

.scenario-list li::before {
    content: "•";
    color: #836722;
    position: absolute;
    left: 25px;
    font-weight: bold;
}

/* E-resident consideration box (special highlight) */
.eresident-box {
    background: #e8f0fe;
    border-left: 4px solid #bfa161;
    padding: 1.2rem;
    margin: 1.5rem 0;
}

.eresident-box strong {
    color: #1e2f3a;
}

.eresident-box i:first-child {
    color: #836722;
    margin-right: 0.5rem;
}

/* Mixed approach section */
.mixed-approach {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.mixed-approach h3 {
    color: #836722;
    margin-top: 0;
}

.mixed-list {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 0 0;
}

.mixed-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.mixed-list li::before {
    content: "✓";
    color: #836722;
    position: absolute;
    left: 0;
    font-weight: bold;
}



/* CTA box at the end */
.cta-box {
    background: #f4f9fe;
    border-radius: 28px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    border: 1px solid #e2edf7;
}

.cta-box i {
    color: #836722;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.cta-box h3 {
    margin-bottom: 0.5rem;
}

.cta-button {
    
    background: #bfa161;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    margin-top: 2rem;
    text-decoration: none;
    transition: background 0.2s;
}

.cta-button:hover {
    background: black;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .methods-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .estonian-tax-guide {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}

/* Utility classes */
.text-bfa {
    color: #836722;
}

.bg-bfa-light {
    background: #fefaf2;
}

.border-bfa {
    border-color: #836722;
}

hr.bfa-separator {
    margin: 2rem 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, #eef2f6, #bfa161, #eef2f6);
}



.stat {border-radius:20px; box-shadow: 0 1px 2px rgba(0,0,0,0.02); padding: 0.5rem 1.2rem;border: 1px solid #e9ecef; }
/* Profiles at a Glance - Horizontal rows */
.profiles-horizontal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.profile-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #ffffff;
    border: 1px solid #eef2f6;
    padding: 1.2rem 1.5rem;
    transition: all 0.2s ease;
}

.profile-row:hover {
    border-color: #836722;
    background: #fefcf7;
}

.profile-icon {
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.profile-content {
    flex: 1;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.profile-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: #836722;
    background: #fef1df;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}

.profile-title {
    font-size: 1.1rem;
    color: #1e2f3a;
}

.profile-description {
    font-size: 0.9rem;
    color: #2c3e4f;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.profile-key {
    font-size: 0.8rem;
    color: #4a627a;
    background: #fefaf2;
    padding: 0.5rem 0.75rem;
    border-left: 3px solid #bfa161;
    margin: 0.5rem 0;
}

.profile-link {
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 700px) {
    .profile-row {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .profile-icon {
        width: auto;
        text-align: left;
    }
    
    .profile-header {
        flex-wrap: wrap;
    }
}
.stats-row {
  display: flex;
  flex-wrap: wrap;
  
  justify-content: center;
}

.stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center !important;
  text-align:left !important;
  background: #f8f9fa;
	max-width:275px;
  
  

}

.stat-badge i,
.stat-value {
  display: inline;
}

.stat-badge i {
  margin: 0 auto;
  text-align:center;
  color: #2c3e66;
}



.stat-label {
  display: block;
  
  color: #6c757d;
  margin-top: 0;
}
.doc-grid svg {color:#836722}
       /* Override main ul li::before for AT A GLANCE list */
ul.at-a-glance-simple {
    list-style: none !important;
    padding-left: 0;
    margin: 0;
}

ul.at-a-glance-simple li {
    list-style: none;
}
table {margin-bottom:20px !important}

ul.at-a-glance-simple li::before {
    content: none !important;
    display: none !important;
} 
ul:not(.list) li::before {
    display: none;
}
        /* BFA161 theme — icons &amp; borders color */
        .bfa-primary {
            color: #836722;
        }

        /* Frame: 1px solid #bfa161 */
        .bfa-frame {
            border: 1px solid #bfa161;
            border-radius: 24px;
            padding: 1.6rem 1.2rem;
            background: #fefcf7;
            margin: 1.8rem 0;
            transition: box-shadow 0.2s;
        }

        

      

       

        /* header styles */
        .subtitle-block {
            margin: 0.5rem 0 0.3rem;
        }
        .subtitle-main {
            font-size: 1.8rem;
            font-weight: 600;
            color: #836722;
            display: block;
        }
        .subtitle-guide {
            font-size: 1rem;
            font-weight: 500;
            color: #4a627a;
            letter-spacing: 0.3px;
        }
        .guide-tagline {
            
            display: inline-block;
            padding: 0.4rem 1rem;
            border-radius: 40px;
            font-size: 0.85rem;
            margin: auto;
            color: #5b4a2a;
					width:100%;
        }
.guide-tagline svg {margin-left:20px; color:#836722}

        /* stats badges */
        .stats-row {
            display: flex;
            flex-wrap: wrap;
           gap:5px;
            margin: 0;
        }
        .stat-badge {
            background: #f9f5ea;
            border: 1px solid #e9ecef;
            border-radius: 20px;
            padding: 0.5rem 1.2rem;
            display: flex;
            align-items: baseline;
            gap: 0.5rem;
            font-weight: 500;
            box-shadow: 0 1px 2px rgba(0,0,0,0.02);
        }
        .stat-value {
            font-size: 1.3rem;
            font-weight: 700;
            color: #836722;
        }
        .stat-label {
            font-size: 0.8rem;
            color: #4b6a8b;
					
        }

        /* facts grid */
        .facts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.2rem;
            margin: 1.2rem 0 1rem;
        }
        .fact-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            padding: 1.2rem;
            transition: all 0.2s ease;
        }
.fact-card  svg{color:#836722; margin-right:10px}
        .fact-card:hover {
            border-color: #836722;
            box-shadow: 0 8px 18px rgba(191, 161, 97, 0.08);
        }
        .fact-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            background: #fef1df;
            color: #836722;
            font-weight: 800;
            border-radius: 30px;
            margin-right: 0.6rem;
            font-size: 0.9rem;
        }

        /* topics grid (explore cards) */
        .topics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: 0.8rem;
            margin: 1.5rem 0;
        }
        .topic-card {
            background: white;
            border: 1px solid #eef2f6;
            border-radius: 24px;
            padding: 1rem;
            transition: 0.2s;
        }
        .topic-card:hover {
            border-color: #836722;
        }
        .topic-icon {
            font-size: 1.8rem;
            margin-bottom: 0.7rem;
            color: #836722;
        }
        .topic-card h3 {
            font-size: 1.3rem;
            margin-bottom: 0.4rem;
        }
        .topic-card p {
            font-size: 1rem;
            color: #445e77;
            
        }
        .topic-link {
            color: #836722;
            font-weight: 500;
            text-decoration: none;
            font-size: 0.8rem;
        }
        .topic-link i {
            margin-right: 4px;
        }
        .topic-link:hover {
            text-decoration: underline;
        }

        
/* Step Table Component - Single row, no gaps, no rounded corners */
.steps-table {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* Force all steps to stay in one line */
    width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 0;
    border-top: 1px solid #e6e9ef;
    border-right: 1px solid #e6e9ef;
}

/* Table cell styling - equal width, sharp corners */
.step-cell {
    flex: 1; /* All cells take equal width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 0;
    background: #ffffff;
    border-left: 1px solid #e6e9ef;
    border-bottom: 1px solid #e6e9ef;
    border-radius: 0 !important;
    transition: background 0.2s ease;
    min-width: 0; /* Prevents flex overflow issues */
}

/* Remove left border from first cell */
.step-cell:first-child {
    border-left: none;
}

/* Icon + number wrapper - all #bfa161 */
.step-icon-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Font Awesome icons - force #bfa161 color */
.step-icon-number i {
    color: #836722;
    font-size: 1.1rem;
}

/* Number style - also #bfa161 */
.step-number-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #836722;
    line-height: 1;
}

/* Step label text */
.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #2c3e4f;
    letter-spacing: 0.01em;
    line-height: 1.3;
    white-space: normal;
    word-break: keep-all;
}

/* Hover effect - subtle */
.step-cell:hover {
    background: #fefaf2;
}

/* Ensure absolutely no border-radius anywhere */
.steps-table,
.step-cell,
.step-cell *,
.step-icon-number,
.step-icon-number i,
.step-number-text,
.step-label {
    border-radius: 0 !important;
}

.step-icon-number svg {
    fill: #bfa161 !important;
    color: #836722 !important;
}



/* Responsive: if screen is very small, reduce padding and font size but keep one row */
@media (max-width: 700px) {
    .step-cell {
        padding: 1rem 0;
    }
    .steps-label {
        font-size: 0.65rem; 
    }
	
    .step-icon-number i {
        font-size: 0.9rem;
    }
    .step-number-text {
        font-size: 0.9rem;
    }
    .step-icon-number {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }
}

/* For extremely narrow screens, still keep one row with scrolling if needed */
@media (max-width: 550px) {
    .steps-table {
        overflow-x: auto;
    }
    .step-cell {
        min-width: 90px;
        flex: 0 0 auto;
    }
}


        /* Document grid - exactly 2 columns */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
    margin: 1rem 0;
}

/* Document item styling */
.doc-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #2c3e4f;
    line-height: 1.4;
}

/* Icon color */
.doc-item i {
    color: #836722;
    width: 1.2rem;
    flex-shrink: 0;
}

/* Responsive: single column on very small screens */
@media (max-width: 550px) {
    .doc-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
}
.tax-table svg {color:#836722}

        .legal-list {
            margin: 0.8rem 0 0 1.2rem;
        }
        .legal-list li {
            margin: 0.4rem 0;
        }

        .info-highlight {
            background: #fef7e8;
            border-left: 4px solid #bfa161;
            padding: 1rem 1.2rem;
            border-radius: 16px;
            margin-top: 0.8rem;
        }
.info-highlight svg, .info-highlight strong {color:#836722}

        /* TAX TABLE:  */
        .tax-table {
            width: 100%;
            border-collapse: collapse;
            margin:  0;
            font-size: 0.9rem;
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(0,0,0,0.03);
        }
        .tax-table th, .tax-table td {
            padding: 0.9rem 1rem;
            text-align: left;
            border-bottom: 1px solid #eef2f8;
        }
        .tax-table th {
            background: #fafcfd;
            font-weight: 600;
            color: #1e2f3a;
        }
        .tax-table tr:last-child td {
            border-bottom: none;
        }

        .support-box {
            background: #f4f9fe;
            border-radius: 28px;
            padding: 2rem;
            text-align: center;
            margin-top: 2rem;
            border: 1px solid #e2edf7;
        }
        .inline-icon {
            margin-right: 0.4rem;
            color: #836722;
        }
        .small-muted {
            font-size: 0.75rem;
            color: #6a7f9b;
					
        }
        hr {
            margin: 2rem 0;
            border: none;
            height: 1px;
            background: #e7edf3;
        }
        @media (max-width: 700px) {
            .liquidation-container {
                padding: 1.2rem;
            }
            h1 {
                font-size: 1.9rem;
            }
            .section-title {
                font-size: 1.4rem;
            }
        }
        a {
            text-decoration: none;
        }
        i.fa, i.far, i.fas, i.fab {
            color: #836722;
        }
        .icon-bfa {
            color: #836722;
        }
        .btn-icon {
            margin-right: 0.3rem;
}}







.page .w-iconbox-icon svg {height:50px !important; width:auto !important}

.single .w-iconbox-icon {padding:20px 0 !important}
/* ===== RESET STRUCTURE ===== */

.newbox,
.newbox .w-flipbox,
.newbox .w-flipbox-h,
.newbox .w-flipbox-hh{
    margin:0 !important;
    width:100% !important;
	
}

/* control card height */
.newbox .w-flipbox-h{
    min-height:200px;
}

/* ===== CARD STYLE ===== */

.newbox .w-flipbox-front,
.newbox .w-flipbox-back{
    display:flex !important;
    align-items:center;

    background-repeat:no-repeat !important;
    background-position:15px center !important;
    background-size:140px !important;

    padding:30px 30px 30px 170px !important;

    border-radius:12px;
border:1px solid #e8e8e8;
    box-shadow:5px 12px 20px rgba(0,0,0,0.12);

    height:100% !important;
}

/* text block */
.newbox .w-flipbox-front-h,
.newbox .w-flipbox-back-h{
    padding:0 !important;
}

/* text styling */
.newbox .w-flipbox-front-title,
.newbox .w-flipbox-back-title{
    margin-bottom:10px !important;
}

.newbox .w-flipbox-front-desc p,
.newbox .w-flipbox-back-desc p{
    margin:0 !important;
    line-height:1.6;
	font-size:16px;
}


/* ===== MOBILE FIX ===== */

@media (max-width: 768px){

    .newbox .w-flipbox-front,
    .newbox .w-flipbox-back{

        flex-direction:column;
        text-align:center;

        background-position:center 25px !important;
        background-size:90px !important;

        padding:120px 25px 30px 25px !important;
    }
	
	.newbox .wpb_column  {margin-bottom:20px;margin-top:0 !important}
}
.us_custom_50cc7d67 {margin-bottom:0}


h1 {text-align:center}
.golden {color:#836722}
.lang-item-et .w-nav-title img,
.lang-item-en .w-nav-title img,
.lang-item-es .w-nav-title img {
    width: 25px !important;
    height: 25px !important;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block !important;
    margin-bottom: -6px; border: 1.4px solid #bfa161; 
}

/* Replace images with your SVGs */
.lang-item-et .w-nav-title img { content: url('/wp-content/uploads/eesti.svg'); }
.lang-item-en .w-nav-title img { content: url('/wp-content/uploads/english.svg'); }
.lang-item-es .w-nav-title img { content: url('/wp-content/uploads/spanish.svg'); }


.w-nav-list .level_2, .w-nav-list .level_3 {background-color: rgba(0, 0, 0, 0.3); }
.w-nav-list .level_2 a:hover, .w-nav-list .level_3 a:hover  {color:white !important}

.sp-lc-logo img {height:50px !important; width:auto !important; margin:40px auto !important; padding:0}
.post_image {margin:auto}
/* ✅ DESKTOP STYLES — restore cleanly */
@media (min-width: 769px) {
  .w-flipbox,
  .w-flipbox-h,
  .w-flipbox-hh {
    width: 375px !important;
    height: 260px !important;
    margin: 0 auto !important;
    position: relative !important;
    perspective: 1000px !important;
  }

  .w-flipbox-front,
  .w-flipbox-back {
    width: 100% !important;
    height: 100% !important;
    background-size: 180px 180px !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    position: absolute !important;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 0 !important;
    text-align: center !important;
  }

  .w-flipbox-back {
    transform: rotateY(180deg);
  }

  .w-flipbox-front-title,
  .w-flipbox-back-title {
    margin-top: 50px !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    padding: 0 !important;
  }
}

/* ✅ MOBILE STYLES — only apply below 768px */
@media (max-width: 768px) {
  .w-flipbox,
  .w-flipbox-h,
  .w-flipbox-hh {
    width: 100% !important;
    height: 490px !important;
    margin: 0 0 20px 0 !important;
    position: relative !important;
  }

  .w-flipbox-front,
  .w-flipbox-back {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    background-size: 150px 150px !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    padding-top: 160px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center !important;
  }

  .w-flipbox-front-title,
  .w-flipbox-back-title {
    margin: 0 !important;
    padding-top: 10px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  .via_grid {
    display: block !important;
  }
}


.map-container {
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

.post_image{border:1px solid #bfa161}
.post_image:hover{background:#bfa161}


@media (max-width: 768px) {
  .persona1 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 1rem !important;
    gap: 1.5rem !important;
  }

  .persona,
  .info {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .persona img {
    width: 100% !important;
    height: auto !important;
    max-width: 320px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
  }

  .info h2 {
    font-size: 22px !important;
    padding-top: 0 !important;
  }

  .info p {
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding: 0 1rem !important;
  }

  .w-btn-wrapper {
    text-align: center !important;
    margin-top: 1rem !important;
  }

  .w-btn {
    font-size: 14px !important;
  }
	
}
.active .w-tabs-section-title {
	color:#000
}
a, .a {stroke: none !important}

 /*.page .via_grid svg {height:80px}*/
.home .w-grid-item
{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}
.layout_492 .usg_post_title_1 {margin-bottom:0 !important}




@media (max-width:768px)
{.wp-image-6328 {width:100%; margin:auto; margin:0;}}


.page .w-iconbox-icon svg * {
  fill: #bfa161 !important;
}
.goldsvg * {
  fill: #bfa161 !important;
}

.checkmark {
  list-style: none;
  padding-left: 0;
}

.checkmark li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}

.checkmark li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 2px;
  color: #836722;
  font-size: 25px; /* control size here */
}
.cross {
  list-style: none;
  padding-left: 0;
}

.cross li {
  position: relative;
  padding-left: 18px;  /* space for the icon */
  margin-bottom: 10px;
}

.cross li::before {
  content: "✖";      /* plain X, not emoji */
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 22px;
  color: #836722;    /* gold color now works */
}
.frame {border:1px solid #bfa161; border-radius:22px; padding:1px;margin-bottom:20px}
.tax-table {
  width: 100%;
  border-collapse: collapse;
	box-shadow: 0 3px 10px rgba(191, 161, 97, 0.3);
	width: 100%;table-layout: auto;
	

}


.tax-table th,
.tax-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;

}

.tax-table th {
  background: #e8e7e6;color:#836722;
  font-weight: 600;
}

.tax-table td:first-child {
  font-weight: 600;
  width: auto;
}



.goldnr {
  list-style: none;
  counter-reset: gold-counter;
  padding-left: 2em; /* space for numbers */
}

.goldnr li {
  counter-increment: gold-counter;
  position: relative;
  margin-bottom: 0.8em;
  font-weight: normal; /* keep text normal */
}

.goldnr li::before {
  content: counter(gold-counter) ".";
  position: absolute;
  left: -40px;
  color: #836722;
  font-weight: bold;
  width: 1.5em;
  text-align: right;
}
.gold {color:#836722}


.bolder svg,
.bolder svg * {
  stroke-width: 4 !important;
  stroke: #bfa161 !important;
}
.hyphens p{hyphens:auto}

.w-tabs-section-title {color:#836722; font-weight:600}
 .w-tabs-sections.icon_plus &gt; div &gt; .w-tabs-section-header .w-tabs-section-control {
    color: #ccc !important;
}
.w-tabs.accordion &gt; div &gt; div &gt; .w-tabs-section-content{background: #fefcf7;border-radius: 0 0 8px 8px}
.w-tabs.accordion &gt; div &gt; .w-tabs-section {border-width:1px !important; border-radius:8px !important; background:#fefcf7}
.w-tabs-sections.icon_plus &gt; div &gt; .w-tabs-section-header .w-tabs-section-control {
    color: #ccc !important;
    font-size: 12px;
}
.w-tabs-sections.icon_plus &gt; div &gt; .w-tabs-section-header .w-tabs-section-control::after {height:0.2em}
.w-tabs-sections.icon_plus &gt; div &gt; .w-tabs-section-header .w-tabs-section-control::before {width:0.2em}


@media (max-width:768px) {.color_footer-bottom .vc_column-inner {margin:auto} h5, h3 {text-align:center} .wp-image-6328 {width:200px; height:auto; margin:10px auto !important}.home  h4 {font-size:20px !important} .info {padding-bottom:20px !important}
	 h2 {text-align:center !important}
	}

.grecaptcha-badge {
  right: auto !important;
  left: 10px !important;
  bottom: 10px !important;
  transform: scale(0.8);
  transform-origin: left bottom;
}
.grecaptcha-badge {
  transform: scale(0.7);
}





/* Make flip boxes full width (1 column) on screens 769px to 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    
    /* Change to single column */
    .g-cols.via_grid.cols_2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Each box takes full width */
    .g-cols.via_grid.cols_2 &gt; .wpb_column {
        width: 100% !important;
    }
    
    /* Adjust flipbox height for better viewing */
    .w-flipbox-front,
    .w-flipbox-back {
        height: 300px !important;
    }
}

@media(min-width:769px) and (max-width:995px){.layout_496 .usg_post_title_1 {font-size:15px}}

.iconed {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.iconed li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.iconed li::before {
  content: none !important; /* kills your global bullet */
}

.iconed li i {
  color: #b6a161;
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.iconed li .material-icons {
  color: #b6a161;
  margin-right: 10px;
  font-size: 20px;
}

#leadia_science_widget {display:none !important}

.goldborder img {border:1px solid #bfa161}



.workflow-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.workflow-row-item {
    padding: 1rem;
    border-left: 4px solid #bfa161;
    background: #f9f9f9;
}

.workflow-row-item i {
    color: #836722;
    margin-right: 0.75rem;
    width: 1.25rem;
}

.workflow-row-item strong {
    color: #836722;
}

.topics-grid li a:hover {text-decoration:underline !important; }

#page-footer h5 {font-size:22px !important}

#page-footer .wpcf7-submit {width:400px; display: block; margin: 0 auto; line-height: 1.2px !important; border-radius: 5px; height:45px; width:270px  }

#page-footer .wpcf7-form p:last-child {
    text-align: center !important;
}

@media (min-width: 1024px) {

    #page-footer .wpcf7 form {
               margin: 0 auto;
        padding: 0 100px;
        box-sizing: border-box;
	}}

.value .w-iconbox-icon svg  {height:30px !important; height:auto}
.why span {font-weight:bold; color:#836722}
.why .w-iconbox-icon svg {height:25px !important}
.why {margin-top:20px}
/*related*/
/* Match your theme's l-section-h container width */
.crp_related {
    max-width: 1170px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    box-sizing: border-box !important;
}
.crp_related  ul{margin-left:0}
/* 2-column grid with equal heights */
.crp_related.crp-text-only ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    align-items: stretch !important;
}

/* Make each list item take full height */
.crp_related.crp-text-only li {
    border: 1px solid #ddd !important;
    padding: 15px !important;
    border-radius: 8px !important;
    background: #f9f9f9 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.crp_related.crp-text-only .crp_title {
    text-decoration: none !important;
    font-weight: 600 !important;
    color: #333 !important;
    display: block !important;
    width: 100% !important;
}

.crp_related.crp-text-only li:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.crp_related.crp-text-only .crp_title:hover {
    color: #0073aa !important;
}

.crp_related ul li::before {
    display: none !important;
}

/* Mobile: stack to 1 column */
@media (max-width: 768px) {
    .crp_related.crp-text-only ul {
        grid-template-columns: 1fr !important;
    }
}
.widgettitle {text-align:center; text-transform:uppercase}
@media (min-width: 1000px) {
  a.tag-cloud-link:not(.tag-business .tag-link-8) {
    border: 1px solid #999 !important;
    padding: 8px 12px;
    margin: 0 9px;
  }
}
@media (min-width: 1000px) {
  .tagcloud a:hover, .tag-cloud-link:hover {
    border: 1px solid #bfa161 !important;
    color: #836722 !important;
		text-decoration:none
  }
}


.tagcloud {align-content:center; text-align:center}
.l-footer .w-iconbox {margin-bottom:5px}

.w-sharing-item {margin-left:10px}
/* Force 3 columns on the grid */
.layout_497 .w-grid-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
}

.layout_497 .w-grid-item {
    width: 100% !important;
    max-width: 100% !important;
}

@media screen and (max-width: 1024px) {
    .layout_497 .w-grid-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 600px) {
    .layout_497 .w-grid-list {
        grid-template-columns: 1fr !important;
    }
}
#prevBtn, #nextBtn {background:#bfa161}

@media screen and (min-width: 1200px) {.page-id-6734 .w-grid-list .post_title {padding-bottom:40px}}
/* Мобильные таблицы: горизонтальная прокрутка вместо карточек-заглушек.
   Прежний вариант скрывал thead и подставлял подписи псевдоэлементами
   («Law / Regulation», «Estonian Name» …) — они пришли из другого проекта
   и применялись ко всем таблицам сайта, включая прайс. 2026-08-02 */
@media (max-width: 768px) {
    .tax-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .tax-table thead {
        display: table-header-group;
    }
    .tax-table th,
    .tax-table td {
        white-space: normal;
        font-size: 0.8rem;
        padding: 0.6rem 0.6rem;
        min-width: 6rem;
    }
}

/* Заголовки колонок подвала: были h5 сразу после h2 (пропуск уровней
   на 376 страницах). Переведены в h3, вид сохранён этим правилом. 2026-08-02 */
.bfb-footer-title {
    font-family: Alice, serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}
