@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

.reha-edu-detail,
.reha-edu-detail * {
    box-sizing: border-box;
}

.reha-edu-detail {
    --reha-primary: #08275e;
    --reha-dark: #061f4a;
    --reha-accent: #ef1f2d;
    --reha-text: #11224b;
    --reha-muted: #607093;
    --reha-border: #e5edf7;
    --reha-soft: #f6f9fd;
    --reha-white: #ffffff;
    --reha-container: 1400px;
    --reha-radius: 18px;
    --reha-shadow: 0 18px 45px rgba(6, 31, 74, .08);
    width: 100%;
    overflow-x: hidden;
    color: var(--reha-text);
    background: #fff;
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.55;
}

.reha-edu-detail a {
    text-decoration: none;
    color: inherit;
}

.reha-edu-detail img {
    max-width: 100%;
    height: auto;
    display: block;
}

.reha-container {
    width: min(var(--reha-container), calc(100% - 40px));
    margin-inline: auto;
}

.reha-topbar {
    background: var(--reha-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.reha-topbar-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 56px;
}

.reha-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.reha-topbar-item:first-child {
    flex: 1 1 auto;
}

.reha-topbar-item small {
    display: block;
    color: rgba(255,255,255,.75);
    font-size: 11px;
    line-height: 1.2;
}

.reha-social-label {
    opacity: .92;
    white-space: nowrap;
}

.reha-socials {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.reha-socials i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
}

.reha-main-header {
    background: #fff;
    border-bottom: 1px solid var(--reha-border);
    box-shadow: 0 8px 28px rgba(8,39,94,.04);
    position: relative;
    z-index: 3;
}

.reha-header-inner {
    display: flex;
    align-items: center;
    min-height: 94px;
    gap: 30px;
}

.reha-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.reha-logo img {
    width: 150px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.reha-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    white-space: nowrap;
}

.reha-nav-link {
    position: relative;
    color: #071a42;
    font-weight: 600;
    font-size: 15px;
    transition: color .2s ease;
}

.reha-nav-link:hover,
.reha-nav-link:first-child {
    color: var(--reha-accent);
}

.reha-nav-link:first-child:after,
.reha-nav-link:hover:after {
    transform: scaleX(1);
}

.reha-nav-link:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 10px;
    background: var(--reha-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.reha-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.reha-icon-btn,
.reha-login-btn {
    min-width: 52px;
    height: 52px;
    border: 1px solid var(--reha-border);
    border-radius: 16px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--reha-primary);
    font-weight: 700;
    gap: 8px;
    cursor: pointer;
}

.reha-login-btn {
    padding: 0 16px;
}

.reha-btn {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 13px;
    padding: 0 22px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 14px 24px rgba(8,39,94,.12);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    white-space: nowrap;
}

.reha-btn:hover,
.reha-small-btn:hover,
.reha-phone-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(8,39,94,.16);
    opacity: .96;
}

.reha-btn-primary {
    background: var(--reha-primary);
}

.reha-btn-accent {
    background: var(--reha-accent);
}

.reha-top-register {
    min-height: 40px;
    border-radius: 11px;
    padding-inline: 18px;
}

.reha-main {
    background:
        radial-gradient(circle at 92% 11%, rgba(0,98,255,.08), transparent 26%),
        radial-gradient(circle at 6% 12%, rgba(239,31,45,.06), transparent 28%),
        #fff;
    padding: 26px 0 10px;
}

.reha-breadcrumb {
    color: #657391;
    font-size: 13px;
    font-weight: 600;
    margin: 4px 0 18px;
}

.reha-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    gap: 42px;
    align-items: center;
    padding: 18px 26px 18px 18px;
    border: 1px solid var(--reha-border);
    border-radius: var(--reha-radius);
    background: rgba(255,255,255,.92);
    box-shadow: var(--reha-shadow);
    overflow: hidden;
}

.reha-hero-card:before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    right: -72px;
    top: -72px;
    background: radial-gradient(circle, rgba(239,31,45,.13), transparent 62%);
    pointer-events: none;
}

.reha-hero-card:after {
    content: '';
    position: absolute;
    right: 40px;
    top: 24px;
    width: 92px;
    height: 92px;
    opacity: .55;
    background-image: radial-gradient(var(--reha-accent) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    pointer-events: none;
}

.reha-hero-media {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--reha-radius) - 3px);
    min-height: 340px;
}

.reha-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}

.reha-hero-content {
    position: relative;
    z-index: 1;
    padding: 18px 12px;
}

.reha-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--reha-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .2px;
}

