
/* =========================================
   STEMigo Overseas - Terms & Conditions
========================================= */

.terms-page {
    padding: 45px 0 60px;
    background: #f4f8fc;
    color: #334155;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.65;
}

.terms-page * {
    box-sizing: border-box;
}

.terms-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Heading */

.terms-header {
    margin-bottom: 28px;
}

.terms-header h1 {
    margin: 0 0 5px;
    color: #102f63;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
}

.terms-effective {
    margin: 0;
    color: #102f63;
    font-size: 20px;
    font-weight: 500;
}

.terms-underline {
    display: block;
    width: 58px;
    height: 4px;
    margin: 12px 0 14px;
    background: #ff6900;
    border-radius: 4px;
}

.terms-intro {
    margin: 0;
    color: #334e70;
    font-size: 14px;
    line-height: 1.8;
}

/* Terms Grid */

.terms-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

/* Individual Cards */

.terms-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 24px 20px 22px 44px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(16, 47, 99, 0.035);
    transition: box-shadow 0.25s ease,
                transform 0.25s ease;
}

.terms-card:hover {
    box-shadow: 0 8px 24px rgba(16, 47, 99, 0.08);
}

/* Number Badge */

.terms-number {
    position: absolute;
    display:none !important;
    top: 14px;
    left: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    z-index: 1;
}

.terms-number.orange {
    color: #f05a00;
    background: #ffeadb;
}

.terms-number.blue {
    color: #0866c6;
    background: #dceeff;
}

.terms-number.green {
    color: #008f83;
    background: #d9f4ec;
}

.terms-number.red {
    color: #d92346;
    background: #ffe1e7;
}

/* Icon Circle */

.terms-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin-top: 22px;
    border-radius: 50%;
    font-size: 21px;
}

.terms-icon.orange-icon {
    color: #ff5b00;
    background: #fff0e5;
}

.terms-icon.blue-icon {
    color: #075db6;
    background: #e5f1ff;
}

.terms-icon.green-icon {
    color: #009688;
    background: #e2f7f0;
}

.terms-icon.red-icon {
    color: #e11d48;
    background: #ffebef;
}

/* Card Content */

.terms-card-content {
    flex: 1;
    min-width: 0;
}

.terms-card-content h2 {
    margin: 0 0 9px;
    color: #102f63;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.terms-card-content p {
    margin: 0 0 10px;
    color: #46546a;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.terms-card-content p:last-child {
    margin-bottom: 0;
}

.terms-card-content strong {
    color: #102f63;
    font-weight: 700;
}

.terms-card-content ul {
    margin: 0 0 12px;
    padding-left: 19px;
}

.terms-card-content li {
    margin-bottom: 5px;
    padding-left: 2px;
    color: #46546a;
    font-size: 14px;
    line-height: 1.6;
}

.terms-card-content li:last-child {
    margin-bottom: 0;
}

.terms-card-content a {
    color: #075db6;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.terms-card-content a:hover {
    color: #ff6900;
    text-decoration: underline;
}

/* Privacy Content */

.terms-card-content p strong:first-child {
    display: inline;
}

/* Contact Card */

.terms-contact-card {
    grid-column: 1 / -1;
    align-items: flex-start;
    padding-top: 22px;
    padding-bottom: 22px;
}

.terms-contact-card .terms-card-content h2 {
    margin-bottom: 18px;
}

.terms-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.terms-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    padding: 5px 12px;
    border-right: 1px solid #e5eaf1;
}

.terms-contact-item:first-child {
    padding-left: 0;
}

.terms-contact-item:last-child {
    padding-right: 0;
    border-right: none;
}

.terms-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    color: #ff5b00;
    background: #fff0e5;
    border-radius: 50%;
    font-size: 19px;
}

.terms-contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: #102f63;
    font-size: 14px;
    font-weight: 700;
}

.terms-contact-item p {
    margin: 0 0 4px;
    color: #334e70;
    font-size: 14px;
    line-height: 1.6;
}

