/* ============================================================
   SECTION DIVIDER
   ============================================================ */

.nl-section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 36px;
}

.nl-section-divider::before,
.nl-section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    width: calc(50% - 14px);
}

.nl-section-divider::before {
    left: 0;
    background: linear-gradient(to right, transparent, rgba(0, 164, 153, 0.4));
}

.nl-section-divider::after {
    right: 0;
    background: linear-gradient(to left, transparent, rgba(0, 164, 153, 0.4));
}

.nl-section-divider__svg {
    position: relative;
    z-index: 1;
    display: block;
    flex-shrink: 0;
}

/* ============================================================
   SECTION 2 — NEWSLETTER CARD
   ============================================================ */

.nl-card-section {
    padding: 40px 20px;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
}

.nl-card {
    flex: 1;
    max-width: 480px;
    padding: 32px 24px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid rgba(0, 164, 153, 0.4);
    box-shadow: 0 4px 20px rgba(0, 164, 153, 0.08);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nl-card:hover {
    transform: translateY(-8px);
    border-color: #00A499;
    box-shadow: 0 12px 35px rgba(0, 164, 153, 0.18);
}

.nl-card__logo {
    height: 72px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 24px;
    display: block;
}

.nl-card__title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.nl-card__desc {
    color: #555;
    line-height: 1.75;
    font-size: clamp(0.95rem, 2.5vw, 1.02rem);
    margin: 0;
}

@media (min-width: 768px) {
    .nl-card-section {
        padding: 60px 32px;
    }

    .nl-card {
        padding: 45px 35px;
    }

    .nl-card__logo {
        height: 90px;
        margin-bottom: 28px;
    }
}

/* ============================================================
   SECTION 3 — SUBSCRIBE FORM
   ============================================================ */

.newsletter-forms-section {
    padding: 40px 20px;
    background: #ffffff;
}

.nl-form-col {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.nl-form-col h2 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 24px;
    font-weight: 700;
    color: #2c2c25;
}

.ml-form-fieldRow:not(.ml-last-item) {
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .newsletter-forms-section {
        padding: 60px 32px;
    }
}

/* ============================================================
   TOM SELECT — nc-topics-select theme
   ============================================================ */

#nc-topics-select + .ts-wrapper .ts-control {
    border: 1px solid rgba(0, 164, 153, 0.35) !important;
    border-radius: 8px !important;
    background: #fff !important;
    min-height: 44px;
    padding: 6px 8px !important;
    font-size: 0.95rem;
    color: #2c2c25;
    box-shadow: none !important;
}

#nc-topics-select + .ts-wrapper.focus .ts-control {
    border-color: #00A499 !important;
    box-shadow: 0 0 0 3px rgba(0, 164, 153, 0.2) !important;
}

#nc-topics-select + .ts-wrapper .ts-control .item {
    background: #00A499 !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    font-size: 0.85rem;
    border: none !important;
}

#nc-topics-select + .ts-wrapper .ts-control .item .remove {
    color: rgba(255, 255, 255, 0.8) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.4) !important;
    margin-left: 4px;
    padding-left: 5px;
}

#nc-topics-select + .ts-wrapper .ts-dropdown {
    border: 1px solid rgba(0, 164, 153, 0.35) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

#nc-topics-select + .ts-wrapper .ts-dropdown .option {
    color: #2c2c25 !important;
    background: transparent !important;
}

#nc-topics-select + .ts-wrapper .ts-dropdown .option:hover,
#nc-topics-select + .ts-wrapper .ts-dropdown .option.active {
    background: rgba(0, 164, 153, 0.1) !important;
    color: #1a1a1a !important;
}

#nc-topics-select + .ts-wrapper .ts-dropdown .option.selected {
    background: rgba(0, 164, 153, 0.08) !important;
    color: #00A499 !important;
    font-weight: 600;
}

.ml-field-group.ml-error #nc-topics-select + .ts-wrapper .ts-control {
    border-color: red !important;
}

#mlb2-37821782.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow .ts-control > input {
    width: auto !important;
    max-width: 100% !important;
    padding: 2px 4px !important;
    background: transparent !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-width: 60px;
    line-height: 1.4 !important;
    font-size: 0.95rem !important;
    height: auto !important;
}

/* ============================================================
   MAILERLITE EMBED OVERRIDES
   ============================================================ */

#mlb2-37821782.ml-form-embedContainer .ml-form-embedWrapper {
    background: #ffffff !important;
    border-width: 2px !important;
    border-style: solid !important;
    border-color: rgba(0, 164, 153, 0.5) !important;
    border-radius: 12px !important;
    padding: 24px 20px;
    box-shadow: 0 8px 28px rgba(0, 164, 153, 0.08);
}

#mlb2-37821782.ml-form-embedContainer .ml-form-embedWrapper.embedForm {
    max-width: 520px !important;
}

#mlb2-37821782.ml-form-embedContainer .ml-form-embedWrapper .ml-block-form .ml-field-group label {
    color: #2c2c25;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    display: block;
    text-align: left;
    margin-bottom: 8px;
    line-height: 1.4;
}

#mlb2-37821782.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input {
    border-color: rgba(0, 164, 153, 0.4) !important;
    border-radius: 8px !important;
    font-size: 16px !important; /* prevent iOS auto-zoom */
    padding: 12px 14px !important;
    color: #2c2c25 !important;
    background: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#mlb2-37821782.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input:focus {
    outline: none;
    border-color: #00A499 !important;
    box-shadow: 0 0 0 3px rgba(0, 164, 153, 0.2) !important;
}

#mlb2-37821782.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input::placeholder {
    color: #aaa;
}

.ml-form-embedPermissions {
    margin: 20px 0;
    text-align: left;
}

.ml-form-embedPermissions p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin: 8px 0;
}

.ml-form-embedPermissions a {
    color: #00A499;
    text-decoration: none;
    font-weight: 600;
}

.ml-form-embedPermissions a:hover {
    color: #008c82;
}

#mlb2-37821782.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit {
    margin-top: 4px;
}

#mlb2-37821782.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
    background-color: #00A499 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    padding: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#mlb2-37821782.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover {
    background-color: #008c82 !important;
    transform: translateY(-1px);
}

#mlb2-37821782.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.loading {
    display: none;
}

.ml-form-embedSubmitLoad {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.ml-form-embedSubmitLoad:after {
    content: " ";
    display: block;
    width: 11px;
    height: 11px;
    margin: 1px;
    border-radius: 50%;
    border: 4px solid #fff;
    border-color: #ffffff #ffffff #ffffff transparent;
    animation: ml-form-embedSubmitLoad 1.2s linear infinite;
}

@keyframes ml-form-embedSubmitLoad {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ml-form-successBody {
    text-align: center;
}

.ml-form-successContent h4 {
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    color: #2c2c25;
    margin-bottom: 12px;
}

.ml-form-successContent p {
    font-size: 1rem;
    color: #555;
}

.ml-error input,
.ml-error textarea {
    border-color: #dc3545 !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (min-width: 768px) {
    #mlb2-37821782.ml-form-embedContainer .ml-form-embedWrapper {
        padding: 30px 28px;
    }
}

/* ============================================================
   SECTION 5 — FOOTER TEXT
   ============================================================ */

.newsletter-footer-text {
    text-align: center;
    padding: 48px 20px 80px;
    background: #fafafa;
}

.newsletter-footer-text p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.7;
    color: #555;
}

@media (min-width: 768px) {
    .newsletter-footer-text {
        padding: 60px 32px 120px;
    }
}