.reha-hero-content h1 {
    margin: 18px 0 2px;
    color: var(--reha-primary);
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.reha-script {
    margin: 0 0 18px;
    color: var(--reha-accent);
    font-family: 'Comic Sans MS', 'Poppins', cursive;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 500;
    line-height: 1.2;
}

.reha-hero-desc {
    max-width: 560px;
    margin: 0 0 24px;
    color: #37476b;
    font-size: 15px;
    font-weight: 500;
}

.reha-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.reha-stats-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 18px 26px 0;
    border: 1px solid var(--reha-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(6,31,74,.06);
    overflow: hidden;
}

.reha-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 22px;
    min-width: 0;
    border-right: 1px solid var(--reha-border);
}

.reha-stat-card:last-child {
    border-right: 0;
}

.reha-stat-icon,
.reha-card-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--reha-primary);
    background: #fff;
    border: 2px solid #dce9fb;
    font-size: 21px;
}

.reha-card-icon svg,
.reha-stat-icon svg {
    width: 22px;
    height: 22px;
}

.reha-stat-card strong,
.reha-stat-card em {
    display: block;
    font-style: normal;
}

.reha-stat-card strong {
    color: var(--reha-primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.reha-stat-card em {
    color: #061f4a;
    font-size: 14px;
    font-weight: 700;
}

.reha-section,
.reha-two-col {
    margin-top: 32px;
}

.reha-section-heading {
    margin-bottom: 16px;
}

.reha-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 4px;
    color: var(--reha-primary);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -.01em;
}

.reha-section-title span {
    width: 14px;
    height: 14px;
    display: inline-block;
    border-left: 3px solid var(--reha-accent);
    border-bottom: 3px solid var(--reha-accent);
    transform: rotate(-28deg);
    border-radius: 2px;
}

.reha-section-heading p {
    max-width: 800px;
    margin: 0 0 0 24px;
    color: #556681;
    font-size: 14px;
    font-weight: 500;
}

.reha-cards {
    display: grid;
    gap: 16px;
}

.reha-grid-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.reha-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reha-card,
.reha-panel,
.reha-faq-item,
.reha-gallery-card {
    border: 1px solid var(--reha-border);
    border-radius: 14px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 14px 28px rgba(6,31,74,.045);
}

.reha-card {
    min-height: 150px;
    padding: 20px 18px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.reha-card:hover {
    transform: translateY(-4px);
    border-color: rgba(8,39,94,.22);
    box-shadow: 0 20px 36px rgba(6,31,74,.08);
}

.reha-card h3,
.reha-outcome-card h3,
.reha-teacher-box h3 {
    margin: 14px 0 6px;
    color: var(--reha-primary);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.reha-card p,
.reha-outcome-card p {
    margin: 0;
    color: #475978;
    font-size: 13px;
    font-weight: 500;
}

.reha-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.reha-panel {
    padding: 20px;
}

.reha-outcome-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--reha-border);
    border-radius: 14px;
    overflow: hidden;
}

.reha-outcome-card {
    padding: 18px 12px;
    text-align: center;
    border-right: 1px solid var(--reha-border);
}

.reha-outcome-card:last-child {
    border-right: 0;
}

.reha-outcome-card .reha-card-icon {
    margin-inline: auto;
}

.reha-outcome-card h3 {
    min-height: 38px;
    font-size: 13px;
}

.reha-outcome-card p {
    font-size: 12px;
}

.reha-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--reha-border);
}

.reha-schedule-table {
    width: 100%;
    min-width: 430px;
    border-collapse: collapse;
    overflow: hidden;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
}

.reha-schedule-table th {
    background: var(--reha-primary);
    color: #fff;
    padding: 12px 14px;
    text-align: center;
    font-weight: 800;
}

.reha-schedule-table th:first-child,
.reha-schedule-table td:first-child {
    text-align: left;
}

.reha-schedule-table td {
    border-top: 1px solid var(--reha-border);
    border-right: 1px solid var(--reha-border);
    padding: 13px 14px;
    text-align: center;
    color: #1c2d55;
}

.reha-schedule-table td:last-child {
    border-right: 0;
}

.reha-note {
    margin: 12px 0 0;
    display: flex;
    gap: 8px;
    align-items: center;
    color: #485a79;
    font-size: 13px;
    font-weight: 600;
}

.reha-note i {
    color: var(--reha-primary);
}

.reha-media-row {
    grid-template-columns: .88fr 1.12fr;
}

.reha-teacher-box {
    display: flex;
    gap: 24px;
    align-items: center;
}

.reha-teacher-box img {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #f0f5fb;
    box-shadow: 0 14px 26px rgba(6,31,74,.08);
}