.terms-contact-item small {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.terms-contact-item a {
    color: #102f63;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.terms-contact-item a:hover {
    color: #ff6900;
}

/* =========================================
   Tablet Responsive
========================================= */

@media (max-width: 991px) {
    .terms-page {
        padding: 35px 0 45px;
    }

    .terms-container {
        padding: 0 16px;
    }

    .terms-header h1 {
        font-size: 32px;
    }

    .terms-effective {
        font-size: 18px;
    }

    .terms-grid {
        gap: 12px;
    }

    .terms-card {
        gap: 10px;
        padding: 22px 14px 20px 38px;
    }

    .terms-number {
        left: 8px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .terms-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .terms-card-content h2 {
        font-size: 16px;
    }

    .terms-card-content p,
    .terms-card-content li {
        font-size: 13px;
    }

    .terms-contact-grid {
        gap: 10px;
    }

    .terms-contact-item {
        gap: 8px;
        padding: 5px 8px;
    }

    .terms-contact-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* =========================================
   Mobile Responsive
========================================= */

@media (max-width: 767px) {
    .terms-page {
        padding: 28px 0 35px;
    }

    .terms-container {
        padding: 0 14px;
    }

    .terms-header {
        margin-bottom: 22px;
    }

    .terms-header h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .terms-effective {
        font-size: 16px;
    }

    .terms-intro {
        font-size: 14px;
    }

    .terms-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .terms-card {
        gap: 12px;
        padding: 22px 16px 20px 42px;
        border-radius: 12px;
    }

    .terms-number {
        top: 13px;
        left: 9px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .terms-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        margin-top: 22px;
        font-size: 18px;
    }

    .terms-card-content h2 {
        font-size: 16px;
        line-height: 1.45;
    }

    .terms-card-content p,
    .terms-card-content li {
        font-size: 14px;
        line-height: 1.65;
    }

    .terms-card-content ul {
        padding-left: 17px;
    }

    .terms-contact-card {
        grid-column: auto;
    }

    .terms-contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .terms-contact-item,
    .terms-contact-item:first-child,
    .terms-contact-item:last-child {
        padding: 0 0 14px;
        border-right: none;
        border-bottom: 1px solid #e5eaf1;
    }

    .terms-contact-item:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .terms-contact-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 17px;
    }
}

/* Small Mobile Screens */

@media (max-width: 380px) {
    .terms-container {
        padding: 0 10px;
    }

    .terms-header h1 {
        font-size: 25px;
    }

    .terms-card {
        gap: 9px;
        padding-right: 11px;
        padding-left: 37px;
    }

    .terms-number {
        left: 6px;
        width: 29px;
        height: 29px;
        font-size: 15px;
    }

    .terms-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .terms-card-content h2 {
        font-size: 15px;
    }
}


/* =========================================
   STEMigo Overseas - Terms & Conditions
========================================= */

.terms-page {
    padding: 40px 0;
    background: #f4f7fb;
    color: #334155;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
}

.terms-page * {
    box-sizing: border-box;
}

/* Bootstrap container is used in Blade */
.terms-page .container {
    width: 100%;
}

/* Page Heading */

.terms-header {
    margin-bottom: 24px;
}

.terms-header h1 {
    margin: 0 0 8px;
    color: #102f63;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

.terms-effective {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.terms-underline {
    display: block;
    width: 55px;
    height: 4px;
    margin: 12px 0;
    background: #ff6900;
    border-radius: 4px;
}

.terms-intro {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

/* One full-width card per row */

.terms-page .terms-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

/* Individual Terms Card */

.terms-page .terms-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16, 47, 99, 0.04);
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.terms-page .terms-card:hover {
    border-color: #d5e0ef;
    box-shadow: 0 5px 16px rgba(16, 47, 99, 0.07);
}

/* Remove section numbering */

.terms-page .terms-number {
    display: none !important;
}

/* Section Icons */

.terms-page .terms-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 10px;
    font-size: 21px;
}

/* Icon Colors */

.terms-page .orange-icon {
    color: #f05a00;
    background: #fff0e5;
}

.terms-page .blue-icon {
    color: #075db6;
    background: #e5f1ff;
}

.terms-page .green-icon {
    color: #008f83;
    background: #e2f7f0;
}

.terms-page .red-icon {
    color: #d92346;
    background: #ffe8ed;
}

/* Card Content */

.terms-page .terms-card-content {
    flex: 1;
    min-width: 0;
}

.terms-page .terms-card-content h2 {
    margin: 0 0 10px;
    color: #102f63;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.terms-page .terms-card-content p {
    margin: 0 0 10px;
    color: #475569;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.terms-page .terms-card-content p:last-child {
    margin-bottom: 0;
}

.terms-page .terms-card-content strong {
    color: #102f63;
    font-weight: 700;
}

/* Lists */

.terms-page .terms-card-content ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.terms-page .terms-card-content li {
    margin-bottom: 6px;
    padding-left: 2px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.terms-page .terms-card-content li:last-child {
    margin-bottom: 0;
}

/* Links */

.terms-page .terms-card-content a {
    color: #075db6;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.terms-page .terms-card-content a:hover {
    color: #ff6900;
    text-decoration: underline;
}

/* Contact Section */

.terms-page .terms-contact-card {
    width: 100%;
}

.terms-page .terms-contact-card .terms-card-content h2 {
    margin-bottom: 16px;
}

.terms-page .terms-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.terms-page .terms-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 0 12px;
    border-right: 1px solid #e5eaf1;
}

.terms-page .terms-contact-item:first-child {
    padding-left: 0;
}

.terms-page .terms-contact-item:last-child {
    padding-right: 0;
    border-right: none;
}

.terms-page .terms-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: #ff5b00;
    background: #fff0e5;
    border-radius: 10px;
    font-size: 18px;
}

.terms-page .terms-contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: #102f63;
    font-size: 14px;
    font-weight: 700;
}

.terms-page .terms-contact-item p {
    margin: 0 0 4px;
    color: #334e70;
    font-size: 14px;
    line-height: 1.6;
}

.terms-page .terms-contact-item small {
    display: block;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.terms-page .terms-contact-item a {
    color: #102f63;
    font-weight: 700;
    text-decoration: none;
}

.terms-page .terms-contact-item a:hover {
    color: #ff6900;
}

/* Tablet */

@media (max-width: 991px) {
    .terms-page {
        padding: 30px 0;
    }

    .terms-page .terms-contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .terms-page .terms-contact-item,
    .terms-page .terms-contact-item:first-child,
    .terms-page .terms-contact-item:last-child {
        padding: 0 0 14px;
        border-right: none;
        border-bottom: 1px solid #e5eaf1;
    }

    .terms-page .terms-contact-item:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .terms-page {
        padding: 24px 0;
    }

    .terms-page .terms-header {
        margin-bottom: 18px;
    }

    .terms-page .terms-header h1 {
        font-size: 24px;
    }

    .terms-page .terms-card {
        gap: 12px;
        padding: 16px;
        border-radius: 10px;
    }

    .terms-page .terms-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .terms-page .terms-card-content h2 {
        font-size: 16px;
    }

    .terms-page .terms-card-content p,
    .terms-page .terms-card-content li {
        font-size: 14px;
    }

    .terms-page .terms-contact-grid {
        gap: 14px;
    }
}

/* Very Small Screens */

@media (max-width: 380px) {
    .terms-page .terms-card {
        gap: 10px;
        padding: 12px;
    }

    .terms-page .terms-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}
