
/* =========================================
   STEMigo Overseas - Refund Policy
========================================= */

.refund-page {
    --refund-blue: #123e68;
    --refund-blue-dark: #0b2f52;
    --refund-light-blue: #eef7fd;
    --refund-cream: #fff8e8;
    --refund-border: #dce8f1;
    --refund-text: #34465a;
    --refund-muted: #68798a;
    --refund-orange: #ed9a32;
    --refund-red: #e54863;

    padding: 35px 0 50px;
    color: var(--refund-text);
    font-size: 14px;
    line-height: 1.7;
}

.refund-page * {
    box-sizing: border-box;
}

.refund-page h1,
.refund-page h2,
.refund-page h3,
.refund-page p {
    margin-top: 0;
}

.refund-page p:last-child {
    margin-bottom: 0;
}

.refund-page a {
    color: var(--refund-blue);
    overflow-wrap: anywhere;
    text-decoration: none;
}

.refund-page a:hover {
    color: #176db0;
    text-decoration: underline;
}

/* Header */

.refund-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 30px;
    margin-bottom: 22px;
    overflow: hidden;
    background: linear-gradient(120deg, #ffffff 30%, #edf7ff 100%);
    border: 1px solid var(--refund-border);
    border-radius: 16px;
}

.refund-hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.refund-brand {
    display: block;
    margin-bottom: 5px;
    color: var(--refund-blue);
    font-size: 16px;
    font-weight: 700;
}

.refund-hero h1 {
    margin-bottom: 0;
    color: var(--refund-blue-dark);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.refund-year {
    margin: 8px 0 20px;
    color: var(--refund-muted);
    font-size: 16px;
}

.refund-hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex: 0 0 200px;
    min-height: 140px;
    color: #5b9ed3;
    background: #dcefff;
    border-radius: 50%;
}

.refund-hero-image .fa-globe {
    font-size: 72px;
}

.refund-hero-image .fa-graduation-cap {
    position: absolute;
    right: 8px;
    bottom: 10px;
    color: var(--refund-blue);
    font-size: 40px;
}

.refund-hero-image .fa-plane {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 25px;
    transform: rotate(-15deg);
}

/* Summary */

.refund-summary {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--refund-cream);
    border: 1px solid #f5e7c4;
    border-radius: 10px;
}

.summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    height: 42px;
    color: #bf8b1e;
    background: #fff0c6;
    border-radius: 50%;
    font-size: 21px;
}

.refund-summary h3 {
    margin-bottom: 4px;
    color: var(--refund-blue);
    font-size: 16px;
    font-weight: 700;
}

.refund-summary p {
    line-height: 1.65;
}

/* General Sections */

.refund-section {
    padding: 24px;
    margin-bottom: 18px;
    background: var(--refund-light-blue);
    border: 1px solid #e3eff8;
    border-radius: 14px;
}

.refund-section-cream {
    background: var(--refund-cream);
    border-color: #f4e9ce;
}

.refund-section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #fff;
    background: var(--refund-blue);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
}

.refund-section-heading h2 {
    margin-bottom: 0;
    color: var(--refund-blue-dark);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.refund-section > p {
    margin-bottom: 14px;
}

/* Service Cards */

.refund-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.refund-service-card {
    padding: 18px 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #edf2f7;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.refund-service-card:hover,
.refund-info-card:hover,
.refund-session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(18, 62, 104, 0.08);
}

.refund-service-card > i {
    display: block;
    margin-bottom: 12px;
    color: var(--refund-blue);
    font-size: 27px;
}

.refund-service-card h3 {
    margin-bottom: 6px;
    color: var(--refund-blue-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.refund-service-card p {
    color: var(--refund-muted);
    font-size: 14px;
    line-height: 1.6;
}

.refund-note {
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.75);
    border-left: 3px solid #6ba5d2;
    border-radius: 5px;
}

/* Eligibility */

.refund-eligibility-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0;
}

.eligibility-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.eligibility-item > span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    color: #35783f;
    background: #dff2df;
    border-radius: 50%;
    font-weight: 700;
}

.eligibility-item p {
    padding-top: 3px;
    margin-bottom: 0;
}

/* Deduction Table */

.refund-table-wrapper {
    margin-top: 20px;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--refund-border);
    border-radius: 9px;
}

.refund-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.refund-table th,
.refund-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--refund-border);
}

.refund-table th {
    color: var(--refund-blue-dark);
    background: #e2f0fb;
    font-weight: 700;
}

.refund-table td:last-child,
.refund-table th:last-child {
    text-align: right;
}

.refund-table tbody tr:last-child td {
    border-bottom: 0;
}

.refund-table tbody tr:hover {
    background: #f6fbff;
}

/* Information Cards */

.refund-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.refund-info-card {
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #edf0f3;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.refund-info-card > i {
    display: block;
    margin-bottom: 12px;
    color: var(--refund-orange);
    font-size: 27px;
}

