/* ── Language Test Preparation ───────────────────────────────────────── */
.ip-page {
    background: #f1f5f9;
    font-family: 'Inter', sans-serif;
}
.ip-gold { color: #d4af37; }

/* Hero */
.ip-hero {
    position: relative;
    height: 90vh;
    min-height: 560px;
    max-height: 800px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
}
.ip-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.ip-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15,23,42,0.3) 0%,
        rgba(15,23,42,0.75) 60%,
        rgba(15,23,42,0.95) 100%
    );
}
.ip-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
    width: 100%;
}
.ip-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.2rem;
}
.ip-breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.ip-breadcrumb a:hover { color: #d4af37; }
.ip-breadcrumb__current { color: #d4af37; }
.ip-hero__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 1rem;
}
.ip-hero__title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 1.2rem;
    color: #fff;
}
.ip-hero__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 540px;
    line-height: 1.65;
    margin-bottom: 2rem;
}
.ip-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.ip-hero__pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}
.ip-hero__pills span i { color: #d4af37; }
.ip-hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}
.ip-hero__wave svg { display: block; width: 100%; height: 60px; }

/* Body layout */
.ip-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}
.ip-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
}

/* ── Editorial Sections ── */
.ip-section {
    display: grid;
    grid-template-columns: 56px 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
}
.ip-section--flip .ip-section__content { order: 2; }
.ip-section--flip .ip-section__image   { order: 1; }
.ip-section__num {
    font-size: 4.5rem;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
    letter-spacing: -0.04em;
    align-self: start;
    padding-top: 0.3rem;
}
.ip-section__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 0.6rem;
}
.ip-section__title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.ip-section__body {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}
.ip-section__image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    box-shadow: 0 8px 30px rgba(15,23,42,0.12);
}

/* Test type cards */
.ip-test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
}
.ip-test-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(15,23,42,0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.ip-test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(15,23,42,0.1);
    border-color: #1e293b;
}
.ip-test-card__icon {
    width: 48px;
    height: 48px;
    background: #1e293b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #d4af37;
}
.ip-test-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.ip-test-card p {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
}
.ip-test-card__link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #d4af37;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Feature cards */
.ip-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
}
.ip-feature {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ip-feature:hover {
    border-color: #1e293b;
    box-shadow: 0 4px 16px rgba(15,23,42,0.07);
}
.ip-feature__icon {
    width: 40px;
    height: 40px;
    background: #1e293b;
    color: #d4af37;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.ip-feature h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.3rem;
}
.ip-feature p {
    font-size: 0.825rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* ── Sidebar ── */
.ip-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form card */
.ip-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15,23,42,0.08);
}
.ip-form-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: #1e293b;
    border-bottom: 3px solid #d4af37;
}
.ip-form-card__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 8px;
    color: #d4af37;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.ip-form-card__header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.1rem;
}
.ip-form-card__header p {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}
.ip-form-card form { padding: 1.25rem 1.5rem 1.5rem; }

.ip-field { margin-bottom: 0.9rem; }
.ip-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.ip-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #334155;
    margin-bottom: 0.35rem;
}
.ip-input, .ip-select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    font-family: inherit;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.ip-input:focus, .ip-select:focus {
    border-color: #1e293b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30,41,59,0.08);
}
.ip-input::placeholder { color: #94a3b8; }

.ip-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: #1e293b;
    color: #fff;
    border: none;
    border-bottom: 4px solid #0f172a;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.18s, transform 0.12s;
}
.ip-btn:hover { background: #334155; }
.ip-btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.ip-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.ip-btn-outline {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s;
}
.ip-btn-outline:hover { border-color: #1e293b; color: #1e293b; }

.ip-success {
    padding: 2rem 1.5rem;
    text-align: center;
}
.ip-success__icon {
    width: 60px;
    height: 60px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
}
.ip-success h4 { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 0.4rem; }
.ip-success p  { font-size: 0.82rem; color: #64748b; margin-bottom: 1.2rem; }

/* Quick facts widget */
.ip-facts {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 2px 8px rgba(15,23,42,0.05);
}
.ip-facts__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #d4af37;
}
.ip-facts__title i { color: #d4af37; }
.ip-facts__list { display: flex; flex-direction: column; gap: 1rem; }
.ip-fact {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.ip-fact__icon {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.ip-fact strong { display: block; font-size: 0.8rem; color: #0f172a; font-weight: 700; }
.ip-fact span   { display: block; font-size: 0.75rem; color: #64748b; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .ip-layout { grid-template-columns: 1fr; }
    .ip-sidebar { position: static; max-width: 540px; }
}
@media (max-width: 768px) {
    .ip-hero { height: 80vh; }
    .ip-hero__title { font-size: 2.5rem; }
    .ip-section {
        grid-template-columns: 1fr;
    }
    .ip-section__num { display: none; }
    .ip-section--flip .ip-section__content,
    .ip-section--flip .ip-section__image { order: unset; }
    .ip-test-grid { grid-template-columns: 1fr; }
    .ip-features-grid { grid-template-columns: 1fr; }
    .ip-field-row { grid-template-columns: 1fr; }
    .ip-body { padding: 2rem 1rem 3rem; }
}
.ip-success[hidden] { display: none; }
