/* =========================
   1. DESIGN TOKENS
========================= */
:root {
    --tp-green: #00b67a;
    --tp-green-dark: #009e68;

    --tp-bg: #f7f8fc;
    --tp-white: #ffffff;

    --tp-text: #191919;
    --tp-muted: #6b7280;

    --tp-border: #e5e7eb;

    --tp-radius: 12px;
    --tp-radius-lg: 18px;

    --tp-shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
    --tp-shadow-md: 0 10px 25px rgba(0,0,0,0.08);

    --tp-transition: 0.25s ease;
}

/* =========================
   2. GLOBAL RESET
========================= */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--tp-bg);
    color: var(--tp-text);
}

a {
    text-decoration: none;
    color: inherit;
}

input,
button,
select,
textarea {
  font: inherit;
}

.tp-main {
    flex: 1;
}

/* =========================
   3. LAYOUT SYSTEM
========================= */
.tp-container {
    max-width: 1150px;
    margin: auto;
    padding: 20px 20px 50px 20px;
}

.tp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tp-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.tp-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* DEFAULT: Desktop (3 columns) */
.tp-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* TABLET: 2 columns */
@media (max-width: 1024px) {
    .tp-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE: 1 column */
@media (max-width: 640px) {
    .tp-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   4. NAVBAR
========================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

/* LEFT */
.nav-left .logo {
    font-weight: 700;
    font-size: 20px;
    background: linear-gradient(90deg, #00b67a, #2563eb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CENTER */
.nav-center {
    display: flex;
    gap: 24px;
}

.nav-center a {
    color: #555;
    font-weight: 500;
    white-space: nowrap;
}

/* HOVER */
.nav-center a:hover {
    color: #111;
}

/* ACTIVE LINK */
.nav-center a.active {
    background: rgba(0, 182, 122, 0.1);
    color: #00b67a;
    padding: 0 6px;
    border-radius: 8px;
}

/* RIGHT */
.nav-right {
    display: flex;
    gap: 12px;
}

.nav-right a {
    font-weight: 300;
    font-size: small;
    color: #fff;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 260px;

    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px);

    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);

    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 14px;

    animation: fadeSlide 0.3s ease;
}

.mobile-menu a {
    color: #333;
    font-weight: 500;
}

.mobile-menu hr {
    border: none;
    border-top: 1px solid #eee;
}

/* SHOW MENU */
.mobile-menu.active {
    display: flex;
}

/* ANIMATION */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    .nav-center {
        display: none; /* hide desktop menu */
    }

    .nav-right a,
    .nav-right .btn-outline,
    .nav-right .btn-primary,
    .nav-right .btn-danger {
        display: none; /* hide buttons */
    }

    .hamburger {
        display: flex; /* show hamburger */
    }
}

/* =========================
   5. HERO + SEARCH
========================= */
/* HERO */
.tp-hero {
    text-align: center;
    margin-bottom: 40px;
}

.tp-hero h1 {
    font-size: 36px;
    font-weight: 700;
}

.tp-hero p {
    color: #6b7280;
    margin-top: 8px;
}

/* SEARCH */
.tp-search-form {
    width: 100%;
}

.tp-search-wrapper {
    position: relative;
    width: 100%;
}

/* INPUT */
.tp-search-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 40px; /* space for icon + clear */
    border-radius: 12px;
    border: 1px solid #00b67a;
    outline: none;
    box-sizing: border-box;
    background: rgba(255,255,255,0.08);
    color: #4e4e4e;
}

/* SEARCH ICON (LEFT) */
.tp-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

/* CLEAR BUTTON (RIGHT) */
.tp-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    background: transparent;
    border: none;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;

    display: none;
}

.tp-clear-btn:hover {
    color: #fff;
}

/* FOCUS EFFECT 🔥 */
.tp-search-wrapper input:focus {
    box-shadow: 0 0 0 2px rgba(0,182,122,0.5);
    background: rgba(255,255,255,0.12);
}

/* =========================
   6. BUTTONS
========================= */
.btn-outline {
    padding: 5px 10px;
    border-radius: 5px;
    background: #2d2c2c;
    border: 1px solid transparent;
    color: #fff;
}

.btn-danger {
    padding: 5px 10px;
    border-radius: 5px;
    background: #d70000;
    border: 1px solid transparent;
    color: #fff;
}

.btn-primary {
    padding: 5px 10px;
    border-radius: 5px;
    background: #00b67a;
    border: 1px solid transparent;
    color: #fff;
}

/* =========================
   7. BUSINESS CARD
========================= */
.tp-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.tp-card:hover {
    transform: translateY(-5px);
}