.refund-info-card h3 {
    margin-bottom: 8px;
    color: var(--refund-blue-dark);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.refund-info-card p {
    color: var(--refund-text);
    line-height: 1.7;
}

.refund-four-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.refund-red-card > i {
    color: var(--refund-red);
}

.refund-warning {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px;
    margin-top: 16px;
    background: #fff0f2;
    border: 1px solid #f8d9df;
    border-radius: 9px;
}

.refund-warning > i {
    flex: 0 0 25px;
    padding-top: 2px;
    color: #c83248;
    font-size: 23px;
}

.refund-warning strong {
    display: block;
    margin-bottom: 4px;
    color: #a5273b;
    font-size: 15px;
}

.refund-warning p {
    color: #643740;
    line-height: 1.7;
}

/* Personalised Sessions */

.refund-session-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.refund-session-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    /* min-height: 100px; */
    padding: 18px 12px;
    text-align: center;
    background: #fff;
    border: 1px solid #e6eef5;
    border-radius: 9px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.refund-session-card i {
    color: var(--refund-blue);
    font-size: 25px;
}

.refund-session-card p {
    line-height: 1.6;
}

/* Refund Steps */

.refund-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.refund-step {
    position: relative;
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #f0e8d6;
    border-radius: 10px;
}

.step-number {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 12px;
    color: var(--refund-blue);
    background: #e7f2fc;
    border-radius: 20px;
    font-weight: 700;
}

.refund-step > i {
    display: block;
    margin-bottom: 12px;
    color: var(--refund-blue);
    font-size: 27px;
}

.refund-step p {
    margin-bottom: 8px;
    line-height: 1.7;
}

.refund-step small {
    display: block;
    color: var(--refund-muted);
    line-height: 1.6;
}

.refund-step a {
    font-weight: 600;
}

.refund-processing {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px;
    margin-top: 16px;
    background: #eaf7e9;
    border: 1px solid #d4ebd2;
    border-radius: 9px;
}

.refund-processing > i {
    flex: 0 0 27px;
    padding-top: 2px;
    color: #4d984b;
    font-size: 25px;
}

.refund-processing strong {
    display: block;
    margin-bottom: 5px;
    color: #286a30;
    font-size: 15px;
}

.refund-processing p {
    color: #355d39;
    line-height: 1.7;
}

/* Policy List */

.refund-policy-list {
    padding-left: 22px;
    margin: 12px 0 0;
}

.refund-policy-list li {
    padding-left: 4px;
    margin-bottom: 10px;
    line-height: 1.7;
}

.refund-policy-list li:last-child {
    margin-bottom: 0;
}

.refund-policy-list li::marker {
    color: var(--refund-blue);
}

/* Contact */

.refund-contact-section {
    margin-bottom: 0;
}

.refund-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.refund-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--refund-border);
    border-radius: 10px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: #fff;
    background: var(--refund-blue);
    border-radius: 50%;
    font-size: 17px;
}

.refund-contact-card h3 {
    margin-bottom: 5px;
    color: var(--refund-blue-dark);
    font-size: 16px;
    font-weight: 700;
}

.refund-contact-card a {
    font-weight: 600;
}

.refund-contact-card p {
    margin-top: 5px;
    color: var(--refund-muted);
    line-height: 1.6;
}

/* Responsive Layout */

@media (min-width: 992px) {
    .refund-page > .container {
        max-width: 1140px;
    }
}

@media (max-width: 991px) {
    .refund-hero {
        padding: 24px;
    }

    .refund-hero-image {
        flex-basis: 150px;
        min-height: 120px;
    }

    .refund-hero-image .fa-globe {
        font-size: 55px;
    }

    .refund-service-grid,
    .refund-session-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .refund-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .refund-page {
        padding: 20px 0 30px;
    }

    .refund-hero {
        padding: 20px;
    }

    .refund-hero-image {
        display: none;
    }

    .refund-hero h1 {
        font-size: 26px;
    }

    .refund-year {
        font-size: 14px;
    }

    .refund-section {
        padding: 18px;
        margin-bottom: 14px;
    }

    .refund-section-heading {
        align-items: flex-start;
        gap: 9px;
    }

    .section-number {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .refund-section-heading h2 {
        padding-top: 2px;
        font-size: 18px;
    }

    .refund-service-grid,
    .refund-info-grid,
    .refund-four-grid,
    .refund-session-grid,
    .refund-steps {
        grid-template-columns: 1fr;
    }

    .refund-service-card {
        padding: 16px;
    }

    .refund-session-card {
        min-height: auto;
    }

    .refund-table th,
    .refund-table td {
        padding: 11px 10px;
        font-size: 14px;
    }

    .refund-summary {
        padding: 14px;
    }

    .refund-info-card {
        padding: 17px;
    }

    .refund-contact-card {
        padding: 15px;
    }
}

@media (max-width: 380px) {
    .refund-hero,
    .refund-section {
        padding: 14px;
    }

    .refund-hero h1 {
        font-size: 24px;
    }

    .refund-section-heading h2 {
        font-size: 16px;
    }

    .refund-table th,
    .refund-table td {
        padding: 10px 7px;
        font-size: 14px;
    }
}