.reha-teacher-box h3 {
    margin: 0 0 2px;
    font-size: 22px;
    text-transform: none;
}

.reha-teacher-box span {
    color: var(--reha-accent);
    font-size: 13px;
    font-weight: 800;
}

.reha-teacher-box ul {
    list-style: none;
    margin: 10px 0 14px;
    padding: 0;
    display: grid;
    gap: 5px;
    color: #3e4f6e;
    font-size: 13px;
    font-weight: 600;
}

.reha-teacher-box li:before {
    content: '✓';
    display: inline-block;
    margin-right: 8px;
    color: var(--reha-primary);
    font-weight: 900;
}

.reha-small-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--reha-primary);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.reha-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.reha-gallery-card {
    overflow: hidden;
    margin: 0;
}

.reha-gallery-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.reha-gallery-card figcaption {
    padding: 11px 12px 13px;
    color: var(--reha-primary);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
}

.reha-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}

.reha-faq-item {
    overflow: hidden;
}

.reha-faq-question {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    background: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--reha-primary);
    text-align: left;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.reha-faq-question i {
    transition: transform .2s ease;
}

.reha-faq-item.is-open .reha-faq-question i {
    transform: rotate(180deg);
}

.reha-faq-answer {
    padding: 0 18px 16px;
    color: #4a5e7d;
    font-size: 13px;
    font-weight: 500;
    background: #f8fbff;
}

.reha-bottom-cta {
    position: relative;
    margin: 28px 0 10px;
    padding: 28px 34px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 98% 85%, rgba(255,255,255,.12), transparent 22%),
        linear-gradient(135deg, var(--reha-dark), var(--reha-primary));
    color: #fff;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    overflow: hidden;
    box-shadow: 0 22px 42px rgba(6,31,74,.18);
}

.reha-bottom-cta:before {
    content: '✈';
    position: absolute;
    left: 34px;
    top: 18px;
    color: rgba(255,255,255,.35);
    font-size: 42px;
    transform: rotate(-20deg);
}

.reha-cta-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #fff;
    color: var(--reha-primary);
    font-size: 30px;
    box-shadow: inset 0 0 0 8px rgba(239,31,45,.08);
}

.reha-cta-copy h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.18;
    font-weight: 900;
}

.reha-cta-copy p {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    font-weight: 500;
}

.reha-cta-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reha-phone-pill {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    padding: 0 22px;
    background: #fff;
    color: var(--reha-primary) !important;
    font-size: 14px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease;
}

.reha-footer {
    margin-top: 18px;
    border-top: 1px solid var(--reha-border);
    background: #fff;
}

.reha-footer-grid {
    padding: 34px 0 26px;
    display: grid;
    grid-template-columns: 1.35fr .8fr .9fr 1.15fr;
    gap: 44px;
}

.reha-footer img {
    width: 146px;
    margin-bottom: 14px;
}

.reha-footer h4 {
    margin: 0 0 12px;
    color: var(--reha-primary);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 900;
}

.reha-footer a,
.reha-footer p {
    display: block;
    margin: 0 0 7px;
    color: #465977;
    font-size: 13px;
    font-weight: 500;
}

.reha-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 52px;
    border-top: 1px solid var(--reha-border);
    color: #657391;
    font-size: 12px;
    font-weight: 600;
}

.reha-footer-bottom .reha-socials i {
    background: var(--reha-primary);
}

@media (max-width: 1180px) {
    .reha-topbar-inner {
        flex-wrap: wrap;
        padding-block: 10px;
    }

    .reha-header-inner {
        gap: 20px;
    }

    .reha-nav {
        gap: 18px;
    }

    .reha-grid-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .reha-stats-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-inline: 0;
    }

    .reha-stat-card {
        border-bottom: 1px solid var(--reha-border);
    }
}