.tp-card-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.tp-card-meta {
    font-size: 13px;
    color: var(--tp-muted);
}

/* =========================
   8. STAR RATING
========================= */
.tp-stars {
    display: flex;
    gap: 2px;
    margin: 6px 0;
}

.tp-star {
    width: 16px;
    height: 16px;
    background: var(--tp-green);
    border-radius: 3px;
}

/* =========================
   9. REVIEW CARD
========================= */
.tp-review-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.tp-review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tp-review-text {
    font-size: 14px;
    color: #374151;
}

.tp-review-footer {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}

.tp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =========================
   10. BADGES
========================= */
.tp-badge {
    display: inline-block;
    background: #00b67a;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
}

/* =========================
   11. FOOTER
========================= */
.tp-footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #cbd5e1;
    padding: 20px 20px;
}

.tp-footer-inner {
    max-width: 1150px;
    margin: auto;
}

/* LOGO */
.tp-footer-logo {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

/* LINKS */
.tp-link{
    color: #0165df;
}

.tp-footer-links a {
    display: block;
    font-size: 14px;
    color: #cbd5e1;
    margin-top: 8px;
    transition: var(--tp-transition);
}

.tp-footer-links a:hover {
    color: white;
}

/* BOTTOM BAR */
.tp-footer-bottom {
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .tp-footer-inner > div:first-child {
        flex-direction: column;
        gap: 24px;
    }

    .tp-footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* =========================
   12. RATING
========================= */
.tp-rating {
    margin: 10px 0;
    font-weight: 600;
}

.tp-rating span {
    color: #6b7280;
    font-weight: 400;
}

.tp-rating-lg {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 600;
}

.tp-rating-lg span {
    margin-left: 10px;
    color: #6b7280;
    font-weight: 400;
}

.tp-rating-xl {
    font-size: 32px;
    font-weight: 700;
}

/* FLEX CONTAINER */
.tp-rating-flex {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 15px;
}

/* LEFT SIDE */
.tp-rating-left {
    min-width: 120px;
}

.tp-rating-left p {
    color: #6b7280;
    font-size: 14px;
    margin-top: 5px;
}

/* RIGHT SIDE */
.tp-rating-breakdown {
    flex: 1;
}

/* RATING BREAKDOWN */
.tp-rating-breakdown {
    margin-top: 20px;
}

.tp-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tp-star-label {
    width: 40px;
    font-size: 14px;
}

.tp-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    font-size: 26px;
    cursor: pointer;
}

.tp-star {
    background: transparent !important;
    border: none;
    padding: 0;
    display: inline-block;
    width: 28px;
    height: 28px;
    color: #555;
    transition: all 0.2s ease;
}

.tp-star:hover,
.tp-star:hover ~ .tp-star {
    fill: #00b67a;
}

.tp-star.active {
    fill: #00b67a;
}

.tp-star:hover {
    transform: scale(1.2);
}

/* BAR BACKGROUND */
.tp-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

/* FILLED BAR */
.tp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b67a, #22c55e);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* COUNT */
.tp-count {
    width: 30px;
    font-size: 13px;
    color: #6b7280;
}

.tp-rating-row:hover .tp-bar-fill {
    background: linear-gradient(90deg, #2563eb, #00b67a);
}
/* =========================
   12. SECTION
========================= */
.section-title {
    margin-top: 50px;
    font-size: 22px;
    font-weight: 600;
}

/* =========================
   13. BUSINESS HEADER
========================= */
.tp-business-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Mobile fix */
@media (max-width: 640px) {
    .tp-business-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tp-business-header .tp-btn-primary {
        width: 100%;
        text-align: center;
    }
}

.tp-business-header h1 {
    font-size: 32px;
    font-weight: 700;
}

.tp-business-desc {
    margin-top: 10px;
    color: #6b7280;
}

/* =========================
   14. SUMMARY
========================= */
.tp-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.tp-summary-card {
    background: #fff;
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* =========================
   15. ARTICLE CARD
========================= */
.tp-article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.tp-article-card:hover {
    transform: translateY(-5px);
}

.tp-article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tp-article-content {
    padding: 16px;
}

.tp-article-content h3 {
    font-size: 16px;
    font-weight: 600;
}

.tp-article-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 10px 0;
}

/* =========================
   15. TRUST CARD
========================= */
.tp-trust-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

/* WRAPPER */
.tp-trust-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* CIRCLE */
.tp-trust-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.tp-trust-circle svg {
    transform: rotate(-90deg);
}

/* BACKGROUND CIRCLE */
.tp-bg {
    fill: none;
    stroke: rgba(255,255,255,0.1);
    stroke-width: 10;
}

/* PROGRESS CIRCLE */
.tp-progress {
    fill: none;
    stroke: #00b67a;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 1s ease;
}

/* PERCENT TEXT */
.tp-trust-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: bold;
    color: #534f4f;
}

/* LABEL BADGES */
.tp-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

/* COLORS */
.tp-excellent { background: #00b67a; color: #fff; }
.tp-good { background: #73cf11; color: #fff; }
.tp-average { background: #ffce00; color: #000; }
.tp-poor { background: #ff8622; color: #fff; }
.tp-bad { background: #e02424; color: #fff; }


/* =========================
   16. OVERLAY
========================= */
.tp-modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(221, 217, 217, 0.6);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
}

/* CONTENT */
.tp-modal-content {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(16px);
    padding: 25px;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    color: #4e4e4e;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: tpFadeUp 0.3s ease;
}

/* CLOSE */
.tp-close {
    float: right;
    cursor: pointer;
    font-size: 22px;
}

/* FORM */
.tp-form-group {
    margin-bottom: 15px;
}

.tp-form-group input,
.tp-form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
    box-sizing: border-box;
}

.tp-form-group textarea:focus {
    box-shadow: 0 0 0 2px rgba(0,182,122,0.5);
}

/* ANIMATION */
@keyframes tpFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* BACK BUTTON */
.tp-back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #aaa;
    text-decoration: none;
}

.tp-back-btn:hover {
    color: #00b67a;
}

/* =========================
   17. ARTICLE CARD
========================= */

/* WITH TOC */
.tp-container-article.has-toc {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: auto;
}

/* NO TOC */
.tp-container-article.no-toc {
    max-width: 800px;
    margin: auto;
}

/* =========================
   SIDEBAR TOC
========================= */

.tp-sidebar {
    position: relative;
}

.tp-toc {
    position: sticky;
    top: 100px;
    border-left: 2px solid #eee;
    padding-left: 15px;
}

.toc-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.tp-toc ul {
    list-style: none;
    padding: 0;
}

.tp-toc li {
    margin-bottom: 8px;
}

.toc-level-2 a {
    font-weight: 500;
}

.toc-level-3 {
    margin-left: 12px;
}

.toc-level-3 a {
    font-size: 13px;
    color: #777;
}

.tp-toc a {
    text-decoration: none;
    color: #444;
    transition: 0.2s;
}

.tp-toc a:hover {
    color: #00b67a;
}

.tp-toc a.active {
    color: #00b67a;
    font-weight: 600;
}

/* =========================
   ARTICLE CONTENT
========================= */

.tp-content {
    max-width: 720px;
}

.tp-back-btn {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    color: #555;
}

.tp-article-card {
    background: #fff;
}

.tp-article-image {
    width: 100%;
    height: clamp(250px, 40vh, 420px) !important;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.tp-article-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tp-article-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.tp-reading-time {
    font-weight: 500;
}

/* =========================
   ARTICLE BODY
========================= */

.tp-article-body {
    line-height: 1.7;
    font-size: 16px;
}

.tp-article-body h2 {
    margin-top: 40px;
    font-size: 24px;
}

.tp-article-body h3 {
    margin-top: 25px;
    font-size: 20px;
}

.tp-article-body ul {
    font-size: 10pt;
}

.tp-article-body ol {
    font-size: 11pt;
}

.tp-article-body ol ul {
    font-size: 11pt;
}

/* Prevent scroll overlap */
h2, h3 {
    scroll-margin-top: 120px;
}

/* =========================
   RELATED ARTICLES
========================= */

.tp-related {
    max-width: 1100px;
    margin: 60px auto;
}

.tp-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tp-article-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tp-article-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.tp-article-info {
    padding: 10px 0;
}

.tp-read-more {
    color: #00b67a;
    font-size: 14px;
}

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

@media (max-width: 900px) {
    .tp-container-article.has-toc {
        grid-template-columns: 1fr;
    }

    .tp-sidebar {
        display: none;
    }

    .tp-content {
        max-width: 100%;
    }
}

/* =========================
   16. CONTACT
========================= */
.contact-container {
    max-width: 720px;
    margin: 20px auto;
    padding: 20px;
}

/* Header */
.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact-header p {
    color: #666;
}

/* Card */
.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Form */
.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    font-size: 14px;
    transition: 0.2s;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4a90e2;
    outline: none;
}

/* Button */
.contact-form button {
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.contact-form button:hover {
    background: #357abd;
}

