*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
    line-height: 1.7;
    color: #333;
    margin: 0;
    padding: 0 16px
}

body > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    color: #1a1a1a
}

h2 {
    color: #1a5c2e;
    margin-top: 30px;
    margin-bottom: 12px;
}

h3 {
    color: #2d7a45;
    margin-top: 25px;
    margin-bottom: 10px;
}

h4 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 8px;
}

p {
    margin-bottom: 16px
}

.vat-calc-widget {
    background: linear-gradient(145deg, #ffffff, #f4f7f9);
    border: 2px solid #cbd5e1;
    font-family: 'Inter', sans-serif;
    border-radius: 12px;
    padding: 32px;
    max-width: 420px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
    margin: 30px 0;
    transition: transform .3s ease, box-shadow .3s ease
}

.vat-calc-widget:hover {
    transform: translateY(-2px)
}

.vat-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    background: #f1f5f9;
    padding: 8px;
    border-radius: 10px
}

.vat-tab {
    flex: 1;
    padding: 12px 6px;
    background: 0 0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all .2s ease
}

.vat-tab.active {
    background: #1a5c2e;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 92, 46, .2)
}

.vat-tab:hover:not(.active) {
    color: #1a5c2e;
    background: #e2e8f0
}

.vat-input-group {
    margin-bottom: 20px
}

.vat-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px
}

.vat-input-wrapper {
    position: relative
}

.vat-input-wrapper span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 600;
    font-size: 16px
}

.vat-input {
    width: 100%;
    padding: 16px 16px 16px 35px;
    font-size: 18px;
    font-weight: 700;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease
}

.vat-input:focus {
    border-color: #1a5c2e;
    box-shadow: 0 0 0 4px rgba(26, 92, 46, .15)
}

.vat-results {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 20px
}

.vat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #475569
}

.vat-row.vat-tax {
    color: #b91c1c;
    font-weight: 600;
    font-size: 15px;
    background: #fee2e2;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 8px -12px;
}

.vat-row.vat-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px dashed #94a3b8;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0
}

.vat-val {
    font-weight: 600
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #1a5c2e;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    margin-top: 10px
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700
}

.main-nav a:hover {
    text-decoration: underline
}

.breadcrumb {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px
}

.breadcrumb a {
    color: #0c6ab8;
    text-decoration: none
}

.breadcrumb a:hover {
    text-decoration: underline
}

.social-share {
    display: flex;
    gap: 10px;
    margin: 30px 0
}

.share-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px
}

.share-fb {
    background: #1877f2
}

.share-tw {
    background: #1da1f2
}

.share-wa {
    background: #25d366
}

.site-footer {
    border-top: 1px solid #e1e8ed;
    margin-top: 30px;
    padding-top: 20px;
    padding-bottom: 80px; /* Space for sticky CTA */
    text-align: center;
    font-size: 14px;
    color: #5c6b7a
}

.site-footer .footer-links {
    margin-bottom: 15px
}

.site-footer .footer-links a {
    color: #0c6ab8;
    text-decoration: none;
    margin: 0 10px
}

.site-footer .footer-links a:hover {
    text-decoration: underline
}

.toc-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 20px 0
}

.toc-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.toc-box ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.toc-box li {
    margin-bottom: 4px
}

.toc-box a {
    color: #0c6ab8;
    text-decoration: none
}

.toc-box a:hover {
    text-decoration: underline
}

.article-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

img {
    max-width: 100%;
    height: auto;
}

.video-placeholder {
    background: #e2e8f0;
    padding: 50px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 700;
    color: #64748b
}

.trust-signals {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 25px;
    font-size: 14px;
    color: #1a5c2e;
    font-weight: 700
}

.trust-badge {
    padding: 8px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03)
}

.related-posts {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0
}

.related-posts h3 {
    color: #1a1a1a;
    margin-bottom: 15px
}

.related-posts ul {
    list-style-type: none;
    padding-left: 0
}

.related-posts li {
    margin-bottom: 10px
}

.related-posts a {
    color: #0c6ab8;
    text-decoration: none;
    font-weight: 600
}

.related-posts a:hover {
    text-decoration: underline
}

.form-group {
    margin-bottom: 15px
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box
}

.btn-primary {
    background: #1a5c2e;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700
}

.btn-primary:hover {
    background: #124020
}

.captcha-box {
    margin: 15px 0;
    padding: 15px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    text-align: center;
    color: #64748b;
    border-radius: 6px
}

/* UI Enhancements */
.hero-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
}

.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    transition: transform .2s, box-shadow .2s;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .07);
    padding: 1.5rem;
    margin: 2rem 0;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    transition: transform .2s, box-shadow .2s;
}

.btn-primary {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    transition: background .2s, transform .2s;
}

.btn-primary:hover {
    background: #124020;
    transform: translateY(-2px);
}

h1,
h2,
h3,
h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.3;
}

p {
    margin-bottom: 24px;
}

.section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.main-nav {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    padding: 12px 20px;
}

/* Above-the-fold layout fix */
.hero-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding-top: 20px;
}

.hero-content {
    flex: 0 0 60%;
    padding-right: 10px;
}

.hero-calculator {
    flex: 0 0 40%;
    align-self: flex-start;
    margin-top: 0;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
    }

    .hero-content,
    .hero-calculator {
        flex: auto;
        max-width: 100%;
    }
}

.hero-content h1 {
    margin-bottom: 10px;
    margin-top: 0;
}

.hero-content img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin: 10px 0 20px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.hero-calculator .vat-calc-widget {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
}

/* ========================
   Navbar — Global Styles
   ======================== */
.navbar {
    background: #1a5c2e;
    padding: 10px 0;
    width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav a {
    position: relative;
    text-decoration: none;
    padding: 10px 16px;
    color: #ffffff;
    transition: all 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.menu-toggle {
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    padding: 5px;
    line-height: 1;
    margin-left: auto;
}

@media (min-width: 769px) {
    .menu-toggle,
    .hamburger,
    .mobile-menu-btn,
    #menu-toggle {
        display: none !important;
        visibility: hidden !important;
    }
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .navbar .container {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding: 0 10px;
}

    .menu-toggle,
    .hamburger,
    .mobile-menu-btn,
    #menu-toggle {
        display: flex !important;
    }

    .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: #1a5c2e;
    margin-top: 5px;
    padding: 0 10px;
}

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px 10px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
}

/* ========================
   Tables, Author Card, Mobile CTA
   ======================== */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table-responsive table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
}

.table-responsive th, .table-responsive td {
    padding: 12px;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.author-info {
    flex: 1;
}

.author-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.author-bio {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    color: #475569;
}

.author-trust {
    font-size: 0.85rem;
    color: #1a5c2e;
    font-weight: 600;
}

.trust-signal-badge {
    background: #1a5c2e;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    .author-info h3 {
        justify-content: center;
    }
}

.sticky-cta-mobile {
    display: none;
}

@media (max-width: 768px) {
    .sticky-cta-mobile {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #f39c12;
        color: #fff;
        text-align: center;
        padding: 18px;
        font-weight: 700;
        font-size: 1.1rem;
        z-index: 1000;
        text-decoration: none;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    }
    .sticky-cta-mobile:hover {
        background: #e67e22;
        text-decoration: none;
        color: #fff;
    }
}