@media (max-width: 1024px) {
    .reha-header-inner {
        min-height: auto;
        padding-block: 18px;
        flex-wrap: wrap;
    }

    .reha-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 8px 2px 10px;
        scrollbar-width: none;
    }

    .reha-nav::-webkit-scrollbar {
        display: none;
    }

    .reha-header-actions {
        margin-left: auto;
    }

    .reha-hero-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 16px;
    }

    .reha-hero-media,
    .reha-hero-media img {
        min-height: 310px;
    }

    .reha-hero-content {
        padding: 4px 4px 12px;
    }

    .reha-two-col,
    .reha-media-row {
        grid-template-columns: 1fr;
    }

    .reha-bottom-cta {
        grid-template-columns: auto 1fr;
    }

    .reha-cta-buttons {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .reha-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .reha-container {
        width: min(100% - 24px, var(--reha-container));
    }

    .reha-topbar {
        font-size: 12px;
    }

    .reha-topbar-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: unset;
        padding-block: 12px;
    }

    .reha-social-label,
    .reha-socials {
        display: none;
    }

    .reha-top-register {
        width: 100%;
    }

    .reha-header-inner {
        gap: 14px;
    }

    .reha-logo img {
        width: 132px;
    }

    .reha-header-actions {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: 52px 1fr 1fr;
        gap: 10px;
    }

    .reha-header-actions .reha-btn,
    .reha-login-btn {
        width: 100%;
        padding-inline: 10px;
    }

    .reha-nav-link {
        font-size: 14px;
    }

    .reha-main {
        padding-top: 16px;
    }

    .reha-breadcrumb {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .reha-hero-card:after {
        display: none;
    }

    .reha-hero-media,
    .reha-hero-media img {
        min-height: 240px;
    }

    .reha-hero-content h1 {
        font-size: 36px;
    }

    .reha-script {
        font-size: 24px;
    }

    .reha-actions .reha-btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .reha-stats-row {
        grid-template-columns: 1fr;
        border-radius: 14px;
    }

    .reha-stat-card {
        border-right: 0;
        padding: 18px;
    }

    .reha-grid-6,
    .reha-grid-3,
    .reha-faq-grid,
    .reha-gallery-grid {
        grid-template-columns: 1fr;
    }

    .reha-section,
    .reha-two-col {
        margin-top: 24px;
    }

    .reha-panel {
        padding: 16px;
    }

    .reha-section-title {
        font-size: 19px;
    }

    .reha-outcome-list {
        grid-template-columns: 1fr;
    }

    .reha-outcome-card {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
        border-right: 0;
        border-bottom: 1px solid var(--reha-border);
    }

    .reha-outcome-card:last-child {
        border-bottom: 0;
    }

    .reha-outcome-card .reha-card-icon {
        margin: 0;
    }

    .reha-outcome-card h3 {
        margin-top: 0;
        min-height: auto;
    }

    .reha-teacher-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .reha-bottom-cta {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        text-align: center;
    }

    .reha-cta-icon {
        margin-inline: auto;
    }

    .reha-cta-buttons {
        justify-content: center;
    }

    .reha-cta-buttons .reha-btn,
    .reha-phone-pill {
        width: 100%;
    }

    .reha-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 26px;
    }

    .reha-footer-bottom {
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .reha-header-actions {
        grid-template-columns: 1fr;
    }

    .reha-icon-btn {
        width: 100%;
    }

    .reha-hero-content h1 {
        font-size: 31px;
    }

    .reha-hero-media,
    .reha-hero-media img {
        min-height: 205px;
    }

    .reha-card,
    .reha-panel {
        border-radius: 12px;
    }
}

/* v1.1 mobile and visual fixes */
.reha-hero-card:before,
.reha-hero-card:after {
    opacity: .18;
    z-index: 0;
}

.reha-hero-media,
.reha-hero-content,
.reha-stats-row,
.reha-panel,
.reha-card {
    position: relative;
    z-index: 1;
}

.reha-section-title span {
    flex: 0 0 auto;
}

.reha-schedule-panel .reha-section-title {
    text-wrap: balance;
}

.reha-teachers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.reha-teachers-grid .reha-teacher-box {
    padding: 16px;
    border: 1px solid var(--reha-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(6,31,74,.04);
}

.reha-faq-question i,
.reha-note i,
.reha-cta-icon i,
.reha-phone-pill i,
.reha-btn i,
.reha-small-btn i {
    line-height: 1;
}

.reha-faq-question i:before {
    content: '⌄';
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 18px;
}

.reha-faq-question i {
    font-size: 0;
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
}

@media (max-width: 768px) {
    .reha-table-wrap {
        border: 0;
        overflow: visible;
        border-radius: 0;
    }

    .reha-schedule-table,
    .reha-schedule-table thead,
    .reha-schedule-table tbody,
    .reha-schedule-table tr,
    .reha-schedule-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .reha-schedule-table {
        background: transparent;
    }

    .reha-schedule-table thead {
        display: none;
    }

    .reha-schedule-table tbody {
        display: grid;
        gap: 10px;
    }

    .reha-schedule-table tr {
        overflow: hidden;
        border: 1px solid var(--reha-border);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 10px 22px rgba(6,31,74,.04);
    }

    .reha-schedule-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        border-top: 1px solid var(--reha-border);
        border-right: 0;
        padding: 12px 14px;
        text-align: right;
    }

    .reha-schedule-table td:first-child {
        border-top: 0;
        background: #f8fbff;
        color: var(--reha-primary);
        font-weight: 900;
    }

    .reha-schedule-table td:before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--reha-primary);
        font-weight: 900;
        text-align: left;
    }

    .reha-teachers-grid .reha-teacher-box {
        padding: 14px;
    }

    .reha-gallery-card img {
        max-height: 220px;
    }
}

