/* ===============================
   MAIN WRAPPER
================================ */
.trade-safely-wrap {
    width: 95%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Fredoka', Arial, sans-serif;
    color: #1c1c1c;
    line-height: 1.7;
    box-sizing: border-box;
}


/* Page Title */
.ts-title {
    font-size: 44px;
    font-weight: 800;
    text-align: center;
    color: #002f7a;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.15);
    max-width: 100%;
    word-wrap: break-word;
}
.ts-title-sub {
    display: block;          /* forces it to a new line */
    font-size: 36px;         /* slightly smaller than main title */
    font-weight: 700;
    color: #5c9bff;       /* a nice complementary color */
    text-align: center;      /* center under main title */
    margin-top: 6px;         /* space between main title and subtitle */
    letter-spacing: 0.5px;
}

/* Section Wrapper */
.ts-section {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    padding: 30px 2.5%; /* relative padding so it won't overflow */
    margin-bottom: 30px;
    border-radius: 16px;
    border-left: 6px solid #8ab6ff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.ts-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.ts-section h2 {
    font-size: 34px;
    font-weight: 700;
    color: #002f7a;
    margin-bottom: 18px;
    border-bottom: 3px solid #8ab6ff;
    display: inline-block;
    padding-bottom: 8px;
    letter-spacing: 0.5px;
    max-width: 100%;
    word-wrap: break-word;
}

/* Paragraphs */
.ts-section p {
    font-size: 18px;
    margin-bottom: 16px;
    color: #333;
    max-width: 100%;
    word-wrap: break-word;
}

/* Example box */
.example {
    background: #fffbe6;
    border-left: 4px solid #f7d23e;
    padding: 16px 2.5%;
    border-radius: 12px;
    margin: 14px 0;
    font-size: 16px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    max-width: 100%;
    word-wrap: break-word;
}

.example:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Note box */
.note {
    background: #e8f2ff;
    border-left: 4px solid #8ab6ff;
    padding: 16px 2.5%;
    border-radius: 12px;
    font-weight: 500;
    margin: 14px 0;
    font-size: 16px;
    color: #1c1c1c;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    max-width: 100%;
    word-wrap: break-word;
}

.note:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Safety list */
.ts-safety-list {
    width: 100%;
    padding: 20px 2.5%;
    background: #f9fbff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    margin-top: 20px;
    list-style: none;
    box-sizing: border-box;
}

.ts-safety-list li {
    font-size: 18px;
    margin-bottom: 14px;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
    transition: transform 0.25s ease;
    max-width: 100%;
    word-wrap: break-word;
}

.ts-safety-list li::before {
    content: "✔";
    color: #002f7a;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.ts-safety-list li:hover {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 900px) {
    .ts-section {
        padding: 25px 3%;
    }
    .ts-section h2 {
        font-size: 28px;
    }
    .ts-title, .ts-title-sub {
        font-size: 36px;
    }
}

@media (max-width: 700px) {
    .ts-section {
        padding: 18px 3%;
    }
    .ts-section h2 {
        font-size: 24px;
    }
    .ts-section p,
    .example,
    .note,
    .ts-safety-list li {
        font-size: 16px;
    }
    .ts-title, .ts-title-sub {
        font-size: 28px;
    }
}