/* v1.2 full-width, Elementor/Hello isolation and spacing fixes */
.elementor-widget-reha_egitim_detay,
.elementor-widget-reha_egitim_detay > .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.reha-edu-detail {
    --reha-container: 1400px;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    isolation: isolate;
    font-family: 'Poppins', Arial, sans-serif !important;
    color: var(--reha-text) !important;
    background: #fff !important;
}

.reha-edu-detail :where(h1,h2,h3,h4,h5,h6,p,ul,ol,li,figure,button,a,span,small,strong,em,table,th,td) {
    font-family: inherit;
}

.reha-edu-detail :where(button,input,select,textarea) {
    font-family: inherit !important;
}

.reha-edu-detail button,
.reha-edu-detail .reha-faq-question,
.reha-edu-detail .reha-icon-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    outline: none;
}

.reha-container {
    width: min(1400px, calc(100% - 48px)) !important;
    max-width: var(--reha-container) !important;
}

.reha-section-title {
    align-items: center !important;
    gap: 12px !important;
    color: var(--reha-primary) !important;
}

.reha-section-title > span {
    width: 16px !important;
    height: 24px !important;
    min-width: 16px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--reha-accent) !important;
    transform: rotate(-28deg) !important;
    display: inline-block !important;
    box-shadow: none !important;
    position: relative !important;
}

.reha-section-title > span:after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    right: -2px;
    bottom: -1px;
    border-radius: 999px;
    background: var(--reha-accent);
}

.reha-two-col {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: start !important;
}

.reha-panel {
    padding: 26px !important;
    overflow: hidden;
}

.reha-outcome-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    gap: 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.reha-outcome-card {
    min-width: 0 !important;
    padding: 18px 16px !important;
    border: 1px solid var(--reha-border) !important;
    border-radius: 16px !important;
    background: #fff !important;
    text-align: center !important;
    box-shadow: 0 10px 22px rgba(6,31,74,.045) !important;
}

.reha-outcome-card:last-child {
    border: 1px solid var(--reha-border) !important;
}

.reha-outcome-card h3 {
    min-height: 0 !important;
    margin: 12px 0 8px !important;
    font-size: 14px !important;
    line-height: 1.22 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.reha-outcome-card p {
    font-size: 13px !important;
    line-height: 1.55 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.reha-card-icon {
    flex: 0 0 auto !important;
}

.reha-schedule-panel .reha-section-title {
    font-size: clamp(20px, 1.65vw, 26px) !important;
    line-height: 1.2 !important;
}

.reha-table-wrap {
    overflow: hidden !important;
}

.reha-schedule-table {
    min-width: 0 !important;
    table-layout: fixed !important;
    font-size: 14px !important;
}

.reha-schedule-table th,
.reha-schedule-table td {
    padding: 15px 18px !important;
    line-height: 1.35 !important;
}

.reha-schedule-table th:first-child,
.reha-schedule-table td:first-child {
    width: 28% !important;
}

.reha-schedule-table td:first-child {
    color: var(--reha-primary) !important;
    font-weight: 900 !important;
}

.reha-note {
    align-items: flex-start !important;
    line-height: 1.55 !important;
}

.reha-faq-grid {
    gap: 14px 24px !important;
}

.reha-faq-item {
    background: #fff !important;
    border: 1px solid var(--reha-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 26px rgba(6,31,74,.04) !important;
}

.reha-faq-question,
.reha-faq-question:hover,
.reha-faq-question:focus,
.reha-faq-question:active,
.reha-faq-item.is-open .reha-faq-question {
    background: #f8fbff !important;
    color: var(--reha-primary) !important;
    border: 0 !important;
    border-radius: 16px !important;
    min-height: 58px !important;
    padding: 0 20px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.reha-faq-question span {
    color: var(--reha-primary) !important;
}

.reha-faq-question i,
.reha-faq-question:hover i,
.reha-faq-question:focus i,
.reha-faq-question:active i {
    color: var(--reha-primary) !important;
    background: transparent !important;
}

.reha-faq-answer {
    background: #f8fbff !important;
    color: #4a5e7d !important;
    border-radius: 0 0 16px 16px !important;
    line-height: 1.65 !important;
}

@media (max-width: 1200px) {
    .reha-two-col,
    .reha-media-row {
        grid-template-columns: 1fr !important;
    }

    .reha-outcome-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .reha-container {
        width: min(100% - 24px, 1400px) !important;
    }

    .reha-panel {
        padding: 18px !important;
    }

    .reha-section-title {
        font-size: 20px !important;
        line-height: 1.2 !important;
        align-items: flex-start !important;
    }

    .reha-section-title > span {
        width: 12px !important;
        height: 20px !important;
        min-width: 12px !important;
        margin-top: 2px !important;
    }

    .reha-outcome-list {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .reha-outcome-card {
        display: grid !important;
        grid-template-columns: 54px 1fr !important;
        align-items: center !important;
        text-align: left !important;
        column-gap: 14px !important;
        padding: 14px !important;
    }

    .reha-outcome-card .reha-card-icon {
        grid-row: 1 / 3;
        margin: 0 !important;
    }

    .reha-outcome-card h3 {
        margin: 0 0 4px !important;
        font-size: 14px !important;
    }

    .reha-outcome-card p {
        font-size: 13px !important;
    }

    .reha-table-wrap {
        overflow: visible !important;
    }

    .reha-schedule-table td:first-child {
        width: auto !important;
    }

    .reha-schedule-table td {
        text-align: right !important;
        word-break: normal !important;
    }

    .reha-faq-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .reha-faq-question,
    .reha-faq-question:hover,
    .reha-faq-question:focus,
    .reha-faq-question:active,
    .reha-faq-item.is-open .reha-faq-question {
        min-height: 56px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
    }
}


/* v1.2.1 section accent graphic + stronger FAQ/theme isolation fixes */
.reha-edu-detail .reha-section-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.reha-edu-detail .reha-section-title > span {
    position: relative !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    margin-top: 1px !important;
    display: inline-block !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.reha-edu-detail .reha-section-title > span::before,
.reha-edu-detail .reha-section-title > span::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    display: block !important;
    height: 3px !important;
    background: var(--reha-accent) !important;
    border-radius: 999px !important;
    transform-origin: left center !important;
}

.reha-edu-detail .reha-section-title > span::before {
    width: 8px !important;
    transform: translateY(2px) rotate(35deg) !important;
}

.reha-edu-detail .reha-section-title > span::after {
    width: 15px !important;
    left: 5px !important;
    transform: translateY(0px) rotate(-28deg) !important;
}

.reha-edu-detail .reha-faq-item,
.reha-edu-detail .reha-faq-item:hover,
.reha-edu-detail .reha-faq-item:focus-within {
    background: #ffffff !important;
}

.reha-edu-detail .reha-faq-question,
.reha-edu-detail .reha-faq-question:hover,
.reha-edu-detail .reha-faq-question:focus,
.reha-edu-detail .reha-faq-question:active,
.reha-edu-detail .reha-faq-question:visited,
.reha-edu-detail .reha-faq-item.is-open .reha-faq-question,
.reha-edu-detail .reha-faq-item.is-open .reha-faq-question:hover,
.reha-edu-detail .reha-faq-item.is-open .reha-faq-question:focus,
.reha-edu-detail .reha-faq-item.is-open .reha-faq-question:active {
    background-color: #f8fbff !important;
    background-image: none !important;
    color: var(--reha-primary) !important;
    border: 0 !important;
}

.reha-edu-detail .reha-faq-question::before,
.reha-edu-detail .reha-faq-question::after,
.reha-edu-detail .reha-faq-item::before,
.reha-edu-detail .reha-faq-item::after {
    background-image: none !important;
}

.reha-edu-detail .reha-faq-answer {
    border-top: 1px solid var(--reha-border) !important;
}

@media (max-width: 768px) {
    .reha-edu-detail .reha-section-title > span {
        flex-basis: 16px !important;
        width: 16px !important;
        min-width: 16px !important;
        height: 16px !important;
        margin-top: 2px !important;
    }

    .reha-edu-detail .reha-section-title > span::before {
        width: 7px !important;
    }

    .reha-edu-detail .reha-section-title > span::after {
        width: 13px !important;
        left: 4px !important;
    }
}


/* v1.2.2 title dot + Poppins 500 + no uppercase */
.reha-edu-detail .reha-section-title {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--reha-primary) !important;
}

.reha-edu-detail .reha-section-title > span {
    position: relative !important;
    flex: 0 0 10px !important;
    width: 10px !important;
    min-width: 10px !important;
    height: 10px !important;
    margin-top: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--reha-accent) !important;
    transform: none !important;
    box-shadow: none !important;
}

.reha-edu-detail .reha-section-title > span::before,
.reha-edu-detail .reha-section-title > span::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 768px) {
    .reha-edu-detail .reha-section-title {
        font-weight: 500 !important;
        text-transform: none !important;
    }

    .reha-edu-detail .reha-section-title > span {
        flex-basis: 9px !important;
        width: 9px !important;
        min-width: 9px !important;
        height: 9px !important;
        margin-top: 6px !important;
    }
}


/* v1.2.3 teacher visibility layout + FAQ icon/mobile fix */
.reha-edu-detail .reha-media-row-no-teacher {
    grid-template-columns: 1fr !important;
}

.reha-edu-detail .reha-media-row-no-teacher .reha-gallery-panel {
    width: 100% !important;
}

.reha-edu-detail .reha-faq-grid {
    align-items: start !important;
}

.reha-edu-detail .reha-faq-item {
    min-width: 0 !important;
    overflow: hidden !important;
}

.reha-edu-detail .reha-faq-question,
.reha-edu-detail .reha-faq-question:hover,
.reha-edu-detail .reha-faq-question:focus,
.reha-edu-detail .reha-faq-question:active,
.reha-edu-detail .reha-faq-item.is-open .reha-faq-question {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 22px !important;
    align-items: center !important;
    gap: 14px !important;
    overflow: hidden !important;
    line-height: 1.35 !important;
}

.reha-edu-detail .reha-faq-question span {
    min-width: 0 !important;
    max-width: 100% !important;
    display: block !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    line-height: 1.35 !important;
}

.reha-edu-detail .reha-faq-question i,
.reha-edu-detail .reha-faq-question:hover i,
.reha-edu-detail .reha-faq-question:focus i,
.reha-edu-detail .reha-faq-question:active i {
    position: relative !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    display: block !important;
    place-items: initial !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--reha-primary) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
    transform-origin: center center !important;
}

.reha-edu-detail .reha-faq-question i::before {
    content: '' !important;
    position: absolute !important;
    width: 8px !important;
    height: 8px !important;
    left: 6px !important;
    top: 5px !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;
    border-radius: 1px !important;
    background: transparent !important;
    transform: rotate(45deg) !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.reha-edu-detail .reha-faq-item.is-open .reha-faq-question i {
    transform: rotate(180deg) !important;
}

.reha-edu-detail .reha-faq-answer {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 768px) {
    .reha-edu-detail .reha-faq-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .reha-edu-detail .reha-faq-question,
    .reha-edu-detail .reha-faq-question:hover,
    .reha-edu-detail .reha-faq-question:focus,
    .reha-edu-detail .reha-faq-question:active,
    .reha-edu-detail .reha-faq-item.is-open .reha-faq-question {
        grid-template-columns: minmax(0, 1fr) 20px !important;
        gap: 10px !important;
        min-height: 54px !important;
        padding: 14px 14px !important;
        font-size: 13.5px !important;
        border-radius: 14px !important;
    }

    .reha-edu-detail .reha-faq-question i,
    .reha-edu-detail .reha-faq-question:hover i,
    .reha-edu-detail .reha-faq-question:focus i,
    .reha-edu-detail .reha-faq-question:active i {
        width: 20px !important;
        min-width: 20px !important;
        height: 20px !important;
        flex-basis: 20px !important;
    }

    .reha-edu-detail .reha-faq-question i::before {
        width: 7px !important;
        height: 7px !important;
        left: 6px !important;
        top: 5px !important;
    }

    .reha-edu-detail .reha-faq-answer {
        padding: 12px 14px 15px !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
}

/* v1.2.4 English curriculum model + instructor removed */
.reha-edu-detail .reha-models-section {
    margin-top: 32px !important;
}

.reha-edu-detail .reha-model-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.reha-edu-detail .reha-model-card {
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 16px !important;
    padding: 22px !important;
    border: 1px solid var(--reha-border) !important;
    border-radius: var(--reha-radius) !important;
    background: #fff !important;
    box-shadow: 0 14px 34px rgba(6,31,74,.055) !important;
}

.reha-edu-detail .reha-model-card .reha-card-icon {
    margin: 0 !important;
}

.reha-edu-detail .reha-model-card h3 {
    margin: 0 0 8px !important;
    color: var(--reha-primary) !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
}

.reha-edu-detail .reha-model-card p {
    margin: 0 0 12px !important;
    color: #405171 !important;
    font-size: 13px !important;
    line-height: 1.62 !important;
    font-weight: 500 !important;
}

.reha-edu-detail .reha-model-card ul {
    display: grid !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.reha-edu-detail .reha-model-card li {
    position: relative !important;
    margin: 0 !important;
    padding: 0 0 0 17px !important;
    color: var(--reha-primary) !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
}

.reha-edu-detail .reha-model-card li::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: .55em !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: var(--reha-accent) !important;
}

.reha-edu-detail .reha-grid-6 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.reha-edu-detail .reha-curriculum-card h3 {
    text-transform: none !important;
}

.reha-edu-detail .reha-teacher-panel,
.reha-edu-detail .reha-teachers-grid,
.reha-edu-detail .reha-teacher-box {
    display: none !important;
}

.reha-edu-detail .reha-media-row {
    grid-template-columns: 1fr !important;
}

.reha-edu-detail .reha-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 1200px) {
    .reha-edu-detail .reha-model-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .reha-edu-detail .reha-model-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .reha-edu-detail .reha-model-card {
        grid-template-columns: 50px minmax(0, 1fr) !important;
        gap: 13px !important;
        padding: 16px !important;
        border-radius: 15px !important;
    }

    .reha-edu-detail .reha-model-card h3 {
        font-size: 15px !important;
    }

    .reha-edu-detail .reha-model-card p,
    .reha-edu-detail .reha-model-card li {
        font-size: 12.5px !important;
    }

    .reha-edu-detail .reha-gallery-grid {
        grid-template-columns: 1fr !important;
    }
}


/* v1.2.5 schedule removed + full-width outcomes */
.reha-edu-detail .reha-schedule-panel,
.reha-edu-detail .reha-table-wrap,
.reha-edu-detail .reha-schedule-table {
    display: none !important;
}

.reha-edu-detail .reha-outcome-section {
    width: 100% !important;
}

.reha-edu-detail .reha-outcome-section .reha-panel {
    width: 100% !important;
}

.reha-edu-detail .reha-curriculum-card h3 {
    text-transform: none !important;
}


/* v1.2.6 outcomes removed + overflow-safe layout + sharper image handling */
.reha-edu-detail .reha-outcome-section,
.reha-edu-detail .reha-outcome-list,
.reha-edu-detail .reha-outcome-card {
    display: none !important;
}

.elementor-widget-reha_egitim_detay,
.elementor-widget-reha_egitim_detay > .elementor-widget-container,
.reha-edu-detail,
.reha-edu-detail * {
    max-width: 100%;
}

.elementor-widget-reha_egitim_detay,
.elementor-widget-reha_egitim_detay > .elementor-widget-container {
    overflow-x: clip !important;
}

.reha-edu-detail {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: clip !important;
    contain: layout paint;
}

@supports not (overflow: clip) {
    .reha-edu-detail,
    .elementor-widget-reha_egitim_detay,
    .elementor-widget-reha_egitim_detay > .elementor-widget-container {
        overflow-x: hidden !important;
    }
}

.reha-edu-detail .reha-container {
    width: min(1400px, calc(100% - 48px)) !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.reha-edu-detail :where(.reha-hero-card,.reha-panel,.reha-card,.reha-model-card,.reha-faq-item,.reha-cta-band,.reha-footer,.reha-gallery-card,.reha-stat-card) {
    min-width: 0 !important;
}

.reha-edu-detail :where(.reha-hero-media img,.reha-gallery-card img,.reha-teacher-box img) {
    width: 100% !important;
    max-width: 100% !important;
    image-rendering: auto !important;
    backface-visibility: hidden;
}

.reha-edu-detail .reha-hero-media img {
    height: 100% !important;
    min-height: 360px;
    object-fit: cover !important;
    object-position: center center !important;
}

.reha-edu-detail .reha-gallery-card img {
    height: 210px !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.reha-edu-detail .reha-teacher-box img {
    object-fit: cover !important;
    object-position: center center !important;
}

@media (max-width: 1024px) {
    .reha-edu-detail .reha-container {
        width: min(100% - 32px, 1400px) !important;
    }

    .reha-edu-detail .reha-hero-media img {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .reha-edu-detail .reha-container {
        width: min(100% - 24px, 1400px) !important;
    }

    .reha-edu-detail .reha-hero-media img {
        min-height: 240px;
    }

    .reha-edu-detail .reha-gallery-card img {
        height: 220px !important;
    }
}


/* v1.2.7 curriculum model: only MEB + Cambridge */
.reha-edu-detail .reha-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.reha-edu-detail .reha-model-card {
    min-height: 100% !important;
}

@media (max-width: 768px) {
    .reha-edu-detail .reha-model-grid {
        grid-template-columns: 1fr !important;
    }
}
